/* =============================================================
   VAO | Curso de prospección de ventas B2B
   Hoja de estilos principal

   Índice:
   01. Variables, tipografía y base
   02. Cabecera y navegación
   03. Hero y vídeo Wistia
   04. Formularios SharpSpring
   05. Secciones y tarjetas
   06. Carrusel de vídeos
   07. Temario, FAQ y metodología
   08. CTA final y pie de página
   09. Accesibilidad
   10. Responsive
   ============================================================= */

:root {
    --red: #d2404a;
    --red-dark: #b92f3b;
    --navy: #17213b;
    --text: #253550;
    --muted: #637188;
    --paper: #fff;
    --wash: #f5f7fa;
    --line: #e3e8ef;
    --shadow: 0 16px 48px rgba(24,40,65,.065);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    font-family: Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.wrap {
    width: min(1160px,calc(100% - 56px));
    margin-inline: auto;
}

.top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.top .wrap {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-img {
    max-width: 190px;
    max-height: 62px;
    object-fit: contain;
    display: block;
}

.logo-fallback {
    display: none;
}

.top nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 700;
}

.top nav>a:not(.btn):hover,.carousel-footer a:hover {
    color: var(--red);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--red);
    color: #fff !important;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 15px 24px;
    min-height: 52px;
    line-height: 1.35;
    font-size: 14px;
    font-weight: 800;
    transition: background .2s,transform .2s;
    cursor: pointer;
    box-shadow: 0 7px 22px rgba(210,64,74,.16);
}

.btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.btn.dark {
    background: var(--navy);
    box-shadow: none;
}

.btn.dark:hover {
    background: var(--red);
}

.eyebrow {
    display: inline-block;
    color: var(--red);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 850;
}

.hero {
    padding: 88px 0 112px;
    background: linear-gradient(155deg,#f5f7fa 0%,#fff 75%);
}

.hero-intro {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 47px;
}

.hero-intro h1 {
    font-size: clamp(38px,5vw,67px);
    letter-spacing: -.05em;
    line-height: 1.09;
    max-width: 930px;
    margin: 22px auto 24px;
    color: var(--navy);
}

.hero-intro h1 em {
    font-style: normal;
    background: linear-gradient(transparent 73%,#f6dadd 73%);
}

.lead {
    font-size: clamp(17px,2vw,21px);
    line-height: 1.65;
    max-width: 760px;
    margin: 0 auto;
    color: #53647a;
}

.hero-video {
    max-width: 980px;
    margin: 0 auto 115px;
}

.video-frame {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--navy);
    border-radius: 16px;
    overflow: hidden;
}

.hero-video .video-frame {
    box-shadow: 0 30px 75px rgba(15,29,49,.2);
    border: 7px solid white;
    outline: 1px solid var(--line);
}

.hero-video wistia-player {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

.hero-video wistia-player:not(:defined) {
    background: center/contain no-repeat url("https://fast.wistia.com/embed/medias/mhwpvbbzwd/swatch");
    filter: blur(3px);
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-video-caption {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 15px 0 0;
}

.hero-after {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(370px,.92fr);
    gap: clamp(40px,6vw,100px);
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(28px,4vw,62px);
    box-shadow: var(--shadow);
}

.hero-after-copy h2 {
    font-size: clamp(30px,3vw,41px);
    line-height: 1.22;
    letter-spacing: -.035em;
    color: var(--navy);
    margin: 0 0 23px;
}

.hero-after-copy>p {
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 27px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 34px;
}

.chip {
    border-radius: 100px;
    padding: 8px 13px;
    background: #f9f2f3;
    border: 1px solid #f1dfe1;
    color: #83323a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.form-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: clamp(24px,3vw,36px);
    box-shadow: 0 14px 42px rgba(23,33,59,.085);
}

.form-card h2 {
    font-size: 26px;
    letter-spacing: -.03em;
    line-height: 1.22;
    color: var(--navy);
    margin: 0 0 13px;
}

.form-card>p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 25px;
}

.ss-holder {
    min-height: 250px;
    width: 100%;
}

.ss-holder iframe,.ss-holder input,.ss-holder textarea,.ss-holder select {
    max-width: 100%;
}

.form-card .fine {
    font-size: 12px;
    margin: 14px 0 0;
    color: var(--muted);
}

.section {
    padding: clamp(95px,9.5vw,148px) 0;
    position: relative;
}

.section.alt {
    background: var(--wash);
}

.section-head {
    max-width: 770px;
    margin: 0 0 54px;
}

.section h2,.section-head h2 {
    font-size: clamp(32px,3.5vw,46px);
    line-height: 1.19;
    letter-spacing: -.04em;
    color: var(--navy);
    margin: 16px 0 21px;
}

.section-head>p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
    max-width: 710px;
}

.grid3,.grid4 {
    display: grid;
    gap: 24px;
}

.grid3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.grid4 {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.tile {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(24px,2.7vw,35px);
    min-height: 215px;
    box-shadow: 0 9px 28px rgba(24,41,67,.035);
}

.tile .num {
    color: var(--red);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
}

.tile h3 {
    font-size: 19px;
    line-height: 1.4;
    color: var(--navy);
    letter-spacing: -.02em;
    margin: 18px 0 12px;
}

.tile p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
}

.check {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #fbe8e9;
    border-radius: 12px;
    color: var(--red);
    font-size: 19px;
    font-weight: 900;
}

.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 45px;
    padding: 39px 44px;
    border-radius: 18px;
    background: var(--navy);
    color: #fff;
}

