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

body {
  font-family: 'Outfit', sans-serif;
  background: #fafaf9;
  color: #44403c;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  color: #1c1917;
}

a {
  text-decoration: none;
  color: inherit;
}

/* UTILITIES */
.text-center {
  text-align: center;
}

/* PARALLAX UTILITY */
.parallax {
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* NAVIGATION */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(250,250,249,0.96);
  border-bottom: 1px solid #e7e5e4;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 24px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0f766e;
}

/* =========================
   Hero Section
========================= */
.hero {
  position: relative;
  background-image: url("../images/hero.JPG");
  padding-top: 8rem;
  padding-bottom: 6rem;
}

/* Standard Overlay (Light) */
.hero::before,
.impacto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.45)
  );
  z-index: 1;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

/* =========================
   Hero Text / Glass Cards
========================= */
.hero-text,
.mission-card,
.glass-card,
.grid-2 {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 2.5rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hero-text {
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  font-family: 'Lora', serif;
  font-size: 3.1rem;
  line-height: 1.12;
  color: #111827;
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  color: #0f766e;
}

.hero-text p {
  font-size: 1.15rem;
  color: #44403c;
  margin-bottom: 2rem;
}

/* Buttons group */
.hero-actions {
  display: flex;
  gap: 1rem;
}

.primary-btn {
  background-color: #0f766e;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.primary-btn:hover {
  background-color: #0d5f58;
}

.secondary-btn {
  background-color: transparent;
  color: #0f766e;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #0f766e;
  transition: background-color 0.2s;
}

.secondary-btn:hover {
  background-color: rgba(15, 118, 110, 0.05);
}

/* Spacer column */
.hero-spacer {
  min-height: 200px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-text {
    max-width: 100%;
  }
}

/* SECTIONS */
.section {
  padding: 120px 0;
}

.alt {
  background: #f5f5f4;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.narrow {
  max-width: 820px;
}

.spaced {
  margin-top: 28px;
}

.intro {
  max-width: 720px;
  margin: 24px auto 56px;
  text-align: center;
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

/* =========================
   Origen Section
========================= */
#origen .section-title {
  margin-bottom: 0.5rem;
}

#origen {
  padding-top: 6rem; 
  padding-bottom: 8rem;
}

/* MISSION (Background Section) */
.mission {
  background-image: url("../images/school-bell.jpg");
  position: relative;
}
.mission .container {
  position: relative;
  z-index: 2;
}

.mission-card {
  text-align: center;
}

/* EDUCATION MODEL */
.edu-block h3 {
  margin-bottom: 12px;
}

.implementation-list {
  max-width: 600px;
  margin: auto;
  padding-left: 20px;
  line-height: 2;
}

/* IMPACTO (Background Section) */
.impacto-hero {
  position: relative;
  background-image: url("../images/girl-doll.jpeg");
  
  /* Horizontal: right (Focuses on the girl on the right side)
     Vertical: bottom (Focuses on the lower part of the image)
     
     Note: Since this section uses the .parallax class, 
     this position is relative to the browser window.
  */
  background-position: right bottom;
}

.impacto-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.glass-card {
  max-width: 600px;
  width: 100%;
  /* 40% Opacity as requested previously */
  background: rgba(255, 255, 255, 0.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none; 
  }
}
/* =========================
   Mobile Background Fixes
========================= */
@media (max-width: 768px) {
  /* 1. Disable Parallax on Mobile 
     (Prevents the "extreme zoom" effect caused by fixed backgrounds) */
  .parallax {
    background-attachment: scroll; 
  }

  /* 2. Hero Adjustment */
  .hero {
    /* Pull focus slightly lower to see more context */
    background-position: center 20%; 
  }

  /* 3. Mission Adjustment */
  .mission {
    background-position: center center;
  }

  /* 4. Impacto (Girl) Adjustment */
  .impacto-hero {
    /* "cover" on mobile usually crops the sides heavily. 
       We pin it to the 'right' to keep the girl visible, 
       and 'center' vertically.
    */
    background-position: 75% center; 
  }
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #f5f5f4;
  border-top: 1px solid #e7e5e4;
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.footer-info {
  max-width: 420px;
}

.footer-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-text {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #57534e;
}

.footer-contact {
  font-size: 0.85rem;
  color: #78716c;
  line-height: 1.6;
}

.footer-logos {
  display: flex;
  gap: 32px;
  align-items: right;
}

.footer-logos img {
  max-height: 48px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-logos img:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #e7e5e4;
  text-align: center;
  font-size: 0.75rem;
  color: #78716c;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logos {
    justify-content: center;
  }
}
/* =========================
   iPad & Tablet Fixes
========================= */
/* Targets devices larger than mobile but smaller than desktop monitors */
@media (min-width: 769px) and (max-width: 1366px) {
  
  /* 1. Disable Parallax 
     (Fixes the "too zoomed in" issue on iOS) */
  .parallax {
    background-attachment: scroll;
    background-size: cover;
  }

  /* 2. Hero Adjustment 
     (Center it for better vertical balance on tablet portrait mode) */
  .hero {
    background-position: center center;
  }

  /* 3. Impacto (Girl) Adjustment 
     (On tablet, 'right bottom' can sometimes hide the girl behind the text card.
      '80% center' keeps her visible on the right side.) */
  .impacto-hero {
    background-position: 80% center;
  }
}
/* ==============================================================
   NEW CAMPAIGN STYLES (Blue Theme Animations)
   ============================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.clip-path-hero {
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}
