/* ============================================================
   NORLUC JARDÍN INFANTIL — Estilos principales
   Temuco, Chile · Plan Premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== VARIABLES ===== */
:root {
  --primary:        #F9B233;
  --primary-dark:   #E09820;
  --primary-light:  #FFF3D0;
  --secondary:      #52B788;
  --secondary-dark: #3D9C6E;
  --secondary-light:#D8F3E8;
  --accent:         #FF6B6B;
  --accent-dark:    #E05050;
  --white:          #FFFFFF;
  --light:          #FFFBF4;
  --gray-light:     #F4EFE6;
  --gray:           #9CA3AF;
  --dark:           #1E3A5F;
  --text:           #4A5568;
  --text-light:     #718096;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow:    0 4px 20px rgba(0,0,0,0.09);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.13);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 28px;
  --radius-xl: 48px;

  --transition:      all 0.3s ease;
  --transition-slow: all 0.55s ease;

  --font-display: 'Baloo 2', cursive;
  --font-body:    'Nunito', sans-serif;

  --max-width: 1180px;
  --nav-h:     78px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p  { font-size: 1rem; line-height: 1.72; color: var(--text); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 52px 0; }
.section-light { background: var(--light); }
.section-dark  { background: var(--dark); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .label {
  display: inline-block;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 6px 18px; border-radius: 999px; margin-bottom: 14px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.08rem; color: var(--text-light); max-width: 580px; margin: 0 auto; }
.section-header.white .label { background: rgba(255,255,255,0.15); color: var(--primary); }
.section-header.white h2 { color: var(--white); }
.section-header.white p  { color: rgba(255,255,255,0.75); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn-primary  { background: var(--primary); color: var(--dark); box-shadow: 0 4px 16px rgba(249,178,51,0.45); }
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(249,178,51,0.5); }
.btn-secondary { background: var(--secondary); color: var(--white); box-shadow: 0 4px 16px rgba(82,183,136,0.4); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(82,183,136,0.5); }
.btn-accent   { background: var(--accent); color: var(--white); box-shadow: 0 4px 16px rgba(255,107,107,0.4); }
.btn-accent:hover   { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,107,0.5); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.8); }
.btn-outline:hover  { background: var(--white); color: var(--dark); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.92rem; }
.btn-lg { padding: 17px 40px; font-size: 1.08rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-body  { padding: 28px; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge-primary   { background: var(--primary-light); color: var(--primary-dark); }
.badge-secondary { background: var(--secondary-light); color: var(--secondary-dark); }
.badge-accent    { background: #FFE5E5; color: var(--accent-dark); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: transparent; transition: top .3s ease, background .3s ease, box-shadow .3s ease;
}
body.banner-hidden .header { top: 0; }
.header.scrolled {
  background: var(--white); box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}
.nav {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-logo  { width: 44px; height: 44px; object-fit: contain; filter: brightness(0) invert(1); transition: filter 0.3s ease; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-title    { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; transition: var(--transition); }
.nav-brand-subtitle { font-size: 0.66rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; transition: var(--transition); }

.header:not(.scrolled) .nav-brand-title    { color: var(--white); }
.header:not(.scrolled) .nav-brand-subtitle { color: rgba(255,255,255,0.7); }
.header:not(.scrolled) .nav-logo { filter: brightness(0) invert(1); }
.header.scrolled .nav-brand-title    { color: var(--dark); }
.header.scrolled .nav-brand-subtitle { color: var(--secondary); }
.header.scrolled .nav-logo { filter: invert(1) brightness(0.22) sepia(1) saturate(3) hue-rotate(178deg); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 15px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; transition: var(--transition);
}
.header:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.92); }
.header:not(.scrolled) .nav-links a:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.header.scrolled .nav-links a { color: var(--text); }
.header.scrolled .nav-links a:hover { background: var(--gray-light); color: var(--dark); }
.nav-links a.active { background: var(--primary) !important; color: var(--dark) !important; }
.nav-cta {
  background: var(--primary) !important; color: var(--dark) !important;
  font-weight: 700 !important; box-shadow: 0 4px 14px rgba(249,178,51,0.4);
  padding: 10px 22px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  border-radius: 2px; transition: var(--transition);
}
.header:not(.scrolled) .menu-toggle span { background: var(--white); }
.header.scrolled .menu-toggle span { background: var(--dark); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.nav-overlay.show { display: block; }

/* ============================================================
   HERO — Página de inicio
   ============================================================ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(30,58,95,0.88) 0%, rgba(30,58,95,0.62) 55%, rgba(82,183,136,0.28) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-top: calc(var(--nav-h) + 60px); padding-bottom: 100px;
}
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25); color: var(--white);
  padding: 8px 20px; border-radius: 999px; font-size: 0.88rem;
  font-weight: 700; margin-bottom: 22px; letter-spacing: 0.5px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero h1 span { color: var(--primary); }
.hero-lead { color: rgba(255,255,255,0.88); font-size: 1.15rem; margin-bottom: 38px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Decorative blobs */
.hero-blob {
  position: absolute; border-radius: 50%; z-index: 1; animation: float 8s ease-in-out infinite;
}
.hero-blob-1 {
  width: 320px; height: 320px; right: 8%; top: 15%;
  background: radial-gradient(circle, rgba(249,178,51,0.18) 0%, transparent 70%);
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 200px; height: 200px; right: 25%; bottom: 10%;
  background: radial-gradient(circle, rgba(82,183,136,0.2) 0%, transparent 70%);
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.65); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================================
   PAGE HERO (páginas internas)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 72px;
  background: linear-gradient(135deg, var(--dark) 0%, #254A7A 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  top: -40%; right: -15%; width: 500px; height: 500px;
  border-radius: 50%; background: rgba(82,183,136,0.09);
}
.page-hero::after {
  content: ''; position: absolute;
  bottom: -35%; left: -10%; width: 360px; height: 360px;
  border-radius: 50%; background: rgba(249,178,51,0.09);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 500px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px; font-size: 0.88rem; color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: var(--primary); font-weight: 700; }

/* ============================================================
   WAVE SVG DIVIDER
   ============================================================ */
.wave { display: block; width: 100%; line-height: 0; }
.wave svg { display: block; width: 100%; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
  text-align: center; padding: 40px 24px;
  border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.9rem;
}
.icon-yellow { background: var(--primary-light); }
.icon-green  { background: var(--secondary-light); }
.icon-coral  { background: #FFE8E8; }
.icon-blue   { background: #E3EEFF; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p  { font-size: 0.93rem; color: var(--text-light); }

/* ============================================================
   SALA CARDS
   ============================================================ */
.sala-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); transition: var(--transition);
}
.sala-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sala-card-img {
  height: 220px; overflow: hidden; position: relative;
}
.sala-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.sala-card:hover .sala-card-img img { transform: scale(1.08); }
.sala-age-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: var(--dark);
  font-weight: 800; font-size: 0.82rem; padding: 5px 14px; border-radius: 999px;
}
.sala-card-body { padding: 24px; }
.sala-card-body h3 { margin-bottom: 8px; }
.sala-card-body p { font-size: 0.93rem; color: var(--text-light); margin-bottom: 16px; }
.sala-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sala-tag {
  background: var(--gray-light); color: var(--text);
  font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section { background: var(--dark); padding: 64px 0; }
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 800;
  color: var(--primary); line-height: 1;
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.62); margin-top: 8px; }
.stat-divider {
  width: 1px; background: rgba(255,255,255,0.12);
  align-self: stretch; margin: 0 16px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-section {
  background: linear-gradient(150deg, #1A3558 0%, #1E3A5F 50%, #1A4A3A 100%);
  position: relative; overflow: hidden;
}
.testimonial-section::before {
  content: ''; position: absolute;
  top: -120px; right: -120px; width: 450px; height: 450px;
  border-radius: 50%; background: rgba(249,178,51,0.07);
}
.testimonial-card {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 36px 32px; position: relative;
}
.quote-mark {
  font-size: 5rem; font-family: var(--font-display); color: var(--primary);
  line-height: 0.8; opacity: 0.45; margin-bottom: 16px; display: block;
}
.testimonial-text {
  color: rgba(255,255,255,0.88); font-size: 0.97rem;
  line-height: 1.72; margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--dark); flex-shrink: 0;
}
.t-name  { font-weight: 700; color: var(--white); font-size: 0.97rem; }
.t-role  { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.stars   { color: var(--primary); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 4px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  padding: 88px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -60px; right: -60px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
}
.cta-section::after {
  content: ''; position: absolute;
  bottom: -80px; left: -80px; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(255,255,255,0.05);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,0.88); font-size: 1.08rem; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons    { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   HISTORIA / ABOUT SECTION
   ============================================================ */
.historia-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.historia-img img {
  width: 100%; height: 500px; object-fit: cover;
}
.historia-img::before {
  content: ''; position: absolute; inset: -6px -6px;
  border: 3px solid var(--primary); border-radius: calc(var(--radius-lg) + 6px);
  z-index: -1;
}
.historia-text .label {
  display: inline-block; background: var(--primary-light); color: var(--primary-dark);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 6px 18px; border-radius: 999px; margin-bottom: 14px;
}
.historia-text h2 { margin-bottom: 20px; }
.historia-text p  { margin-bottom: 16px; color: var(--text-light); }
.historia-text p:last-of-type { margin-bottom: 28px; }

/* Mission / Vision cards */
.mv-card {
  border-radius: var(--radius); padding: 36px 32px; height: 100%;
}
.mv-card.mision { background: var(--primary-light); border-left: 4px solid var(--primary); }
.mv-card.vision  { background: var(--secondary-light); border-left: 4px solid var(--secondary); }
.mv-card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.mv-card h3   { margin-bottom: 12px; }
.mv-card p    { font-size: 0.95rem; color: var(--text-light); }

/* Values */
.value-card {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition);
}
.value-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.value-icon {
  font-size: 1.9rem; min-width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: var(--radius-sm); flex-shrink: 0;
}
.value-card h4 { margin-bottom: 6px; font-size: 1.08rem; }
.value-card p  { font-size: 0.9rem; color: var(--text-light); }

/* Team */
.team-card {
  text-align: center; background: var(--white);
  border-radius: var(--radius); padding: 36px 24px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 2.4rem; font-family: var(--font-display); font-weight: 800; color: var(--dark);
  border: 4px solid var(--primary); box-shadow: 0 4px 16px rgba(249,178,51,0.35);
}
.team-card h4 { font-size: 1.12rem; margin-bottom: 4px; }
.team-role { color: var(--secondary-dark); font-weight: 700; font-size: 0.88rem; margin-bottom: 12px; }
.team-card p { font-size: 0.88rem; color: var(--text-light); }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.actividad-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 24px; box-shadow: var(--shadow); transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.actividad-card:nth-child(2) { border-top-color: var(--secondary); }
.actividad-card:nth-child(3) { border-top-color: var(--accent); }
.actividad-card:nth-child(4) { border-top-color: #7B9EFF; }
.actividad-card:nth-child(5) { border-top-color: var(--secondary); }
.actividad-card:nth-child(6) { border-top-color: var(--primary); }
.actividad-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.actividad-icon { font-size: 2.4rem; margin-bottom: 16px; }
.actividad-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.actividad-card p  { font-size: 0.93rem; color: var(--text-light); }

/* Schedule table */
.schedule-table {
  width: 100%; border-collapse: collapse;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.schedule-table th {
  background: var(--dark); color: var(--white);
  padding: 16px 22px; text-align: left;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
}
.schedule-table td {
  padding: 14px 22px; border-bottom: 1px solid var(--gray-light);
  color: var(--text);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: var(--light); }
.schedule-table .time { font-weight: 700; color: var(--secondary-dark); }
.schedule-table .activity { font-weight: 600; }

/* Alimentación */
.alim-feature {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px;
}
.alim-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.alim-feature h4 { margin-bottom: 4px; font-size: 1rem; }
.alim-feature p  { font-size: 0.9rem; color: var(--text-light); }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-filters {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 44px;
}
.gallery-filter-btn {
  padding: 9px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition); background: var(--gray-light);
  color: var(--text); border: none;
}
.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background: var(--primary); color: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 2.2/1; }
.gallery-item:nth-child(2) { aspect-ratio: 1.1/1; }
.gallery-item:nth-child(3) { aspect-ratio: 1/1; }
.gallery-item:nth-child(4) { aspect-ratio: 1/1; }
.gallery-item:nth-child(5) { grid-column: span 2; aspect-ratio: 2.2/1; }
.gallery-item:nth-child(6) { aspect-ratio: 1/1; }
.gallery-item:nth-child(7) { aspect-ratio: 1/1; }
.gallery-item:nth-child(8) { aspect-ratio: 1/1; }
.gallery-item:nth-child(9) { grid-column: span 3; aspect-ratio: 3.5/1; }

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.48s ease;
}
.gallery-item:hover img { transform: scale(1.1); }

/* CSS filter variety */
.gallery-item:nth-child(1)  img { object-position: center center; }
.gallery-item:nth-child(2)  img { filter: saturate(1.25); object-position: top center; }
.gallery-item:nth-child(3)  img { filter: brightness(1.08) contrast(1.05); object-position: bottom center; }
.gallery-item:nth-child(4)  img { filter: sepia(0.2) saturate(1.3); object-position: center left; }
.gallery-item:nth-child(5)  img { filter: hue-rotate(8deg) saturate(1.15); object-position: center; }
.gallery-item:nth-child(6)  img { filter: brightness(1.12); object-position: top right; }
.gallery-item:nth-child(7)  img { filter: saturate(1.4) brightness(1.05); object-position: bottom left; }
.gallery-item:nth-child(8)  img { filter: contrast(1.1) saturate(0.9); object-position: center right; }
.gallery-item:nth-child(9)  img { filter: brightness(1.06) saturate(1.2); object-position: center 30%; }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(30,58,95,0.75) 100%);
  display: flex; align-items: flex-end; padding: 18px;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem; margin-left: auto;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.28s ease;
}
.lightbox img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 46px; height: 46px; background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%; color: var(--white);
  font-size: 1.1rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--accent); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 700; margin-bottom: 8px;
  color: var(--dark); font-size: 0.93rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 2px solid #E2E8F0; border-radius: var(--radius-sm);
  font-size: 0.97rem; transition: var(--transition);
  background: var(--white); color: var(--text); appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(249,178,51,0.14);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 40px 36px;
}
.form-card h3 { margin-bottom: 28px; }