.banner h3 {
    font-size: 23px;
    margin: 0 0 7px;
    line-height: 1.35;
}

.banner p {
    margin: 0;
    color: #cbd6e3;
}

.banner .btn {
    flex-shrink: 0;
}

.videos-section {
    background: #fff;
}

.carousel-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 38px;
    margin-bottom: 43px;
}

.carousel-head>div:first-child {
    max-width: 780px;
}

.carousel-head h2 {
    font-size: clamp(32px,3.5vw,46px);
    line-height: 1.17;
    letter-spacing: -.04em;
    color: var(--navy);
    margin: 16px 0 18px;
}

.carousel-head p {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
}

.carousel-arrows {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.carousel-arrows button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ccd5e0;
    color: var(--navy);
    background: white;
    font-size: 24px;
    cursor: pointer;
}

.carousel-arrows button:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.video-scroller {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 9px 3px 25px;
    scrollbar-color: #ccd4de transparent;
}

.video-tile {
    flex: 0 0 calc((100% - 48px)/3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s,box-shadow .2s;
}

.video-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--navy);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-number-thumb {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg,#17213b,#44526d);
    color: white;
    font-size: 53px;
    font-weight: 900;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    font-size: 18px;
    padding-left: 3px;
    box-shadow: 0 4px 20px #0004;
}

.video-tile-meta {
    padding: 22px 23px 26px;
}

.video-tile-meta span {
    font-size: 11px;
    letter-spacing: .09em;
    color: var(--red);
    font-weight: 850;
    text-transform: uppercase;
}

.video-tile-meta strong {
    display: block;
    color: var(--navy);
    line-height: 1.4;
    margin: 8px 0 0;
    font-size: 16px;
}

.carousel-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 13px;
}

.carousel-footer a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.micro {
    font-size: 13px;
    color: var(--muted);
    margin: 19px 0;
}

.modules {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 17px;
    align-items: start;
}

.modules details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 23px;
    min-width: 0;
    box-shadow: 0 4px 17px #182b4110;
}

.modules summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding: 26px 36px 26px 0;
    color: var(--navy);
    font-weight: 750;
    font-size: 16px;
    line-height: 1.4;
}

.modules summary::-webkit-details-marker {
    display: none;
}

.modules summary:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 20px;
    font-size: 26px;
    font-weight: 400;
    color: var(--red);
}

.modules details[open] summary:after {
    content: "−";
}

