/* =========================================================
   Parroquia Nuestra Señora de la Merced — Hoja de estilos
   Paleta: azul mariano, dorado, crema. Estilo clásico católico.
   ========================================================= */

:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #142a47;
  --color-primary-light: #2d4f7a;
  --color-gold: #c9a961;
  --color-gold-dark: #a88b46;
  --color-gold-light: #e1c891;
  --color-cream: #faf6ee;
  --color-cream-dark: #f1ead9;
  --color-text: #2c2419;
  --color-text-soft: #5a5246;
  --color-muted: #8a8275;
  --color-white: #ffffff;
  --color-overlay: rgba(20, 42, 71, 0.78);

  --font-serif: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(20, 42, 71, 0.08), 0 1px 2px rgba(20, 42, 71, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 42, 71, 0.10), 0 2px 4px rgba(20, 42, 71, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 42, 71, 0.14);

  --radius-sm: 4px;
  --radius-md: 8px;

  --container-max: 1180px;
  --container-narrow: 760px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow {
  max-width: var(--container-narrow);
}

.cite {
  font-style: italic;
  color: var(--color-gold-dark);
  font-size: 0.92em;
  white-space: nowrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ---------- Header / Navegación ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-cream-dark);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-primary-dark);
}
.brand:hover { color: var(--color-primary-dark); }
.brand-mark {
  font-size: 1.8rem;
  color: var(--color-gold);
  line-height: 1;
  display: flex;
  align-items: center;
}
.brand-mark img {
  width: 38px;
  height: auto;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}
.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  position: relative;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--color-primary); background: var(--color-cream); }
.site-nav a.active {
  color: var(--color-primary-dark);
  font-weight: 700;
}
.site-nav a.active::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  margin: 4px auto 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 6px;
  align-items: stretch;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary-dark);
  transition: transform .2s;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(20,42,71,0.78) 0%, rgba(30,58,95,0.72) 50%, rgba(20,42,71,0.85) 100%),
    url('../img/fachada.jpg') center 30% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(201, 169, 97, 0.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(201, 169, 97, 0.12), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "✦";
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(225, 200, 145, 0.45);
  font-size: 2.4rem;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
  max-width: 900px;
}
.hero-content .eyebrow { color: var(--color-gold-light); }
.hero h1 {
  color: var(--color-white);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}
.hero-tagline .cite { color: var(--color-gold-light); }
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
}
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.link-arrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-top: 0.5rem;
}
.link-arrow:hover { color: var(--color-gold-dark); }

/* ---------- Page hero (subpáginas) ---------- */
.page-hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(201, 169, 97, 0.15), transparent 55%),
    linear-gradient(140deg, #142a47 0%, #1e3a5f 100%);
  color: var(--color-white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 1.5rem auto 0;
}
.page-hero h1 {
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.page-hero .eyebrow { color: var(--color-gold-light); }
.page-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  opacity: 0.92;
  margin: 0;
}

/* ---------- Secciones ---------- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--color-cream-dark);
  border-top: 1px solid rgba(201,169,97,0.2);
  border-bottom: 1px solid rgba(201,169,97,0.2);
}
.section-dark {
  background:
    radial-gradient(circle at 50% 50%, rgba(201,169,97,0.12), transparent 70%),
    linear-gradient(135deg, #1e3a5f, #142a47);
  color: var(--color-white);
}
.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-sub {
  color: var(--color-text-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0;
}

/* ---------- Ornamentos ---------- */
.ornament, .ornament-large, .ornament-mini {
  color: var(--color-gold);
  text-align: center;
  line-height: 1;
}
.ornament { font-size: 2rem; margin-bottom: 1rem; }
.ornament-large { font-size: 2.5rem; margin-bottom: 1.5rem; }
.ornament-mini { font-size: 1.3rem; display: inline-block; margin-bottom: 0.6rem; }
.ornament-mini.centered { display: block; }

.divider {
  text-align: center;
  margin: 3rem 0;
  position: relative;
}
.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold-light), transparent);
}
.divider span {
  position: relative;
  display: inline-block;
  background: var(--color-cream);
  padding: 0 1rem;
  color: var(--color-gold);
  font-size: 1.1rem;
}
.end-mark {
  text-align: center;
  color: var(--color-gold);
  font-size: 1.5rem;
  margin-top: 3rem;
  letter-spacing: 1rem;
  padding-left: 1rem;
}

