:root {
  /* ===== Design Tokens (Marca) ===== */
  --terracota: #D46A4B;
  --azul: #0B3C5D;
  --dorado: #E6B655;
  --crema: #FFFFFF;
  --gris: #E0DED9;
  --texto: #2B2B2B;

  /* Tipografía */
  --font-head: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Escalas y espaciado fluido */
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(11, 60, 93, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 60, 93, 0.10);
  --container: 1200px;
  --gap: clamp(.75rem, 1vw + .5rem, 1.5rem);
  --pad: clamp(1rem, 1.2vw + .6rem, 1.75rem);
}

/* ===== Reset mínimo + base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }

/* ===== Utilidades ===== */
.container { width: min(var(--container), 92vw); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 4vw + 1rem, 5rem); }
.section-muted { background: #fff; }
.text-center { text-align: center; }
.muted { color: #6b7280; }
.italic { font-style: italic; }
.emph { font-weight: 600; }
.btn-row { display: inline-flex; gap: var(--gap); flex-wrap: wrap; justify-content: center; }

/* ===== Titulares & copy ===== */
.h1, .h2, .h3, .h4, .h5 { font-family: var(--font-head); color: var(--azul); margin: 0 0 .5rem; line-height: 1.2; }
.h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
.h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
.h3 { font-size: clamp(1.25rem, 1.5vw + 1rem, 1.375rem); font-weight: 700; }
.h4 { font-size: clamp(1.05rem, .5vw + 1rem, 1.125rem); font-weight: 700; }
.h5 { font-size: 1rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, .6vw + 1rem, 1.2rem); color: #3d3d3d; }
.lead-sm { font-size: clamp(1rem, .4vw + .95rem, 1.06rem); color: #3d3d3d; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; color: var(--terracota); font-weight: 700; font-size: .82rem; margin-bottom: .5rem; }
.caption { font-size: .9rem; color: #6b7280; }

/* ===== Navbar / Hero ===== */
.navbar { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; padding: .75rem 1rem; position: relative; }
.sticky-shadow { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.75); backdrop-filter: saturate(140%) blur(8px); border-radius: var(--radius-lg); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--azul); font-weight: 800; }
.brand-mark { height: 40px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 800; }
.menu { display: flex; gap: clamp(.5rem, 1vw, 1rem); align-items: center; margin-left: auto; flex-wrap: wrap; }
.menu a { color: var(--azul); font-weight: 600; padding: .25rem .35rem; border-radius: 8px; }
.menu a:hover { background: rgba(11,60,93,.06); text-decoration: none; }

.hero { position: relative; }
.hero-media { margin-top: 1rem; }
.media-aspect { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; }
.video-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #fff; color: #9ca3af; box-shadow: var(--shadow-md); border: 1px solid var(--gris); border-radius: var(--radius-lg); padding: .5rem; }
.hero-copy { margin-top: 1rem; display: grid; gap: .75rem; }
.no-float-shadow::after { content: ""; display: block; width: min(680px, 70%); height: 22px; margin: 12px auto 0; background: radial-gradient(50% 70% at 50% 50%, rgba(11,60,93,0.12), transparent 70%); border-radius: 9999px; }

/* ===== Grid system simple ===== */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.media-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .grid { gap: calc(var(--gap) + .25rem); }
}

/* ===== Cards & componentes ===== */
.card { background: #fff; border: 1px solid var(--gris); border-radius: var(--radius-lg); padding: var(--pad); box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-md); }
.info-card .card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.icon-circle { display: inline-grid; place-items: center; width: clamp(40px, 1.8vw + 36px, 48px); height: clamp(40px, 1.8vw + 36px, 48px); border-radius: 12px; background: #fff5dd; color: var(--azul); font-weight: 700; }
.icon-circle.lg { border-radius: 14px; }
.step-card .step-num { font-size: clamp(1.6rem, 1vw + 1.2rem, 2rem); margin-bottom: .35rem; }
.details-card p.muted { margin-top: -.2rem; margin-bottom: .25rem; }
.media-thumb { height: clamp(160px, 18vw, 192px); background: #f3f4f6; border-radius: var(--radius-md); display: grid; place-items: center; color: #9ca3af; border: 1px solid var(--gris); }
.media-tall { height: clamp(200px, 22vw, 224px); background: #f3f4f6; border-radius: var(--radius-md); display: grid; place-items: center; color: #9ca3af; border: 1px solid var(--gris); }

/* ===== Chips / Legend ===== */
.legend { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0 1.25rem; }
.chip { display: inline-block; padding: .35rem .7rem; border-radius: 999px; font-size: clamp(.8rem, .3vw + .75rem, .9rem); font-weight: 600; border: 1px solid transparent; }
.chip-mente { background: #e6f0fa; color: var(--azul); }
.chip-miedo { background: #fde7df; color: #8b3a2a; }
.chip-mov { background: #e8f5ea; color: #1f7a4a; }

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 16px; padding: clamp(.75rem, .5vw + .6rem, .9rem) clamp(1rem, 1vw + .8rem, 1.25rem); font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .2s ease, color .2s ease; }
.btn:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }
.btn-primary { background: var(--terracota); color: #fff; border-color: var(--terracota); }
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-outline-primary { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-outline-primary:hover { background: var(--azul); color: #fff; transform: translateY(-1px); }

/* ===== Footer ===== */
.footer { background: var(--azul); color: #fff; padding: clamp(2.5rem, 3vw + 1rem, 3rem) 0; }
.footer-grid { display: grid; gap: calc(var(--gap) + .5rem); grid-template-columns: 1fr; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.list-unstyled { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.social { display: flex; gap: 1rem; flex-wrap: wrap; }
.social a { color: #e5e7eb; }
.legal { margin: .4rem 0; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; }
}

/* ===== Acciones / utilidades extra ===== */
.to-top { position: fixed; right: 1rem; bottom: 1rem; width: clamp(40px, 2.5vw + 28px, 48px); height: clamp(40px, 2.5vw + 28px, 48px); border-radius: 999px; background: var(--terracota); color: #fff; border: none; box-shadow: var(--shadow-sm); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Responsivo fino ===== */
@media (max-width: 992px) {
  .navbar { padding: .6rem .75rem; }
  .menu { row-gap: .25rem; }
}
@media (max-width: 576px) {
  .icon-circle { width: 40px; height: 40px; }
  .media-grid { grid-template-columns: 1fr; }
}
.media-aspect > .hero-iframe {
width: 100%;
height: 100%;
display: block;
border: 0;
background: #000; /* Evita parpadeo durante la carga */
}

/* Llenar contenedor 16:9 */
.media-aspect > .rta-iframe,
.media-aspect > .hero-iframe,
.media-aspect > iframe,
.media-aspect > video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

/* Borde/sombra del contenedor */
.media-aspect {
  border: 1px solid var(--gris);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Espaciado de la sección RTA */
#rta .media-aspect { margin: clamp(1rem, 2vw, 1.5rem) auto clamp(1rem, 2vw, 2rem); }
#rta .grid { margin-top: clamp(1rem, 2vw, 1.5rem); }
#rta .btn { margin-top: clamp(.5rem, 1.5vw, 1rem); }
