/* =========================================================
   1) BASE GLOBAL
   ========================================================= */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================================================
   2) PALETA DE COLORES · LFNANNY
   Coherente con los colores reales del logo
   ========================================================= */
:root {
  /* MARCA · colores del logo */
  --accent-main: #264653;   /* Azul logo */
  --accent-dark: #1F3A44;
  --accent-light: #E9EFF2;

  --brand-main: #FEC803;    /* Amarillo logo */
  --brand-dark: #D9AC02;
  --brand-light: #FFF4CC;

  /* TEXTO Y NEUTROS */
  --text-main: #1F2937;
  --text-secondary: #4B5563;
  --border-light: #D1D5DB;
  --white: #FFFFFF;

  /* FONDOS GENERALES */
  --surface-main: #FFFFFF;
  --surface-soft: #F7F8FA;

  /* PERFILES */
  --parent-main: var(--accent-main);
  --parent-dark: var(--accent-dark);
  --parent-light: #EAF1F4;
  --on-parent: #FFFFFF;

  --sitter-main: var(--brand-main);
  --sitter-dark: var(--brand-dark);
  --sitter-light: #FFF6D8;
  --on-sitter: var(--accent-main);

  /* FONDOS DE SECCIÓN */
  --section-how: #FCFBF8;
  --section-families: var(--parent-light);
  --section-sitters: var(--sitter-light);
  --section-alt: #F3F6F8;
  --section-contact: #FFFFFF;
  --section-footer: var(--accent-dark);
}

