/* =============================================
   FUNDACIÓN NUESTRA SEÑORA DE FÁTIMA
   Design: Refined elegance · Warm & trustworthy
   Palette: Turquoise #40E0D0 + warm ivory tones
   Fonts: Cormorant Garamond + DM Sans
   ============================================= */

:root {
  --teal:        #40E0D0;
  --teal-dark:   #2bbdb0;
  --teal-light:  #c8f5f1;
  --teal-pale:   #f0fdfb;
  --ivory:       #faf8f4;
  --warm-white:  #ffffff;
  --text-dark:   #1a1a18;
  --text-mid:    #4a4a45;
  --text-light:  #8a8a85;
  --border:      #e8e4dc;
  --shadow:      rgba(64,224,208,0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* RESET & BASE */
*, *::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-dark);
  background: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
address { font-style: normal; }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

em { font-style: italic; color: var(--teal-dark); }
strong { font-weight: 500; }

p { line-height: 1.75; color: var(--text-mid); }

/* SECTION TAG */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-tag.light {
  color: var(--teal-light);
  background: rgba(255,255,255,0.15);
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 999px;
  transition: var(--transition);
  border: 2px solid var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--teal-dark);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-symbol {
  font-size: 1.4rem;
  color: var(--teal);
  line-height: 1;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-dark);
  font-weight: 300;
  letter-spacing: 0.02em;
}
.logo-text strong { font-weight: 500; }

.logo-light .logo-text { color: #fff; }
.logo-light .logo-symbol { color: var(--teal-light); }

.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: 999px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO 1
   ============================================= */
.hero1 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero1-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(64,224,208,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(64,224,208,0.08) 0%, transparent 60%),
    var(--ivory);
}

.hero1-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1px at 1px 1px, rgba(64,224,208,0.3) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.4;
}

.hero1-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero1-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero1-title {
  max-width: 700px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero1-content .btn-primary {
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero1-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.hero1-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}

/* =============================================
   HERO 2
   ============================================= */
.hero2 {
  padding: 7rem 2rem;
  background: var(--warm-white);
}

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

.hero2-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero2-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.img-placeholder {
  height: 520px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-pale) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder::after {
  content: 'Imagen del centro';
  font-size: 0.8rem;
  color: var(--teal-dark);
  letter-spacing: 0.1em;
}

.hero2-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--teal);
  color: var(--text-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(64,224,208,0.3);
}
.badge-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}
.badge-text {
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  margin-top: 2px;
}

.hero2-text h2 { margin-bottom: 1.5rem; }
.hero2-text p { margin-bottom: 1rem; }
.hero2-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* =============================================
   SOBRE NOSOTROS
   ============================================= */
.about {
  padding: 7rem 2rem;
  background: var(--ivory);
}

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

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1rem; }

.about-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.list-icon {
  color: var(--teal);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.about-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-image.img-placeholder {
  height: 560px;
}

/* =============================================
   CENTROS
   ============================================= */
.centros {
  padding: 7rem 2rem;
  background: var(--warm-white);
}

.centros-inner { max-width: 1200px; margin: 0 auto; }

.centros-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.centros-header h2 { margin-top: 0.5rem; }

.centros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.centro-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--warm-white);
  transition: var(--transition);
}
.centro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(64,224,208,0.15);
  border-color: var(--teal-light);
}

.centro-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.centro-img.img-placeholder { height: 260px; border-radius: 0; }

.centro-info {
  padding: 1.75rem;
}
.centro-info h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}
.centro-info p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.card-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal-dark);
  letter-spacing: 0.03em;
}

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonios {
  padding: 7rem 2rem;
  background: linear-gradient(135deg, #1a3a38 0%, #0d2b29 100%);
}

.testimonios-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.testimonios-inner .section-tag { margin-bottom: 2.5rem; }

.testimonios-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.testimonio-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(64,224,208,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.testimonio-card.featured {
  background: rgba(64,224,208,0.1);
  border-color: rgba(64,224,208,0.4);
  grid-row: span 1;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--teal);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dark);
  flex-shrink: 0;
}
.quote-author strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}
.quote-author span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   CTA
   ============================================= */
.cta {
  padding: 7rem 2rem;
  background: var(--teal-pale);
  text-align: center;
}

.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { margin-bottom: 2rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #111210;
  color: rgba(255,255,255,0.7);
  padding: 5rem 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
}

.footer-col address, .footer-col p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--teal-light); }

.footer-email {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--teal-light);
  border-bottom: 1px solid rgba(64,224,208,0.3);
  padding-bottom: 2px;
  transition: var(--transition);
}
.footer-email:hover { color: var(--teal); border-color: var(--teal); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: rgba(255,255,255,0.3);
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--teal-light); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero2-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero2-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 680px) {
  .nav {
    display: none;
    position: fixed;
    inset: 72px 0 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav-link { font-size: 1rem; padding: 12px 16px; }

  .menu-toggle { display: flex; }

  .hero2-badge { position: static; margin-top: 1rem; align-self: flex-start; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .hero2-links { flex-direction: column; }
}

/* LOGO IMAGE */
.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-light .logo-img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(140deg);
}