/* ---------- Layouts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.centered-action {
  text-align: center;
  margin-top: 3rem;
}
.centered-text { text-align: center; }

/* ---------- Schedule card (home) ---------- */
.schedule-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-gold);
}
.schedule-card h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-cream-dark);
  padding-bottom: 0.6rem;
}
.mini-schedule {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.mini-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--color-cream-dark);
  font-size: 0.98rem;
}
.mini-schedule li:last-child { border-bottom: 0; }
.mini-schedule .day { font-weight: 700; color: var(--color-primary); }
.mini-schedule .time { color: var(--color-text-soft); }

.ornament-block .ornament { text-align: left; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-gold);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin: 0.4rem 0 0.8rem; }
.card-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-dark);
  font-weight: 700;
}

/* ---------- Event cards (calendario) ---------- */
.event-card {
  display: flex;
  flex-direction: column;
}
.event-card p { flex: 1; }
.event-countdown {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.32rem 0.8rem;
  background: var(--color-cream-dark);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.event-featured {
  border-top-color: var(--color-primary);
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
  box-shadow: var(--shadow-md);
}
.event-featured .event-countdown {
  background: var(--color-primary);
  color: var(--color-gold-light);
}
.events-empty {
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
  padding: 2rem 0;
}

/* ---------- Formularios (oración / contacto / colaborar) ---------- */
.prayer-form {
  background: var(--color-white);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-gold);
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-optional { color: var(--color-muted); font-weight: 400; font-size: 0.85em; }
.form-required { color: var(--color-gold-dark); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d9d2c2;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
  background: var(--color-white);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.form-actions {
  margin-top: 1.6rem;
  display: flex;
  justify-content: flex-end;
}

/* ---------- Donaciones / colaborar ---------- */
.donate-block {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-gold);
  text-align: center;
}
.donate-uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
  text-align: left;
}
.donate-use {
  background: var(--color-cream);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
}
.donate-use h4 {
  color: var(--color-primary);
  font-family: var(--font-serif);
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.donate-use p { margin: 0; font-size: 0.92rem; color: var(--color-text-soft); }
.btn-mp {
  background: #009ee3;
  color: #fff;
  border-color: #009ee3;
}
.btn-mp:hover { background: #007fb3; border-color: #007fb3; color: #fff; }
.donate-disabled {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-cream-dark);
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  font-size: 0.92rem;
}
@media (max-width: 720px) {
  .donate-uses { grid-template-columns: 1fr; }
}

/* ---------- Quote block ---------- */
.quote-block {
  text-align: center;
  max-width: 820px;
}
.quote-block blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  margin: 0 0 1.2rem;
  color: rgba(255,255,255,0.95);
  position: relative;
  padding: 0 1.5rem;
}
.quote-block blockquote::before,
.quote-block blockquote::after {
  color: var(--color-gold-light);
  font-size: 2rem;
  font-family: var(--font-serif);
  line-height: 0;
  vertical-align: -0.2em;
}
.quote-author {
  color: var(--color-gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
}

/* ---------- Info blocks (3-col home) ---------- */
.info-block {
  text-align: center;
  padding: 1rem;
}
.info-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  background: var(--color-white);
}
.info-block h3 { margin-bottom: 0.6rem; }

