/* ============================================
   CONSULTORIO PARROQUIAL SANTO HERMANO PEDRO
   Hoja de estilos principal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Paleta de marca */
  --green-deep: #0A3007;
  --green-mid: #1E6B4A;
  --green-bright: #2F8F63;
  --mint-bg: #EAF6EF;
  --mint-card: #F3FAF6;
  --cream: #FBF1E4;
  --cream-soft: #FDF7ED;
  --terracotta: #C97B45;
  --terracotta-deep: #A85F30;
  --ink: #16241C;
  --ink-soft: #4B5A52;
  --white: #FFFFFF;
  --border-soft: #E1EAE3;

  /* Tipografía */
  --font-display: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 16px rgba(10, 48, 7, 0.07);
  --shadow-card-hover: 0 10px 28px rgba(10, 48, 7, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 10px;
  font-size: 1.02rem;
}

section { padding: 88px 0; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(30, 107, 74, 0.25);
}
.btn-primary:hover { background: var(--green-deep); }

.btn-outline {
  background: transparent;
  color: var(--terracotta-deep);
  border: 1.5px solid var(--terracotta);
}
.btn-outline:hover { background: rgba(201, 123, 69, 0.08); }

.btn-donate {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(169, 95, 48, 0.25);
}
.btn-donate:hover { background: var(--terracotta-deep); }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  color: var(--green-deep);
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text-sub {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--green-mid); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--mint-bg) 0%, var(--white) 100%);
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .accent-green { color: var(--green-mid); }
.hero h1 .accent-terracotta { color: var(--terracotta-deep); }

.hero p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.hero-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 440px;
}
.hero-note svg { flex-shrink: 0; margin-top: 2px; color: var(--terracotta); }

.hero-visual { position: relative; }

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  background: linear-gradient(135deg, #DCEFE5 0%, #BFE2D1 100%);
  box-shadow: var(--shadow-card-hover);
}

.hero-photo .placeholder-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo .placeholder-fill svg { width: 38%; color: rgba(10, 48, 7, 0.18); }

.floating-chip {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.floating-chip svg { width: 16px; height: 16px; color: var(--green-mid); flex-shrink: 0; }
.floating-chip .chip-sub { color: var(--ink-soft); font-weight: 500; display: block; font-size: 0.72rem; }

.chip-location { top: 18px; right: 18px; }
.chip-hours { bottom: 18px; left: 18px; }

/* ===== Banner ECG (oscuro) ===== */
.ecg-banner {
  background: var(--green-deep);
  color: var(--white);
  padding: 72px 0;
}

.ecg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ecg-banner .eyebrow { color: #8FD9B4; }
.ecg-banner h2 { color: var(--white); margin-bottom: 14px; }
.ecg-banner p { color: rgba(255,255,255,0.78); margin-bottom: 26px; max-width: 440px; }

.ecg-price-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ecg-price-row .price-tag { font-family: var(--font-display); font-weight: 700; }
.ecg-price-row .price-tag .amount { font-size: 1.4rem; color: #8FD9B4; }
.ecg-price-row .price-tag .label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.65); font-weight: 500; }

.ecg-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: radial-gradient(circle at 30% 30%, #154B2E 0%, #0A3007 70%);
}

.ecg-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  line-height: 1.2;
}
.ecg-badge .small { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }
.ecg-badge .big { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }

.ecg-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ecg-path {
  fill: none;
  stroke: #5FE3A4;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(95, 227, 164, 0.6));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: ecg-draw 3.5s linear infinite;
}
@keyframes ecg-draw {
  to { stroke-dashoffset: -1200; }
}
@media (prefers-reduced-motion: reduce) {
  .ecg-path { animation: none; stroke-dashoffset: 0; }
}

/* ===== Sección Médico ===== */
.doctor-section { background: var(--white); }

.doctor-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.doctor-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 3/3.6;
  background: linear-gradient(160deg, #EAF6EF 0%, #FBF1E4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.doctor-photo svg { width: 34%; color: rgba(10, 48, 7, 0.16); }
.doctor-photo .photo-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
}

.doctor-info .eyebrow { margin-bottom: 8px; }
.doctor-info h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.doctor-info .role {
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 18px;
}
.doctor-info p { color: var(--ink-soft); margin-bottom: 16px; }

.doctor-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.doctor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint-bg);
  color: var(--green-mid);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}
.doctor-tag svg { width: 14px; height: 14px; }

/* ===== Carrusel de servicios ===== */
.services-section { background: var(--mint-card); }

.carousel-wrap { position: relative; }

.carousel-track-wrap { overflow: hidden; }

.carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 0.45s ease;
}