.modules ul {
    padding: 0 0 20px 23px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.modules details p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 25px;
    line-height: 1.85;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 35px;
}

.step {
    border-top: 4px solid var(--red);
    padding-top: 30px;
}

.step b {
    font-size: 12px;
    color: var(--red);
    letter-spacing: .08em;
}

.step h3 {
    font-size: 20px;
    line-height: 1.38;
    color: var(--navy);
    margin: 16px 0 13px;
}

.step p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

.bottom {
    background: var(--navy);
    color: #fff;
    padding: 120px 0;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 85px;
    align-items: center;
}

.bottom h2 {
    font-size: clamp(33px,3.8vw,51px);
    letter-spacing: -.04em;
    line-height: 1.17;
    margin: 19px 0 25px;
    color: white;
}

.bottom p {
    color: #d6dfeb;
    font-size: 16px;
}

.bottom .form-card h2 {
    color: var(--navy);
}

.bottom .form-card p {
    color: var(--muted);
    font-size: 14px;
}

.bottom .bottom-cta {
    padding: 20px 0 0;
}

.bottom .bottom-cta .btn {
    width: 100%;
}

.bottom .eyebrow {
    color: #ff9ca2 !important;
}

footer {
    padding: 32px 20px;
    text-align: center;
    background: #0d192c;
    color: #c6d0de;
    font-size: 12px;
}

.video-modal[hidden] {
    display: none;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7,13,25,.92);
    display: grid;
    place-items: center;
    padding: 30px;
}

.video-modal-shell {
    width: min(940px,100%);
    position: relative;
}

.video-modal-close {
    position: absolute;
    right: 0;
    top: -57px;
    border: 0;
    background: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
}

.video-modal-shell p {
    text-align: center;
    color: #fff;
}

.video-modal-shell a {
    text-decoration: underline;
}


/* ==========================================
   CARRUSEL DE VÍDEOS - VAO
========================================== */

/* Sección principal */

.vao-videos {
  padding: 110px 0;
  background-color: #f7f8fa;
}

/* Cabecera */

.vao-videos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 42px;
}

.vao-videos-intro {
  max-width: 740px;
}

.vao-videos-intro h2 {
  margin: 12px 0 18px;
  color: #17213b;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
}

.vao-videos-intro p {
  margin: 0;
  color: #607086;
  font-size: 17px;
  line-height: 1.7;
}

/* Flechas */

.vao-videos-arrows {
  display: flex;
  gap: 12px;
}

.vao-videos-arrows button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border: 1px solid #dce2e9;
  border-radius: 50%;

  background: #ffffff;
  color: #17213b;

  font-size: 22px;
  cursor: pointer;
  transition: 0.2s ease;
}

.vao-videos-arrows button:hover {
  background: #d2404a;
  border-color: #d2404a;
  color: #ffffff;
}

.vao-videos-arrows button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Carrusel */

.vao-videos-track {
  display: flex;
  gap: 24px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding: 8px 0 25px;
  scrollbar-width: thin;
  scrollbar-color: #d2404a #e9edf2;
}

/* Tarjetas */

.vao-video-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;

  scroll-snap-align: start;

  background: #ffffff;
  border: 1px solid #e3e8ed;
  border-radius: 14px;

  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.vao-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(23, 33, 59, 0.10);
}

/* Miniaturas y reproductor */

.vao-video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  background: #17213b;
}

.vao-video-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vao-video-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Botón de reproducción */

.vao-video-play {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  background: transparent;
  border: 0;
  cursor: pointer;
}

.vao-video-play span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border-radius: 50%;

  background: #d2404a;
  color: #ffffff;

  font-size: 24px;
  padding-left: 4px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.vao-video-play:hover span {
  transform: scale(1.12);
}

/* Información inferior */

.vao-video-info {
  padding: 22px 22px 26px;
}

.vao-video-category {
  display: block;

  color: #d2404a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;

  margin-bottom: 9px;
}

