/* ==========================================================================
   La Cajita de Miluska - Universal Responsive Stylesheet (Android & iOS)
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Main Palette: Warm, Creative, Craft Workshop feel */
  --primary-coral: #E9897E;
  --primary-coral-dark: #D46F64;
  --primary-coral-light: #FADBD8;
  --accent-gold: #D4A373;
  --accent-gold-dark: #B88555;
  --accent-gold-light: #FAEDCD;
  --bg-peach: #FFF8F3;
  --bg-warm-card: #FFFFFF;
  --bg-soft-cream: #FDF4F2;
  --text-dark: #2D2623;
  --text-muted: #6E6560;
  --text-light: #8D847F;
  --border-light: rgba(233, 137, 126, 0.18);
  --shadow-soft: 0 10px 30px rgba(45, 38, 35, 0.06);
  --shadow-medium: 0 15px 35px rgba(233, 137, 126, 0.12);
  --shadow-hover: 0 20px 40px rgba(212, 163, 115, 0.22);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --font-hand: 'Dancing Script', cursive;
}

/* --- Universal Reset & Mobile Viewport Protection --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0; /* Prevents flex/grid children from overflowing parent bounds */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-peach);
  color: var(--text-dark);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  font-size: clamp(0.95rem, 0.3vw + 0.88rem, 1.05rem);
  background-image: radial-gradient(#E9897E 0.5px, transparent 0.5px), radial-gradient(#D4A373 0.5px, #FFF8F3 0.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  /* Deliberately NOT `fixed`: iOS Safari repaints a fixed background on every
     scroll frame, which stutters badly and can leave the dot pattern misaligned. */
  background-attachment: scroll;
}

/* Only pointer devices, which handle it without the repaint cost, get the parallax. */
@media (hover: hover) and (pointer: fine) {
  body { background-attachment: fixed; }
}

/* Ensure no text or media breaks container bounds on narrow screens.
   `break-word` rather than `anywhere`: `anywhere` also shrinks an element's
   min-content width, which lets flex/grid columns collapse and hyphen-less
   words split in the middle even when there is room for them. */
p, h1, h2, h3, h4, h5, h6, span, a, li, blockquote, label {
  overflow-wrap: break-word;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Prevent Android Chrome / Safari auto-zoom on input focus */
button, input, textarea, select {
  font-family: inherit;
  font-size: 16px; /* Enforces 16px minimum to disable mobile browser auto-zoom */
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 24px);
}

.text-center { text-align: center; }
.font-hand { font-family: var(--font-hand); }
.font-heading { font-family: var(--font-heading); }

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px clamp(12px, 3vw, 18px);
  background-color: rgba(233, 137, 126, 0.12);
  color: var(--primary-coral-dark);
  border: 1px solid rgba(233, 137, 126, 0.3);
  border-radius: var(--radius-full);
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  max-width: 100%;
}

.badge-gold {
  background-color: rgba(212, 163, 115, 0.15);
  color: var(--accent-gold-dark);
  border-color: rgba(212, 163, 115, 0.4);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.5vw + 0.8rem, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.2vw + 0.65rem, 1.15rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* --- Buttons & Android Touch Targets --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  min-height: 48px; /* Android Material 48px minimum touch target requirement */
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: clamp(0.9rem, 1vw + 0.65rem, 1rem);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-coral) 0%, var(--primary-coral-dark) 100%);
  color: #FFFFFF;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(233, 137, 126, 0.4);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--primary-coral-dark);
  border-color: var(--primary-coral);
}
.btn-secondary:hover {
  background-color: var(--primary-coral);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background-color: #1EBE5B;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #FFFFFF;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 163, 115, 0.4);
}

/* --- Header / Navigation --- */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

header.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(45, 38, 35, 0.08);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 12px);
  max-width: calc(100% - 55px);
}

.brand-logo img {
  width: clamp(38px, 8vw, 50px);
  height: clamp(38px, 8vw, 50px);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-coral-dark);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-size: clamp(0.55rem, 1.8vw, 0.72rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--primary-coral);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-coral-dark);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

/* --- Hero Section --------------------------------------------------------
   Written mobile-first on purpose. The phone layout is the DEFAULT, and the
   side-by-side desktop layout is layered on top at >=993px. If a media query
   ever fails to apply, a phone falls back to the stacked layout rather than
   trying to squeeze two columns into 390px.
   ------------------------------------------------------------------------ */
