html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

#site-header {
  background: #0a2e2c;
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.nav-default-text {
  color: #e3f5ef;
  transition: color 0.3s ease;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: #dd9c3f;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #e8b567; }

.mobile-link { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

.hero-glow {
  background:
    radial-gradient(70% 60% at 10% 0%, rgba(47, 150, 131, 0.4), transparent 55%),
    radial-gradient(50% 50% at 85% 15%, rgba(221, 156, 63, 0.2), transparent 50%),
    radial-gradient(40% 40% at 50% 90%, rgba(92, 181, 163, 0.15), transparent 50%);
}

.hero-grid {
  background-image: linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-smoke {
  background:
    linear-gradient(160deg, #f7fbfa 0%, #eef6f3 45%, #e6f1ed 100%);
}

.hero-glow-smoke {
  background:
    radial-gradient(65% 55% at 8% 0%, rgba(47, 150, 131, 0.14), transparent 55%),
    radial-gradient(55% 50% at 90% 10%, rgba(221, 156, 63, 0.16), transparent 50%),
    radial-gradient(45% 45% at 50% 95%, rgba(92, 181, 163, 0.12), transparent 55%);
}

.hero-grid-dark {
  background-image: linear-gradient(rgba(10,46,44,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(10,46,44,0.5) 1px, transparent 1px);
  background-size: 44px 44px;
}

.photo-1, .photo-2, .photo-3, .photo-4 {
  background-size: cover;
  background-position: center;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -12px rgba(10, 46, 44, 0.35), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.photo-1:hover, .photo-2:hover, .photo-3:hover, .photo-4:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px -15px rgba(10, 46, 44, 0.45), 0 8px 20px rgba(0,0,0,0.2);
}
.photo-1 { background-image: url('images/image1.png'); }
.photo-2 { background-image: url('images/image2.png'); }
.photo-3 { background-image: url('images/image3.png'); }
.photo-4 { background-image: url('images/image4.png'); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c17f2a;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1.15;
  color: #0a2e2c;
}
@media (min-width: 1024px) {
  .section-title { font-size: 2.75rem; }
}

.value-card {
  background: white;
  border: 1px solid #e3f5ef;
  border-radius: 1.25rem;
  padding: 2rem;
}
.value-card h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #0a2e2c;
  margin: 0.9rem 0 0.5rem;
}
.value-card p { color: #1c665a; font-size: 0.95rem; line-height: 1.55; }

.ministry-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #e3f5ef;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ministry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(10, 46, 44, 0.25);
}
.ministry-photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem;
}
.ministry-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}
.ph-colegio { background: linear-gradient(135deg, #2f9683, #0f3d3a); }
.ph-clinica { background: linear-gradient(135deg, #5cb5a3, #155048); }
.ph-casas { background: linear-gradient(135deg, #dd9c3f, #c17f2a); }
.ph-entrenamientos { background: linear-gradient(135deg, #93d3c4, #237a6b); }

.ministry-watermark {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 130px;
  height: 130px;
  color: rgba(255, 255, 255, 0.14);
  transform: rotate(-12deg);
  pointer-events: none;
}

.ministry-tag-float {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.ministry-icon-badge {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: white;
  color: #155048;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(10, 46, 44, 0.4);
  margin-top: -8px;
  margin-right: -8px;
  align-self: flex-start;
}

.ministry-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #155048;
  background: #e3f5ef;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.stat-card {
  background: #0a2e2c;
  border: 1px solid rgba(10, 46, 44, 0.12);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 28px -12px rgba(10, 46, 44, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -14px rgba(10, 46, 44, 0.32);
}
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #e8b567;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-label { color: #93d3c4; font-size: 0.9rem; font-weight: 500; }

.board-card { text-align: center; }
.board-photo {
  width: 96px; height: 96px;
  border-radius: 999px;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid #dd9c3f;
  box-shadow: 0 10px 22px -10px rgba(10, 46, 44, 0.4);
}
.board-card h4 { font-family: 'Fraunces', serif; font-weight: 600; color: #0a2e2c; font-size: 1.05rem; }
.board-card p { color: #237a6b; font-size: 0.9rem; margin-top: 0.2rem; }

.partner-logo {
  background: white;
  border: 1px solid #e3f5ef;
  border-radius: 1rem;
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  color: #1c665a;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

.partner-card {
  display: block;
  background: white;
  border: 1px solid #e3f5ef;
  border-radius: 1.5rem;
  padding: 2rem 2.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(10, 46, 44, 0.25);
}
.partner-logo-img {
  height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: left;
  margin-bottom: 1.1rem;
}
.partner-logo-round {
  height: 48px;
  width: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.partner-card h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #0a2e2c;
  margin-bottom: 0.6rem;
}
.partner-card p {
  color: #1c665a;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #c17f2a;
  font-weight: 600;
  font-size: 0.85rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #155048;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  border: 1px solid #e3f5ef;
  background: #f2faf7;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: #0a2e2c;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus { border-color: #2f9683; }

.footer-heading {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.social-icon {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #93d3c4;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icon:hover { background: #dd9c3f; color: #0a2e2c; }

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
