:root {
  --rose: #b83b5e;
  --rose-dark: #8a2c47;
  --rose-light: #f7e6ea;
  --cream: #faf9f5;
  --ink: #2c2420;
  --ink-soft: #5b5148;
  --green: #4c7a5e;
  --border: #e7e0d6;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rose-dark);
  text-decoration: none;
}

.brand img { height: 44px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--rose-dark);
  border-color: var(--rose);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--rose-dark);
  cursor: pointer;
}

/* Hero / Banner */
.hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(138,44,71,.88), rgba(76,122,94,.75)),
              url('hero-fallback.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 40%);
}

.hero-inner {
  position: relative;
  max-width: 1000px;
  padding: 60px 24px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.hero-logo-badge {
  flex: 0 0 auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  max-width: 700px;
}

/* Standalone hero (no logo), used by subpages */
.hero > .hero-content {
  position: relative;
  padding: 90px 24px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 780px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero-logo-badge {
    width: 180px;
    height: 180px;
    padding: 32px;
  }
}

/* Smaller banner used on subpages */
.hero--sm {
  min-height: 150px;
  height: 150px;
}

.hero--sm > .hero-content {
  padding: 0 24px;
}

.hero--sm .eyebrow {
  margin-bottom: 8px;
}

.hero--sm h1 {
  margin-bottom: 0;
}

.hero--sm p.lead {
  margin-top: 10px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: #f7d9e2;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.05rem;
  color: #f4ece7;
  max-width: 600px;
}

/* Light hero banner (two-column, home page) */
.hero-light {
  background: var(--rose-light);
  color: var(--ink);
  min-height: auto;
}

.hero-light::before { display: none; }

.hero-light .hero-inner {
  justify-content: space-between;
  padding: 90px 24px;
  gap: 60px;
}

.hero-light .hero-content {
  max-width: 560px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 18px;
}

.eyebrow-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  display: inline-block;
}

.hero-light h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-light p.lead {
  color: var(--ink-soft);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.btn-link:hover { color: var(--rose-dark); }

.hero-fineprint {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--ink-soft);
}

.hero-light .hero-logo-badge {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  height: 260px;
  background: #fff;
  box-shadow: 0 0 0 40px rgba(255,255,255,.45);
}

@media (max-width: 780px) {
  .hero-light .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-light .hero-content { max-width: 100%; }
  .hero-light p.lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
}

/* Sections */
section {
  padding: 72px 0;
}

section.alt { background: #fff; }

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 750px;
}

section h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 800px;
}

p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 12px;
}

.eyebrow.dark { color: var(--rose); }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.pillar {
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,12,16,.35) 0%, rgba(20,12,16,.55) 55%, rgba(20,12,16,.82) 100%);
  z-index: 0;
}

.pillar .icon,
.pillar h3,
.pillar p {
  position: relative;
  z-index: 1;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--rose);
  box-shadow: 0 12px 28px rgba(184,59,94,.14);
}

.pillar .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--rose-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.pillar:hover .icon {
  background: var(--rose);
  color: #fff;
  transform: scale(1.08);
}

.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.pillar p {
  color: rgba(255,255,255,.88);
  font-size: .96rem;
}

/* Closing / CTA blocks */
.cta-block {
  background: var(--rose-light);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 48px;
  text-align: center;
}

.cta-block p {
  max-width: 620px;
  margin: 0 auto 20px;
  color: var(--ink);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  transition: background .15s, transform .15s;
}

.btn:hover { background: var(--rose-dark); transform: translateY(-1px); }

.btn.outline {
  background: transparent;
  color: var(--rose-dark);
  border: 2px solid var(--rose);
}

.btn.outline:hover { background: var(--rose-light); }

.btn.whatsapp { background: var(--green); }
.btn.whatsapp:hover { background: #396047; }

/* Gallery / Carousel */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-dark);
  font-size: .85rem;
  text-align: center;
  padding: 10px;
}

/* Carousel */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform .45s ease;
}

.carousel-track img {
  flex: 0 0 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  padding: 0 6px;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .carousel-track img { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1020px) {
  .carousel-track img { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--rose-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}

.carousel-arrow:hover {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

.carousel-track img { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 12, .9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Video */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px auto 32px;
}

.video-wrap video { width: 100%; height: 100%; object-fit: cover; }

/* Documents */
.doc-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s, border-color .15s;
}

.doc-card:hover {
  border-color: var(--rose);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.doc-card .doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fdf1e7;
  color: #c07a2b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .8rem;
  flex-shrink: 0;
}

.doc-card strong { display: block; font-size: .98rem; }
.doc-card span { color: var(--ink-soft); font-size: .85rem; }

/* Windows Explorer "Details" view list */
.explorer {
  margin-top: 32px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: .85rem;
}

.explorer-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) 1.1fr 0.6fr;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid #eef0f2;
}

.explorer-row:last-child { border-bottom: none; }

.explorer-head {
  background: #f3f3f3;
  color: #444;
  font-weight: 600;
  font-size: .8rem;
  border-bottom: 1px solid #d6d6d6;
  padding: 8px 14px;
}

a.explorer-row:nth-child(even) { background: #f7f9fc; }

a.explorer-row:hover {
  background: #cde8ff;
}

.col-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-date, .col-size {
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-size { text-align: right; }

.file-icon {
  flex-shrink: 0;
  width: 22px;
  height: 26px;
  border-radius: 3px;
  background: #d64545;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
}

@media (max-width: 700px) {
  .explorer-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .explorer-row .col-date {
    display: none;
  }
  .explorer-head .col-date {
    display: none;
  }
}

/* Donation */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.donation-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.donation-card h3 {
  color: var(--rose-dark);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.donation-card h3:not(:first-child) {
  margin-top: 24px;
}

.donation-card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
}

.donation-card--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.donation-qr {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 0 16px;
}

.donation-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 1.15rem;
}

.donation-card dt { color: var(--ink-soft); font-weight: 600; }
.donation-card dd { color: var(--ink); }

.fill-placeholder {
  color: #b5761f;
  background: #fdf1e0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .85em;
}

/* Contact / Footer */
footer.site-footer {
  background: var(--ink);
  color: #ece5df;
  padding: 56px 0 28px;
}

footer.site-footer h2 {
  color: #fff;
}

footer.site-footer p.lead { color: #cfc5bd; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.footer-grid h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c98a9d;
  margin-bottom: 12px;
}

.footer-grid p, .footer-grid a {
  color: #d8d0c8;
  text-decoration: none;
  font-size: .92rem;
  margin-bottom: 6px;
  display: block;
}

.footer-grid a:hover { color: #fff; }

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .15s;
}

.social-row a:hover { background: var(--rose); }

.social-row a svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: .82rem;
  color: #a89e94;
  text-align: center;
}

/* Contacto page: contact details in main body, not footer */
section#contacto h2 { color: var(--ink); }
section#contacto p.lead { color: var(--ink-soft); }
section#contacto .footer-grid h4 { color: var(--rose-dark); }
section#contacto .footer-grid p,
section#contacto .footer-grid a { color: var(--ink-soft); }
section#contacto .footer-grid a:hover { color: var(--rose-dark); }
section#contacto .social-row a { background: var(--rose-light); }
section#contacto .social-row a svg { fill: var(--rose-dark); }
section#contacto .social-row a:hover { background: var(--rose); }
section#contacto .social-row a:hover svg { fill: #fff; }
section#contacto .social-row a { width: 68px; height: 68px; }
section#contacto .social-row a svg { width: 34px; height: 34px; }

/* Mobile nav */
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 14px;
  }
  header.site-header { position: sticky; }
}