/* Required star */
.required { color: var(--accent); margin-left: 3px; }

/* Success message */
.form-success {
  background: var(--secondary-light); border: 2px solid var(--secondary);
  border-radius: var(--radius-sm); padding: 16px 20px; text-align: center;
  color: var(--secondary-dark); font-weight: 700; margin-top: 16px; display: none;
}
.form-success.show { display: block; animation: fadeIn 0.4s ease; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-box {
  background: var(--light); border-radius: var(--radius); padding: 36px 32px;
}
.contact-info-box h3 { margin-bottom: 24px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid #EAE4D8;
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.c-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; color: var(--primary-dark);
}
.c-icon i { font-size: 1rem; }
.contact-item strong { display: block; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.contact-item span, .contact-item a {
  color: var(--text-light); font-size: 0.93rem; transition: var(--transition);
}
.contact-item a:hover { color: var(--secondary-dark); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   AGENDA PAGE
   ============================================================ */
.agenda-steps { display: flex; gap: 0; position: relative; margin-bottom: 64px; }
.agenda-steps::before {
  content: ''; position: absolute; top: 31px;
  left: calc(16.6% + 8px); right: calc(16.6% + 8px);
  height: 2px; background: var(--gray-light); z-index: 0;
}
.agenda-step { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.agenda-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: var(--dark);
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: 0 4px 14px rgba(249,178,51,0.45);
}
.agenda-step h4 { margin-bottom: 6px; font-size: 1rem; }
.agenda-step p  { font-size: 0.85rem; color: var(--text-light); }

.agenda-info-box {
  background: linear-gradient(135deg, var(--dark), #254A7A);
  border-radius: var(--radius); padding: 36px 32px; color: rgba(255,255,255,0.8);
}
.agenda-info-box h3 { color: var(--white); margin-bottom: 24px; }
.agenda-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 18px; font-size: 0.93rem;
}
.agenda-info-item:last-child { margin-bottom: 0; }
.agenda-info-item i { color: var(--primary); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 998;
  width: 62px; height: 62px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,0.55); transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.65); }
.whatsapp-float svg { width: 34px; height: 34px; fill: white; }
.whatsapp-tooltip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%);
  background: var(--dark); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.whatsapp-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border-left: 7px solid var(--dark); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 108px; right: 34px; z-index: 997;
  width: 44px; height: 44px; background: rgba(30,58,95,0.85);
  color: var(--white); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  opacity: 0; pointer-events: none; box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--primary); color: var(--dark); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); }
