/*
Theme Name: Baja Capital Group
Author: Baja Capital Group
Description: Identidad corporativa de Baja Capital Group, con John Ceballos como fundador y socio.
Version: 1.4.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baja-capital-group
*/

:root{--navy:#102a36;--ink:#152e3a;--gold:#b59b65;--paper:#f6f5f1;--line:#d8dcd9}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:85px}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}button{font:inherit}header{height:94px;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 6%;border-bottom:1px solid #ffffff24}.brand{font-family:Georgia,serif;font-size:27px;line-height:1.05;letter-spacing:2px}.brand small{font-family:'DM Sans',sans-serif;font-size:10px;display:block;letter-spacing:5.3px;margin-top:8px}nav{display:flex;gap:30px;align-items:center;font-size:14px}nav a:hover{color:#d6bf8c}.outline{padding:11px 20px;border:1px solid #ffffff65}.menu{display:none;background:none;color:white;border:1px solid #ffffff55;padding:5px 12px}.hero{min-height:680px;height:calc(100svh - 94px);max-height:930px;position:relative;color:white;display:flex;align-items:center;overflow:hidden;background:#163d4b}.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 47%}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,31,42,.9),rgba(8,31,42,.48) 54%,rgba(8,31,42,.15)),linear-gradient(0deg,rgba(8,31,42,.55),transparent 40%)}.hero .eyebrow,.founder .eyebrow{color:#d7c399}.hero-content{z-index:1;position:relative;padding:65px 8%;max-width:1020px}.eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:3px;font-weight:600;display:block;margin-bottom:24px;color:#8a713d}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,serif;font-weight:400;line-height:1.08;letter-spacing:-2px}h1{font-size:clamp(54px,6.6vw,100px);margin-bottom:25px}h1 em{font-weight:400;color:#ddc89d}h2{font-size:clamp(40px,4.5vw,66px);margin-bottom:26px}.hero p{max-width:490px;color:#e1e8e9;font-size:18px}.button{display:inline-flex;gap:35px;align-items:center;padding:16px 23px;background:var(--gold);color:#102a36;font-size:14px;font-weight:600;border:0;cursor:pointer}.button:hover{background:#d0b67f}.hero-bottom{position:absolute;bottom:27px;left:8%;right:8%;z-index:1;display:flex;justify-content:space-between;font-size:12px;letter-spacing:2px;text-transform:uppercase}.brandbar{display:grid;grid-template-columns:repeat(4,1fr);padding:34px 7%;gap:24px;background:white;border-bottom:1px solid var(--line);align-items:center;text-align:center}.brandbar div{font-size:20px;font-weight:600;line-height:1.2}.brandbar small{display:block;font-size:12px;font-weight:400;letter-spacing:2px;margin-top:5px}.section{padding:105px 8%}.intro{display:grid;grid-template-columns:1.2fr 1fr;gap:10%;align-items:center}.intro p{color:#5c696d}.small-link{display:inline-block;border-bottom:1px solid var(--gold);padding-bottom:6px;font-size:14px}.portfolio{background:white}.section-top{display:flex;justify-content:space-between;gap:50px;align-items:flex-end;margin-bottom:42px}.section-top p{max-width:335px;color:#667479}.section-top h2{margin-bottom:0}.companies{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-left:1px solid var(--line)}.company{padding:40px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);position:relative;min-height:270px;transition:background .2s}.company:hover{background:#f6f5f1}.number{font-size:12px;letter-spacing:2px;color:#7e827a;display:block;margin-bottom:24px}.company h3{font-family:Georgia,serif;font-size:30px;font-weight:400;line-height:1.2;margin-bottom:18px}.company p{color:#647074;max-width:390px}.company .small-link{margin-top:5px}.founder{background:var(--navy);color:white;display:grid;grid-template-columns:1fr 1fr;gap:7%;align-items:center}.portrait{height:570px;width:100%;object-fit:cover;object-position:left center}.founder h2{font-size:70px}.founder .role{color:#d7c399;font-size:16px;border-bottom:1px solid #ffffff25;padding-bottom:24px;margin-bottom:24px}.founder p{color:#c6d0d4}.founder .small-link{color:white}.signature{font-family:Georgia,serif;font-style:italic;font-size:30px;color:#d8c69f;margin-top:30px}.territory{display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center}.locations{border-top:1px solid var(--line)}.locations div{padding:24px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;font-family:Georgia,serif;font-size:28px}.locations span{font:12px 'DM Sans',sans-serif;letter-spacing:2px;color:#808b8a;align-self:center}.contact{background:#e9e8e1;text-align:center;padding:90px 8%}.contact p{max-width:540px;margin:0 auto 28px;color:#647074}.contact h2{max-width:800px;margin:0 auto 24px}footer{padding:50px 8% 25px;background:var(--navy);color:#d6dfe1}.footer-top{display:flex;justify-content:space-between;gap:30px;margin-bottom:40px}.footer-top p{font-size:14px}.footer-bottom{border-top:1px solid #ffffff25;padding-top:20px;font-size:12px;display:flex;justify-content:space-between;gap:20px;color:#9bafb7}.draft{position:fixed;bottom:14px;right:16px;background:#fff;color:#193340;border:1px solid #d0d7d8;border-radius:3px;padding:6px 12px;font-size:11px;z-index:5;box-shadow:0 2px 10px #0001}dialog{max-width:570px;width:calc(100% - 32px);border:0;padding:42px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#102a36b8}dialog h2{font-size:37px}dialog .close{float:right;background:none;border:0;font-size:25px;cursor:pointer}dialog p{color:#566970}.mobile-only{display:none}@media(max-width:760px){header{height:80px;padding:0 6%}.brand{font-size:23px}.menu{display:block}nav{display:none;position:absolute;top:80px;left:0;right:0;padding:25px;background:var(--navy);z-index:8;flex-direction:column;align-items:flex-start}nav.open{display:flex}.hero{min-height:610px;height:calc(90svh - 80px)}.hero-content{padding:60px 7%}h1{font-size:55px;letter-spacing:-1.5px}.hero p{font-size:16px}.hero-bottom{left:7%;right:7%;font-size:10px;letter-spacing:1px}.brandbar{grid-template-columns:1fr 1fr;padding:28px 5%;gap:28px}.brandbar div{font-size:17px}.section{padding:65px 7%}.intro,.founder,.territory{grid-template-columns:1fr;gap:30px}.section-top{display:block}.section-top p{margin-top:25px}.companies{grid-template-columns:1fr}.company{padding:30px}.founder h2{font-size:57px}.portrait{height:340px}.footer-top,.footer-bottom{flex-direction:column}.eyebrow{font-size:11px;letter-spacing:2px}.contact{padding:65px 7%}h2{letter-spacing:-1px}.draft{font-size:10px}}

.wp-site-blocks{padding:0}.wp-site-blocks>*{margin-block-start:0}.wp-block-template-part{margin:0}a:focus-visible,button:focus-visible{outline:3px solid #b59b65;outline-offset:5px}.wp-block-post-content{padding:0 8% 70px}.wp-block-post-title{padding:60px 8% 0}
.hero>img{object-position:70% center}.hero:after{background:linear-gradient(90deg,rgba(8,31,42,.95),rgba(8,31,42,.62) 54%,rgba(8,31,42,.25)),linear-gradient(0deg,rgba(8,31,42,.55),transparent 40%)}

/* Five businesses and office location */
.brandbar{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}.brandbar div{font-size:18px}.brandbar small{font-size:11px;letter-spacing:1.5px}.company-insurance{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:40px;min-height:250px}.insurance-brand{padding:30px 40px;background:#fff}.insurance-brand img{display:block;width:220px;height:90px;object-fit:contain}.office{display:grid;grid-template-columns:.9fr 1.1fr;gap:7%;align-items:center;background:white}.office p,.office address{color:#5c696d}.office address{font-style:normal;line-height:1.8}.office-map{width:100%;height:390px;border:0;display:block}@media(max-width:760px){.brandbar{grid-template-columns:1fr 1fr;gap:28px}.brandbar>div:last-child{grid-column:1/-1}.company-insurance{display:block}.insurance-brand{padding:20px 0}.office{grid-template-columns:1fr;gap:30px}.office-map{height:340px}}

.creditaria-wordmark img{display:block;width:100%;max-width:240px;height:auto;margin:0 auto 8px}.creditaria-logo{display:block;width:100%;max-width:360px;height:auto;margin:0 0 26px}

.poliza-wordmark img{display:block;width:180px;height:80px;object-fit:cover;margin:auto}.poliza-logo{display:block;width:100%;max-width:300px;height:140px;object-fit:cover;margin:0 0 26px}

/* Six companies and capital development */
.brandbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.century-wordmark{background:var(--navy);padding:12px;max-width:240px;width:100%;margin:auto}.century-wordmark img{display:block;width:100%;height:auto}.century-logo{background:var(--navy);padding:18px;max-width:356px;margin-bottom:26px}.century-logo img{display:block;width:100%;height:auto}.company-insurance{grid-column:auto;display:block}.insurance-brand{padding:16px 0}.company-capital{background:var(--navy);color:white}.company-capital:hover{background:#173c4c}.company-capital .number{color:#d7c399}.company-capital p{color:#d0dadd}.capital-detail{background:#eeede6}.capital-intro{display:grid;grid-template-columns:1.2fr 1fr;gap:7%}.capital-intro p{color:#5c696d}.capital-types{display:flex;flex-wrap:wrap;gap:12px;margin:25px 0 38px}.capital-types span{border:1px solid #c8c5b9;padding:10px 16px;font-size:11px;letter-spacing:1.4px}.capital-steps{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #c8c5b9;gap:32px;padding-top:32px}.capital-steps h3{font:27px/1.2 Georgia,serif}.capital-steps p{color:#5c696d}.capital-contact{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:30px;border-top:1px solid #c8c5b9;padding-top:30px}.capital-contact p{margin:0}@media(max-width:760px){.brandbar{grid-template-columns:1fr 1fr}.brandbar>div:last-child{grid-column:auto}.poliza-wordmark img{max-width:100%}.capital-intro,.capital-steps{grid-template-columns:1fr;gap:22px}.capital-contact{align-items:flex-start;flex-direction:column}.capital-steps article+article{border-top:1px solid #c8c5b9;padding-top:22px}}

.masc-logo,.brandbar .masc-logo{font-family:Montserrat,sans-serif;font-size:24px;font-weight:700;color:#111;letter-spacing:1px;line-height:1.6}.masc-logo span{color:#C39F45}.company .masc-logo{margin-bottom:26px}.brandbar .masc-logo{font-size:20px}@media(max-width:760px){.brandbar .masc-logo{font-size:16px}.company .masc-logo{font-size:21px}}

.century-wordmark,.century-logo{background:transparent;padding:0}.century-wordmark{max-width:150px}.century-logo{max-width:220px}

.footer-ipade{display:flex;justify-content:center;margin-top:32px;padding-top:28px;border-top:1px solid #ffffff25}.footer-ipade img{display:block;width:180px;height:auto}

/* Consultoría Capital: black and gold */
.capital-detail{background:#0c0c0c;color:#f4efe5;border-top:1px solid #b59b6566;border-bottom:1px solid #b59b6566}.capital-detail h2{color:#d4b978}.capital-detail h3{color:#e0ca96}.capital-detail .eyebrow,.capital-detail .number{color:#c7aa6b}.capital-intro p,.capital-steps p{color:#d0cdc5}.capital-types span{color:#dfc78f;border-color:#b59b6570;background:#b59b6508}.capital-steps,.capital-contact{border-color:#b59b654d}.capital-contact p{color:#e0d9c9}.capital-contact strong{color:#f4efe5}.capital-detail .button{background:#c7aa6b;color:#0c0c0c}.capital-detail .button:hover{background:#dfc78f}.company-capital{background:#0c0c0c}.company-capital:hover{background:#17140e}.company-capital h3{color:#d4b978}@media(max-width:760px){.capital-steps article+article{border-color:#b59b654d}}

.company-design{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr;gap:50px;align-items:center;background:#151411;color:#f4efe5}.company-design:hover{background:#1c1913}.company-design h3{color:#d4b978}.company-design .number{color:#c7aa6b}.company-design p{color:#d0cdc5;max-width:540px}.design-services span{display:block;padding:15px 0;border-bottom:1px solid #b59b654d;color:#e0ca96}.brandbar .legendary-wordmark{grid-column:1/-1;font-family:Georgia,serif;font-size:25px;letter-spacing:3px}.legendary-wordmark small{font-family:'DM Sans',sans-serif}@media(max-width:760px){.company-design{grid-template-columns:1fr;gap:25px}.brandbar>div.legendary-wordmark:last-child{grid-column:1/-1}}

.bcg-logo{display:block;width:180px;height:120px;object-fit:contain}header{height:140px;background:#000}header .brand{line-height:0}.footer-top .bcg-logo{width:240px;height:160px}footer{background:#000}.hero{height:calc(100svh - 140px)}@media(max-width:760px){header{height:110px}header .bcg-logo{width:144px;height:96px}nav{top:110px}.hero{height:calc(90svh - 110px)}}

.hero>img{object-position:65% center}.hero:after{background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.38) 54%,rgba(0,0,0,.08)),linear-gradient(0deg,rgba(0,0,0,.5),transparent 45%)}

/* Compact company cards */
.portfolio{padding-top:65px;padding-bottom:65px}.section-top{margin-bottom:28px}.company{padding:26px;min-height:0}.company .number{margin-bottom:16px;font-size:11px}.company h3{font-size:26px;margin-bottom:12px}.company p{max-width:none;margin-bottom:16px;line-height:1.55}.company .small-link{margin-top:0}.company .century-logo{max-width:120px;margin-bottom:14px}.company .creditaria-logo{max-width:240px;margin-bottom:16px}.company .poliza-logo{max-width:220px;height:102px;margin-bottom:16px}.company .masc-logo{margin-bottom:16px;font-size:22px}.company-insurance{gap:18px}.insurance-brand{padding:10px 0 0}.insurance-brand img{width:170px;height:65px}.company-design{gap:28px}.design-services span{padding:10px 0}@media(min-width:1100px){.companies{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.company{padding:24px}.portfolio{padding-top:45px;padding-bottom:45px}}

.hero{background:radial-gradient(ellipse at 85% 20%,#75603533,transparent 55%),#0c0c0c;min-height:620px}.hero:after{background:none;pointer-events:none}.hero-content{width:62%;padding-right:4%}.hero h1{font-size:clamp(52px,5.8vw,84px)}.group-services{position:absolute;right:8%;width:29%;z-index:1;border-top:1px solid #b59b6590;padding-top:22px}.group-services-label{display:block;color:#c7aa6b;font-size:10px;letter-spacing:2px;margin-bottom:24px}.group-services div{font-family:Georgia,serif;font-size:24px;padding:12px 0;border-bottom:1px solid #b59b6538;color:#e4d8bd}@media(max-width:760px){.hero{height:auto;max-height:none;display:flex;flex-direction:column;align-items:stretch;padding-bottom:70px}.hero-content{width:100%;padding:45px 7% 28px}.hero h1{font-size:52px}.group-services{position:relative;right:auto;width:auto;margin:0 7%;padding-top:20px}.group-services div{font-size:20px;padding:8px 0}.group-services-label{margin-bottom:12px}.hero-bottom{font-size:9px;bottom:22px}}

.company-notarial{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:center;background:#f6f5f1}.notarial-services span{display:block;padding:10px 0;border-bottom:1px solid var(--line)}.brandbar .legendary-wordmark{grid-column:auto}.group-services div{padding:9px 0;font-size:22px}@media(min-width:761px){.brandbar{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.company-notarial{grid-template-columns:1fr}.brandbar>div.legendary-wordmark:last-child{grid-column:auto}.hero-content{order:0}.group-services{order:1}.group-services div{font-size:19px;padding:7px 0}}

/* Compact footer and IPADE watermark */
footer{position:relative;overflow:hidden;padding:28px 8% 18px}.footer-top{position:relative;z-index:1;align-items:center;margin-bottom:22px}.footer-top .bcg-logo{width:130px;height:86px}.footer-top p{margin:0}.footer-bottom{position:relative;z-index:1;padding-top:14px}.footer-ipade{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;padding:0;border:0;pointer-events:none;z-index:0}.footer-ipade img{width:210px;height:auto;opacity:.025;filter:grayscale(1) contrast(1.4);mix-blend-mode:screen}.office{padding-top:70px;padding-bottom:70px}.office-map{height:330px}@media(max-width:760px){footer{padding:20px 7% 16px}.footer-top{display:grid;grid-template-columns:100px 1fr;gap:8px 16px;margin-bottom:14px;align-items:center}.footer-top .brand{grid-row:1/3}.footer-top .bcg-logo{width:100px;height:68px}.footer-top p{font-size:12px;line-height:1.45}.footer-top>a:last-child{font-size:12px}.footer-bottom{display:grid;grid-template-columns:1fr 1fr;padding-top:10px;gap:5px 12px;font-size:10px}.footer-bottom span:nth-child(2){display:none}.footer-ipade img{width:160px;opacity:.02}.office{padding-top:55px;padding-bottom:55px}.office-map{height:300px}}
