/* ===== ALMA — hoja de estilos base ===== */

:root {
  --teal: #2c4f4e;
  --teal-dark: #1c3534;
  --teal-light: #3f6a68;
  --yellow: #f3d31e;
  --lightblue: #a9dcef;
  --white: #ffffff;
  --offwhite: #f7f9f8;
  --ink: #1c2524;
  --gray: #5b6b6a;
  --border: #e2e8e7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 53, 52, 0.08);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--teal-dark); }
h1, h2 { font-family: 'Lora', 'Poppins', serif; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray); }

/* ===== Frases destacadas / pull-quotes ===== */
.pull-quote {
  font-family: 'Lora', 'Poppins', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  color: var(--teal-dark);
  border-left: 3px solid var(--yellow);
  padding-left: 20px;
  margin: 0 0 24px;
}
.section-teal .pull-quote { color: var(--white); border-left-color: var(--yellow); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(44, 79, 78, .08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section { padding: 70px 0; }
.section-alt { background: var(--offwhite); }
.section-teal { background: var(--teal); color: var(--white); }
.section-teal h2, .section-teal p { color: var(--white); }
.section-teal .eyebrow { background: rgba(255,255,255,.15); color: var(--white); }

.center { text-align: center; }
.lede { max-width: 640px; margin: 0 auto 40px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
  white-space: nowrap;
}
.btn-whatsapp:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, .45); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
}
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { height: 108px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; color: var(--teal-dark); font-size: 1.05rem; }
.logo-text small { font-weight: 600; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
@media (max-width: 900px) {
  .logo img { height: 76px; }
  .logo-text { display: none; }
}

.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--teal-dark);
  border-radius: 8px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { background: rgba(44,79,78,.08); }

.nav-whatsapp { display: none; }

@media (max-width: 1150px) and (min-width: 901px) {
  .main-nav > ul { gap: 0; }
  .main-nav > ul > li > a,
  .dropdown-toggle { padding: 10px 8px; font-size: .86rem; }
  .logo-text { font-size: .92rem; }
  .header-inner .btn-whatsapp { padding: 11px 18px; font-size: .85rem; }
}

.dropdown-toggle {
  all: unset;
  box-sizing: border-box;
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  font-size: .92rem;
  font-family: inherit;
  color: var(--teal-dark);
  border-radius: 8px;
  cursor: pointer;
}
.dropdown-toggle::after { content: " ▾"; font-size: .75em; }
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible { background: rgba(44,79,78,.08); outline: none; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 8px;
  min-width: 220px;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a { padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: .9rem; display: block; }
.dropdown li a:hover, .dropdown li a:focus-visible { background: var(--offwhite); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--teal-dark);
  cursor: pointer;
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .hamburger { display: block; order: 2; }
  .header-inner > .btn-whatsapp { display: none; }
  .main-nav {
    order: 4;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 600px; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 0; }
  .dropdown { position: static; box-shadow: none; padding-left: 14px; }
  .nav-whatsapp { display: block; margin-top: 10px; padding: 0 4px; }
  .nav-whatsapp a {
    display: block;
    text-align: center;
    background: #25D366;
    color: var(--white);
    padding: 12px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(37,211,102,.3);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 78vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,53,52,.55) 0%, rgba(28,53,52,.82) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 100px 0 60px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.page-hero {
  min-height: 42vh;
}

/* ===== Foto acento del hero (collage: instalación + comunidad) ===== */
.hero-accent-photo {
  position: absolute;
  right: 48px;
  bottom: 44px;
  width: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,.4);
  border: 5px solid rgba(255,255,255,.92);
  transform: rotate(-3deg);
  z-index: 2;
}
.hero-accent-photo img { aspect-ratio: 4/3; object-fit: cover; }
.hero-accent-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  background: rgba(28,53,52,.85);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
@media (max-width: 1000px) {
  .hero-accent-photo { width: 190px; right: 24px; bottom: 30px; }
}
@media (max-width: 700px) {
  .hero-accent-photo { position: static; width: 100%; max-width: 280px; margin: 26px auto 0; transform: rotate(0); }
}

.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.badge {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}

