﻿:root {
  --ink: #0b3041;
  --ink-2: #153f50;
  --accent: #24c7b1;
  --accent-2: #64ead8;
  --bg: #f5f9fa;
  --white: #ffffff;
  --text: #273843;
  --muted: #667983;
  --line: #dce8eb;
  --shadow: 0 22px 60px rgba(11, 48, 65, 0.12);
  --shadow-hover: 0 28px 70px rgba(11, 48, 65, 0.18);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.resources-section {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4vw, 56px) 24px clamp(76px, 9vw, 132px);
  background:
    radial-gradient(circle at 15% 5%, rgba(36, 199, 177, 0.11), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f9fa 100%);
}
.container { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; }
.section-glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; opacity: .55; }
.section-glow--one { width: 340px; height: 340px; background: rgba(36,199,177,.12); right: -140px; top: 130px; }
.section-glow--two { width: 280px; height: 280px; background: rgba(11,48,65,.08); left: -110px; bottom: -90px; }

.section-heading { max-width: 790px; margin: 0 auto 46px; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #118f80;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.eyebrow--small { font-size: .7rem; margin-bottom: 10px; }
.section-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.rotating-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rotating-word-wrap {
  position: relative;
  display: inline-block;
  min-width: 7.5ch;
  height: 1.08em;
  overflow: hidden;
  color: var(--accent);
}
.rotating-word {
  display: inline-block;
  will-change: transform, opacity;
}
.rotating-word.is-leaving {
  animation: wordDropOut .48s cubic-bezier(.4,0,.2,1) forwards;
}
.rotating-word.is-entering {
  animation: wordDropIn .48s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes wordDropOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(110%); opacity: 0; }
}
@keyframes wordDropIn {
  from { transform: translateY(-110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rotating-word.is-leaving,
  .rotating-word.is-entering { animation: none; }
}

.section-heading p {
  margin: 24px auto 0;
  max-width: 720px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.75;
  color: var(--muted);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.resource-card {
  position: relative;
  min-width: 0;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(11,48,65,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(11,48,65,.08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(36,199,177,.38);
}
.resource-card { border-color: rgba(36,199,177,.28); }
.resource-card--featured { border-color: rgba(36,199,177,.55); box-shadow: 0 18px 54px rgba(11,48,65,.15); }
.featured-ribbon {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .09em;
  font-weight: 800;
}
.resource-cover-wrap { position: relative; background: #e9f4f4; }
.resource-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.resource-format {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(11,48,65,.88);
  backdrop-filter: blur(8px);
  font-size: .7rem;
  font-weight: 700;
}
.resource-body {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 26px;
}
.resource-kicker { color: #159485; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.resource-body h2 { margin: 11px 0 12px; color: var(--ink); font-size: 1.37rem; line-height: 1.23; letter-spacing: -.025em; }
.resource-body p { margin: 0; color: var(--muted); line-height: 1.65; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(11,48,65,.18); }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 14px 30px rgba(11,48,65,.24); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--accent); background: #f3fffc; }
.btn-wide { width: 100%; }
.lead-note { margin-top: -13px !important; text-align: center; font-size: .76rem; color: #7c8f97 !important; min-height: 1.25em; }
.lead-note--spacer { visibility: hidden; }

.trust-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: #49616c;
  font-size: .9rem;
  font-weight: 700;
}

.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 22px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 26, 35, .72); backdrop-filter: blur(9px); animation: fadeIn .2s ease both; }
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  animation: popIn .22s ease both;
}
.modal-dialog--lead { width: min(520px, 100%); padding: 34px; }
.modal-close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11,48,65,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(11,48,65,.12);
}
.preview-layout { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 590px; }
.preview-visual {
  position: relative;
  display: grid;
  align-items: center;
  background: linear-gradient(145deg, var(--ink), #144b5f);
  padding: 40px;
  overflow: hidden;
}
.slide-stage { display: grid; place-items: center; min-height: 430px; }
.preview-slide {
  width: min(390px, 88%);
  min-height: 420px;
  padding: 34px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(0,0,0,.22);
  animation: slideIn .2s ease both;
}
.preview-slide .slide-number { color: #149989; font-weight: 900; font-size: .72rem; letter-spacing: .14em; }
.preview-slide h3 { margin: 18px 0 18px; color: var(--ink); font-size: 1.55rem; line-height: 1.1; }
.preview-slide p { color: #50646d; line-height: 1.7; }
.preview-slide ul { margin: 20px 0 0; padding-left: 20px; color: #415761; line-height: 1.65; }
.slider-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.7rem;
}
.slider-arrow:hover { background: rgba(255,255,255,.2); }
.slider-arrow--left { left: 18px; }
.slider-arrow--right { right: 18px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 7px; }
.slider-dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); padding: 0; }
.slider-dot.is-active { width: 24px; border-radius: 999px; background: var(--accent-2); }
.preview-copy { display: flex; flex-direction: column; justify-content: center; padding: 54px 42px; }
.preview-copy h2, .lead-header h2 { margin: 0; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.05; letter-spacing: -.04em; }
.preview-copy > p, .lead-header p { color: var(--muted); line-height: 1.7; }
.preview-points { display: grid; gap: 10px; margin: 18px 0 28px; }
.preview-point { display: flex; gap: 10px; align-items: flex-start; color: #415761; }
.preview-point span:first-child { color: #159485; font-weight: 900; }

.lead-header { margin-bottom: 24px; padding-right: 35px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .86rem; font-weight: 800; }
.form-field input {
  width: 100%;
  height: 50px;
  border: 1px solid #d6e2e6;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  color: var(--text);
  background: #fbfdfd;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36,199,177,.12); }
.form-field input.is-invalid { border-color: #c95454; box-shadow: 0 0 0 3px rgba(201,84,84,.08); }
.field-error { display: block; min-height: 16px; margin-top: 5px; color: #b84b4b; font-size: .76rem; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; color: #657881; font-size: .78rem; line-height: 1.45; }
.consent-row input { margin-top: 3px; accent-color: var(--ink); }
.consent-error { margin-bottom: 12px; }
.privacy-note { margin: 12px 0 0; text-align: center; color: #82929a; font-size: .72rem; line-height: 1.5; }

.toast {
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 38px rgba(11,48,65,.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-weight: 700;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideIn { from { opacity: .25; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 980px) {
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-card--featured { grid-column: 1 / -1; max-width: 570px; width: 100%; justify-self: center; }
  .preview-layout { grid-template-columns: 1fr; }
  .preview-visual { min-height: 510px; }
  .preview-copy { padding: 40px; }
}
@media (max-width: 680px) {
  .resources-section { padding-left: 16px; padding-right: 16px; }
  .section-heading { text-align: left; margin-bottom: 30px; }
  .section-heading h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card--featured { grid-column: auto; max-width: none; }
  .resource-body { min-height: 0; }
  .card-actions { grid-template-columns: 1fr; }
  .trust-row { justify-content: flex-start; gap: 12px 20px; }
  .modal { padding: 10px; }
  .modal-dialog { border-radius: 20px; }
  .modal-dialog--lead { padding: 28px 20px 22px; }
  .preview-visual { padding: 28px 12px; min-height: 470px; }
  .slide-stage { min-height: 410px; }
  .preview-slide { min-height: 390px; padding: 28px; }
  .slider-arrow--left { left: 8px; }
  .slider-arrow--right { right: 8px; }
  .preview-copy { padding: 32px 22px; }
  .modal-close { top: 10px; right: 10px; }
}

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

/* V4: formulario de captura compacto, sin scroll en pantallas de escritorio */
.modal-dialog--lead {
  width: min(520px, 100%);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  padding: 24px 30px 20px;
}
.modal-dialog--lead .modal-close {
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
}
.modal-dialog--lead .lead-header {
  margin-bottom: 16px;
  padding-right: 44px;
}
.modal-dialog--lead .lead-header h2 {
  margin-top: 8px;
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  line-height: 1.02;
}
.modal-dialog--lead .lead-header p {
  margin: 10px 0 0;
  line-height: 1.45;
}
.modal-dialog--lead .form-field {
  margin-bottom: 10px;
}
.modal-dialog--lead .form-field label {
  margin-bottom: 5px;
  font-size: .82rem;
}
.modal-dialog--lead .form-field input {
  height: 44px;
  border-radius: 11px;
  padding: 0 13px;
}
.modal-dialog--lead .field-error {
  min-height: 12px;
  margin-top: 3px;
  font-size: .7rem;
  line-height: 1.15;
}
.modal-dialog--lead .consent-row {
  gap: 8px;
  margin: 2px 0 0;
  font-size: .73rem;
  line-height: 1.35;
}
.modal-dialog--lead .consent-error {
  min-height: 10px;
  margin-bottom: 7px;
}
.modal-dialog--lead .btn {
  min-height: 44px;
  padding: 10px 16px;
}
.modal-dialog--lead .privacy-note {
  margin: 8px 0 0;
  font-size: .68rem;
  line-height: 1.35;
}

@media (max-height: 900px) and (min-width: 681px) {
  .modal { padding: 8px; }
  .modal-dialog--lead {
    max-height: calc(100vh - 16px);
    padding: 18px 28px 16px;
    border-radius: 24px;
  }
  .modal-dialog--lead .lead-header { margin-bottom: 11px; }
  .modal-dialog--lead .lead-header h2 {
    font-size: 2rem;
    margin-top: 5px;
  }
  .modal-dialog--lead .lead-header p {
    margin-top: 7px;
    font-size: .92rem;
  }
  .modal-dialog--lead .form-field { margin-bottom: 7px; }
  .modal-dialog--lead .form-field input { height: 40px; }
  .modal-dialog--lead .field-error { min-height: 10px; margin-top: 2px; }
  .modal-dialog--lead .consent-row { font-size: .7rem; line-height: 1.25; }
  .modal-dialog--lead .consent-error { margin-bottom: 5px; }
  .modal-dialog--lead .btn { min-height: 40px; }
  .modal-dialog--lead .privacy-note { margin-top: 6px; }
}

@media (max-width: 680px) {
  .modal-dialog--lead {
    max-height: calc(100vh - 12px);
    padding: 18px 16px 14px;
    overflow: hidden;
  }
  .modal-dialog--lead .lead-header { margin-bottom: 12px; padding-right: 42px; }
  .modal-dialog--lead .lead-header h2 { font-size: 1.75rem; }
  .modal-dialog--lead .lead-header p { margin-top: 7px; font-size: .9rem; }
  .modal-dialog--lead .form-field { margin-bottom: 7px; }
  .modal-dialog--lead .form-field input { height: 40px; }
  .modal-dialog--lead .consent-row { font-size: .7rem; }
  .modal-dialog--lead .privacy-note { font-size: .64rem; }
}

/* V6: Header Vircoon inspirado en la referencia entregada */
.site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #dce6e9;
  box-shadow: 0 2px 14px rgba(11, 48, 65, .035);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(36vw, 700px);
  height: 18px;
  background: linear-gradient(110deg, transparent 0 9%, rgba(36,199,177,.08) 9% 100%);
  pointer-events: none;
}
.site-header__inner {
  width: min(1720px, calc(100% - 72px));
  min-height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}
.site-header__logo {
  width: 198px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}
.site-header__divider {
  width: 1px;
  height: 46px;
  background: #dbe5e8;
  flex: 0 0 auto;
}
.site-header__context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.1;
}
.site-header__eyebrow {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .24em;
}
.site-header__title {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -.015em;
}

@media (max-width: 760px) {
  .site-header__inner {
    width: min(100% - 32px, 1720px);
    min-height: 76px;
    gap: 14px;
  }
  .site-header__logo {
    width: 145px;
    height: 52px;
  }
  .site-header__divider { height: 38px; }
  .site-header__eyebrow {
    font-size: .62rem;
    letter-spacing: .16em;
  }
  .site-header__title { font-size: .96rem; }
}

@media (max-width: 520px) {
  .site-header__inner {
    width: min(100% - 24px, 1720px);
    min-height: 70px;
    gap: 10px;
  }
  .site-header__logo {
    width: 122px;
    height: 45px;
  }
  .site-header__divider { height: 32px; }
  .site-header__eyebrow {
    font-size: .55rem;
    letter-spacing: .12em;
    margin-bottom: 3px;
  }
  .site-header__title {
    font-size: .82rem;
    line-height: 1.15;
  }
}
/* Header alineado con el sitio principal Vircoon */
.site-header,
.site-header a,
.site-header button {
  font-family: Arial, Helvetica, sans-serif;
}

/* Header usa la misma fuente y proporciones del sitio principal */
.site-header {
  height: 108px;
  min-height: 108px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid #dce7ea;
  box-shadow: 0 10px 30px rgba(6, 40, 58, .06);
}

.site-header__inner {
  width: 100%;
  min-height: 108px;
  padding: 0 clamp(24px, 5vw, 76px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header__brand {
  display: block;
  flex: 0 0 auto;
  width: 198px;
  height: 94px;
  overflow: visible;
}

.site-header__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.site-header__divider,
.site-header__context {
  display: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.site-header__nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.site-header__nav > a:not(.nav-cta):not(.nav-lms) {
  padding: 38px 0;
}

.site-header__nav > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 27px;
  height: 2px;
  background: #24e6d3;
}

.site-header__nav .nav-lms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(36, 230, 211, .55);
  border-radius: 999px;
  background: rgba(36, 230, 211, .12);
  color: #078b83;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(36, 230, 211, .12);
  transition: .2s;
}

.site-header__nav .nav-lms:hover {
  background: #24e6d3;
  color: var(--ink);
  transform: translateY(-1px);
}

.site-header__nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.site-header__nav .button-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .site-header {
    height: auto;
    min-height: 108px;
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 14px;
  }

  .site-header__nav {
    width: 100%;
    justify-content: center;
    gap: 18px;
    font-size: 13px;
  }

  .site-header__nav > a:not(.nav-cta):not(.nav-lms) {
    padding: 10px 0;
  }

  .site-header__nav > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 27px;
  height: 2px;
  background: #24e6d3;
}

@media (max-width: 760px) {
  .site-header__inner {
    width: 100%;
    min-height: 94px;
    padding: 0 24px 12px;
    gap: 12px;
  }

  .site-header__brand {
    width: 170px;
    height: 82px;
  }

  .site-header__nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .site-header__nav .nav-lms {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header__brand {
    width: 154px;
    height: 74px;
  }
}