/* Home · rediseño alineado a la Ficha E (css/ficha-e.css). Todo bajo clases propias (.hb…) para no
   heredar el CSS viejo de estilos-home.css. */
.hb{--ink:#0E1E2E;--teal:#0B4A57;--teal-2:#0B8197;--cel:#22D3EE;--pink:#F0245A;--ease:cubic-bezier(.16,1,.3,1);--dur:7s;
  position:relative;isolation:isolate;overflow:hidden;color:#fff;background:var(--teal);
  height:clamp(520px,74svh,720px);font-family:"Space Grotesk",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.hb *{font-family:inherit;box-sizing:border-box}
.hb p,.hb h1,.hb h2{margin:0}
.hb-wrap{max-width:1220px;margin:0 auto;padding:0 20px;width:100%}

/* Diapositivas: fundido + un zoom lento de la foto activa (el único movimiento del banner). */
.hb-slide{position:absolute;inset:0;display:flex;align-items:center;padding-top:64px;opacity:0;visibility:hidden;transition:opacity .9s var(--ease),visibility 0s .9s}
.hb-slide.is-on{opacity:1;visibility:visible;transition:opacity .9s var(--ease),visibility 0s;z-index:1}
.hb-foto{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:62% center;transform:scale(1.06);transition:transform 0s .9s}
.hb-slide.is-on .hb-foto{transform:scale(1);transition:transform 8s cubic-bezier(.2,.6,.3,1)}
/* Mismo velo que la portada de la ficha: oscuro a la izquierda, donde va el texto. */
.hb-slide::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(6,38,48,.92) 0%,rgba(6,48,60,.74) 38%,rgba(6,48,60,.18) 72%,rgba(6,48,60,.04))}