.service-card {
  flex: 0 0 calc((100% - 44px) / 3);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.service-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--mint-bg), #DCEFE5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-img svg { width: 36%; color: var(--green-mid); opacity: 0.85; }

.service-body { padding: 20px 22px 24px; }

.service-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.service-label svg { width: 13px; height: 13px; }

.service-body h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.service-body p { font-size: 0.9rem; color: var(--ink-soft); }

.carousel-arrow {
  position: absolute;
  top: 38%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 5;
}
.carousel-arrow:hover { background: var(--mint-bg); }
.carousel-arrow svg { width: 20px; height: 20px; color: var(--green-deep); }
.arrow-prev { left: -22px; }
.arrow-next { right: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-soft);
  transition: background 0.15s ease, width 0.15s ease;
}
.carousel-dots button.active { background: var(--green-mid); width: 22px; border-radius: 5px; }

/* ===== Precios y horarios ===== */
.pricing-section { background: var(--white); }

.pricing-hours-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.price-table {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.98rem;
}
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(odd) { background: var(--mint-card); }
.price-row .amount { font-weight: 700; color: var(--green-mid); font-family: var(--font-display); }

.hours-block .eyebrow { margin-bottom: 8px; }
.hours-cards { display: grid; gap: 14px; margin-top: 22px; }

.hours-card {
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.hours-card.weekday { background: var(--mint-bg); border: 1px solid #CFE9DB; }
.hours-card.saturday { background: var(--cream); border: 1px solid #F0DCC0; }

.hours-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
}
.hours-card.weekday .hours-card-title { color: var(--green-deep); }
.hours-card.saturday .hours-card-title { color: var(--terracotta-deep); }
.hours-card-title svg { width: 16px; height: 16px; }
.hours-card p { font-size: 0.9rem; color: var(--ink-soft); }

.hours-disclaimer {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 16px;
}
.hours-disclaimer svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--terracotta); }

/* ===== Sección Pastoral / Donación ===== */
.pastoral-section {
  background: linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%);
}

.pastoral-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-card);
}
.pastoral-icon-wrap svg { width: 26px; height: 26px; color: var(--terracotta); }

.pastoral-section .section-head { max-width: 640px; }

.pastoral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 28px;
}

.pastoral-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.pastoral-item svg { width: 26px; height: 26px; color: var(--green-mid); margin: 0 auto 10px; }
.pastoral-item span { font-weight: 600; font-size: 0.92rem; }

.pastoral-note {
  max-width: 640px;
  margin: 0 auto 28px;
  background: rgba(255,255,255,0.6);
  border: 1px solid #F0DCC0;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.pastoral-note strong { color: var(--terracotta-deep); }

.pastoral-cta { text-align: center; }

/* ===== Ubicación ===== */
.location-section { background: var(--white); }

.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.location-cards { display: flex; flex-direction: column; gap: 16px; }

.location-card {
  background: var(--mint-card);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 14px;
}
.location-card svg { width: 22px; height: 22px; color: var(--green-mid); flex-shrink: 0; margin-top: 2px; }
.location-card h4 { font-size: 1rem; margin-bottom: 6px; }
.location-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 8px; }
.location-card a.link { color: var(--green-mid); font-weight: 600; font-size: 0.88rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand .logo-text-sub { color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); max-width: 260px; }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #8FD9B4; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--white); }

/* ===== Botón flotante WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; color: var(--white); }

/* ===== Página legal (Política de Privacidad) ===== */
.legal-hero {
  background: var(--mint-bg);
  padding: 56px 0 40px;
  text-align: center;
}
.legal-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.legal-hero p { color: var(--ink-soft); }

.legal-content { padding: 56px 0 88px; }
.legal-content .container { max-width: 760px; }

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--green-deep);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--ink-soft); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 0; display: flex; flex-direction: column; gap: 8px; }
.legal-content li {
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-mid);
}
.legal-content strong { color: var(--ink); }
.legal-updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border-soft);
  margin-top: 36px;
  padding-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .ecg-grid, .doctor-grid, .pricing-hours-grid, .location-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-card { flex: 0 0 calc((100% - 22px) / 2); }
  .pastoral-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .service-card { flex: 0 0 100%; }
  .carousel-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .pastoral-grid { grid-template-columns: 1fr 1fr; }
  .doctor-grid { gap: 32px; }
}

@media (max-width: 480px) {
  .pastoral-grid { grid-template-columns: 1fr; }
}

/* Menú móvil */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 24px 18px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 500;
}
.mobile-nav .header-actions {
  margin-top: 14px;
  flex-direction: column;
  align-items: stretch;
}
.mobile-nav .header-actions .btn { justify-content: center; }