.footer-top { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,0.09); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 44px; }

.footer-brand .nav-logo { width: 52px; height: 52px; margin-bottom: 14px; }
.footer-brand h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 10px; }
.footer-brand p  { color: rgba(255,255,255,0.57); font-size: 0.9rem; line-height: 1.65; max-width: 270px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 0.88rem; color: rgba(255,255,255,0.65);
}
.footer-social a:hover { background: var(--primary); color: var(--dark); transform: translateY(-2px); }

.footer-col h4 {
  color: var(--white); font-size: 0.97rem; font-weight: 700;
  margin-bottom: 22px; padding-bottom: 12px; position: relative;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--primary); border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.58); font-size: 0.9rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.58); }
.footer-contact-item .f-icon { color: var(--primary); margin-top: 2px; flex-shrink: 0; font-size: 0.92rem; }

.footer-hours-list { display: flex; flex-direction: column; gap: 10px; }
.footer-hours-item { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.footer-hours-item .fh-day  { color: rgba(255,255,255,0.55); }
.footer-hours-item .fh-time { color: var(--primary); font-weight: 700; }

.footer-bottom { padding: 20px 0; }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.38);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-bottom a:hover { color: var(--primary); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="left"].revealed  { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.88); }
[data-reveal="scale"].revealed { transform: scale(1); }
[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="400"] { transition-delay: 0.40s; }
[data-delay="500"] { transition-delay: 0.50s; }
[data-delay="600"] { transition-delay: 0.60s; }
[data-delay="700"] { transition-delay: 0.70s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed; top: 0; right: -100%; width: 285px; height: 100vh;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 90px 28px 28px; gap: 4px;
    transition: right 0.32s ease; box-shadow: -4px 0 32px rgba(0,0,0,0.15); z-index: 1000;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text) !important; padding: 11px 16px; width: 100%; font-size: 1rem; }
  .nav-links a:hover { background: var(--gray-light) !important; color: var(--dark) !important; }
  .nav-links a.active { background: var(--primary) !important; color: var(--dark) !important; }
  .nav-cta { box-shadow: none !important; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .historia-img img { height: 300px; }
  .historia-img::before { display: none; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 2/1; }
  .gallery-item:nth-child(5) { grid-column: span 2; aspect-ratio: 2/1; }
  .gallery-item:nth-child(9) { grid-column: span 2; aspect-ratio: 2/1; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }

  .agenda-steps { flex-direction: column; gap: 28px; }
  .agenda-steps::before { display: none; }

  .whatsapp-float { bottom: 22px; right: 22px; }
  .scroll-top { bottom: 94px; right: 24px; }

  .section { padding: 64px 0; }

  .mv-card { margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(n) { grid-column: span 1; aspect-ratio: 1.4/1; }
  .stats-section .grid-4 { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ── DEMO BANNER ── */
#demo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: #1E3A5F;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-align: center;
  padding: 9px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .3s ease;
}
#demo-banner a { color: #F9B233; text-decoration: underline; font-weight: 600; transition: color .2s; }
#demo-banner a:hover { color: #ffd06b; }
#demo-banner-close {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: #a0b4c8;
  font-size: 1rem; cursor: pointer; padding: 2px 6px;
  transition: color .2s; line-height: 1;
}
#demo-banner-close:hover { color: #fff; }
body.banner-hidden #demo-banner { transform: translateY(-100%); }

/* ── BACK BUTTON ── */
#back-btn {
  position: fixed;
  bottom: 24px; left: 16px;
  z-index: 1500;
  background: #1E3A5F;
  color: #fff;
  border: none;
  border-radius: 50px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(30,58,95,0.35);
  overflow: hidden;
  white-space: nowrap;
  transition: width .35s ease, gap .35s ease, padding .35s ease, background .2s, box-shadow .2s;
}
#back-btn:hover {
  width: 195px;
  gap: 8px;
  padding: 0 16px 0 12px;
  background: #14284a;
  box-shadow: 0 6px 18px rgba(30,58,95,0.45);
}
#back-btn svg { flex-shrink: 0; }
#back-btn .back-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity .25s ease .1s, max-width .35s ease;
}
#back-btn:hover .back-label {
  opacity: 1;
  max-width: 160px;
}

