/* ============================================================
   Asociación Católica Frassati — Hoja de estilos principal
   ============================================================ */

/* Fuentes (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Variables ── */
:root {
  --navy:        #1B3A5C;
  --navy-light:  #2E6499;
  --navy-dark:   #0F2438;
  --gold:        #C8A047;
  --gold-dark:   #A8842F;
  --white:       #FFFFFF;
  --off-white:   #F8F6F3;
  --border:      #DDD9CF;
  --gray:        #6B7280;
  --text:        #1A2332;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', -apple-system, system-ui, sans-serif;

  --container: 1100px;
  --radius:    6px;
  --shadow:    0 4px 24px rgba(27, 58, 92, 0.12);
  --transition: 200ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--navy); transition: color var(--transition); }
a:hover { color: var(--navy-light); }
ul    { list-style: none; }

/* ── Contenedor ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER & NAVEGACIÓN
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  box-shadow: 0 2px 12px rgba(27, 58, 92, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  position: relative;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text .name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.nav-logo-text .subtitle {
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Menú hamburguesa (CSS puro) */
.menu-checkbox { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Navegación */
.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--navy-dark);
}
.main-nav .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.main-nav .nav-cta:hover {
  background: var(--navy-light);
  color: var(--white);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy-dark);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   SECCIONES HERO
   ============================================================ */

/* Hero principal (inicio) */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, var(--navy-light) 100%);
  color: var(--white);
  padding: 7rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 v40 M0 20 h40' stroke='%23ffffff' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero de página interior (más compacto) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}
.page-hero p {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
section { padding: 5rem 0; }
section.bg-soft { background: var(--off-white); }
section.bg-navy { background: var(--navy); color: var(--white); }
section.bg-dark { background: var(--navy-dark); color: var(--white); }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1.1rem;
}
.section-title.light { color: var(--white); }
.section-desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 580px;
  line-height: 1.8;
}
.section-desc.light { color: rgba(255,255,255,0.8); }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ============================================================
   TARJETAS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border-top: 4px solid var(--navy);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(27, 58, 92, 0.18);
}
.card-icon {
  width: 50px;
  height: 50px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--white); }
.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.card p { color: var(--gray); font-size: 0.95rem; line-height: 1.75; }

/* ============================================================
   CITA BÍBLICA
   ============================================================ */
.quote-section {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}
.quote-section blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  line-height: 1.75;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  color: rgba(255,255,255,0.95);
}
.quote-section blockquote::before { content: '\201C'; }
.quote-section blockquote::after  { content: '\201D'; }
.quote-cite {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   DOS COLUMNAS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ============================================================
   LISTA CON VIÑETAS DORADAS
   ============================================================ */
.bullet-list { display: flex; flex-direction: column; gap: 0.6rem; }
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}
.bullet-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.6rem;
}

/* ============================================================
   CAJA DE DONACIONES
   ============================================================ */
.donation-box {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.donation-box h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.3rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 1.25rem;
}
.donation-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.donation-method:last-child { border-bottom: none; }
.donation-method-icon {
  width: 42px;
  height: 42px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--navy);
}
.donation-method-info strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}
.donation-method-info span {
  font-size: 0.88rem;
  color: var(--gray);
  font-family: 'Courier New', Courier, monospace;
}
.donation-method-info small {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: var(--off-white); }
.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; fill: var(--white); }
.contact-item-text strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 0.15rem;
}
.contact-item-text a,
.contact-item-text span {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.contact-item-text a:hover { color: var(--navy); }

/* ============================================================
   SECCIÓN CTA
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.cta-section .hero-buttons { justify-content: center; }

/* ============================================================
   PIE DE PÁGINA
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.72);
  padding: 4rem 1.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.footer-brand-ref {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 320px;
}
.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1) opacity(0.85);
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 2rem auto 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom em { color: var(--gold); }

/* Redes sociales */
.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.22); }
.social-link svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.75); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Activar hamburguesa */
  .hamburger { display: flex; }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    border-bottom: 2px solid var(--navy);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    gap: 0;
  }
  .main-nav ul li { border-bottom: 1px solid var(--border); }
  .main-nav ul li:last-child { border-bottom: none; }
  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: none;
  }
  .main-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
  }
  .menu-checkbox:checked ~ .main-nav ul { display: flex; }

  /* Layout */
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
  .hero { padding: 4rem 1.5rem; }
  section { padding: 3.5rem 0; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.text-center  { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
