/* ============================================================
   AUPA DESARROLLO INFANTIL — styles.css
   Paleta extraída del logo:
   - Crema/Fondo:  #f5ede8
   - Azul pizarra: #2d4a5a
   - Terracota:    #d4826a
   - Ámbar:        #e8a84c
   - Verde salvia: #7a9e96
   ============================================================ */

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --cream:        #F6ECE2;
  --cream-dark:   #ede0d8;
  --cream-light:  #fdf8f5;
  --slate:        #2d4a5a;
  --slate-dark:   #1e3545;
  --slate-mid:    #3d5f72;
  --slate-light:  #5c7d8f;
  --terra:        #d4826a;
  --terra-dark:   #c06a52;
  --terra-light:  #e8a896;
  --amber:        #e8a84c;
  --amber-dark:   #d0923a;
  --amber-light:  #f2c882;
  --sage:         #7a9e96;
  --sage-dark:    #5e8278;
  --sage-light:   #a8c5bf;
  --white:        #ffffff;
  --gray-50:      #fafaf9;
  --gray-100:     #f0ece8;
  --gray-200:     #ddd7d2;
  --gray-400:     #9e9490;
  --gray-600:     #6b6460;
  --gray-800:     #3a3330;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-accent:  'Lora', Georgia, serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  --shadow-sm:    0 2px 8px rgba(45,74,90,.08);
  --shadow-md:    0 8px 24px rgba(45,74,90,.12);
  --shadow-lg:    0 16px 48px rgba(45,74,90,.16);
  --shadow-xl:    0 24px 64px rgba(45,74,90,.20);

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-light);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- UTILITY ---- */
.no-scroll { overflow: hidden; }

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-light) 0%, var(--cream) 50%, #ede4dc 100%);
  cursor: pointer;
}

/* Slide up animation on dismiss */
.splash-screen.slide-up {
  animation: splashSlideUp 0.75s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes splashSlideUp {
  0%   { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(-100%); opacity: 1; }
}

.splash-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  animation: splashEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.splash-logo {
  width: min(320px, 72vw);
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(45,74,90,.22), 0 8px 24px rgba(212,130,106,.18);
  position: relative;
  z-index: 1;
}

.splash-pulse {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 2px solid rgba(212,130,106,.25);
  animation: splashPulse 2s ease-in-out infinite;
}

.splash-pulse::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,130,106,.12);
  animation: splashPulse 2s ease-in-out infinite 0.5s;
}

/* Scroll hint — appears after 1.5 s */
.splash-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.splash-screen.show-hint .splash-hint {
  opacity: 1;
  transform: translateY(0);
}

.splash-hint span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.splash-hint-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--terra);
  border-bottom: 2px solid var(--terra);
  transform: rotate(45deg);
  animation: hintBounce 1.4s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0);     opacity: 1; }
  50%       { transform: rotate(45deg) translate(5px, 5px); opacity: 0.5; }
}

@keyframes splashEntry {
  0%   { opacity: 0; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.5; }
}

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(253, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45,74,90,.08);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(45,74,90,.12);
  background: rgba(253, 248, 245, 0.98);
}

/* Espacio reservado para navbar fijo al usar scrollIntoView */
section[id] {
  scroll-margin-top: 80px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}
.nav-logo:hover .logo-img { transform: scale(1.04); }

/* Ocultar botón cerrar en escritorio */
.nav-close { display: none; }


.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--slate);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--terra); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: var(--terra); }
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-cta {
  background: var(--slate);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(45,74,90,.25);
}
.nav-cta:hover {
  background: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,130,106,.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
  box-shadow: 0 4px 16px rgba(212,130,106,.30);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(212,130,106,.40);
}

.btn-secondary {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
}
.btn-secondary:hover {
  background: var(--slate);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(45,74,90,.25);
}

.btn-white {
  background: var(--white);
  color: var(--slate);
  border-color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.btn-full { width: 100%; justify-content: center; }

.btn-about { margin-top: 32px; }

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  background: rgba(212,130,106,.1);
  border: 1px solid rgba(212,130,106,.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--slate);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title em { 
  color: var(--terra); 
  font-style: italic; 
}

.section-title-center { text-align: center; }

.title-ornament {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--amber));
  border-radius: 2px;
  margin-bottom: 28px;
}
.title-ornament-center { margin: 0 auto 28px; }

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================================
   HERO
   ============================================================ */