/* ── WA POPUP ── */
#wa-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  padding: 16px;
}
#wa-overlay.open { opacity: 1; pointer-events: all; }
#wa-modal {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  max-width: 460px; width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(22px);
  transition: transform .25s ease;
}
#wa-overlay.open #wa-modal { transform: translateY(0); }
.wa-modal-header {
  background: #1E3A5F;
  color: #fff;
  padding: 24px 28px 20px;
}
.wa-modal-header h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 4px; padding-right: 28px;
}
.wa-modal-header p { font-size: .8rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
#wa-modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none;
  color: rgba(255,255,255,0.6); font-size: 1.1rem;
  cursor: pointer; line-height: 1; transition: color .2s;
}
#wa-modal-close:hover { color: #fff; }
.wa-modal-body { padding: 20px 28px 28px; }
.wa-advisor {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.wa-advisor:last-child { margin-bottom: 0; }
.wa-advisor-name { font-size: .85rem; font-weight: 700; color: #1E3A5F; margin-bottom: 11px; }
.wa-advisor-btns { display: flex; gap: 9px; flex-wrap: wrap; }
.wa-btn-wa {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff;
  font-size: .76rem; font-weight: 600;
  border: none; border-radius: 8px;
  padding: 8px 14px; cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.wa-btn-wa:hover { background: #1ebe5a; transform: translateY(-1px); }
.wa-btn-mail {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #1E3A5F;
  font-size: .76rem; font-weight: 500;
  border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 8px 14px; cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.wa-btn-mail:hover { background: #f1f5f9; transform: translateY(-1px); }