/* =========================================================
   3) TIPOGRAFÍA Y ESTRUCTURA GENERAL
   ========================================================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background: var(--surface-main);
}

a {
  color: var(--accent-main);
  text-decoration: none;
}

a:hover {
  color: var(--brand-main);
}

.container {
  width: min(90%, 1100px);
  margin: 0 auto;
}

/* =========================================================
   4) HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.25s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  transition: padding 0.25s ease;
}

.logo img {
  display: block;
  width: auto;
  height: 78px;
  transition: height 0.25s ease;
}

.header-small {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.header-small .logo img {
  height: 48px;
}

.header-small .header-content {
  padding: 12px 0;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-main);
}

.nav a:hover {
  color: var(--brand-main);
}

/* =========================================================
   5) HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 120px 0 90px;
  text-align: center;
}

.hero-image {
  background-image: url("../assets/madre_con_hijo_sombra.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 70, 83, 0.78);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: 2.35rem;
  color: var(--brand-main);
}

.hero p {
  max-width: 760px;
  margin: 0 auto 16px;
  color: var(--white);
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   6) BOTONES
   ========================================================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

/* Botón principal global */
.btn-primary {
  background: var(--accent-main);
  border-color: var(--accent-main);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

/* Botón secundario global para hero */
.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section-actions {
  margin-top: 22px;
}

/* =========================================================
   7) SECCIONES GENERALES
   ========================================================= */
.section {
  padding: 80px 0;
  background: var(--surface-main);
}

#como-funciona,
.section-how {
  background: var(--section-how);
}

#familias,
.section-parent {
  background: var(--section-families);
}

#ninieras,
.section-sitter {
  background: var(--section-sitters);
}

.section-alt,
.section-brand-soft {
  background: var(--section-alt);
}

#contacto,
.section-contact {
  background: var(--section-contact);
}

/* =========================================================
   8) TÍTULOS DE SECCIÓN
   ========================================================= */
.section-title {
  display: inline-block;
  margin-bottom: 28px;
  padding: 10px 22px;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 6px;
  background: var(--accent-main);
  color: var(--white);
}

/* =========================================================
   9) LAYOUTS
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 1fr 1.2fr;
}

.split-reverse .split-text {
  order: 2;
}

.split-reverse .split-media {
  order: 1;
}

.split-how {
  align-items: start;
}

.split-text p,
.section p,
.section li {
  color: var(--text-secondary);
}

.split-media,
.feature-wide-media {
  display: flex;
  justify-content: center;
}

.feature-wide {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.feature-wide-text {
  color: var(--text-main);
}

#confianza .feature-wide-text p {
  color: var(--text-secondary);
}

#confianza .btn-primary {
  background: var(--accent-main);
  border-color: var(--accent-main);
  color: var(--white);
}

#confianza .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

/* =========================================================
   10) PERFILES
   ========================================================= */
/* PADRES */
.profile.parent .section-title {
  background: var(--parent-main);
  color: var(--on-parent);
}

.profile.parent .bullets li::marker {
  color: var(--parent-main);
}

.profile.parent .btn-primary,
.profile.parent .btn-secondary {
  background: var(--parent-main);
  border-color: var(--parent-main);
  color: var(--on-parent);
}

.profile.parent .btn-primary:hover,
.profile.parent .btn-secondary:hover {
  background: var(--parent-dark);
  border-color: var(--parent-dark);
  color: var(--on-parent);
}

/* NIÑERAS */
.profile.sitter .section-title {
  background: var(--sitter-main);
  color: var(--on-sitter);
}

.profile.sitter .bullets li::marker {
  color: var(--sitter-main);
}

.profile.sitter .btn-primary,
.profile.sitter .btn-secondary {
  background: var(--sitter-main);
  border-color: var(--sitter-main);
  color: var(--on-sitter);
}

.profile.sitter .btn-primary:hover,
.profile.sitter .btn-secondary:hover {
  background: var(--sitter-dark);
  border-color: var(--sitter-dark);
  color: var(--on-sitter);
}

/* =========================================================
   11) LISTAS / BULLETS
   ========================================================= */
.bullets {
  margin-top: 10px;
  padding-left: 18px;
}

.bullets li {
  margin-bottom: 10px;
}

/* =========================================================
   12) CARDS
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--accent-main);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* =========================================================
   13) IMÁGENES
   ========================================================= */
.media-frame {
  width: min(100%, 430px);
  height: 260px;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
}

.media-frame-how {
  width: min(100%, 360px);
  height: 360px;
}

.media-frame-wide {
  width: 100%;
  max-width: 540px;
  height: 250px;
}

.media-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--img-pos, center center);
  transform: scale(var(--img-scale, 1));
  transform-origin: center center;
  border-radius: inherit;
}

/* =========================================================
   14) GRÁFICO DEL PROCESO
   ========================================================= */
.process-graphic {
  margin-top: 42px;
  text-align: center;
}

.process-title {
  margin-bottom: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-main);
}

.process-graphic-image {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background: var(--white);
}

/* =========================================================
   15) CONTACTO
   ========================================================= */
.email {
  margin-top: 18px;
  font-size: 1.1rem;
}

.email a {
  font-weight: 700;
  color: var(--accent-main);
}

.email a:hover {
  color: var(--brand-main);
}

/* =========================================================
   16) FOOTER
   ========================================================= */
.footer {
  background: var(--section-footer);
  color: var(--white);
  padding: 30px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--white);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand-main);
}

/* =========================================================
   17) RESPONSIVE · TABLET
   ========================================================= */
@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .split,
  .split-reverse,
  .feature-wide {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-text,
  .split-reverse .split-media {
    order: initial;
  }

  .media-frame-how {
    width: min(100%, 320px);
    height: 320px;
  }
}

/* =========================================================
   18) RESPONSIVE · MÓVIL
   ========================================================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    justify-content: center;
    gap: 10px 16px;
  }

  .logo img {
    height: 60px;
  }

  .header-small .logo img {
    height: 46px;
  }

  .hero {
    padding: 96px 0 70px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .media-frame,
  .media-frame-wide {
    width: 100%;
    max-width: none;
    height: 240px;
  }

  .media-frame-how {
    width: 100%;
    height: 280px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
