/* =====================================================================
   CediPro® · Tema 2027 (vista previa hasta aprobación)
   Activo solo cuando <html> tiene la clase .t27 (ver script en index.html).
   - Portada en bloque naranja CEDICOL (identidad).
   - Resultado tipo "bento": resumen primero en bloques.
   - Vidrio esmerilado en encabezado, barra inferior y Max.
   - Franja de seguridad amarilla/negra solo en la acción principal.
   - Microanimaciones al tocar y titular que se arma al abrir.
   - Claro u oscuro automático según el celular (html.t27-light).
   ===================================================================== */

/* ---------- Encabezado de vidrio ---------- */
.t27 .top{background:rgba(22,22,26,.55)!important;-webkit-backdrop-filter:saturate(160%) blur(18px);backdrop-filter:saturate(160%) blur(18px);border-bottom:1px solid rgba(255,255,255,.14)!important;border-image:none!important;box-shadow:0 8px 30px rgba(0,0,0,.12)}
.t27 .top .brand b,.t27 .top .brand small,.t27 .top .topnav a{color:#fff!important}
.t27 .top .menu-btn{color:#fff!important;border-color:rgba(255,255,255,.35)!important;background:rgba(255,255,255,.08)!important}
.t27 .top .btn-o{background:#fff!important;color:#f15a29!important;box-shadow:none!important}

/* Encabezado de vidrio claro en modo claro */
.t27-light .top{background:rgba(255,255,255,.72)!important;border-bottom:1px solid rgba(28,28,31,.08)!important}
.t27-light .top .brand b,.t27-light .top .topnav a{color:#1c1c1f!important}
.t27-light .top .brand small{color:#5f6168!important}
.t27-light .top .menu-btn{color:#1c1c1f!important;border-color:rgba(28,28,31,.18)!important;background:#fff!important}
.t27-light .top .btn-o{background:#f15a29!important;color:#fff!important}
.t27-light .cp-dock,.t27-light .pane-foot{background:rgba(255,255,255,.75)!important;border-top:1px solid rgba(28,28,31,.1)!important}
.t27-light body .as-fab{background:rgba(255,255,255,.75)!important;border-color:rgba(28,28,31,.15)!important;color:#1c1c1f!important}

/* ---------- Portada naranja ---------- */
.t27 body{padding-top:0}
.t27 .hero{position:relative;isolation:isolate;max-width:none!important;margin:0!important;padding-inline:max(16px,calc((100vw - 1200px)/2 + 16px))!important;padding-top:clamp(28px,6vw,88px)!important;padding-bottom:clamp(36px,6vw,88px)!important;color:#fff;border-radius:0 0 clamp(28px,4vw,48px) clamp(28px,4vw,48px)}
.t27 .hero::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:
  radial-gradient(700px 380px at 85% 10%,rgba(255,255,255,.22),transparent 60%),
  radial-gradient(600px 400px at 0% 100%,rgba(120,30,0,.28),transparent 60%),
  linear-gradient(160deg,#f6703f 0%,#f15a29 45%,#e04b1c 100%)}
.t27 .hero::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;opacity:.16;background-image:radial-gradient(rgba(255,255,255,.9) 1px,transparent 1.2px);background-size:22px 22px;-webkit-mask-image:linear-gradient(180deg,#000,transparent 75%);mask-image:linear-gradient(180deg,#000,transparent 75%)}
.t27 .hero .eyebrow{color:#fff!important;opacity:.92}
.t27 .hero .eyebrow::before{background:#fff!important}
.t27 .hero h1{color:#fff!important;text-shadow:none!important;animation:t27Rise .8s cubic-bezier(.2,.8,.2,1) both}
.t27 .hero h1 em,.t27 .hero h1 em *{display:inline-block;color:#1c1c1f!important;-webkit-text-fill-color:#1c1c1f!important;background:none!important;text-shadow:none!important;animation:t27Rise .8s .16s cubic-bezier(.2,.8,.2,1) both}
.t27 .hero .lede{color:rgba(255,255,255,.94)!important;animation:t27Rise .8s .28s both}
.t27 .hero .hero-go,.t27 .hero .row{animation:t27Rise .8s .38s both}
.t27 .hero .btn-o{background:#fff!important;color:#f15a29!important;border-color:#fff!important;box-shadow:0 14px 30px rgba(90,20,0,.25)!important}
.t27 .hero .btn-g{background:#1c1c1f!important;color:#fff!important;border:0!important}
.t27 .hero .hero-case{color:#fff!important;text-decoration:underline;text-underline-offset:4px}
.t27 .hero .proof li{background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.28)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.t27 .hero .proof b,.t27 .hero .proof span{color:#fff!important}
.t27 .hero .proof b::first-letter{color:#1c1c1f}
.t27 .hero-3d .h3{border:0!important;box-shadow:0 30px 60px rgba(90,20,0,.35)!important}
.t27 .hero-3d figcaption{color:rgba(255,255,255,.9)!important}
.t27 .hero-3d figcaption b{color:#1c1c1f!important}
@keyframes t27Rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* ---------- Botones: microanimación + franja de seguridad en la acción principal ---------- */
.t27 .btn{transition:transform .15s cubic-bezier(.2,.8,.2,1),box-shadow .2s,background .2s!important}
.t27 .btn:active{transform:scale(.97)}
.t27 .hero-go .btn-o,.t27 .hero .row .btn-o,.t27 #wa,.t27 #cpDockWa,.t27 #go,.t27 #dSend{border-bottom:6px solid transparent!important;border-image:repeating-linear-gradient(135deg,#ffc21a 0 9px,#1c1c1f 9px 18px) 0 0 6 0 / 0 0 6px 0!important}
.t27 #wa,.t27 #cpDockWa,.t27 #go,.t27 #dSend{background:#f15a29!important}
.t27 .steps li.on i{background:#f15a29!important;border-color:#f15a29!important;color:#fff!important;animation:t27Pop .4s both}
@keyframes t27Pop{0%{transform:scale(.7)}60%{transform:scale(1.12)}100%{transform:scale(1)}}

/* ---------- Vidrio en barra inferior, chat de Max y barra de pasos del celular ---------- */
.t27 .cp-dock,.t27 .pane-foot{background:rgba(24,24,28,.62)!important;-webkit-backdrop-filter:saturate(160%) blur(20px)!important;backdrop-filter:saturate(160%) blur(20px)!important;border-top:1px solid rgba(255,255,255,.16)!important}
.t27 body .as-fab{background:rgba(24,24,28,.6)!important;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.22)!important}
.t27 body .as-panel{background:rgba(20,21,25,.82)!important;-webkit-backdrop-filter:saturate(160%) blur(24px);backdrop-filter:saturate(160%) blur(24px)}

/* ---------- Resultado tipo bento: resumen primero ---------- */
.t27-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.t27-sum[hidden]{display:none!important}
.t27-tile{position:relative;padding:14px 14px 12px;border-radius:20px;background:var(--panel,rgba(18,20,25,.78));border:1px solid var(--ln2,rgba(255,255,255,.14));display:flex;flex-direction:column;gap:2px;min-width:0;animation:t27Rise .5s both}
.t27-tile small{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--m,#a0a5ae)}
.t27-tile b{font-size:clamp(20px,3vw,28px);font-weight:700;line-height:1.1;color:var(--k,#f2f3f5);overflow-wrap:anywhere}
.t27-tile span{font-size:13px;color:var(--g,#c7cad1);line-height:1.35}
.t27-tile.wide{grid-column:span 2}
.t27-tile.risk b{color:#ff6b5b}
.t27-tile.sol{grid-column:1 / -1;background:linear-gradient(135deg,#f6703f,#f15a29 55%,#e04b1c);border:0}
.t27-tile.sol small{color:rgba(255,255,255,.85)}
.t27-tile.sol b{color:#fff;font-size:clamp(19px,2.6vw,24px)}
.t27-tile.sol span{color:rgba(255,255,255,.92)}
.t27-tile:nth-child(2){animation-delay:.06s}.t27-tile:nth-child(3){animation-delay:.12s}.t27-tile:nth-child(4){animation-delay:.18s}.t27-tile:nth-child(5){animation-delay:.24s}
@media (max-width:640px){.t27-sum{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:960px){#t27Sum{order:2}}
.t27 .res-side,.t27 .cp-shop,.t27 .eng,.t27 .used,.t27 .finds,.t27 .stage,.t27 .seal{border-radius:24px!important}
@media (min-width:961px){.t27 .res-side{position:sticky;top:92px;align-self:start}}

/* ---------- Modo claro automático ---------- */
.t27-light,.t27-light body{background:#f5f5f6!important;color:#1c1c1f}
.t27-light body::before,.t27-light body::after{display:none!important}
.t27-light .seal,.t27-light .lvt,.t27-light .stage,.t27-light .drop,.t27-light .needs span,.t27-light .brandbar,.t27-light .trust-seal,.t27-light .dz-card{background:#fff!important;border-color:rgba(28,28,31,.1)!important;color:#1c1c1f}
.t27-light .seal-l img,.t27-light .lvt-g img{filter:none!important;opacity:1}
.t27-light .lvt figure{background:#fff!important}
.t27-light .f input,.t27-light .f select,.t27-light .f textarea{background:#fff!important;color:#1c1c1f!important;border-color:rgba(28,28,31,.18)!important}
.t27-light .h3{background:#fff}
.t27-light .xp-one,.t27-light .how-g,.t27-light .how-g li{background:#fff!important}
.t27-light .how-g b{-webkit-text-stroke:1px #f15a29;color:transparent}
.t27-light .trust-ic{background:#fff4ef!important}
.t27-light .dz-x{background:#f3f2f0!important;color:#414042!important}
.t27-light .scan-msg{background:rgba(255,255,255,.92)!important;color:#1c1c1f!important}
.t27-light h2,.t27-light h3,.t27-light .how strong,.t27-light .trust-g b,.t27-light .needs b,.t27-light .f label,.t27-light legend,.t27-light .lvt b,.t27-light .tips b,.t27-light .xp-txt strong{color:#1c1c1f!important}
.t27-light p,.t27-light .lvt span,.t27-light .tips li,.t27-light .needs small,.t27-light .how span,.t27-light .trust-g span:not(.trust-k):not(.trust-ic){color:#414042}
.t27-light .foot,.t27-light .foot *{color:#414042}
.t27-light .foot-big em{color:#f15a29!important}
.t27-light .case dd,.t27-light .case dt{color:#414042}
.t27-light{--k:#1c1c1f;--g:#414042;--m:#5f6168;--d:#8a8c92;--ln:rgba(28,28,31,.10);--ln2:rgba(28,28,31,.16);--panel:#ffffff;--panel2:#ffffff;--bg:#f5f5f6;--bg2:#ffffff;color-scheme:light}
.t27-light .card,.t27-light .res-side,.t27-light .eng,.t27-light .used,.t27-light .tips,.t27-light .cp-shop,.t27-light .cp-mis,.t27-light .finds,.t27-light .t27-tile:not(.sol),.t27-light .lvt figure,.t27-light .how-g li,.t27-light .trust-g li,.t27-light .law div,.t27-light .tools a,.t27-light .xp-one{background:#fff!important;border:1px solid rgba(28,28,31,.08)!important;box-shadow:0 10px 30px rgba(28,28,31,.06)!important;color:#1c1c1f}
.t27-light .cp-pc,.t27-light .cp-mis-c,.t27-light .cp-mis-card{background:#fff!important;border-color:rgba(28,28,31,.1)!important}
.t27-light .cp-pc-img.nophoto{background:linear-gradient(135deg,#f1f1f3,#e7e7ea)!important}
.t27-light .cp-pc-img.nophoto img{filter:none!important}
.t27-light .btn-g,.t27-light .btn-k{color:#1c1c1f!important;border-color:rgba(28,28,31,.2)!important}
.t27-light .btn-g:hover,.t27-light .btn-k:hover{color:#f15a29!important}
.t27-light .cta .cta-2 .btn,.t27-light #askEng{color:#414042!important}
.t27-light .epp-line img,.t27-light .brands span.has-logo img{height:22px!important;width:auto!important;max-width:110px!important;filter:none!important}
.t27-light .epp-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 12px;border:1px solid rgba(28,28,31,.1);border-radius:12px}
.t27-light .epp-line span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#f15a29}
.t27-light .epp-line small{flex-basis:100%;font-size:12px;color:#5f6168}
.t27-light .brands span{background:#fff4ef;border-color:rgba(241,90,41,.28);color:#c2410c}
.t27-light .brands span.has-logo{background:#fff;border-color:rgba(28,28,31,.12)}
.t27-light .foot-brands img,.t27-light .brandbar img{filter:none!important;opacity:.85}
.t27-light .eng,.t27-light .eng *{color:inherit}
.t27-light .t27-tile.risk b{color:#d92d20}
.t27-light .xp,.t27-light .how,.t27-light .trust,.t27-light .case,.t27-light .foot{color:#1c1c1f}
@media (prefers-reduced-motion:reduce){.t27 .hero h1,.t27 .hero h1 em,.t27 .hero .lede,.t27 .hero .hero-go,.t27 .hero .row,.t27-tile,.t27 .steps li.on i{animation:none!important}}
