/* Regazo de Amor A.C. — diseño final
   Paleta: vino → gris (#350606 · #58070c · #8f4241 · #666666 · #c8c8c8) */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  font-family: "Quicksand", system-ui, sans-serif;
  color: #2a2222;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --wine-deep: #350606;
  --wine: #58070c;
  --navy: #58070c;
  --rose: #8f4241;
  --purple: #8f4241;
  --orange: #8f4241;
  --gray: #666666;
  --gray-soft: #c8c8c8;
  --muted: #666666;
  --line: #e6dddd;
  --soft: #faf6f6;
  --accent: #8f4241;
}

h1, h2, h3, h4 {
  font-family: "Fredoka", "Quicksand", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--wine);
  margin: 0 0 0.5em;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.text-center { text-align: center; }
.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 12px 0 0;
}
.lead { font-size: 1.08rem; color: #4a3a3a; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(53, 6, 6, 0.1);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  max-width: 1180px;
  margin: 0 auto;
  width: 92%;
}
.logo {
  height: clamp(40px, 4.5vw, 52px);
  width: auto;
  object-fit: contain;
}
.site-header .logo-link {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.site-header.scrolled .logo-link {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-header .logo {
  border-radius: 10px;
}
.site-header .nav-link {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.site-header.scrolled .nav-link {
  color: var(--wine);
  text-shadow: none;
}
.site-header .nav-link:hover,
.site-header .nav-link.is-active {
  color: #fff;
  opacity: 0.95;
}
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.is-active {
  color: var(--rose);
  opacity: 1;
}
.main-nav a.nav-link.is-active {
  border-bottom: 2px solid #fff;
  border-radius: 0;
  padding-bottom: 6px;
}
.site-header.scrolled .main-nav a.nav-link.is-active {
  border-bottom-color: var(--rose);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}
.main-nav a {
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:not(.btn-nav-donar):hover {
  background: rgba(255, 255, 255, 0.12);
}
.site-header.scrolled .main-nav a:not(.btn-nav-donar):hover {
  background: rgba(143, 66, 65, 0.1);
}

.btn-nav-donar {
  background: var(--wine);
  color: #fff !important;
  text-shadow: none !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(88, 7, 12, 0.35);
}
.site-header.scrolled .btn-nav-donar {
  background: var(--wine);
}
.btn-nav-donar:hover { filter: brightness(1.1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-header.scrolled .menu-toggle span { background: var(--wine); }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 16px;
    box-shadow: 0 16px 40px rgba(53, 6, 6, 0.12);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav a {
    color: var(--wine) !important;
    text-shadow: none !important;
    padding: 14px 12px !important;
  }
  .main-nav a.btn-nav-donar {
    text-align: center;
    margin-top: 8px;
    color: #fff !important;
  }
}

/* ========== HERO ========== */
.hero-v5 {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px 0 110px;
  background: var(--wine-deep) url("../assets/img/fachada-hero.jpg") center / cover no-repeat;
}
.hero-v5::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(53, 6, 6, 0.88) 0%,
    rgba(88, 7, 12, 0.72) 48%,
    rgba(143, 66, 65, 0.45) 100%
  );
}
.hero-v5 .container {
  position: relative;
  z-index: 1;
}
.hero-logo-big {
  width: min(340px, 72vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
}
.hero-v5 h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.35rem);
  max-width: 720px;
  margin-bottom: 0.45em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero-v5 .lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.12rem;
  max-width: 620px;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--wine);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-badges .badge i { color: #f0c9c9; }

/* ========== SECTIONS ========== */
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}

/* ========== NOSOTROS ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.about-content .lead {
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.about-body p {
  color: #4a3a3a;
  margin: 0 0 1em;
  font-size: 1.02rem;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 12px;
  box-shadow: 0 10px 30px rgba(53, 6, 6, 0.06);
}
.stat-item {
  text-align: center;
  padding: 8px;
}
.stat-number {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--wine);
  font-weight: 700;
  line-height: 1.1;
}
.stat-desc {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.about-gallery {
  position: relative;
  min-height: 420px;
}
.about-frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(53, 6, 6, 0.16);
  background: #fff;
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-frame.main {
  width: 78%;
  aspect-ratio: 4 / 5;
  border: 6px solid #fff;
}
.about-frame.second {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  right: 0;
  bottom: 10px;
  border: 5px solid var(--rose);
}

/* ========== MVV ========== */
.mvv-v5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvv-v5-card {
  background: #fff;
  border-radius: 22px;
  padding: 32px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(53, 6, 6, 0.06);
  border-top: 4px solid var(--wine);
}
.mvv-v5-card:nth-child(2) { border-top-color: var(--rose); }
.mvv-v5-card:nth-child(3) { border-top-color: var(--gray); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--wine-deep), var(--wine));
}
.mvv-v5-card:nth-child(2) .card-icon {
  background: linear-gradient(135deg, var(--wine), var(--rose));
}
.mvv-v5-card:nth-child(3) .card-icon {
  background: linear-gradient(135deg, var(--rose), var(--gray));
}
.mvv-v5-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.values-checked {
  list-style: none;
  margin: 0;
  padding: 0;
}
.values-checked li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #3a3030;
  padding: 6px 0;
  font-size: 0.95rem;
}
.values-checked i { color: var(--rose); }