.vao-video-info h3 {
  margin: 0;

  color: #17213b;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 750;
}

/* Accesibilidad */

.vao-videos button:focus-visible {
  outline: 3px solid #d2404a;
  outline-offset: 3px;
}

/* Tablet */

@media (max-width: 900px) {

  .vao-videos {
    padding: 75px 0;
  }

  .vao-video-card {
    flex-basis: calc((100% - 24px) / 2);
  }

}

/* Móvil */

@media (max-width: 600px) {

  .vao-videos {
    padding: 60px 0;
  }

  .vao-videos-header {
    gap: 16px;
    align-items: flex-end;
  }

  .vao-videos-arrows button {
    width: 40px;
    height: 40px;
  }

  .vao-videos-track {
    gap: 16px;
  }

  .vao-video-card {
    flex-basis: 88%;
  }

  .vao-video-info {
    padding: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .vao-videos-track {
    scroll-behavior: auto;
  }

  .vao-video-card,
  .vao-video-play span {
    transition: none;
  }

}


@media (max-width:960px) {
    .grid4 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .steps {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .hero-after,.bottom-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-after {
        max-width: 720px;
    }

    .bottom-grid {
        gap: 35px;
    }

    .hero-video {
        margin-bottom: 75px;
    }

    .top nav {
        gap: 18px;
    }

    .grid3 {
        gap: 18px;
    }

    .video-tile {
        flex-basis: calc((100% - 24px)/2);
    }
}

@media (max-width:680px) {
    .wrap {
        width: min(100% - 36px,1160px);
    }

    .top .wrap {
        min-height: 73px;
    }

    .logo-img {
        max-width: 134px;
    }

    .top nav a:not(.btn) {
        display: none;
    }

    .top nav .btn {
        padding: 11px 12px;
        min-height: 43px;
        font-size: 12px;
    }

    .hero {
        padding: 59px 0 83px;
    }

    .hero-intro {
        margin-bottom: 30px;
    }

    .hero-intro h1 {
        letter-spacing: -.035em;
    }

    .hero-video {
        margin-bottom: 67px;
    }

    .hero-video .video-frame {
        border-width: 3px;
    }

    .hero-after {
        border-radius: 18px;
        padding: 26px 20px;
        gap: 25px;
    }

    .hero-after-copy>p {
        font-size: 16px;
    }

    .form-card {
        padding: 25px 20px;
    }

    .section {
        padding: 82px 0;
    }

    .section-head {
        margin-bottom: 35px;
    }

    .section-head>p {
        font-size: 16px;
    }

    .grid3,.grid4,.steps,.modules {
        grid-template-columns: 1fr;
    }

    .tile {
        min-height: 0;
        padding: 27px;
    }

    .banner {
        padding: 30px 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .banner .btn {
        width: 100%;
    }

    .carousel-head {
        gap: 12px;
        align-items: flex-end;
        margin-bottom: 26px;
    }

    .carousel-arrows button {
        width: 42px;
        height: 42px;
    }

    .video-tile {
        flex-basis: 87%;
    }

    .carousel-footer {
        flex-direction: column;
        gap: 8px;
    }

    .bottom {
        padding: 85px 0;
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .form-card h2 {
        font-size: 23px;
    }
}

/* =============================================================
   Accesibilidad y legibilidad
   ============================================================= */

:where(a, button, summary, input, select, textarea):focus-visible {
    outline: 3px solid #d2404a;
    outline-offset: 4px;
}

:where(section[id], .form-card[id]) {
    scroll-margin-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* =============================================================
   11. Botón flotante de contacto por WhatsApp
   ============================================================= */
.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background-color: #25d366;
  color: #102719;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .23);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float svg {
  display: block;
  width: 29px;
  height: 29px;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}
.whatsapp-float:focus-visible {
  outline: 3px solid #17213b;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .whatsapp-float {
    width: 58px;
    height: 58px;
    padding: 0;
    right: 16px;
    bottom: 18px;
  }
  .whatsapp-float-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
