/* minis_style.css */

/* ===============================
   VARIABLES
================================ */
:root{
  --pink:#F7A6C4;
  --blue:#A9D6E5;
  --yellow:#FFE29A;
  --mint:#B8E0D2;
  --coral:#F28F79;
  --text:#444;
  --white:#FAFAFA;
}

/* ===============================
   BASE
================================ */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Poppins',sans-serif;
  background:var(--white);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===============================
   HERO
================================ */
.hero{
  background:linear-gradient(135deg,var(--pink),var(--blue));
  text-align:center;
  padding:90px 20px;
  color:#fff;
  position:relative;
  overflow:hidden;
  border-radius:0 0 26px 26px;
  min-height: 520px;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(circle at 20% 25%, rgba(247,166,196,.30), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(169,214,229,.28), transparent 58%),
    radial-gradient(circle at 60% 85%, rgba(184,224,210,.26), transparent 60%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.10), transparent 60%);
  transform: rotate(8deg);
  pointer-events:none;
  z-index: 1;
}

.hero > *{ position:relative; z-index:2; }

/* ===============================
   TOYS (LIMPIO + ANTI-AMONTONADO)
================================ */
.hero-toys{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}

/* Un solo sistema: --x/--y + translate(-50%, -50%) */
.hero-toys .toy{
  position:absolute;
  left: var(--x);
  top:  var(--y);

  opacity: 0.11;
  user-select:none;
  filter: blur(0.2px);

  font-size: clamp(22px, 3.2vw, 64px);

  /* clave para NO amontonarse */
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: toyFloat 12s ease-in-out infinite;
}

/* IMPORTANTE: el keyframes conserva translate + rotate */
@keyframes toyFloat{
  0%   { transform: translate(-50%, -50%) rotate(var(--r,0deg)) translateY(0); }
  50%  { transform: translate(-50%, -50%) rotate(var(--r,0deg)) translateY(-10px); }
  100% { transform: translate(-50%, -50%) rotate(var(--r,0deg)) translateY(0); }
}

/* Coordenadas por TODO el hero (vw/vh) */
.hero-toys .t1  { --x: 8vw;  --y: 14vh; --r: 10deg; }
.hero-toys .t2  { --x: 22vw; --y: 10vh; --r:-8deg; }
.hero-toys .t3  { --x: 40vw; --y: 16vh; --r: 6deg; }
.hero-toys .t4  { --x: 62vw; --y: 12vh; --r:-12deg; }
.hero-toys .t5  { --x: 86vw; --y: 18vh; --r: 8deg; }

.hero-toys .t6  { --x: 10vw; --y: 30vh; --r:-10deg; }
.hero-toys .t7  { --x: 34vw; --y: 28vh; --r: 12deg; }
.hero-toys .t8  { --x: 58vw; --y: 32vh; --r:-9deg; }
.hero-toys .t9  { --x: 90vw; --y: 30vh; --r: 10deg; }

.hero-toys .t10 { --x: 14vw; --y: 44vh; --r:-14deg; }
.hero-toys .t11 { --x: 38vw; --y: 46vh; --r: 10deg; }
.hero-toys .t12 { --x: 62vw; --y: 44vh; --r:-6deg; }
.hero-toys .t13 { --x: 86vw; --y: 48vh; --r: 12deg; }

.hero-toys .t14 { --x: 8vw;  --y: 62vh; --r:-8deg; }
.hero-toys .t15 { --x: 26vw; --y: 64vh; --r: 9deg; }
.hero-toys .t16 { --x: 50vw; --y: 66vh; --r:-10deg; }
.hero-toys .t17 { --x: 74vw; --y: 62vh; --r: 7deg; }
.hero-toys .t18 { --x: 92vw; --y: 68vh; --r:-12deg; }

.hero-toys .t19 { --x: 12vw; --y: 80vh; --r: 10deg; }
.hero-toys .t20 { --x: 34vw; --y: 84vh; --r:-7deg; }
.hero-toys .t21 { --x: 56vw; --y: 82vh; --r: 8deg; }
.hero-toys .t22 { --x: 76vw; --y: 86vh; --r:-11deg; }
.hero-toys .t23 { --x: 92vw; --y: 84vh; --r: 9deg; }
.hero-toys .t24 { --x: 48vw; --y: 92vh; --r:-10deg; }