/* ========== TABS / PROGRAMAS ========== */
.tab-system { margin-top: 8px; }
.tab-list-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.tab-trigger {
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: var(--wine);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.tab-trigger:hover { border-color: var(--rose); }
.tab-trigger.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.tab-trigger.active i { color: #f0c9c9; }
.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; }

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.service-v5-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.service-v5-card:hover {
  box-shadow: 0 12px 32px rgba(53, 6, 6, 0.1);
  border-color: rgba(143, 66, 65, 0.35);
  transform: translateY(-2px);
}
.service-v5-card > i {
  color: var(--rose);
  font-size: 1.35rem;
  margin-bottom: 10px;
  display: inline-block;
}
.service-v5-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
}
.service-v5-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.tab-quote {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(88, 7, 12, 0.08), rgba(143, 66, 65, 0.08));
  border-left: 4px solid var(--wine);
  color: var(--wine);
  font-weight: 600;
}

/* ========== SÚMATE ========== */
.projects-v5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.proj-v5-card {
  border-radius: 22px;
  padding: 32px 26px;
  color: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(53, 6, 6, 0.15);
}
.proj-v5-card.accent-blue {
  background: linear-gradient(145deg, var(--wine-deep), var(--wine));
}
.proj-v5-card.accent-purple {
  background: linear-gradient(145deg, var(--wine), var(--rose));
}
.proj-v5-card.accent-orange {
  background: linear-gradient(145deg, var(--rose), #666666);
}
.proj-v5-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.proj-v5-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.proj-v5-card h3 { color: #fff; margin: 0; }
.proj-v5-card p {
  color: rgba(255, 255, 255, 0.92);
  flex: 1;
  font-size: 0.96rem;
}
.proj-v5-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
  width: fit-content;
}
.proj-v5-link:hover {
  border-color: #fff;
  gap: 12px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  text-align: center;
  padding: 28px 22px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(141, 32, 38, 0.05);
}
.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 15px;
  border: 4px solid var(--wine);
  background: var(--soft);
}
.team-photo-fallback {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border: 4px solid var(--wine);
  color: var(--wine);
  font-size: 2.2rem;
}
.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.team-role {
  display: block;
  font-weight: 700;
  color: var(--rose);
  font-size: 0.8rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ========== DONAR ========== */
.donate-section {
  background: linear-gradient(160deg, var(--wine-deep) 0%, var(--wine) 55%, var(--rose) 100%);
  color: #fff;
  padding: 88px 0;
}
.donate-section h2 { color: #fff; }
.donate-v5-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.badge-donar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f0c9c9;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lead-donate {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}
.donate-v5-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.donate-v5-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.donate-v5-list i {
  color: #f0c9c9;
  margin-top: 3px;
}
.donate-v5-foot {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  border-left: 3px solid #fff;
  padding-left: 14px;
}

.donate-v5-card {
  background: #fff;
  color: var(--wine);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border-top: 4px solid var(--wine);
}
.donate-v5-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.donate-v5-card-header > i {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--wine), var(--rose));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.donate-v5-card-header h3 { margin: 0; color: var(--wine); }
.donate-v5-card-header span { font-size: 0.88rem; color: var(--muted); }

.bank-details-v5 .detail-row {
  background: var(--soft);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bank-details-v5 .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.bank-details-v5 .value { color: var(--wine); }
.value-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.copy-btn:hover { background: var(--rose); }
.copy-btn.copied { background: #1a8f5e; }
.btn-donate-submit {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 12px;
  transition: filter 0.2s ease;
}
.btn-donate-submit:hover { filter: brightness(1.08); }

/* ========== GALERÍA ========== */
.gallery-grid-v5 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item-v5 {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  display: block;
  background: var(--soft);
}
.gallery-item-v5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item-v5:hover img { transform: scale(1.06); }

/* ========== LIGHTBOX ========== */
.lightbox-v5 {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(53, 6, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox-v5.open { display: flex; }
.lightbox-v5 img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
}
.lightbox-close-v5,
.lightbox-nav-v5 {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
}
.lightbox-close-v5 { top: 20px; right: 20px; }
.lightbox-nav-v5.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav-v5.next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ========== CONTACTO ========== */
.contact-v5-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-v5-info > p {
  color: var(--muted);
  font-size: 1.02rem;
}
.info-v5-list { margin: 24px 0; }
.info-v5-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.info-v5-item > i {
  color: var(--rose);
  font-size: 1.2rem;
  margin-top: 2px;
}
.info-v5-item strong {
  display: block;
  color: var(--wine);
}
.info-v5-item span,
.info-v5-item a {
  color: var(--muted);
  font-weight: 500;
}
.info-v5-item a { color: var(--rose); font-weight: 600; }

.social-v5-section h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.social-links-v5 { display: flex; gap: 10px; }
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  background: var(--rose);
}

.contact-v5-form-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 12px 36px rgba(53, 6, 6, 0.06);
}
.form-v5-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-v5-group {
  display: block;
  margin-bottom: 14px;
}
.form-v5-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--wine);
  margin-bottom: 6px;
}
.form-v5-group input,
.form-v5-group select,
.form-v5-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-v5-group input:focus,
.form-v5-group select:focus,
.form-v5-group textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(143, 66, 65, 0.18);
}
.btn-submit-v5 {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 12px;
  transition: filter 0.2s ease;
}
.btn-submit-v5:hover { filter: brightness(1.08); }
.form-status-v5 {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status-v5.success { color: #1a8f5e; }
.form-status-v5.error { color: #c42d2d; }

/* ========== FOOTER ========== */
.site-footer-v5 {
  background: var(--wine-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}
.footer-v5-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 12px;
}
.footer-v5-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}
.footer-v5-col h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #fff;
}
.footer-v5-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-v5-col li { margin-bottom: 8px; }
.footer-v5-col a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.footer-v5-col a:hover { color: #fff; }
.footer-v5-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Créditos finales (fuera del footer) */
.credits {
  background-color: #f8f9fa;
  color: #2a2222;
  text-align: center;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.credits a {
  color: var(--wine);
  text-decoration: none;
  font-weight: 600;
}
.credits a:hover {
  text-decoration: underline;
}

.back-to-top-v5 {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(88, 7, 12, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.back-to-top-v5.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .about-grid,
  .donate-v5-grid,
  .contact-v5-grid,
  .footer-v5-grid,
  .mvv-v5-grid,
  .projects-v5-grid {
    grid-template-columns: 1fr;
  }
  .about-gallery { min-height: 360px; }
  .form-v5-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