.hero-section {
  padding-top: 105px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-content {
  width: 100%;
  min-width: 0;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 5vw + 0.5rem, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-content h1 span.highlight {
  font-family: var(--font-hand);
  color: var(--primary-coral-dark);
  font-size: clamp(2rem, 6vw + 0.5rem, 2.8rem);
  display: inline-block;
}

.hero-description {
  font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  width: 100%;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-light);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.85rem, 1vw + 0.55rem, 0.95rem);
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item i {
  color: var(--primary-coral);
  font-size: 1.1rem;
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 4px solid #FFFFFF;
  transition: var(--transition);
  width: 100%;
  /* No rotation on phones: a rotated box is wider than its own layout box and
     gets sheared off by the section's overflow:hidden on narrow screens. */
  transform: none;
}

.hero-image-frame img {
  width: 100%;
  /* Fixed, viewport-width-derived height keeps the crop predictable. Avoids vh,
     which on iOS Safari refers to the toolbar-less viewport and overshoots. */
  height: clamp(220px, 55vw, 300px);
  object-fit: cover;
}

/* On phones the card sits below the photo instead of covering a third of it. */
.hero-floating-card {
  position: static;
  margin: 12px auto 0;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  text-align: left;
}

.hero-floating-card .icon-box {
  width: 42px;
  height: 42px;
  background: var(--primary-coral-light);
  color: var(--primary-coral-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-floating-card .text-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-floating-card .text-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Desktop hero: two columns, tilted frame, card overlapping the photo. */
@media (min-width: 993px) {
  .hero-section {
    padding-top: clamp(100px, 14vw, 140px);
    padding-bottom: clamp(40px, 8vw, 90px);
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    text-align: left;
  }

  .hero-content h1 {
    font-size: clamp(1.85rem, 4.5vw + 0.8rem, 3.4rem);
    line-height: 1.18;
  }

  .hero-content h1 span.highlight {
    font-size: clamp(2.2rem, 5.5vw + 0.8rem, 3.8rem);
  }

  .hero-description {
    font-size: clamp(1rem, 1.2vw + 0.65rem, 1.25rem);
    margin-bottom: 28px;
  }

  .hero-actions {
    justify-content: flex-start;
    margin-bottom: 36px;
  }

  .hero-trust-badges {
    justify-content: flex-start;
    gap: 20px;
  }

  .hero-image-frame {
    border-width: 6px;
    transform: rotate(1.5deg);
  }

  .hero-image-frame:hover {
    transform: rotate(0deg) scale(1.01);
  }

  .hero-image-frame img {
    height: clamp(260px, 45vh, 480px);
  }

  .hero-floating-card {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-width: 90%;
    margin: 0;
    justify-content: flex-start;
  }
}

/* --- Section Dividers --- */
.section-padding {
  padding: clamp(50px, 8vw, 100px) 0;
}

.bg-white-section {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin: 24px 0;
  padding: clamp(24px, 5vw, 60px) clamp(16px, 4vw, 40px) !important;
}

.bg-cream-section {
  background-color: var(--bg-soft-cream);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* --- Cards & Grid System --- */
.grid-3, .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 3vw, 30px);
}

.card-custom {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 36px) clamp(18px, 3vw, 28px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-coral);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(233, 137, 126, 0.12);
  color: var(--primary-coral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}

.card-custom:hover .card-icon {
  background: var(--primary-coral);
  color: #FFFFFF;
}

.card-title {
  font-size: clamp(1.2rem, 2vw + 0.7rem, 1.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.card-desc {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1vw + 0.55rem, 1rem);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-list {
  list-style: none;
  margin-bottom: 20px;
}

/* Deliberately NOT flex: these items mix an icon, a <strong> label and a bare
   text node. As flex children each of those becomes its own column, which
   squeezes the label into a narrow strip and breaks it mid-word. Block layout
   with a hanging icon keeps the label and its text as one flowing sentence. */
.card-list li {
  display: block;
  position: relative;
  padding-left: 26px;
  font-size: clamp(0.88rem, 1vw + 0.55rem, 0.95rem);
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.55;
}

.card-list li i {
  position: absolute;
  left: 0;
  top: 0.3em;
  color: var(--primary-coral);
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

/* --- Highlight Banner / Research Quote Box --- */
.research-quote-box {
  background: linear-gradient(135deg, #FFF8F3 0%, #FDEEE9 100%);
  border-left: 5px solid var(--primary-coral);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 36px) clamp(18px, 4vw, 40px);
  margin: clamp(24px, 4vw, 40px) 0;
  box-shadow: var(--shadow-soft);
}

.research-quote-box blockquote {
  font-size: clamp(1rem, 1.8vw + 0.6rem, 1.2rem);
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}

.research-quote-box .author {
  font-weight: 700;
  color: var(--primary-coral-dark);
  font-size: clamp(0.8rem, 1vw + 0.5rem, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Section: Familias --- */
.familias-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
}

.polaroid-stack {
  position: relative;
  min-height: 420px;
  width: 100%;
}

.polaroid {
  background: #FFFFFF;
  padding: 14px 14px 40px 14px;
  box-shadow: var(--shadow-medium);
  border-radius: 4px;
  position: absolute;
  transition: var(--transition);
  max-width: 300px;
  width: 90%;
}

.polaroid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 2px;
}

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--text-dark);
  text-align: center;
  margin-top: 12px;
}

.polaroid-1 {
  top: 0;
  left: 5px;
  transform: rotate(-4deg);
  z-index: 2;
}

.polaroid-2 {
  top: 60px;
  right: 5px;
  transform: rotate(3deg);
  z-index: 1;
}

.polaroid-1:hover, .polaroid-2:hover {
  transform: rotate(0deg) scale(1.03);
  z-index: 10;
}

/* --- Section: Galería Interactiva --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
  font-size: clamp(0.82rem, 1vw + 0.5rem, 0.92rem);
  cursor: pointer;
  transition: var(--transition);
  min-height: 40px;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-coral);
  color: #FFFFFF;
  border-color: var(--primary-coral);
  box-shadow: 0 4px 15px rgba(233, 137, 126, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(45, 38, 35, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 95%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #FFFFFF;
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px;
}

.lightbox-close:hover {
  color: var(--primary-coral);
}

/* --- Section: About Miluska --- */
.about-box {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 50px);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-light);
}

/* The source illustration is a tall portrait (1157x2048). Any fixed height here
   forces object-fit:cover to crop a wide band out of the middle and decapitate
   her, so the image keeps its own aspect ratio and the frame is capped instead. */
.about-avatar {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 5px solid var(--bg-peach);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.about-avatar img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--font-heading);
  margin-bottom: 14px;
  color: var(--primary-coral-dark);
}