/* ===============================
   TITLE
================================ */
.hero h1{
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1.02;
  margin: 0 0 10px;
  font-size: clamp(40px, 7vw, 76px);

  background: linear-gradient(90deg,
    rgba(255,226,154,1),
    rgba(247,166,196,1),
    rgba(169,214,229,1),
    rgba(184,224,210,1)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  -webkit-text-stroke: 4px rgba(255,255,255,0.92);

  text-shadow:
    0 10px 25px rgba(0,0,0,0.14),
    0 2px 0 rgba(255,255,255,0.18);
}

.hero p{
  font-size:1.2rem;
  max-width:720px;
  margin: 0 auto 18px;
  opacity:.95;
  font-weight: 600;
  text-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

/* ===============================
   LOGO LIMPIO – DEBAJO DEL BOTÓN (+25%)
================================ */
.hero-logo{
  position: relative;
  margin-top: 22px;          /* debajo de Contact Us */
  display: flex;
  justify-content: center;
  z-index: 3;

  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero-logo img{
  /* antes 196px → +25% ≈ 245px */
  width: 245px;
  height: 245px;

  object-fit: cover;
  border-radius: 32px;

  /* totalmente limpio */
  box-shadow: none;
}

/* Mobile */
@media (max-width: 520px){
  .hero-logo{
    margin-top: 18px;
  }

  .hero-logo img{
    /* antes 145px → +25% ≈ 181px */
    width: 181px;
    height: 181px;
    border-radius: 26px;

    box-shadow: none;
  }
}

/* ===============================
   BUTTON
================================ */
.btn{
  display:inline-block;
  margin-top:25px;
  padding:14px 34px;
  background:var(--coral);
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  font-weight:800;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  transition:transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.btn:hover{ transform:scale(1.05); filter: brightness(1.03); }
.btn:active{ transform: scale(1.02); }

/* Accesibilidad */
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:3px solid rgba(0,0,0,0.20);
  outline-offset:3px;
}

/* ===============================
   SECTIONS (esquinas redondeadas)
================================ */
section{
  padding:70px 20px;
  text-align:center;
  scroll-margin-top: 90px;

  border-radius: 26px;
  overflow: hidden;

  width: min(1200px, 94%);
  margin: 28px auto;

  box-shadow: 0 16px 40px rgba(17,24,39,0.10);
  border: 1px solid rgba(17,24,39,0.06);
}

section h2{
  display:inline-block;
  position:relative;
  padding-bottom:10px;
}

section h2::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:72px;
  height:4px;
  transform:translateX(-50%);
  border-radius:999px;
  background:rgba(0,0,0,0.12);
}

.about{ background:var(--yellow); }
.programs{ background:var(--mint); }
.contact{ background:var(--blue); }

.about p, .programs p, .contact p{
  max-width:75ch;
  margin-left:auto;
  margin-right:auto;
}

/* ===============================
   ABOUT – FACILITIES GALLERY
================================ */
.about p{ max-width: 780px; margin: 0 auto 22px; }

.about-gallery{
  width:min(1100px, 94%);
  margin:0 auto;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-gallery img{
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.65);
  background: #fff;
  box-shadow: 0 12px 28px rgba(17,24,39,.10);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  cursor: zoom-in;
}

.about-gallery img:hover{
  transform: translateY(-5px) scale(1.03);
  filter: saturate(1.05) contrast(1.03);
  box-shadow: 0 20px 45px rgba(17,24,39,.16);
}

@media (max-width: 900px){
  .about-gallery{ grid-template-columns: repeat(2, 1fr); }
  .about-gallery img{ height: 200px; }
}

@media (max-width: 520px){
  .about-gallery{ grid-template-columns: 1fr; }
  .about-gallery img{ height: 230px; }

  section{ width: min(1200px, 92%); margin: 22px auto; }

  .hero-logo{ width: 120px; height: 120px; right: 12px; bottom: 12px; }
  .hero-logo img{
    width: 112px;
    height: 112px;
    border-radius: 22px;
    box-shadow:
      0 0 0 8px rgba(255,255,255,0.96),
      0 14px 32px rgba(0,0,0,0.20);
  }

  /* menos saturación en móvil */
  .hero-toys .t9,
  .hero-toys .t13,
  .hero-toys .t22,
  .hero-toys .t23,
  .hero-toys .t24{ display:none; }

  .hero h1{ -webkit-text-stroke: 3px rgba(255,255,255,0.92); }
}

/* ===============================
   CARDS
================================ */
.cards{
  display:flex;
  gap:25px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:40px;
}

.card{
  position: relative;
  overflow: hidden;
  background:#fff;
  width:220px;
  padding:30px;
  border-radius:20px;
  box-shadow:0 12px 25px rgba(0,0,0,.12);
  border:1px solid rgba(0,0,0,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}

.card:hover{ transform:translateY(-8px); box-shadow:0 16px 34px rgba(0,0,0,.14); }
.card h3{ margin: 0 0 10px; font-size: 1.25rem; color: var(--text); }
.card p{ margin: 0; font-size: 0.95rem; line-height: 1.5; font-weight: 500; color: #555; }

.card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:8px;
  border-radius:20px 20px 0 0;
}
.card.infants::before{ background: var(--pink); }
.card.toddlers::before{ background: var(--yellow); }
.card.preschool::before{ background: var(--mint); }

.card.infants h3{ color: #d85c8a; }
.card.toddlers h3{ color: #c89b00; }
.card.preschool h3{ color: #3a9d8f; }

/* ===============================
   FORM
================================ */
form{
  max-width:420px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:15px;
  padding: 10px;
}

input,textarea{
  padding:14px;
  border:none;
  border-radius:12px;
  font-size:1rem;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

textarea{ height:120px; resize:none; }

button{
  padding:14px;
  background:var(--coral);
  color:#fff;
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-size:1rem;
  font-weight:900;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}

button:hover{
  transform:scale(1.05);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}
button:disabled{ opacity:.75; cursor:not-allowed; }

/* ===============================
   CONTACT – ADDRESS + MAPS
================================ */
.contact-details{ width: min(720px, 92%); margin: 0 auto 22px; }

.address-card{
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 14px 32px rgba(17,24,39,0.10);
}

.address-text{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.address-text .pin{ font-size:1.25rem; }
.address-text .addr{ font-weight:800; text-align:left; white-space: pre-line; }

.map-buttons{ display:flex; gap:12px; flex-wrap:wrap; }

.map-btn{
  flex:1 1 140px;
  text-align:center;
  padding:12px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  color:#fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.map-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.map-btn.google{ background: linear-gradient(135deg,#34A853,#4285F4); }
.map-btn.apple{ background: linear-gradient(135deg,#000,#444); }

@media (max-width:520px){ .map-buttons{ flex-direction:column; } }

/* ===============================
   CONTACT – TWO COLUMN LAYOUT
================================ */
.contact-layout{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

@media (max-width: 900px){
  .contact-layout{ grid-template-columns: 1fr; }
}

/* ===============================
   CONTACT FORM – PRO PANEL CARD
================================ */
.contact-form{ position: relative; }

.contact-form form{
  width: 100%;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 18px 40px rgba(17,24,39,0.12);
  backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(17,24,39,0.10);
  box-shadow: none;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: rgba(242,143,121,0.55);
  box-shadow: 0 0 0 4px rgba(242,143,121,0.18);
}

.contact-form button{ width: 100%; box-shadow: 0 14px 28px rgba(0,0,0,0.16); }

@media (min-width: 901px){
  .contact-form{ position: sticky; top: 110px; }
}

/* ===============================
   FOOTER – BEARS & STARS
================================ */
footer.footer-animated{
  position: relative;
  padding: 20px;
  text-align:center;
  font-size:.9rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(135deg, #f7f7f7, #f1f1f1);
  overflow: hidden;
}

footer.footer-animated p,
footer.footer-animated a{ position: relative; z-index: 3; }

footer.footer-animated a{
  color: var(--coral);
  text-decoration:none;
  font-weight:900;
}
footer.footer-animated a:hover{ text-decoration: underline; }

.bear{
  position: absolute;
  bottom: 6px;
  font-size: 56px;
  z-index: 2;
  user-select: none;
  animation: bearBounce 3.6s ease-in-out infinite;
  transform-origin: center bottom;
}
.bear-left{ left: 12px; }
.bear-right{ right: 12px; animation-delay: 1.8s; }

@keyframes bearBounce{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

.footer-animated:hover .bear{ animation: bearWave 0.9s ease-in-out infinite; }

@keyframes bearWave{
  0%{ transform: translateY(0) rotate(0deg); }
  25%{ transform: translateY(-4px) rotate(-8deg); }
  50%{ transform: translateY(0) rotate(12deg); }
  75%{ transform: translateY(-4px) rotate(-6deg); }
  100%{ transform: translateY(0) rotate(0deg); }
}

.stars{ position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stars span{
  position: absolute;
  font-size: 20px;
  opacity: 0.85;
  animation: starFloat 6s ease-in-out infinite;
}
.stars span:nth-child(1){ left: 15%; top: 25%; animation-duration: 5.5s; }
.stars span:nth-child(2){ left: 30%; top: 55%; animation-duration: 7s; }
.stars span:nth-child(3){ left: 50%; top: 20%; animation-duration: 6.2s; }
.stars span:nth-child(4){ left: 70%; top: 50%; animation-duration: 7.4s; }
.stars span:nth-child(5){ left: 85%; top: 30%; animation-duration: 5.8s; }

@keyframes starFloat{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-12px) scale(1.15); }
}

/* LANGUAGE SWITCH */
.lang-switch{
  position:absolute;
  top:16px;
  right:16px;
  display:flex;
  gap:10px;
  z-index:10000;
}

.flag-btn{
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.18);
  backdrop-filter:blur(10px);
  color:#fff;
  border-radius:999px;
  padding:9px 12px;
  cursor:pointer;
  font-weight:900;
  font-family:'Poppins',sans-serif;
  display:inline-flex;
  align-items:center;
  gap:8px;
  box-shadow:0 10px 22px rgba(0,0,0,0.12);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background .18s ease;
}

.flag-btn span{ font-size:.85rem; letter-spacing:.5px; }

.flag-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.22);
}

.flag-btn.active{
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.65);
}

/* LIGHTBOX */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  padding: 16px;
}
.lightbox.open{ display:flex; }

.lightbox .preview{
  max-width: min(980px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  background: #fff;
}

.lightbox .close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.lightbox .nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:56px;
  height:56px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  user-select:none;
  padding:0;
}

.lightbox .nav span{
  display:block;
  line-height:1;
  font-size:34px;
  font-weight:900;
  transform: translateY(-1px);
}

.lightbox .nav:hover{ background: rgba(255,255,255,0.26); }
.lightbox .nav.prev{ left:14px; }
.lightbox .nav.next{ right:14px; }

@media (max-width: 520px){ .lightbox .nav{ display:none; } }

/* MESSENGER */
.messenger-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00B2FF, #006AFF);
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 10040;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.25),
    0 0 0 0 rgba(0,178,255,0.55);
  animation: messengerPulse 2.8s infinite ease-in-out;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.messenger-float:hover{
  transform: scale(1.08);
  filter: brightness(1.08);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.32),
    0 0 0 18px rgba(0,178,255,0.18);
}

.messenger-icon{
  font-size: 30px;
  line-height: 1;
  color: #fff;
  transform: translateY(1px);
}

@keyframes messengerPulse{
  0%{
    box-shadow:
      0 12px 30px rgba(0,0,0,0.25),
      0 0 0 0 rgba(0,178,255,0.45);
  }
  50%{
    box-shadow:
      0 18px 44px rgba(0,0,0,0.32),
      0 0 0 22px rgba(0,178,255,0.18);
  }
  100%{
    box-shadow:
      0 12px 30px rgba(0,0,0,0.25),
      0 0 0 0 rgba(0,178,255,0.45);
  }
}

@media (prefers-reduced-motion: reduce){
  .messenger-float{ animation: none; }
  .bear, .stars span, .hero-toys .toy{ animation: none; }
}

@media (max-width:520px){
  .messenger-float{
    width: 58px;
    height: 58px;
    right: 16px;
    bottom: 16px;
  }
  .messenger-icon{ font-size: 26px; }
}

.messenger-tip{
  position:absolute;
  right:74px;
  white-space:nowrap;
  background: rgba(0,0,0,0.78);
  color:#fff;
  font-size:.85rem;
  font-weight:800;
  padding:8px 12px;
  border-radius:12px;
  opacity:0;
  pointer-events:none;
  transform: translateY(2px) scale(.96);
  transition: opacity .18s ease, transform .18s ease;
  box-shadow:0 10px 26px rgba(0,0,0,0.25);
}

.messenger-tip::after{
  content:"";
  position:absolute;
  right:-6px;
  top:50%;
  transform: translateY(-50%);
  border:6px solid transparent;
  border-left-color: rgba(0,0,0,0.78);
}

.messenger-float:hover .messenger-tip{
  opacity:1;
  transform: translateY(0) scale(1);
}

@media (max-width:520px){ .messenger-tip{ display:none; } }

@media(max-width:768px){
  .card{ width:90%; max-width: 420px; }
  .btn{ width: auto; max-width: none; }
}

/* =========================================
   OVERRIDE FINAL: HERO LOGO SIN CUADRO (DESKTOP + MOBILE)
   PÉGALO AL FINAL DEL CSS
========================================= */
.hero-logo{
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hero-logo img{
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  border: 0 !important;
}

/* Si algún estilo viejo lo dejaba absoluto o con tamaño “caja”, lo anulamos */
@media (max-width: 520px){
  .hero-logo{
    position: relative !important;
    width: auto !important;
    height: auto !important;
  }
  .hero-logo img{
    box-shadow: none !important;
  }
}
