/* ─── Design tokens ─────────────────────────────────────────────────── */
:root {
  --c-dark:       #2e2f37;
  --c-gray:       #b2b2b2;
  --c-blue:       #003878;
  --c-green:      #5dbc19;
  --c-green-dark: #2a8b0d;
  --c-alert:      #b20000;
  --c-white:      #ffffff;
  --c-bg:         #f5f5f7;

  --header-h:     72px;
  --max-w:        1200px;
  --px:           clamp(1rem, 4vw, 2rem);

  --radius:       6px;
  --transition:   200ms ease;

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-dark);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ─── Utility ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-green);
  color: var(--c-white);
}
.btn-primary:hover {
  background: var(--c-green-dark);
  transform: translateY(-1px);
}

/* ─── Header / Nav ───────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--c-dark);
  border-bottom: 1px solid rgba(255 255 255 / .07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.nav-logo img {
  height: 64px;
  width: auto;
}


/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--c-gray);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--c-white); }

.nav-links .btn {
  padding: .6rem 1.25rem;
  font-size: .875rem;
}

.nav-links a.btn-primary {
  color: var(--c-white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-dark);
  color: var(--c-gray);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: .75rem;
  opacity: .85;
}

.footer-brand p {
  font-size: .8rem;
  color: var(--c-gray);
  opacity: .7;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}

.footer-legal a,
.footer-legal span {
  font-size: .8rem;
  color: var(--c-gray);
  opacity: .8;
  transition: opacity var(--transition);
}

.footer-legal a:hover { opacity: 1; text-decoration: underline; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255 255 255 / .08);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  text-align: center;
  font-size: .75rem;
  color: var(--c-gray);
  opacity: .5;
}

/* ─── Hero — mobile first ────────────────────────────────────────────── */
.hero {
  background: var(--c-dark);
  padding: 3rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 columna */
  gap: 2rem;
  align-items: center;
}

/* ── Video col */
.hero-video-col {
  display: flex;
  justify-content: center;      /* centrado horizontal en mobile */
}

.hero-video-col video {
  width: 100%;
  max-width: 420px;             /* limita tamaño en mobile */
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}

/* ── Text col */
.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  font-size: 1rem;
  padding: .9rem 2rem;
  color: var(--c-white);
}

.hero-scroll {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.hero-scroll:hover {
  color: var(--c-white);
  border-color: var(--c-white);
}

/* tablet y escritorio: 2 columnas lado a lado */
@media (min-width: 768px) {
  .hero {
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 4rem 0;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .hero-video-col video {
    max-width: unset;           /* ocupa todo el ancho de la columna */
  }
}

/* ─── Secciones de contenido: utilidades comunes ─────────────────────── */
.section-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 1rem;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-dark);
  margin-bottom: .75rem;
}

.section-header p {
  font-size: 1rem;
  color: #555;
}

/* ─── Protocolo 4F ───────────────────────────────────────────────────── */
.protocolo-4f {
  padding: 5rem 0;
  background: var(--c-white);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 540px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--c-white);
  border: 1px solid #e8e8ec;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-num {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: .6rem;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-dark);
  margin-bottom: .75rem;
}

.card-body p {
  font-size: .9rem;
  line-height: 1.65;
  color: #555;
}

/* ─── Por qué Acceseg ────────────────────────────────────────────────── */
.por-que-acceseg {
  padding: 5rem 0;
  background: var(--c-dark);
}

.por-que-acceseg .section-label { color: var(--c-green); }

.por-que-acceseg .section-header h2 { color: var(--c-white); }

.por-que-acceseg .section-header p { color: var(--c-gray); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 540px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: background var(--transition), border-color var(--transition);
}

.feature-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  color: var(--c-green);
  margin-bottom: .25rem;
  flex-shrink: 0;
}

.feature-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gray);
  opacity: .7;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-white);
}

.feature-card p {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--c-gray);
}

/* ─── Placeholder main (se reemplaza paso a paso) ────────────────────── */
.placeholder-main {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--px);
  background: var(--c-bg);
}

.placeholder-main p {
  color: var(--c-gray);
  font-size: .9rem;
  font-style: italic;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-dark);
    border-top: 1px solid rgba(255 255 255 / .07);
    padding: 1rem 0;
  }

  .nav-links.is-open { display: flex; }

  .nav-links li { padding: 0 var(--px); }

  .nav-links a {
    display: block;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255 255 255 / .05);
    font-size: 1rem;
  }

  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: .5rem;
    text-align: center;
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
    padding: .8rem 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    align-items: flex-start;
  }
}