/* ---------- Anuncios (página) ---------- */
.announcement {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-gold);
  margin-bottom: 2rem;
}
.announcement-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.announcement-date {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.announcement-tag {
  background: var(--color-cream-dark);
  color: var(--color-gold-dark);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.announcement h2 {
  margin: 0.2rem 0 1rem;
  font-size: 1.7rem;
}
.announcement p:last-child { margin-bottom: 0; }

/* ---------- Schedule (horarios) ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}
.schedule-block {
  background: var(--color-white);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
}
.schedule-icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.schedule-block h2 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.schedule-table th, .schedule-table td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--color-cream-dark);
  font-weight: 400;
  vertical-align: top;
}
.schedule-table th {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  padding-right: 1rem;
}
.schedule-table td {
  color: var(--color-text-soft);
  text-align: right;
}
.schedule-table tr:last-child th,
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-note {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 1rem 0 0;
}

.sacraments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sacrament {
  background: var(--color-white);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--color-gold);
}
.sacrament h3 {
  color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-cream-dark);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}
.sacrament-req {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--color-cream-dark);
}

/* ---------- Prose (Nosotros) ---------- */
.prose h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.prose p {
  font-size: 1.07rem;
  line-height: 1.75;
  color: var(--color-text-soft);
}
.prose strong { color: var(--color-text); }
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}
.bullet-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  color: var(--color-text-soft);
  line-height: 1.6;
}
.bullet-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--color-gold);
  font-size: 0.9rem;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  align-content: start;
}
.contact-card {
  background: var(--color-white);
  padding: 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 3px solid var(--color-gold);
}
.contact-icon {
  font-size: 1.7rem;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}
.contact-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.contact-card p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin: 0;
}
.map-wrapper {
  background: var(--color-white);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.map-wrapper iframe {
  flex: 1;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 360px;
}
.map-link {
  text-align: center;
  margin: 0.8rem 0 0.2rem;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.82);
  padding: 4rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-white);
  margin: 0 0 0.4rem;
}
.footer-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  margin: 0;
}
.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold-light);
  margin: 0 0 0.6rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-gold-light); }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { padding: 0.2rem 0; font-size: 0.95rem; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom .cite { color: var(--color-gold-light); }
.copyright { margin: 0; }

/* ---------- Íconos redes sociales (footer) ---------- */
.footer-social {
  margin: 1rem 0 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-link:hover {
  background: var(--color-gold-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Banner interior (home, solo mobile) ---------- */
.feature-banner {
  display: none;
  width: 100%;
  margin: 0;
  background: var(--color-cream-dark);
}
.feature-banner img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 720px) {
  .feature-banner { display: block; }
}

/* ---------- Patrona block (Nosotros) ---------- */
.patrona-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  margin: 1rem 0 2rem;
}
.patrona-image {
  position: relative;
  padding: 0.8rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.patrona-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-md);
  pointer-events: none;
  margin: 6px;
}
.patrona-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.patrona-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
  margin: 0.8rem 0 0;
}

/* ---------- Page hero con imagen ---------- */
.page-hero.with-image {
  background:
    linear-gradient(160deg, rgba(20,42,71,0.82) 0%, rgba(30,58,95,0.78) 100%),
    url('../img/fachada.jpg') center 35% / cover no-repeat;
  padding: 6rem 0 5rem;
}

/* ---------- Chatbot (asistente parroquial) ---------- */
.chat-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(168, 139, 70, 0.45), 0 2px 6px rgba(20,42,71,0.18);
  z-index: 95;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  padding: 0;
}
.chat-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(168, 139, 70, 0.55), 0 3px 8px rgba(20,42,71,0.22);
}
.chat-toggle svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.chat-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
}