.about-text p {
  font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* --- Section: Ubicación & Contacto --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 50px);
}

.contact-card, .quick-inquiry-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-light);
}

.location-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.location-badge i {
  font-size: 1.8rem;
  color: var(--primary-coral);
  margin-top: 4px;
  flex-shrink: 0;
}

.location-details h4 {
  font-size: clamp(1.1rem, 2vw + 0.6rem, 1.3rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.location-details p {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1vw + 0.55rem, 1.05rem);
  margin-bottom: 4px;
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-peach);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.direct-item i {
  font-size: 1.35rem;
  color: var(--primary-coral);
  flex-shrink: 0;
}

.direct-item div strong {
  display: block;
  font-size: 0.95rem;
}

.direct-item div span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bg-peach);
  background: var(--bg-peach);
  border-radius: var(--radius-md);
  font-size: 16px; /* 16px fixes Android/iOS focus auto-zoom */
  transition: var(--transition);
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-coral);
  background: #FFFFFF;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-header {
  padding: 18px 22px;
  font-size: clamp(1rem, 1.5vw + 0.65rem, 1.15rem);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  gap: 12px;
}

.faq-header:hover {
  color: var(--primary-coral-dark);
}

.faq-header i {
  font-size: 1.1rem;
  color: var(--primary-coral);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-header i {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1vw + 0.55rem, 1rem);
  line-height: 1.65;
}

.faq-item.active .faq-body {
  max-height: 350px;
  padding: 0 22px 18px 22px;
}

/* --- Floating WhatsApp Button & Android Safe Areas --- */
.wa-float-container {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  right: max(16px, env(safe-area-inset-right, 16px));
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-float-btn {
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  position: relative;
}

.wa-float-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.6;
  z-index: -1;
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

.wa-float-btn:hover {
  transform: scale(1.08);
  background-color: #1EBE5B;
}

.wa-tooltip {
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

/* --- Footer --- */
footer.site-footer {
  background-color: #2D2623;
  color: #FDF4F2;
  padding: clamp(50px, 8vw, 80px) 0 25px;
  border-top: 5px solid var(--primary-coral);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--primary-coral);
  margin-bottom: 10px;
}

.footer-brand p {
  color: #B5AEA9;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary-coral);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent-gold);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #B5AEA9;
  font-size: 0.92rem;
}

.footer-links ul li a:hover {
  color: var(--primary-coral);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #8D847F;
}

/* ==========================================================================
   Responsive Breakpoint Overrides & Scroll-Reveal Safety
   ========================================================================== */

/* --- Scroll Reveal -------------------------------------------------------
   [data-aos] elements are plain visible content by default. The script in
   index.html opts individual below-the-fold elements into the animation by
   adding .reveal-pending. Nothing is ever hidden by CSS alone, so a script
   that fails to run leaves a fully readable page instead of a blank one.
   ------------------------------------------------------------------------ */
[data-aos] {
  max-width: 100%;
}

.reveal-pending {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending,
  .reveal-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 992px) {
  .familias-showcase { grid-template-columns: 1fr !important; gap: 30px !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about-box { grid-template-columns: 1fr !important; text-align: center !important; padding: 24px 16px !important; gap: 20px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
}

@media (max-width: 768px) {
  /* Mobile Navigation Drawer */
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: #FFFFFF;
    flex-direction: column;
    padding: 24px 20px;
    transition: left 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-menu.open { left: 0; }
  .mobile-toggle { display: block; }

  /* Polaroid stack mobile transformation */
  .polaroid-stack {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center !important;
  }
  
  .polaroid {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .polaroid img {
    height: 200px !important;
  }

  .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .footer-bottom { flex-direction: column !important; text-align: center !important; }
  .wa-tooltip { display: none !important; }
}

/* Extra small mobile screens (320px - 480px width) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px !important;
  }

  .brand-logo { gap: 6px !important; }
  .brand-logo img { width: 36px !important; height: 36px !important; }
  .brand-name { font-size: 1.2rem !important; }
  .brand-tagline { font-size: 0.55rem !important; }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .hero-actions .btn, .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
  }

  .direct-item {
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .wa-float-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
  }
}
