.cdi-landing{--navy:#061c35;--gold:#d5a13f;--teal:#08aeb6;--light:#f4f7fa;color:var(--navy);font-family:Arial,Helvetica,sans-serif;line-height:1.5}.cdi-landing *{box-sizing:border-box}.cdi-landing .cdi-shell{width:min(1160px,92%);margin:auto}.cdi-landing h1,.cdi-landing h2,.cdi-landing h3{line-height:1.14;margin:0 0 20px;font-weight:750}.cdi-landing h1{font-size:clamp(2.7rem,6vw,5.5rem);max-width:760px}.cdi-landing h2{font-size:clamp(2rem,4vw,3.5rem)}.cdi-landing p{margin:0 0 22px}.cdi-landing .cdi-eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.16em;color:var(--teal)}.cdi-hero{min-height:670px;background:linear-gradient(90deg,rgba(6,28,53,.97),rgba(6,28,53,.84) 48%,rgba(6,28,53,.15)),url('portada.webp') center 38%/cover;color:white}.cdi-brand{display:flex;gap:25px;align-items:center;padding:28px 0;font-size:.95rem}.cdi-logo{font-size:2rem;font-weight:900;letter-spacing:-.08em;border-right:2px solid var(--gold);padding-right:22px}.cdi-logo b{font-size:.65rem;letter-spacing:0}.cdi-hero-content{padding:110px 0 120px}.cdi-hero-content p:not(.cdi-eyebrow){font-size:1.15rem;max-width:580px}.cdi-hero h1 em{font-style:normal;color:var(--gold)}.cdi-actions{display:flex;gap:12px;flex-wrap:wrap}.cdi-landing .cdi-btn{display:inline-block;border:0;text-decoration:none;padding:15px 22px;border-radius:10px;font-weight:800;cursor:pointer;text-align:center;font-size:1rem}.cdi-teal{background:var(--teal);color:white!important}.cdi-gold{background:var(--gold);color:var(--navy)!important}.cdi-section{padding-top:90px;padding-bottom:90px}.cdi-section-heading{max-width:760px;margin-bottom:35px}.cdi-two{display:grid;grid-template-columns:.75fr 1.25fr;gap:50px;align-items:start}.cdi-two>img{width:100%;max-height:760px;object-fit:contain;object-position:top}.cdi-panel{padding:30px;background:var(--light);border-radius:20px}.cdi-panel h3{font-size:1.55rem}.cdi-panel form{display:grid;gap:14px}.cdi-panel label{font-weight:700;font-size:.92rem;display:grid;gap:6px}.cdi-panel input,.cdi-panel select{width:100%;padding:13px;border:1px solid #b7c7d4;border-radius:8px;background:white;color:var(--navy);font:inherit}.cdi-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cdi-note{font-size:.8rem;color:#485767}.cdi-error{color:#a62323;font-weight:700}.cdi-business{background:var(--navy);color:white;padding:75px 0}.cdi-business-grid{display:grid;grid-template-columns:1fr .85fr;gap:50px;align-items:center}.cdi-business-grid>img{width:100%;max-height:680px;object-fit:contain}.cdi-business .cdi-eyebrow{color:var(--gold)}.cdi-other{text-align:center}.cdi-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.cdi-cards article{background:var(--light);border-radius:16px;overflow:hidden;padding-bottom:15px}.cdi-cards img{width:100%;height:320px;object-fit:cover;object-position:top}.cdi-cards h3{margin:14px;font-size:1.25rem}.cdi-footer{background:#031325;color:white;padding:28px 0}.cdi-footer .cdi-shell{display:flex;gap:25px;align-items:center;flex-wrap:wrap}.cdi-footer a{color:white;margin-left:auto}@media(max-width:800px){.cdi-hero{min-height:570px;background-position:65% center}.cdi-hero-content{padding:80px 0 100px}.cdi-two,.cdi-business-grid{grid-template-columns:1fr}.cdi-two>img{max-height:500px}.cdi-cards{grid-template-columns:1fr 1fr}.cdi-section{padding-top:55px;padding-bottom:55px}}@media(max-width:520px){.cdi-hero{background:linear-gradient(90deg,rgba(6,28,53,.96),rgba(6,28,53,.72)),url('portada.webp') 62% center/cover}.cdi-brand{gap:14px}.cdi-hero-content{padding:60px 0 90px}.cdi-actions{flex-direction:column}.cdi-panel{padding:20px}.cdi-form-grid,.cdi-cards{grid-template-columns:1fr}.cdi-footer a{margin-left:0}}

/* CDI Plus V1.1: estilos aislados del tema Astra */
.cdi-landing{width:100%;max-width:none!important;margin:0!important;overflow:hidden;font-size:16px}
.cdi-landing .cdi-hero{background:linear-gradient(90deg,rgba(3,21,43,.97) 0%,rgba(3,21,43,.90) 35%,rgba(3,21,43,.40) 62%,rgba(3,21,43,.03) 100%),url('portada.webp') center center/cover no-repeat;min-height:620px}
.cdi-landing .cdi-hero-content{max-width:670px;padding:100px 0 125px}
.cdi-landing .cdi-hero h1{color:#fff!important;font-size:clamp(2.5rem,5.2vw,5rem)!important;line-height:1.08!important;text-shadow:none!important;letter-spacing:-.025em}
.cdi-landing .cdi-hero h1 em{color:#e3ad42!important}
.cdi-landing .cdi-hero-content>p{color:#fff!important}
.cdi-landing .cdi-hero .cdi-eyebrow{color:#3dd1d4!important}
.cdi-landing .cdi-brand,.cdi-landing .cdi-brand span{color:white!important}
.cdi-landing .cdi-cards{grid-template-columns:repeat(4,minmax(0,1fr));text-align:left}
.cdi-landing .cdi-cards article{padding:0 0 12px;box-shadow:0 7px 20px rgba(5,28,54,.08)}
.cdi-landing .cdi-cards img{height:190px;object-fit:cover;display:block}
.cdi-landing .cdi-two>img{height:530px;object-fit:cover;border-radius:16px}
.cdi-landing .cdi-business-grid>img{height:420px;object-fit:cover;border-radius:18px}
.cdi-landing .cdi-contact{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center}
.cdi-landing .cdi-contact img{width:100%;height:320px;object-fit:cover;border-radius:18px}
.cdi-landing .cdi-cards h3{color:#061c35!important}
.cdi-landing .cdi-business h2{color:#fff!important}
@media(max-width:850px){.cdi-landing .cdi-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cdi-landing .cdi-contact{grid-template-columns:1fr}.cdi-landing .cdi-hero{background-position:63% center}}
@media(max-width:550px){.cdi-landing .cdi-hero{background:linear-gradient(90deg,rgba(3,21,43,.94),rgba(3,21,43,.74)),url('portada.webp') 65% center/cover no-repeat}.cdi-landing .cdi-cards{grid-template-columns:1fr}.cdi-landing .cdi-hero-content{padding:65px 0 90px}.cdi-landing .cdi-two>img{height:270px}.cdi-landing .cdi-business-grid>img{height:280px}}

/* V1.2 - identidad oficial, botones accesibles y ajustes para Astra */
.cdi-landing .cdi-brand{display:flex;align-items:center;gap:20px;padding:24px 0}
.cdi-landing .cdi-brand-logo{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:6px 13px;width:156px;min-height:74px;box-shadow:0 3px 16px rgba(0,0,0,.10)}
.cdi-landing .cdi-brand-logo img{display:block;width:130px;height:auto;max-height:82px;object-fit:contain}
.cdi-landing .cdi-brand-tagline{border-left:2px solid #d5a13f;padding-left:18px;color:#fff!important;font-weight:600}
.cdi-landing .cdi-btn,.cdi-landing a.cdi-btn,.cdi-landing a.cdi-btn:visited{text-decoration:none!important;border-bottom:0!important;box-shadow:none;line-height:1.25;transition:transform .18s ease,filter .18s ease}
.cdi-landing .cdi-btn:hover,.cdi-landing .cdi-btn:focus-visible{text-decoration:none!important;filter:brightness(1.06);transform:translateY(-2px)}
.cdi-landing .cdi-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.cdi-landing .cdi-teal,.cdi-landing a.cdi-teal,.cdi-landing a.cdi-teal:visited{color:#05263c!important}
.cdi-landing .cdi-gold,.cdi-landing a.cdi-gold,.cdi-landing a.cdi-gold:visited{color:#061c35!important}
.cdi-landing .cdi-hero-content{max-width:610px}
.cdi-landing .cdi-hero h1{font-size:clamp(2.65rem,4.5vw,4.65rem)!important;max-width:610px}
.cdi-landing .cdi-footer-logo{width:66px;height:66px;object-fit:contain;border-radius:50%;background:#fff}
.cdi-landing .cdi-panel [hidden]{display:none!important}
.cdi-landing .cdi-panel input:focus-visible,.cdi-landing .cdi-panel select:focus-visible{outline:2px solid #08aeb6;outline-offset:2px}
@media(max-width:650px){.cdi-landing .cdi-brand-logo{width:125px;min-height:60px;padding:5px}.cdi-landing .cdi-brand-logo img{width:108px}.cdi-landing .cdi-brand-tagline{font-size:.78rem;padding-left:11px}.cdi-landing .cdi-hero h1{font-size:clamp(2.4rem,10vw,3.5rem)!important}.cdi-landing .cdi-hero-content{max-width:100%;padding:55px 0 80px}.cdi-landing .cdi-btn{width:100%;padding:16px 18px}.cdi-landing .cdi-footer .cdi-shell{align-items:flex-start}}

/* V1.3: navegación y portada móvil optimizada, estilos aislados */
.cdi-landing .cdi-hero .cdi-shell{position:relative}
.cdi-landing .cdi-nav{position:absolute;top:40px;right:0;z-index:5}
.cdi-landing .cdi-nav-links{display:flex;gap:20px;align-items:center}
.cdi-landing .cdi-nav-links a{color:#fff!important;font-weight:700;font-size:.87rem;text-decoration:none!important;white-space:nowrap}
.cdi-landing .cdi-nav-links a:hover,.cdi-landing .cdi-nav-links a:focus-visible{color:#5ce3e3!important;text-decoration:underline!important}
.cdi-landing .cdi-menu-toggle{display:none;border:1px solid rgba(255,255,255,.5);background:rgba(3,21,43,.65);color:#fff;border-radius:9px;padding:10px 13px;cursor:pointer;font-weight:700}
.cdi-landing .cdi-hero-content{padding-top:118px}
.cdi-landing .cdi-actions .cdi-btn{min-width:160px}
.cdi-landing .cdi-btn{min-height:46px}
.cdi-landing .cdi-nav a:focus-visible,.cdi-landing .cdi-menu-toggle:focus-visible{outline:3px solid #3dd1d4;outline-offset:3px}
@media(max-width:1050px){.cdi-landing .cdi-nav{top:110px;left:0;right:auto}.cdi-landing .cdi-nav-links{gap:15px}.cdi-landing .cdi-hero-content{padding-top:140px}}
@media(max-width:700px){
.cdi-landing .cdi-shell{width:calc(100% - 32px)!important;max-width:none}
.cdi-landing .cdi-hero{min-height:0!important;background:linear-gradient(180deg,rgba(3,21,43,.77) 0%,rgba(3,21,43,.89) 55%,rgba(3,21,43,.98) 100%),url('portada.webp') 67% top/auto 390px no-repeat!important;background-color:#03152b!important}
.cdi-landing .cdi-brand{padding:16px 0!important;gap:10px!important;align-items:center!important}
.cdi-landing .cdi-brand-logo{width:100px!important;min-height:50px!important;padding:5px!important;border-radius:9px!important;flex-shrink:0}
.cdi-landing .cdi-brand-logo img{width:88px!important;max-height:50px!important}
.cdi-landing .cdi-brand-tagline{font-size:.7rem!important;line-height:1.3!important;padding-left:10px!important;max-width:120px}
.cdi-landing .cdi-nav{top:18px!important;right:0!important;left:auto!important}
.cdi-landing .cdi-menu-toggle{display:flex;align-items:center;gap:5px;font-size:.75rem;padding:8px!important}
.cdi-landing .cdi-nav-links{display:none;position:absolute;right:0;top:43px;min-width:205px;flex-direction:column;align-items:stretch;gap:0;background:#061c35;border:1px solid #476078;border-radius:10px;box-shadow:0 12px 30px #0006;overflow:hidden}
.cdi-landing .cdi-nav-links.cdi-menu-open{display:flex}
.cdi-landing .cdi-nav-links a{display:block;padding:12px 15px;font-size:.9rem;border-bottom:1px solid #ffffff20}
.cdi-landing .cdi-hero-content{padding:85px 0 40px!important;max-width:100%!important}
.cdi-landing .cdi-hero .cdi-eyebrow{font-size:.65rem!important;letter-spacing:.12em!important;margin-bottom:12px!important}
.cdi-landing .cdi-hero h1{font-size:clamp(2rem,9vw,2.85rem)!important;line-height:1.08!important;letter-spacing:-.03em!important;margin-bottom:14px!important;max-width:100%!important}
.cdi-landing .cdi-hero-content>p:not(.cdi-eyebrow){font-size:.98rem!important;line-height:1.45!important;margin-bottom:18px!important;max-width:340px}
.cdi-landing .cdi-actions{gap:10px!important;max-width:370px}
.cdi-landing .cdi-actions .cdi-btn{display:block;width:100%;min-width:0;padding:13px 14px!important;font-size:.95rem!important}
.cdi-landing .cdi-section{padding-top:45px;padding-bottom:45px}
.cdi-landing .cdi-section h2{font-size:clamp(1.85rem,7vw,2.45rem)!important}
.cdi-landing .cdi-panel{padding:18px!important}
.cdi-landing .cdi-panel .cdi-btn{white-space:normal}
.cdi-landing .cdi-cards{grid-template-columns:1fr 1fr!important;gap:12px!important}
.cdi-landing .cdi-cards img{height:135px!important}
.cdi-landing .cdi-cards h3{font-size:.95rem!important}
.cdi-landing .cdi-contact img{height:220px!important}
}
@media(max-width:370px){.cdi-landing .cdi-brand-tagline{max-width:90px;font-size:.64rem!important}.cdi-landing .cdi-cards{grid-template-columns:1fr!important}}

/* CDI Plus V1.4 — compactación móvil, menú contenido y separación de formularios. */
.cdi-landing .cdi-nav-links a{transition:background-color .15s ease,color .15s ease}
.cdi-landing .cdi-nav-links a:focus-visible{outline-offset:-3px}
.cdi-landing .cdi-panel button.cdi-btn{width:100%;max-width:100%;white-space:normal}
.cdi-landing .cdi-panel input,.cdi-landing .cdi-panel select{min-width:0;max-width:100%}
.cdi-landing .cdi-two,.cdi-landing .cdi-business-grid{min-width:0}
.cdi-landing .cdi-section-heading{margin-bottom:25px}
.cdi-landing #cdi-personas,.cdi-landing #cdi-empresas,.cdi-landing #cdi-tipos,.cdi-landing #cdi-contacto{scroll-margin-top:20px}
@media(max-width:700px){
 .cdi-landing .cdi-hero{background:linear-gradient(180deg,rgba(3,21,43,.77),rgba(3,21,43,.91) 68%,#03152b),url('portada.webp') 68% top/auto 340px no-repeat!important;background-color:#03152b!important}
 .cdi-landing .cdi-brand{padding:12px 0!important;min-height:66px}
 .cdi-landing .cdi-brand-logo{width:95px!important;min-height:47px!important}
 .cdi-landing .cdi-brand-logo img{width:83px!important}
 .cdi-landing .cdi-brand-tagline{display:none!important}
 .cdi-landing .cdi-nav{top:15px!important;z-index:30!important}
 .cdi-landing .cdi-menu-toggle{font-size:.78rem!important;min-height:39px;min-width:85px;justify-content:center}
 .cdi-landing .cdi-nav-links{width:min(270px,calc(100vw - 60px))!important;min-width:0!important;max-height:min(340px,70vh);overflow-y:auto;top:46px!important;z-index:40!important}
 .cdi-landing .cdi-nav-links a{padding:10px 15px!important;font-size:.94rem!important;line-height:1.25!important}
 .cdi-landing .cdi-hero-content{padding:44px 0 34px!important}
 .cdi-landing .cdi-hero h1{font-size:clamp(2rem,8.3vw,2.65rem)!important;max-width:440px!important;line-height:1.06!important}
 .cdi-landing .cdi-hero-content>p:not(.cdi-eyebrow){font-size:.96rem!important;line-height:1.35!important;margin-bottom:15px!important}
 .cdi-landing .cdi-actions{gap:9px!important}
 .cdi-landing .cdi-actions .cdi-btn{padding:12px 14px!important;min-height:44px!important}
 .cdi-landing .cdi-section{padding-top:34px!important;padding-bottom:38px!important}
 .cdi-landing .cdi-section-heading{margin-bottom:18px!important}
 .cdi-landing .cdi-section-heading h2{font-size:clamp(1.7rem,7vw,2.25rem)!important;margin-bottom:13px!important}
 .cdi-landing .cdi-section-heading p{margin-bottom:12px!important}
 .cdi-landing .cdi-two{gap:18px!important}
 .cdi-landing .cdi-two>img{height:220px!important;object-position:center 28%}
 .cdi-landing .cdi-business{padding:40px 0!important}
 .cdi-landing .cdi-business-grid{gap:20px!important}
 .cdi-landing .cdi-panel{padding:16px!important;border-radius:14px!important}
 .cdi-landing .cdi-panel form{gap:12px!important}
 .cdi-landing .cdi-form-grid{grid-template-columns:1fr!important}
 .cdi-landing .cdi-contact{gap:18px!important}
}
@media(max-width:390px){
 .cdi-landing .cdi-hero-content{padding-top:32px!important}
 .cdi-landing .cdi-hero h1{font-size:clamp(1.85rem,8.4vw,2.15rem)!important}
 .cdi-landing .cdi-shell{width:calc(100% - 26px)!important}
}

/* CDI Plus V1.5 — enlaces de tarjetas y retorno a inicio */
.cdi-landing{scroll-behavior:smooth}
.cdi-landing .cdi-brand-logo{text-decoration:none}
.cdi-landing .cdi-cards article>a{display:block;height:100%;color:inherit;text-decoration:none;cursor:pointer}
.cdi-landing .cdi-cards article>a:hover,.cdi-landing .cdi-cards article>a:focus-visible{background:#eaf5f7;outline:2px solid var(--teal);outline-offset:-2px}
.cdi-landing .cdi-card-action{display:block;margin:0 14px 12px;color:#075e68;font-weight:700;font-size:.88rem}
.cdi-landing .cdi-back-wrap{margin-top:25px}
.cdi-landing .cdi-back{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid currentColor;border-radius:9px;color:inherit;text-decoration:none;font-weight:700}
.cdi-landing .cdi-back:hover,.cdi-landing .cdi-back:focus-visible{color:var(--teal);outline-offset:3px}
.cdi-landing .cdi-other .cdi-back-wrap{text-align:center}

/* CDI Plus V1.6 — legal pages and unified footer. */
body.cdi-custom-page #colophon,body.cdi-custom-page .site-footer{display:none!important}
.cdi-landing .cdi-legal-links{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:center}
.cdi-landing .cdi-legal-links a{color:#fff;text-decoration:underline;text-underline-offset:3px;font-size:.9rem}
body.cdi-legal-page .site-content{background:#f6f8fb}
body.cdi-legal-page .site-content .ast-container{max-width:1000px}
body.cdi-legal-page .entry-content{color:#122a42;overflow-wrap:anywhere}
body.cdi-legal-page .entry-content .cdi-legal-nav{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;background:#061c35;color:#fff;border-radius:12px;padding:18px 20px;margin:12px 0 28px}
body.cdi-legal-page .cdi-legal-nav a{color:#fff!important;text-decoration:none;font-size:.94rem;font-weight:600}
body.cdi-legal-page .cdi-legal-nav a:hover{text-decoration:underline}
body.cdi-legal-page .cdi-legal-document{background:#fff;padding:clamp(16px,4vw,35px);border-radius:12px;box-shadow:0 3px 16px rgba(4,26,47,.07)}
body.cdi-legal-page .cdi-legal-bottom{padding:28px 0;text-align:center}
body.cdi-legal-page .cdi-legal-bottom a{display:inline-block;padding:10px 18px;background:#061c35;color:#fff;border-radius:8px;text-decoration:none}
@media(max-width:600px){body.cdi-legal-page .entry-content .cdi-legal-nav{gap:10px 14px;padding:14px}body.cdi-legal-page .cdi-legal-nav a{font-size:.85rem}}
/* Replace the legacy theme header on legal pages with the CDI Plus navigation above. */
body.cdi-legal-page #masthead,body.cdi-legal-page .site-header{display:none!important}