.chat-panel {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 60px);
  background: var(--color-cream);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(20, 42, 71, 0.30), 0 8px 20px rgba(20,42,71,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 110;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  border: 1px solid rgba(201,169,97,0.35);
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-head {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--color-gold);
}
.chat-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.chat-avatar svg { width: 20px; height: 20px; fill: currentColor; }
.chat-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}
.chat-status {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  margin: 2px 0 0;
  letter-spacing: 0.02em;
}
.chat-close {
  background: transparent;
  border: 0;
  color: var(--color-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .15s ease;
}
.chat-close:hover { background: rgba(255,255,255,0.12); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-cream);
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: chatFadeIn .25s ease;
}
.chat-msg p { margin: 0 0 0.4em; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg ul {
  margin: 0.4em 0;
  padding-left: 1.2em;
}
.chat-msg li { margin-bottom: 0.2em; }
.chat-msg-bot {
  background: var(--color-white);
  color: var(--color-text);
  align-self: flex-start;
  border: 1px solid var(--color-cream-dark);
  border-bottom-left-radius: 4px;
}
.chat-msg-bot a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-gold-light);
}
.chat-msg-user {
  background: var(--color-primary);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-quick {
  padding: 0 12px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--color-cream);
  border-top: 1px dashed var(--color-cream-dark);
  padding-top: 10px;
}
.chat-quick-btn {
  background: var(--color-white);
  border: 1px solid var(--color-gold-light);
  color: var(--color-primary-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
  font-family: inherit;
}
.chat-quick-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold-dark);
  color: var(--color-primary-dark);
}
.chat-quick-btn:active { transform: scale(0.97); }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--color-white);
  border-top: 1px solid var(--color-cream-dark);
}
.chat-input input {
  flex: 1;
  border: 1px solid var(--color-cream-dark);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--color-cream);
  color: var(--color-text);
  outline: none;
  transition: border-color .15s ease;
  min-width: 0;
}
.chat-input input:focus {
  border-color: var(--color-gold);
  background: var(--color-white);
}
.chat-input button[type="submit"] {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, transform .1s ease;
}
.chat-input button[type="submit"]:hover { background: var(--color-gold-dark); color: var(--color-white); }
.chat-input button[type="submit"]:active { transform: scale(0.95); }
.chat-input button[type="submit"] svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Bottom navigation (solo mobile) ---------- */
.bottom-nav {
  display: none;
}

/* ---------- Botón flotante de WhatsApp ---------- */
/* Botón oculto porque el teléfono parroquial es fijo (no tiene WhatsApp).
   Para reactivarlo cuando haya un número real:
   1) Borrar esta regla `.wa-float { display: none; }`
   2) Actualizar el número en las 5 páginas (buscar 5493498427515) */
.wa-float { display: none !important; }

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.15);
  z-index: 95;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover {
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55), 0 3px 8px rgba(0,0,0,0.2);
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .three-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .patrona-block { grid-template-columns: 1fr; gap: 2rem; max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .section { padding: 3.5rem 0; }
  .hero { min-height: 70vh; }

  /* En mobile el nav superior se oculta — la navegación va por la barra inferior */
  .nav-toggle, .site-nav { display: none !important; }
  .header-inner { flex-wrap: wrap; position: relative; justify-content: center; text-align: center; }
  .brand { justify-content: center; }
  .brand-title { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info { grid-template-columns: 1fr; }
  .schedule-card, .announcement, .schedule-block { padding: 1.6rem; }

  /* Barra de navegación inferior (estilo app) */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-cream-dark);
    box-shadow: 0 -2px 14px rgba(20, 42, 71, 0.10);
    z-index: 90;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  }
  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: color .15s ease;
  }
  .bn-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
  .bn-item.active {
    color: var(--color-primary);
  }
  .bn-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 0 0 3px 3px;
  }
  .bn-item { position: relative; }

  /* WhatsApp tiene que estar arriba de la bottom-nav */
  .wa-float {
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .wa-float svg { width: 26px; height: 26px; }

  /* Chat: el toggle también arriba de la bottom-nav */
  .chat-toggle {
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: 16px;
    width: 56px;
    height: 56px;
  }
  .chat-toggle svg { width: 26px; height: 26px; }

  /* Chat panel: pantalla completa en mobile, sale desde abajo.
     z-index alto para tapar también al site-header sticky y la bottom-nav. */
  .chat-panel {
    width: 100vw;
    max-width: 100vw;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    transform: translateY(100%);
  }
  .chat-panel.open { transform: translateY(0); }

  /* En mobile el input tiene que respetar la safe-area del home indicator */
  .chat-input {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 480px) {
  .brand-title { font-size: 0.95rem; }
  .brand-sub { font-size: 0.7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