.hb-txt{max-width:620px;padding-bottom:40px}
.hb .hb-chip{display:inline-block;font-size:.82rem;font-weight:600;padding:5px 12px;border-radius:999px;background:var(--pink);color:#fff;margin-bottom:18px}
.hb-titulo{font-size:clamp(2.6rem,5.6vw,4.6rem);font-weight:700;line-height:1.02;letter-spacing:-.035em;color:#fff;text-wrap:balance}
.hb-copete{display:block;font-size:clamp(1.05rem,1.4vw,1.2rem);font-weight:500;letter-spacing:0;line-height:1.3;opacity:.85;margin-bottom:8px}
.hb .hb-sub{font-size:clamp(1.05rem,1.4vw,1.2rem);line-height:1.5;max-width:42ch;margin-top:18px;opacity:.92;text-wrap:pretty}
.hb .hb-desc{font-size:1rem;line-height:1.55;max-width:48ch;margin-top:10px;opacity:.8}
.hb .hb-datos{font-size:.95rem;margin-top:14px;opacity:.85}
.hb-btn{display:inline-flex;align-items:center;gap:10px;margin-top:30px;padding:14px 22px 14px 26px;border-radius:999px;background:var(--pink);color:#fff;font-weight:600;font-size:1rem;text-decoration:none;transition:background-color .2s,transform .1s}
.hb-btn svg{transition:transform .25s var(--ease)}
.hb-btn:hover{background:#D11A4B;color:#fff}
.hb-btn:hover svg{transform:translateX(3px)}
.hb-btn:active{transform:scale(.98)}
.hb :focus-visible{outline:3px solid var(--cel);outline-offset:3px}

/* Texto de la diapositiva que entra: sube apenas, en escalera. */
.hb-slide.is-on .hb-txt>*{animation:hb-entra .9s var(--ease) both}
.hb-slide.is-on .hb-txt>:nth-child(2){animation-delay:.08s}
.hb-slide.is-on .hb-txt>:nth-child(3){animation-delay:.16s}
.hb-slide.is-on .hb-txt>:nth-child(n+4){animation-delay:.24s}
@keyframes hb-entra{from{opacity:0;transform:translateY(14px)}}

/* Controles: barritas de progreso a la izquierda, pausa y flechas a la derecha. */
.hb-ctrl{position:absolute;left:0;right:0;bottom:28px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px}
.hb-puntos{display:flex;gap:6px;flex-wrap:wrap}
.hb-punto{width:28px;transition:width .5s var(--ease);height:24px;padding:0;border:0;background:none;cursor:pointer;display:grid;align-items:center}
.hb-punto i{display:block;height:3px;border-radius:3px;background:rgba(255,255,255,.32);position:relative;overflow:hidden;transition:background-color .2s}
.hb-punto.is-on{width:64px}
.hb-punto:hover i{background:rgba(255,255,255,.55)}
.hb-punto i::after{content:"";position:absolute;inset:0;background:#fff;transform:scaleX(0);transform-origin:left}
.hb-punto.is-on i::after{animation:hb-avance var(--dur) linear forwards}
@keyframes hb-avance{to{transform:scaleX(1)}}
.hb:hover .hb-punto.is-on i::after,.hb:focus-within .hb-punto.is-on i::after,.hb.pausado .hb-punto.is-on i::after{animation-play-state:paused}
.hb-botones{display:flex;gap:8px}
.hb-botones button{width:40px;height:40px;display:grid;place-items:center;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:#fff;cursor:pointer;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background-color .2s,border-color .2s}
.hb-botones button:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.5)}
.hb .i-play,.hb.pausado .i-pausa{display:none}
.hb.pausado .i-play{display:block}

@media (max-width:768px){
  .hb{height:clamp(500px,76svh,640px)}
  .hb-slide{align-items:flex-end;padding-top:56px}
  .hb-foto{object-position:60% center}
  .hb-slide::after{background:linear-gradient(0deg,rgba(6,38,48,.95) 0%,rgba(6,48,60,.78) 45%,rgba(6,48,60,.25) 75%,rgba(6,48,60,.35))}
  .hb-txt{padding-bottom:96px}
  .hb-btn{margin-top:22px}
  .hb-ctrl{bottom:22px}
  .hb-punto{width:18px}
  .hb-punto.is-on{width:44px}
  .hb-ant,.hb-sig{display:none!important} /* en el celular se desliza con el dedo */
}
@media (prefers-reduced-motion:reduce){
  .hb-slide,.hb-slide.is-on,.hb-foto,.hb-slide.is-on .hb-foto{transition:none}
  .hb-slide.is-on .hb-txt>*{animation:none}
}

/* ===== Secciones con cards (carreras, diplomaturas, cursos) ===== */
.hs{--ink:#0E1E2E;--muted:#4A5B6E;--line:#DFE8EE;--soft:#EEF7FA;--teal:#0B4A57;--teal-2:#0B8197;--cel:#22D3EE;--pink:#F0245A;--ease:cubic-bezier(.16,1,.3,1);
  font-family:"Space Grotesk",system-ui,sans-serif;color:var(--ink);padding:104px 0 8px;-webkit-font-smoothing:antialiased}
.hs *{font-family:inherit;box-sizing:border-box}
.hs h2,.hs h3,.hs p{margin:0}
.hs-wrap{max-width:1220px;margin:0 auto;padding:0 20px}
.hs-cab{display:flex;align-items:flex-end;justify-content:space-between;gap:24px 40px;margin-bottom:36px}
.hs .hs-titulo{font-size:clamp(1.9rem,3.4vw,2.7rem);font-weight:700;line-height:1.05;letter-spacing:-.025em;color:var(--teal-2);text-wrap:balance}
.hs .hs-bajada{font-size:1.05rem;line-height:1.5;color:var(--muted);max-width:58ch;margin-top:12px;text-wrap:pretty}
.hs-mas{flex:none;display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:.98rem;color:var(--teal-2);text-decoration:none;padding:10px 0}
.hs-mas svg{transition:transform .25s var(--ease)}
.hs-mas:hover{color:var(--teal)}
.hs-mas:hover svg{transform:translateX(3px)}
.hs :focus-visible{outline:3px solid var(--cel);outline-offset:4px;border-radius:12px}

.hs-grilla{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}

/* Card: tarjeta con borde, foto arriba y una acción explícita abajo («Ver la carrera» + flecha).
   Al pasar el mouse se eleva y la acción pasa al rosa, el color de acción del sitio. Toda la card es el link. */
.hc{display:flex;flex-direction:column;color:inherit;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;isolation:isolate;
  box-shadow:0 1px 2px rgba(11,34,56,.04),0 12px 28px -18px rgba(11,34,56,.22);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s}
.hc:hover{color:inherit;transform:translateY(-4px);border-color:#C9DCE5;box-shadow:0 2px 4px rgba(11,34,56,.05),0 28px 48px -22px rgba(11,34,56,.38)}
.hc:active{transform:translateY(-1px)}
.hc-foto{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--soft)}
.hc-foto img{width:100%;height:100%;object-fit:cover;object-position:68% center;transition:transform .7s var(--ease)}
.hc:hover .hc-foto img{transform:scale(1.05)}
.hc-tags{position:absolute;top:14px;left:14px;right:14px;display:flex;flex-wrap:wrap;gap:6px}
.hc-tag{font-size:.76rem;font-weight:600;line-height:1;padding:7px 11px;border-radius:999px;color:var(--ink);background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.hc-tag:first-child{background:var(--teal-2);color:#fff}
.hc-tag--desc{background:var(--pink)!important;color:#fff!important}
.hc-cuerpo{flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:20px;padding:20px 22px 22px}
.hc .hc-titulo{font-size:1.3rem;font-weight:600;line-height:1.2;letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
.hc-datos{display:block;font-size:.95rem;color:var(--muted);margin-top:6px}
.hc-datos>span+span::before{content:" · "}
.hc .hc-precio{margin:12px 0 0;padding:0}
.hc-accion{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--line);font-weight:600;font-size:.98rem;color:var(--teal-2);transition:color .25s}
.hc-flecha{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:999px;background:var(--teal-2);color:#fff;transition:background-color .25s}
.hc-flecha svg{transition:transform .3s var(--ease)}
.hc:hover .hc-accion{color:var(--pink)}
.hc:hover .hc-flecha{background:var(--pink)}
.hc:hover .hc-flecha svg{transform:translateX(3px)}

@media (max-width:960px){.hs-grilla{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){
  .hs{padding-top:72px}
  .hs-cab{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:24px}
  /* En el celular cada sección es una fila que se desliza: 24 cards apiladas eran pantallas y pantallas. */
  .hs-grilla{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:80%;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
    margin:0 -20px;padding:4px 20px 24px;scroll-padding:0 20px;scrollbar-width:none;overscroll-behavior-x:contain}
  .hs-grilla::-webkit-scrollbar{display:none}
  .hc{scroll-snap-align:start}
  .hs-mas{order:3}
}
@media (prefers-reduced-motion:reduce){.hc,.hc:hover,.hc-foto img,.hc:hover .hc-foto img{transition:none;transform:none}}

/* Card con precio visible (bloque de siempre, views/courses/_price_card.php): la acción va en rosa desde el reposo. */
.hc .hc-precio{margin-top:14px}
.hc--venta .hc-accion{color:var(--pink)}
.hc--venta .hc-flecha{background:var(--pink)}
.hc--venta:hover .hc-accion{color:#D11A4B}
.hc--venta:hover .hc-flecha{background:#D11A4B}


/* ===== «Dejanos tu consulta» (views/courses/contact-form.php) en la home =====
   Mismo formulario, campos, etiquetas flotantes y mensajes de validación; sólo cambia el diseño:
   una tarjeta blanca centrada (título adentro) sobre el panel teal claro.
   Acotado a la home (body:has(.hb)): el partial también se usa en las páginas de rutas. */
body:has(.hb) .section-contact{background:none;padding:104px 20px 0;font-family:"Space Grotesk",system-ui,sans-serif}
body:has(.hb) .section-contact *:not(i){font-family:inherit}
body:has(.hb) #contacto{display:block;max-width:1180px;margin:0 auto;padding:64px 20px;border-radius:28px;background:#EEF7FA;box-shadow:none}
body:has(.hb) #contacto>article:first-of-type{display:none!important} /* columna de íconos sueltos (decorativa) */
body:has(.hb) #contacto .section-header,body:has(.hb) #contacto>article:last-of-type{max-width:620px;margin-left:auto;margin-right:auto}
body:has(.hb) #contacto .section-header{margin-bottom:0;background:#fff;border-radius:24px 24px 0 0;padding:36px 36px 8px;text-align:left}
body:has(.hb) #contacto .section-title{font-size:clamp(1.7rem,3vw,2.2rem);font-weight:700;line-height:1.1;letter-spacing:-.025em;color:#0E1E2E;text-align:left;margin:0}
body:has(.hb) #contacto>article:last-of-type{background:#fff;border-radius:0 0 24px 24px;padding:24px 36px 28px;box-shadow:0 30px 60px -34px rgba(11,34,56,.45)}
/* Campos */
body:has(.hb) #formulario select,body:has(.hb) #formulario input,body:has(.hb) #formulario textarea{border:1.5px solid #DFE8EE;border-radius:12px;min-height:52px;padding:14px 14px 12px;font-size:16px;color:#0E1E2E;background:#fff;margin-bottom:30px}
body:has(.hb) #formulario textarea{min-height:112px;resize:vertical;margin-bottom:20px}
body:has(.hb) #formulario select:focus,body:has(.hb) #formulario input:focus,body:has(.hb) #formulario textarea:focus{border:1.5px solid #0B8197;box-shadow:0 0 0 4px rgba(11,129,151,.12)}
/* Etiqueta flotante: en reposo adentro del campo; al escribir sube al borde (la posición la sigue manejando estilos-root.css) */
body:has(.hb) #formulario label:not(label[for="codigo"]){left:11px;color:#6B7A8C;font-size:15px;background:#fff;border-radius:4px;width:auto}
body:has(.hb) #formulario input~label,body:has(.hb) #formulario select~label,body:has(.hb) #formulario textarea~label{top:15px}
body:has(.hb) #formulario input:focus~label,body:has(.hb) #formulario select:focus~label,body:has(.hb) #formulario textarea:focus~label,
body:has(.hb) #formulario input:not(:placeholder-shown)~label,body:has(.hb) #formulario textarea:not(:placeholder-shown)~label,
body:has(.hb) #formulario select:valid~label{top:-9px;font-size:12px;color:#0B8197}
body:has(.hb) #formulario label span{color:#F0245A}
/* Ayuda debajo de cada campo («* Requerido», «Completado»…): chica y gris, pegada al campo */
body:has(.hb) .section-contact .requerido::before{top:56px;left:12px;font-size:11.5px;color:#8695A6}
body:has(.hb) .section-contact .requerido::after{display:none}
body:has(.hb) .section-contact .numero-telefono{display:flex;gap:10px;align-items:flex-start}
body:has(.hb) .section-contact .numero-telefono .requerido{flex:1}
body:has(.hb) .section-contact .numero-telefono .requerido::before{left:12px}
body:has(.hb) .section-contact .codigo-static{flex:none;display:grid;place-items:center;width:64px;height:52px;border:1.5px solid #DFE8EE;border-radius:12px;background:#F5F9FB;font-weight:600;font-size:.95rem;color:#0E1E2E}
body:has(.hb) #formulario select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5B6E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px;padding-right:40px}
body:has(.hb) #btn-form{width:100%;border:0;border-radius:999px;padding:16px 20px;background:#F0245A;background-image:none;color:#fff;font-weight:600;font-size:1rem;box-shadow:none;transition:background-color .15s,transform .1s;cursor:pointer}
body:has(.hb) #btn-form:hover{background:#D11A4B;transform:none}
body:has(.hb) #btn-form:active{transform:scale(.98)}
body:has(.hb) #btn-form:focus-visible{outline:3px solid #22D3EE;outline-offset:3px}
body:has(.hb) .section-contact .politica-uso p{font-size:.78rem;line-height:1.45;color:#6B7A8C;text-align:center;margin-top:14px}
body:has(.hb) .section-contact .politica-uso a{color:#0B8197}
@media (max-width:600px){
  body:has(.hb) .section-contact{padding:72px 0 0}
  body:has(.hb) #contacto{border-radius:0;padding:40px 16px}
  body:has(.hb) #contacto .section-header{padding:28px 20px 4px}
  body:has(.hb) #contacto>article:last-of-type{padding:20px 20px 22px}
}

/* ===== «Hablá con nosotros» (partials/cta-chat.php) en la home: panel verde claro, mismos textos ===== */
.hs-chat{padding-top:104px}
.hs-chat .cta-chat{height:auto;display:block;padding:40px 48px;border-radius:28px;text-align:left;background:#E7F8EE;color:#0E1E2E}
.hs-chat .cta-chat-inner{max-width:none;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 24px}
.hs-chat .cta-chat-icono{grid-row:1/3;width:64px;height:64px;padding:15px;border-radius:20px;background:#25D366;fill:#fff;opacity:1}
.hs-chat .cta-chat-titulo{font-size:clamp(1.6rem,2.8vw,2.2rem);letter-spacing:-.025em;line-height:1.1;color:#0E1E2E;align-self:end}
.hs-chat .cta-chat-bajada{grid-column:2;font-size:1.05rem;color:#3D5A4C;align-self:start}
.hs-chat .cta-chat-btn{grid-column:3;grid-row:1/3;margin:0;padding:16px 28px;background:#25D366;color:#06291F;font-weight:600;box-shadow:none;transition:background-color .2s,transform .1s}
.hs-chat .cta-chat-btn:hover{background:#1FBF5B;color:#06291F;transform:none;box-shadow:none}
.hs-chat .cta-chat-btn:active{transform:scale(.98)}
.hs-chat .cta-chat-btn:focus-visible{outline:3px solid #0B8197;outline-offset:3px}
@media (max-width:760px){
  .hs-chat{padding-top:72px}
  .hs-chat .cta-chat{padding:32px 24px;border-radius:24px}
  .hs-chat .cta-chat-inner{grid-template-columns:1fr;gap:10px}
  .hs-chat .cta-chat-icono,.hs-chat .cta-chat-titulo,.hs-chat .cta-chat-bajada,.hs-chat .cta-chat-btn{grid-column:1;grid-row:auto}
  .hs-chat .cta-chat-icono{width:56px;height:56px;padding:13px;border-radius:18px;margin-bottom:6px}
  .hs-chat .cta-chat-btn{justify-self:start;margin-top:10px}
}

/* ===== PromptIA: panel blanco con un halo suave de los colores de la marca; la frase conserva su degradé ===== */
.hp{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:40px 64px;align-items:end;
  padding:56px;border-radius:28px;background:#fff;border:1px solid var(--line)}
.hp::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.55;background:var(--degradado-promptia-c);
  -webkit-mask:radial-gradient(120% 90% at 100% 100%,#000 0%,transparent 60%);mask:radial-gradient(120% 90% at 100% 100%,#000 0%,transparent 60%)}
.hp-logo{width:210px;height:auto;display:block;margin-bottom:28px}
.hs .hp-frase{font-size:clamp(1.7rem,3vw,2.5rem);font-weight:700;line-height:1.12;letter-spacing:-.025em;text-wrap:balance}
.hs .hp-txt{font-size:1.08rem;line-height:1.6;color:var(--muted);text-wrap:pretty}
.hp-txt b{color:var(--ink)}
.hs .hp-saludo{font-size:1.15rem;font-weight:600;color:var(--ink);margin-top:20px}
.hp-btn{display:inline-flex;align-items:center;gap:10px;margin-top:24px;padding:14px 22px 14px 26px;border-radius:999px;background:#0E1E2E;color:#fff;font-weight:600;text-decoration:none;transition:background-color .2s,transform .1s}
.hp-btn svg{transition:transform .25s var(--ease)}
.hp-btn:hover{background:#22344A;color:#fff}
.hp-btn:hover svg{transform:translateX(3px)}
.hp-btn:active{transform:scale(.98)}
@media (max-width:900px){.hp{grid-template-columns:1fr;padding:40px 28px;gap:24px}.hp-logo{width:180px;margin-bottom:20px}}
@media (max-width:600px){.hp{margin:0 -20px;border-radius:0;border-left:0;border-right:0;padding:40px 20px}}

/* ===== NextGen (videos) en la home: mismo markup y JS (playVideoInCard, scrollVideos); sólo diseño ===== */
body:has(.hb) .quick-preview-section{padding-top:104px!important;font-family:"Space Grotesk",system-ui,sans-serif}
body:has(.hb) .quick-preview-section *:not(i){font-family:inherit}
body:has(.hb) .quick-preview-section>.container{max-width:1220px;margin:0 auto;padding:0 20px}
body:has(.hb) .quick-preview-section .section-title{font-size:clamp(1.9rem,3.4vw,2.7rem);font-weight:700;line-height:1.05;letter-spacing:-.025em;color:#0B8197;text-align:left;margin-bottom:28px!important}
body:has(.hb) .contenedor-videos-carrucel{max-width:none}
body:has(.hb) .videos-carousel{max-width:none;-webkit-mask-image:linear-gradient(to right,#000 0%,#000 92%,transparent);mask-image:linear-gradient(to right,#000 0%,#000 92%,transparent)}
body:has(.hb) .videos-grid{gap:20px;padding:8px 2px 24px}
body:has(.hb) .course-video-card{flex:0 0 280px;border:1px solid #DFE8EE;border-radius:22px;box-shadow:0 1px 2px rgba(11,34,56,.04),0 12px 28px -18px rgba(11,34,56,.22);transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s cubic-bezier(.16,1,.3,1)}
body:has(.hb) .course-video-card:hover{transform:translateY(-4px);box-shadow:0 2px 4px rgba(11,34,56,.05),0 28px 48px -22px rgba(11,34,56,.38)}
body:has(.hb) .vertical-video{height:540px!important}
body:has(.hb) .course-video-card .video-thumbnail{object-fit:cover}
body:has(.hb) .course-video-card .card-header{background:#fff;padding:14px 18px 16px;text-align:left;border-top:1px solid #DFE8EE}
body:has(.hb) .course-video-card .course-badge{color:#0E1E2E;font-size:1rem;font-weight:600;text-transform:none;letter-spacing:-.01em}
body:has(.hb) .play-overlay{width:64px;height:64px;background:rgba(255,255,255,.92);color:#0B8197;font-size:1.3rem;box-shadow:0 10px 30px -10px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body:has(.hb) .play-overlay:hover{background:#fff;color:#F0245A}
body:has(.hb) .contenedor-videos-carrucel>a.btn{display:inline-flex;align-items:center;gap:10px;margin-top:12px;padding:14px 26px;border-radius:999px;background:#0E1E2E;background-image:none;border:0;color:#fff;font-weight:600;font-size:1rem;box-shadow:none;transform:none}
body:has(.hb) .contenedor-videos-carrucel>a.btn:hover{background:#22344A;color:#fff;transform:none}
body:has(.hb) .videos-navigation .slider-btn{width:44px;height:44px;background:rgba(255,255,255,.95);color:#0E1E2E;border:1px solid #DFE8EE;box-shadow:0 8px 24px -10px rgba(11,34,56,.35)}
body:has(.hb) .videos-navigation .slider-btn:hover{background:#fff;transform:translateY(-50%)}

/* ===== Ubicación: mismo mapa y textos, alineado al resto ===== */
body:has(.hb) .map-section{padding:104px 20px 0;text-align:left;max-width:1220px;margin:0 auto;background:none}
body:has(.hb) .map-section .section-title,body:has(.hb) .map-section .section-subtitle{font-family:"Space Grotesk",system-ui,sans-serif!important}
body:has(.hb) .map-section .section-title{font-family:inherit;font-size:clamp(1.9rem,3.4vw,2.7rem);font-weight:700;line-height:1.05;letter-spacing:-.025em;color:#0B8197;text-align:left;margin:0}
body:has(.hb) .map-section .section-subtitle{font-family:inherit;font-size:1.05rem;color:#4A5B6E;text-align:left;margin:12px 0 28px}
body:has(.hb) .map-container{width:100%;max-width:none;border-radius:28px;overflow:hidden;border:1px solid #DFE8EE;background:#EEF7FA}
body:has(.hb) .map-container iframe{display:block;height:440px}
@media (max-width:600px){
  body:has(.hb) .quick-preview-section{padding-top:72px!important}
  body:has(.hb) .course-video-card{flex-basis:78%}
  body:has(.hb) .vertical-video{height:480px!important}
  body:has(.hb) .map-section{padding-top:72px}
  body:has(.hb) .map-container{border-radius:20px}
  body:has(.hb) .map-container iframe{height:360px}
}
/* La etiqueta flotante ya dice lo mismo que el placeholder: el placeholder no se pinta (sigue en el HTML). */
body:has(.hb) #formulario input::placeholder,body:has(.hb) #formulario textarea::placeholder{color:transparent}
/* Select sin elegir: su texto queda debajo de la etiqueta; las opciones sí se ven. */
body:has(.hb) #formulario select:invalid{color:transparent}
body:has(.hb) #formulario select option,body:has(.hb) #formulario select optgroup{color:#0E1E2E}

/* ===== Listados /carreras, /diplomaturas, /courses: mismos textos, filtros y paginación; diseño E ===== */
.courses-section:has(.hs-grilla--lista){--ink:#0E1E2E;--muted:#4A5B6E;--line:#DFE8EE;--soft:#EEF7FA;--teal-2:#0B8197;--cel:#22D3EE;--pink:#F0245A;--ease:cubic-bezier(.16,1,.3,1);
  max-width:1220px;margin:0 auto;padding:72px 20px 0;font-family:"Space Grotesk",system-ui,sans-serif;color:var(--ink);background:none}
.courses-section:has(.hs-grilla--lista) *:not(i){font-family:inherit}
.courses-section:has(.hs-grilla--lista)>.section-header{display:grid;grid-template-columns:1fr auto;align-items:end;gap:20px 40px;margin:0 0 40px;padding:0;text-align:left}
.courses-section:has(.hs-grilla--lista) .section-title{font-size:clamp(2.2rem,4.4vw,3.4rem);font-weight:700;line-height:1.02;letter-spacing:-.03em;color:var(--teal-2);text-align:left;margin:0;grid-column:1}
.courses-section:has(.hs-grilla--lista) .section-subtitle{font-size:1.08rem;color:var(--muted);text-align:left;margin:12px 0 0;grid-column:1}
.courses-section:has(.hs-grilla--lista) .contenedor-filtros{grid-column:2;grid-row:1/span 2;display:flex;gap:10px;flex-wrap:wrap;margin:0;justify-content:flex-end}
.courses-section:has(.hs-grilla--lista) .form-select{appearance:none;-webkit-appearance:none;min-width:200px;height:46px;padding:0 42px 0 18px;border:1px solid var(--line);border-radius:999px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5B6E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center/16px;
  font-size:.95rem;font-weight:500;color:var(--ink);cursor:pointer;box-shadow:0 1px 2px rgba(11,34,56,.04);transition:border-color .2s,box-shadow .2s}
.courses-section:has(.hs-grilla--lista) .form-select:hover{border-color:#C9DCE5}
.courses-section:has(.hs-grilla--lista) .form-select:focus{outline:none;border-color:var(--teal-2);box-shadow:0 0 0 4px rgba(11,129,151,.14)}
.hs-grilla--lista{margin-bottom:8px}
/* Paginación */
.courses-section:has(.hs-grilla--lista) .pagination{display:flex;gap:6px;justify-content:center;list-style:none;padding:0;margin:48px 0 0}
.courses-section:has(.hs-grilla--lista) .page-link{display:inline-flex;align-items:center;gap:6px;min-width:42px;height:42px;padding:0 14px;justify-content:center;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:500;text-decoration:none;transition:background-color .2s,border-color .2s,color .2s}
.courses-section:has(.hs-grilla--lista) .page-link:hover{border-color:var(--teal-2);color:var(--teal-2)}
.courses-section:has(.hs-grilla--lista) .page-item.active .page-link{background:var(--ink);border-color:var(--ink);color:#fff}
/* Sin resultados */
.courses-section:has(.hs-grilla--lista) .text-muted{color:var(--muted)!important}
/* «Explorar por categoría» (/courses) */
.courses-section:has(.hs-grilla--lista)~.categories-section{max-width:1220px;margin:0 auto;padding:104px 20px 0;background:none;font-family:"Space Grotesk",system-ui,sans-serif}
.courses-section:has(.hs-grilla--lista)~.categories-section *:not(i){font-family:inherit}
.courses-section:has(.hs-grilla--lista)~.categories-section .container{max-width:none;padding:0}
.courses-section:has(.hs-grilla--lista)~.categories-section .section-header{text-align:left;margin:0 0 28px;padding:0}
.courses-section:has(.hs-grilla--lista)~.categories-section .section-title{font-size:clamp(1.9rem,3.4vw,2.7rem);font-weight:700;letter-spacing:-.025em;color:#0B8197;text-align:left;margin:0}
.courses-section:has(.hs-grilla--lista)~.categories-section .contenedor-categorias{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.courses-section:has(.hs-grilla--lista)~.categories-section .card-body{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:22px;border:1px solid #DFE8EE;border-radius:20px;background:#fff;text-align:left;box-shadow:none;transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s,border-color .35s}
.courses-section:has(.hs-grilla--lista)~.categories-section .card-body:hover{transform:translateY(-3px);border-color:#C9DCE5;box-shadow:0 24px 40px -24px rgba(11,34,56,.35)}
.courses-section:has(.hs-grilla--lista)~.categories-section .card-body i{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#EEF7FA;color:#0B8197;font-size:18px}
.courses-section:has(.hs-grilla--lista)~.categories-section .card-body h5{font-size:1.08rem;font-weight:600;color:#0E1E2E;margin:0;line-height:1.25}
.courses-section:has(.hs-grilla--lista)~.categories-section .card-body .btn{margin-top:auto;padding:0;border:0;background:none;box-shadow:none;color:#0B8197;font-weight:600;font-size:.95rem}
.courses-section:has(.hs-grilla--lista)~.categories-section .card-body .btn::after{content:"";position:absolute;inset:0;border-radius:20px} /* toda la tarjeta clickeable */
.courses-section:has(.hs-grilla--lista)~.categories-section .card-body:hover .btn{color:#F0245A}
@media (max-width:860px){
  .courses-section:has(.hs-grilla--lista)>.section-header{grid-template-columns:1fr}
  .courses-section:has(.hs-grilla--lista) .contenedor-filtros{grid-column:1;grid-row:auto;justify-content:flex-start}
}
@media (max-width:600px){
  .courses-section:has(.hs-grilla--lista){padding-top:48px}
  .courses-section:has(.hs-grilla--lista) .form-select{flex:1;min-width:0}
  /* En el listado las cards van una abajo de la otra (en la home son una fila que se desliza). */
  .hs-grilla.hs-grilla--lista{grid-auto-flow:row;grid-template-columns:1fr;grid-auto-columns:auto;overflow:visible;margin:0;padding:0;scroll-snap-type:none}
  .courses-section:has(.hs-grilla--lista)~.categories-section{padding-top:72px}
}
@media (max-width:600px){.courses-section:has(.hs-grilla--lista) .contenedor-filtros{flex-direction:column;width:100%}.courses-section:has(.hs-grilla--lista) .form-select{width:100%;flex:none}}
.courses-section:has(.hs-grilla--lista)~.categories-section .card-body .btn{text-shadow:none}

/* ===== Búsqueda (/courses/search): encabezado alineado a los otros listados; mismos textos ===== */
.courses-section:has(.hs-grilla--lista)>.search-header{text-align:left;margin:0 0 40px;padding:0;background:none}
.courses-section:has(.hs-grilla--lista)>.search-header h1{display:flex;align-items:center;gap:14px;font-size:clamp(2.2rem,4.4vw,3.4rem);font-weight:700;line-height:1.02;letter-spacing:-.03em;color:var(--teal-2);margin:0}
.courses-section:has(.hs-grilla--lista)>.search-header h1 i{font-size:.7em;color:var(--teal-2);opacity:.8}
.courses-section:has(.hs-grilla--lista)>.search-header .lead{font-size:1.08rem;color:var(--muted)!important;margin:14px 0 0}
.courses-section:has(.hs-grilla--lista)>.search-header .lead strong{color:var(--ink)}
.courses-section:has(.hs-grilla--lista) .search-stats,.courses-section:has(.hs-grilla--lista) .search-program-summary{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;margin:18px 0 0}
.courses-section:has(.hs-grilla--lista) .search-program-summary{margin-top:8px}
.courses-section:has(.hs-grilla--lista) .search-stats .badge,.courses-section:has(.hs-grilla--lista) .search-program-summary .badge{display:inline-flex;align-items:center;gap:8px;text-transform:none;letter-spacing:0;font-size:.9rem;font-weight:600;padding:8px 14px;border-radius:999px;box-shadow:none;border:1px solid var(--line);background:#fff;color:var(--ink)}
.courses-section:has(.hs-grilla--lista) .search-stats .badge{background:var(--ink);border-color:var(--ink);color:#fff}
/* Contexto de la búsqueda dentro de la card */
.hc .search-context{margin-top:8px}
.hc .search-context small{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.85rem;color:var(--muted)!important}
.hc .search-context i{color:var(--teal-2);font-size:.8rem}
.hc .search-context .badge{font-size:.78rem;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--soft);color:var(--teal-2);border:0}
/* Precio con el markup propio de búsqueda / categoría / tech */
.hc .course-price-section{margin:14px 0 0;padding:0;background:none;border:0}
.hc .price-amount{font-size:1.5rem;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.hc .price-currency{font-weight:600;color:var(--ink);margin-right:2px}
.hc .original-price{font-size:.88rem;color:var(--muted);text-decoration:line-through}
.hc .price-contextual-text,.hc .price-aclaracion{font-size:.85rem;color:var(--muted)}

/* ===== /courses/tech: portada en teal oscuro, legible; mismos textos y logo ===== */
.hero-section.bg-gradient-primary:has(+ main){background:linear-gradient(90deg,#062630,#0B4A57)!important;padding:72px 0!important;font-family:"Space Grotesk",system-ui,sans-serif}
.hero-section.bg-gradient-primary:has(+ main) .container{max-width:1220px;padding:0 20px}
.hero-section.bg-gradient-primary:has(+ main) h1{color:#fff!important;font-size:clamp(2.4rem,5vw,4rem)!important;letter-spacing:-.03em;text-align:left;font-family:inherit}
.hero-section.bg-gradient-primary:has(+ main) .lead{color:rgba(255,255,255,.85)!important;text-align:left;font-family:inherit}
.hero-section.bg-gradient-primary:has(+ main) img{filter:brightness(0) invert(1);opacity:.9;max-height:90px!important}
.hero-section.bg-gradient-primary:has(+ main)+main{font-family:"Space Grotesk",system-ui,sans-serif}
.hero-section.bg-gradient-primary:has(+ main)+main .card{border:1px solid #DFE8EE!important;border-radius:22px!important;box-shadow:none!important;max-width:640px;margin:0 auto}
.hero-section.bg-gradient-primary:has(+ main)+main .card .btn{display:inline-flex;align-items:center;gap:8px;width:auto;padding:14px 26px;border-radius:999px;background:#0E1E2E;background-image:none;box-shadow:none;color:#fff;font-weight:600}
.hero-section.bg-gradient-primary:has(+ main)+main .card .btn i{color:#fff}
.hero-section.bg-gradient-primary:has(+ main) .row{display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.hero-section.bg-gradient-primary:has(+ main) .row>*{flex:1 1 auto;width:auto}
.hero-section.bg-gradient-primary:has(+ main) .row>.col-lg-4{flex:0 0 auto;text-align:right!important}
.hero-section.bg-gradient-primary:has(+ main) .lead{font-family:"Space Grotesk",system-ui,sans-serif!important;font-size:1.15rem;margin-top:12px}
.hero-section.bg-gradient-primary:has(+ main)+main .card{border:0!important;background:#EEF7FA!important;padding:12px}
.hero-section.bg-gradient-primary:has(+ main)+main .card-body{border:0!important;font-family:"Space Grotesk",system-ui,sans-serif}
.hero-section.bg-gradient-primary:has(+ main)+main .card-body *:not(i){font-family:inherit}
.hero-section.bg-gradient-primary:has(+ main)+main .card .btn{width:auto!important;font-size:1rem}
@media (max-width:700px){.hero-section.bg-gradient-primary:has(+ main) .row>.col-lg-4{text-align:left!important}}
.hero-section.bg-gradient-primary:has(+ main) img{height:84px;width:auto;max-width:none}
.hero-section.bg-gradient-primary:has(+ main) h1{font-family:"Space Grotesk",system-ui,sans-serif!important;font-weight:700}
.hero-section.bg-gradient-primary:has(+ main)+main .card .btn{display:inline-flex!important;margin-top:8px}
.hero-section.bg-gradient-primary:has(+ main)+main{padding:56px 20px!important}
.hero-section.bg-gradient-primary:has(+ main)+main .card .btn{align-self:center;justify-self:center}

/* Que se vea que hay más abajo: el banner ya no ocupa toda la pantalla (se asoma el título de la sección
   siguiente), la primera sección arranca más cerca y abajo al centro hay un indicador para bajar. */
.hb~.hs:not(.hb~.hs~.hs){padding-top:64px}
.hb-bajar{position:absolute;left:50%;bottom:26px;z-index:2;width:40px;height:40px;margin-left:-20px;display:grid;place-items:center;border-radius:999px;border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.1);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background-color .2s,border-color .2s}
.hb-bajar:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.6)}
.hb-bajar svg{animation:hb-bajar 2.2s cubic-bezier(.45,0,.55,1) infinite}
@keyframes hb-bajar{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}
@media (max-width:768px){.hb~.hs:not(.hb~.hs~.hs){padding-top:48px}.hb-bajar{display:none}} /* en el celular alcanza con que se asome la sección siguiente */
@media (prefers-reduced-motion:reduce){.hb-bajar svg{animation:none}}
.hb-ctrl{pointer-events:none}.hb-ctrl>*{pointer-events:auto} /* la barra ocupa todo el ancho: que no tape el indicador para bajar */

/* ===== Somos Grupo Educativo Santo Domingo (home): mismo diseño que .fe .grupo de css/ficha-e.css ===== */
.hg{margin-top:104px;background:#1A47A0;color:#fff;padding:84px 0;overflow:hidden;font-family:"Space Grotesk",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.hg *{font-family:inherit;font-size:inherit;box-sizing:border-box} /* estilos-root pone 15px a cada etiqueta */
.hg h2,.hg p,.hg ul{margin:0;padding:0;list-style:none}
.hg-wrap{max-width:1220px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:270px 1fr 1fr;gap:0 56px;align-items:end}
.hg-wrap::before{content:"";grid-column:1/-1;grid-row:2;border-top:2px solid rgba(255,255,255,.22);margin:44px 0}
.hg h2{grid-column:1/3;grid-row:1;font-size:clamp(2.4rem,5vw,4.4rem);font-weight:600;line-height:1;letter-spacing:-.025em;color:#fff}
.hg h2 span{color:#8BE3F5}
.hg h2 small{display:block;font-size:1.05rem;font-weight:500;opacity:.85;margin-bottom:10px;letter-spacing:0}
.hg p{grid-column:3;grid-row:1;font-size:1.1rem;line-height:1.6}
.hg .cifras{grid-row:3;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between}
.hg .cifras li{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.3)}
.hg .cifras li:first-child{padding-top:0}
.hg .cifras li:last-child{border:0;padding-bottom:0}
.hg .cifras b{display:block;font-size:clamp(2rem,3.4vw,3rem);font-weight:700;letter-spacing:-.03em;line-height:1.05;font-variant-numeric:tabular-nums}
.hg .cifras span{opacity:.85;font-size:.98rem}
.hg .video{grid-column:2/4;grid-row:3;position:relative;display:block;width:100%;padding:0;border:0;overflow:hidden;cursor:pointer;background:#0B2238;aspect-ratio:16/9;border-radius:28px}
.hg .video img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.hg .video:hover img{transform:scale(1.03)}
.hg .video .play{position:absolute;inset:0;margin:auto;width:68px;height:68px;border-radius:50%;background:rgba(255,255,255,.95);color:#0B2238;display:grid;place-items:center;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.hg .video .play svg{margin-left:4px}
.hg .video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hg :focus-visible{outline:3px solid #22D3EE;outline-offset:3px}
@media (max-width:900px){
  .hg{padding:64px 0}
  .hg-wrap{grid-template-columns:1fr}
  .hg-wrap::before{grid-row:3;margin:32px 0}
  .hg h2,.hg p,.hg .video,.hg .cifras{grid-column:1;grid-row:auto}
  .hg p{margin-top:18px}
  .hg-wrap::before{display:none}
  .hg .video{order:1;margin:32px 0 36px}
  .hg .cifras{order:2}
}

/* PromptIA: como antes, la sección va sobre el degradado de la marca a todo el ancho y el panel blanco encima. */
.hs-promptia{background:var(--degradado-promptia-c);padding:72px 0;margin-top:104px}
.hs-promptia .hp{border:0;box-shadow:0 30px 60px -34px rgba(6,40,70,.35)}
.hs-promptia .hp::before{opacity:.35}
@media (max-width:600px){.hs-promptia{padding:40px 0;margin-top:72px}.hs-promptia .hp{margin:0;border-radius:24px}}

/* «Dejanos tu consulta» v2: dos columnas. Izquierda, panel con foto del edificio y velo teal con el título;
   derecha, el formulario. Mismos textos y campos. */
body:has(.hb) #contacto{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:0;padding:0;background:#fff;border-radius:28px;overflow:hidden;
  max-width:1180px;box-shadow:0 1px 2px rgba(11,34,56,.04),0 40px 80px -48px rgba(11,34,56,.45);border:1px solid #DFE8EE}
body:has(.hb) #contacto .section-header{max-width:none;margin:0;border-radius:0;position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:100%;
  padding:48px 44px;background:#0B4A57 url(/logos/ficha/grupo-sd.webp) center/cover no-repeat}
body:has(.hb) #contacto .section-header::before{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(6,38,48,.15) 0%,rgba(6,38,48,.55) 45%,rgba(6,38,48,.94) 100%)}
body:has(.hb) #contacto .section-title{color:#fff;font-size:clamp(2.2rem,4vw,3.2rem);line-height:1.02;letter-spacing:-.03em}
body:has(.hb) #contacto>article:last-of-type{max-width:none;margin:0;border-radius:0;box-shadow:none;padding:44px 44px 32px}
body:has(.hb) #contacto .section-header{grid-column:1;grid-row:1}
body:has(.hb) #contacto>article:last-of-type{grid-column:2;grid-row:1}
@media (max-width:900px){
  body:has(.hb) #contacto{grid-template-columns:1fr}
  body:has(.hb) #contacto .section-header,body:has(.hb) #contacto>article:last-of-type{grid-column:1;grid-row:auto}
  body:has(.hb) #contacto .section-header{min-height:220px;padding:28px 24px}
  body:has(.hb) #contacto>article:last-of-type{grid-row:auto;padding:28px 22px 24px}
}
@media (max-width:600px){body:has(.hb) #contacto{border-radius:0;border-left:0;border-right:0}}
/* Entrada de la sección del grupo (misma que en las landings): la clase la pone el script de la home. */
.hg .hg-rv{opacity:0;transform:translateY(18px);transition:opacity .8s ease,transform .8s cubic-bezier(.22,1,.36,1)}
.hg .hg-rv.hg-visto{opacity:1;transform:none}
/* Foto del panel de consulta (trae su propio degradé teal abajo): sólo un velo suave para el título. */
body:has(.hb) #contacto .section-header{background:#0B4A57 url(/logos/home/formulario-consulta.webp) center top/cover no-repeat}
body:has(.hb) #contacto .section-header::before{background:linear-gradient(180deg,rgba(6,38,48,0) 55%,rgba(6,38,48,.55) 100%)}
@media (max-width:900px){body:has(.hb) #contacto .section-header{min-height:300px;background-position:center 30%}}