/* La imagen del logo, a todo lo ancho */
.hero-banner {
  margin-top: 88px;
  width: 100%;
  background: var(--cream);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.hero-banner-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* Bloque de texto debajo */
.hero-text-block {
  background: var(--cream);
  padding: 48px 0 56px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,130,106,.12);
  border: 1px solid rgba(212,130,106,.25);
  color: var(--terra-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--slate);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-title em { color: var(--terra); font-style: italic; }

.hero-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--gray-600);
  font-weight: 500;
}
.trust-icon { 
  font-size: 1.1rem; 
  color: var(--terra); 
  line-height: 1; 
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Móvil */
@media (max-width: 768px) {
  .hero-banner {
    margin-top: 70px;
    background: var(--cream);
    padding: 24px 16px;
  }

  .hero-banner-img {
    width: 90%;
    max-width: 360px;
    height: auto;
    padding: 0;
  }

  .hero-text-block {
    padding: 28px 0 36px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 16px;
  }
}

/* ============================================================
   ABOUT / QUIÉNES SOMOS
   ============================================================ */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 24px;
}

.about-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 20px 48px -12px rgba(45, 74, 90, 0.18), 0 0 0 1px rgba(45, 74, 90, 0.05);
  border: 4px solid var(--white);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: calc(var(--radius-xl) - 4px);
  transition: transform var(--transition-slow);
  display: block;
}
.about-image-wrapper:hover .about-photo { transform: scale(1.03); }

.about-badge-floating {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(45, 74, 90, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  z-index: 2;
}
.badge-icon { font-size: 1.8rem; }
.about-badge-floating strong { display: block; font-size: 1rem; color: var(--slate); }
.about-badge-floating span { font-size: 0.78rem; color: var(--gray-400); font-weight: 500; }

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.value-chip {
  background: var(--cream);
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--cream-dark);
  transition: all var(--transition);
}
.value-chip:hover {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
  transform: translateY(-2px);
}

.about-text-col { padding-top: 8px; }

.about-lead {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-text {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}
.credential {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.credential:hover {
  background: var(--cream);
  border-color: var(--cream-dark);
  transform: translateX(4px);
}
.credential-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.credential strong { display: block; font-size: 0.93rem; color: var(--slate); margin-bottom: 2px; }
.credential span { font-size: 0.82rem; color: var(--gray-400); }

/* ---- HISTORIA / MANIFIESTO: ¿POR QUÉ AUPA? ---- */
.about-story-box {
  margin-top: 72px;
  padding: 48px 48px 44px;
  background: linear-gradient(145deg, var(--cream-light) 0%, var(--cream) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--cream-dark);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 30px rgba(45, 74, 90, 0.05);
  position: relative;
}

.about-story-content {
  margin-top: 24px;
}

.about-story-lead {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--slate);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 28px;
  font-weight: 500;
}

.about-story-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-story-paragraphs p {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 0.98rem;
}

.about-quote-highlight {
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--white);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(45, 74, 90, 0.06);
}

.about-quote-highlight p {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  background: var(--cream-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-100);
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--amber));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--cream-dark);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-featured {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}
.service-card-featured::before {
  background: linear-gradient(90deg, var(--amber), var(--terra));
  transform: scaleX(1);
}
.service-card-featured .service-title { color: var(--white); }
.service-card-featured .service-desc { color: rgba(255,255,255,.75); }
.service-card-featured .service-features li { color: rgba(255,255,255,.7); }
.service-card-featured .service-features li::before { color: var(--amber); }
.service-card-featured .service-link { color: var(--amber); }
.service-card-featured .service-link:hover { color: var(--amber-light); }

.service-featured-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--amber);
  color: var(--slate-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.service-icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon-1 { background: rgba(212,130,106,.12); }
.service-icon-2 { background: rgba(232,168,76,.15); }
.service-icon-3 { background: rgba(122,158,150,.12); }
.service-icon-4 { background: rgba(45,74,90,.08); }
.service-icon-5 { background: rgba(122,158,150,.12); }
.service-icon-6 { background: rgba(232,168,76,.12); }
.service-card-featured .service-icon-wrap { background: rgba(255,255,255,.1); }

.service-icon { font-size: 2rem; }

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.service-features li {
  font-size: 0.84rem;
  color: var(--gray-600);
  padding-left: 20px;
  position: relative;
}
.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 700;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terra);
  transition: color var(--transition), gap var(--transition);
}
.service-link:hover { color: var(--terra-dark); text-decoration: underline; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: rgba(212,130,106,.12);
  border-radius: 50%;
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,.75); font-size: 1rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-subtitle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 28px;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.form-input {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--gray-800);
  background: var(--cream-light);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--terra);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,130,106,.15);
}
.form-input::placeholder { color: var(--gray-400); font-size: 0.9rem; }

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9490' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }

.form-textarea { resize: vertical; min-height: 130px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-checkbox {
  width: 18px; height: 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--terra);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-check-label { font-size: 0.84rem; color: var(--gray-600); line-height: 1.5; }
.form-link { color: var(--terra); text-decoration: underline; }

.form-success, .form-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}
.form-success { background: rgba(122,158,150,.12); border: 1px solid var(--sage); color: var(--sage-dark); }
.form-error { background: rgba(212,130,106,.1); border: 1px solid var(--terra); color: var(--terra-dark); }
.form-success span, .form-error span { font-size: 1.2rem; flex-shrink: 0; }