/* ===== Cards ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 6px; }
.card-meta { font-size: .88rem; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.activity-group-title {
  margin: 46px 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.activity-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.activity-group-title:first-of-type { margin-top: 0; }

/* ===== Feature / split rows ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--gray);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ===== Stat strip ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .num { font-size: 2rem; font-weight: 700; color: var(--teal); }
.stat-strip .label { font-size: .85rem; color: var(--gray); }

/* ===== Donation box ===== */
.donation-box {
  background: var(--white);
  border: 2px dashed var(--teal);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.alias-tag {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--offwhite);
  border-radius: 10px;
  padding: 12px 24px;
  margin: 16px 0;
  letter-spacing: .02em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,.85);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--white); }
.site-footer li { margin-bottom: 10px; font-size: .92rem; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 190px; width: auto; }

/* Placa blanca para que el logo a color se lea bien sobre fondos oscuros/fotos */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.97);
  border-radius: 22px;
  padding: 14px 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.logo-badge img { display: block; }

/* ===== Marca destacada / lema ===== */
.brand-mark { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.brand-mark img { height: 190px; width: auto; }
.brand-mark.brand-mark-sm img { height: 130px; }
@media (max-width: 700px) {
  .brand-mark img { height: 130px; }
  .brand-mark.brand-mark-sm img { height: 100px; }
}
.lema {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--yellow);
  line-height: 1.05;
  margin-bottom: 14px;
}
.lema-sub {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
}

/* Watermark decorativo con el faro/logo */
.watermark {
  position: relative;
  overflow: hidden;
}
.watermark::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background: url('../../IMG_5789.PNG') center / contain no-repeat;
  opacity: .1;
  pointer-events: none;
}

/* ===== Divisores de sección tipo ola ===== */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }
.wave-divider-flip svg { transform: rotate(180deg); }

/* ===== Galería ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 800px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(28,53,52,.85));
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  padding: 26px 12px 10px;
}

/* ===== Footer social icons ===== */
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  transition: background .15s ease;
}
.social-row a:hover { background: var(--yellow); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== Bono contribución ===== */
.bono-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 34px;
  max-width: 560px;
  margin: 0 auto;
}
.bono-box label { display: block; font-weight: 600; font-size: .88rem; margin: 16px 0 6px; color: var(--teal-dark); }
.bono-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
}
.bono-box input:focus { outline: 2px solid var(--teal); }
.bono-preview {
  background: var(--offwhite);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .88rem;
  color: var(--gray);
  margin: 16px 0;
  min-height: 20px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,.55);
}

/* Map */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Table */
.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.info-table th { color: var(--teal-dark); font-weight: 700; }

.mt-0 { margin-top: 0 !important; }
.small-note { font-size: .82rem; color: var(--gray); }

/* ===== Meta de actividades (edad / días / horario / sede) ===== */
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 16px; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--gray); font-weight: 500; }
.meta-item svg { width: 16px; height: 16px; fill: var(--teal); flex-shrink: 0; }

/* ===== Visual de reemplazo para actividades sin foto propia ===== */
.card-icon-visual {
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.10) 0%, transparent 45%),
    linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
}
.card-icon-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.6px, transparent 1.6px);
  background-size: 20px 20px;
}
.card-icon-visual .icon-badge {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
}
.card-icon-visual svg { width: 40px; height: 40px; fill: var(--yellow); }

/* ===== Sello institucional "Desde 1964" ===== */
.sello-badge { width: 118px; height: 118px; flex-shrink: 0; }
.sello-badge .sello-ring { fill: var(--teal); }
.sello-badge .sello-inner { fill: var(--teal-dark); }
.sello-badge .sello-star { fill: var(--yellow); }
.sello-badge text {
  fill: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
}
.sello-float {
  position: absolute;
  bottom: -18px;
  right: -18px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}
.split { position: relative; }

/* ===== Patrón sutil de fondo ===== */
.pattern-soft {
  background-color: var(--offwhite);
  background-image: radial-gradient(rgba(44,79,78,.07) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}

/* ===== Monograma "A" (marca de agua institucional) ===== */
.monogram-mark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.monogram-mark img {
  width: 340px;
  height: auto;
  opacity: .07;
}
@media (max-width: 700px) { .monogram-mark img { width: 220px; } }

/* ===== Insignia "ALMA Inclusión Social" (uso puntual, no repetitivo) ===== */
.inclusion-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 auto 20px;
}
.inclusion-badge img { height: 92px; width: auto; }
@media (max-width: 700px) { .inclusion-badge img { height: 74px; } }

/* ===== Logo circular (recorte CSS del isologo real, sin editar el archivo) ===== */
.logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  flex-shrink: 0;
}
.logo-circle img { width: 145%; height: 145%; object-fit: cover; }