/* Contact Info */
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  transition: all var(--transition);
}
.contact-info-item:hover {
  background: var(--cream);
  transform: translateX(4px);
  border-color: var(--terra-light);
}
.contact-info-icon { font-size: 1.4rem; flex-shrink: 0; width: 40px; text-align: center; }
.contact-info-item strong { display: block; font-size: 0.88rem; color: var(--slate); margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.5; }
.contact-link { color: var(--terra); font-weight: 500; transition: color var(--transition); }
.contact-link:hover { color: var(--terra-dark); text-decoration: underline; }

/* Social */
.social-wrap { margin-bottom: 36px; }
.social-title { font-size: 0.93rem; font-weight: 700; color: var(--slate); margin-bottom: 14px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.social-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: var(--white); }
.social-instagram:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(220,39,67,.3); opacity: 0.9; }
.social-facebook { background: #1877F2; color: var(--white); }
.social-facebook:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(24,119,242,.3); background: #166fe5; }
.social-whatsapp { background: #25D366; color: var(--white); }
.social-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(37,211,102,.3); background: #20c75b; }
.social-tiktok { background: #010101; color: var(--white); border-color: #333; }
.social-tiktok:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.3); background: #222; }

/* Map */
.map-wrap { margin-top: 12px; }
.map-title { font-size: 0.93rem; font-weight: 700; color: var(--slate); margin-bottom: 14px; }
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.map-container iframe {
  width: 100%;
  height: 300px;
  display: block;
  border: 0;
  border-radius: var(--radius-lg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--slate-dark);
  color: var(--white);
  padding-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  font-style: italic;
}

.footer-nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.footer-nav, .footer-services, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-services a, .footer-contact a, .footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  line-height: 1.6;
}
.footer-nav a:hover, .footer-services a:hover, .footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--terra);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212,130,106,.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--terra-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(212,130,106,.5);
}

/* ============================================================
   ANIMATIONS — scroll reveal
   ============================================================ */


@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; gap: 40px; padding-bottom: 60px; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { flex: none; width: 100%; height: 220px; }
  .hero-card-1 { top: 0; right: 10%; }
  .hero-card-2 { top: auto; bottom: 0; left: 10%; transform: none; animation-name: floatCard; }
  .hero-card-3 { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; max-width: 640px; margin: 0 auto; }
  .about-image-wrapper { max-width: 380px; aspect-ratio: 3 / 4; margin: 0 auto; }
  .about-photo { width: 100%; height: 100%; object-fit: cover; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-container { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---- Overlay para cerrar al tocar fuera del menú ---- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 74, 90, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.3s ease;
}

body.menu-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Drawer */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  body.menu-open {
    overflow: hidden;
  }

  /* Hamburger icon */
  .hamburger { display: flex; transition: opacity 0.25s ease; }

  /* Menú lateral (Drawer) deslizante */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 78vw;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--cream-light);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    z-index: 1001;
    padding: 70px 16px 24px;
    box-shadow: -8px 0 30px rgba(45, 74, 90, 0.2);
    border-left: 1px solid rgba(212, 130, 106, 0.25);
    overflow-y: auto;
    pointer-events: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open,
  body.menu-open .nav-links {
    transform: translateX(0);
  }

  /* Todos los elementos del menú se ven EXACTAMENTE IGUALES */
  .nav-links .nav-link,
  .nav-links .nav-cta {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate);
    padding: 10px 16px;
    width: 100%;
    text-align: center;
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: color var(--transition);
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active,
  .nav-links .nav-cta:hover,
  .nav-links .nav-cta.active {
    background: transparent !important;
    color: var(--terra) !important;
    box-shadow: none !important;
  }
  
  .nav-links .nav-link::after,
  .nav-links .nav-cta::after { display: none !important; }

  /* Botón cerrar (✕) en la esquina superior derecha del menú */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(45, 74, 90, 0.08);
    color: var(--slate);
    cursor: pointer;
    border: 1px solid rgba(45, 74, 90, 0.12);
    z-index: 10;
    transition: background var(--transition), transform var(--transition);
  }
  .nav-close:hover {
    background: rgba(212, 130, 106, 0.15);
    color: var(--terra);
    transform: rotate(90deg);
  }


  .hero { padding: 100px 24px 60px; }
  .hero-title { font-size: 2rem; }
  .hero-visual { display: none; }

  .about-image-wrapper {
    max-width: 320px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
  }
  .about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
  }
  .about-badge-floating { display: none; }

  .services-grid { grid-template-columns: 1fr; }

  .cta-container { flex-direction: column; text-align: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }

  .social-links { gap: 8px; }
  .social-btn { padding: 9px 14px; font-size: 0.8rem; }
}

/* ---- Small mobile ---- */
@media (max-width: 400px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}


/* ---- STRICT RESPONSIVE & ZOOM PROTECTION ---- */
html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

header, section, footer, main, .nav-container, .hero-banner, .hero-text-block {
  max-width: 100vw;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
