/* =========================================================
   Librería Cristiana Ágape — hoja de estilos principal
   ========================================================= */

@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta — verde agua */
  --teal-800: #00594f;
  --teal-700: #00776a;
  --teal-600: #009688;
  --teal-500: #00bfa6;
  --teal-300: #7fe3d9;
  --teal-100: #d8f7f2;
  --teal-50:  #eefcfa;

  /* Acento cálido discreto */
  --gold-500: #c9a24b;

  /* Neutros */
  --ink-900: #172420;
  --ink-700: #3d4b47;
  --ink-500: #6b7976;
  --ink-300: #a9b3b0;
  --cream:   #fffdf8;
  --white:   #ffffff;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(23, 36, 32, 0.06);
  --shadow-md: 0 12px 30px rgba(23, 36, 32, 0.10);
  --shadow-lg: 0 24px 60px rgba(23, 36, 32, 0.16);

  --ease: cubic-bezier(.22, .68, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--teal-700);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

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

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

section { padding-block: clamp(56px, 8vw, 108px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

h1, .h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
h2, .h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
h3, .h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-900);
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-500);
  line-height: 1.65;
  max-width: 54ch;
}
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline.on-light {
  border-color: var(--ink-300);
  color: var(--ink-900);
}
.btn-outline.on-light:hover { background: var(--teal-50); border-color: var(--teal-500); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(23,36,32,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding-block: 6px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--teal-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--teal-700); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { margin: 6px 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }

.mobile-panel {
  display: none;
  position: fixed;
  inset: 82px 0 0 0;
  background: var(--cream);
  z-index: 480;
  overflow-y: auto;
  padding: 28px 24px 40px;
}
.mobile-panel.open { display: block; animation: fadeSlide .3s var(--ease); }
.mobile-panel .nav-links { flex-direction: column; gap: 4px; }
.mobile-panel .nav-links a { display: block; padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid rgba(23,36,32,0.08); }
.mobile-panel .nav-actions { margin-top: 24px; flex-direction: column; align-items: stretch; }
.mobile-panel .social-row { margin-top: 28px; justify-content: center; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,20,18,0.35) 0%, rgba(9,20,18,0.35) 35%, rgba(6,26,23,0.86) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 60px 72px;
  max-width: 760px;
}
.hero .eyebrow { color: var(--teal-300); }
.hero .eyebrow::before { background: var(--teal-300); }
.hero h1 { color: var(--white); margin-block: 18px 20px; }
.hero .lead { color: rgba(255,255,255,0.86); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.page-banner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.page-banner .hero-media::after {
  background: linear-gradient(180deg, rgba(9,20,18,0.45) 0%, rgba(6,26,23,0.88) 100%);
}
.page-banner .hero-content { padding-block: 40px 48px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Franja de confianza ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(23,36,32,0.06);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 30px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { width: 26px; height: 26px; color: var(--teal-600); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.95rem; color: var(--ink-900); }
.trust-item span { font-size: 0.85rem; color: var(--ink-500); }

@media (max-width: 900px) {
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Intro / bienvenida ---------- */
.intro { background: var(--cream); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.intro-figure { position: relative; }
.intro-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.intro-figure .figure-tag {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.intro-figure .figure-tag svg { width: 30px; height: 30px; color: var(--teal-600); }
.intro-figure .figure-tag strong { display: block; font-size: 1.05rem; color: var(--ink-900); }
.intro-figure .figure-tag span { font-size: 0.82rem; color: var(--ink-500); }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .intro-figure { order: -1; }
  .intro-figure .figure-tag { left: 16px; bottom: -18px; }
}

/* ---------- Categorías ---------- */
.categories { background: var(--teal-50); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card .cat-icon,
.value-card .cat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.cat-card .cat-icon svg,
.value-card .cat-icon svg { width: 26px; height: 26px; color: var(--teal-700); flex-shrink: 0; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { font-size: 0.92rem; color: var(--ink-500); line-height: 1.55; }
.cat-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cat-note svg { width: 18px; height: 18px; color: var(--gold-500); }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}
.gallery-grid a { border-radius: var(--radius-md); overflow: hidden; position: relative; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .wide { grid-column: span 2; }
}

/* ---------- Versículo ---------- */
.verse {
  background: var(--teal-800);
  color: var(--white);
  text-align: center;
  position: relative;
}
.verse::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 7rem;
  color: var(--teal-600);
  display: block;
  line-height: 1;
  margin-bottom: -18px;
}
.verse blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
}
.verse cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-300);
}

/* ---------- Visítanos / franja de contacto ---------- */
.visit { background: var(--cream); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.visit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.visit-card .info-row {
  display: flex;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid rgba(23,36,32,0.07);
}
.visit-card .info-row:last-child { border-bottom: none; }
.visit-card .info-row svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }
.visit-card .info-row strong { display: block; color: var(--ink-900); margin-bottom: 2px; }
.visit-card .info-row span, .visit-card .info-row a { font-size: 0.94rem; color: var(--ink-500); }
.visit-card .info-row a:hover { color: var(--teal-700); }
.visit-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 320px; }
.visit-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

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

/* ---------- Social row ---------- */
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-50);
  color: var(--teal-700);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.social-row a:hover { background: var(--teal-700); color: var(--white); transform: translateY(-3px); }
.social-row a svg { width: 19px; height: 19px; }
.footer .social-row a { background: rgba(255,255,255,0.08); color: var(--teal-300); }
.footer .social-row a:hover { background: var(--teal-500); color: var(--teal-800); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,0.72); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-block: 64px 44px;
}
.footer-brand .logo-badge {
  display: inline-flex;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 18px;
}
.footer-brand .logo-badge img { height: 32px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.6; max-width: 34ch; margin-bottom: 22px; }
.footer h4 { color: var(--white); font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li { margin-bottom: 12px; font-size: 0.94rem; }
.footer a:hover { color: var(--teal-300); }
.footer address { font-style: normal; font-size: 0.94rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; padding-block: 48px 32px; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  z-index: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55); }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: pulse-ring 2.6s var(--ease) infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .55; }
  80% { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Utilidades de página interior ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card { text-align: center; padding: 8px; }
.value-card .cat-icon { margin-inline: auto; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }

.cta-banner {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.8); margin-top: 10px; max-width: 46ch; }
.cta-banner .btn-primary { background: var(--white); color: var(--teal-800); }
.cta-banner .btn-primary:hover { background: var(--teal-100); }

/* ---------- Tabla de horario ---------- */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid rgba(23,36,32,0.07); }
.hours-table td:first-child { color: var(--ink-900); font-weight: 500; }
.hours-table td:last-child { text-align: right; color: var(--ink-500); }
.hours-table tr.closed td:last-child { color: var(--gold-500); font-weight: 500; }

/* ---------- Catálogo: filtros ---------- */
.catalog-toolbar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 36px;
}
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: 0.82rem; font-weight: 600; color: var(--ink-700); }
.field-group input[type="text"],
.field-group input[type="search"],
.field-group select {
  border: 1.5px solid rgba(23,36,32,0.12);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--cream);
}
.field-group input[type="range"] { width: 100%; accent-color: var(--teal-600); }
.field-group .range-value { font-size: 0.82rem; color: var(--ink-500); }
.catalog-toolbar .btn { white-space: nowrap; }

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.92rem;
  color: var(--ink-500);
}

.catalog-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-500);
}
.catalog-state.hidden-state { display: none; }

@media (max-width: 1024px) {
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .catalog-toolbar { grid-template-columns: 1fr; padding: 22px; }
}

/* ---------- Tarjetas de producto ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 460px) { .catalog-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prod-thumb { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--teal-50); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-cat { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-700); }
.prod-body h3 { font-size: 1.02rem; line-height: 1.35; }
.prod-body h3 a:hover { color: var(--teal-700); }
.prod-autor { font-size: 0.85rem; color: var(--ink-500); }
.prod-precio { font-size: 1.1rem; font-weight: 700; color: var(--ink-900); margin-top: 4px; }
.prod-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 14px; }
.prod-actions .btn { width: 100%; }
.prod-actions .btn svg { width: 17px; height: 17px; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--white);
}
.badge-gold { background: var(--gold-500); }
.badge-muted { background: var(--ink-500); left: auto; right: 12px; top: 12px; }
.badge.badge-gold + .badge.badge-muted { top: 46px; right: 12px; left: auto; }
.badge-teal { background: var(--teal-600); color: var(--white); display: inline-flex; padding: 6px 14px; position: static; border-radius: 999px; font-size: 0.8rem; }

/* ---------- Ficha de producto ---------- */
.breadcrumb { font-size: 0.88rem; color: var(--ink-500); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--teal-700); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.p-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--teal-50);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 5;
}
.p-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.p-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.p-thumb-btn {
  width: 68px; height: 68px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--teal-50);
}
.p-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.p-thumb-btn.active { border-color: var(--teal-600); }

.p-info .prod-cat { margin-bottom: 10px; }
.p-info h1 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.p-info .prod-autor { font-size: 1rem; margin-bottom: 14px; }
.p-info .p-precio-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.p-info .p-precio-row .prod-precio { font-size: 1.6rem; margin: 0; }
.p-info .p-precio-row .badge { position: static; }
.p-info .p-descripcion { color: var(--ink-500); line-height: 1.75; margin-bottom: 28px; }
.p-info .btn-block { margin-bottom: 14px; }

.stars { display: inline-flex; gap: 2px; color: var(--gold-500); margin-bottom: 10px; }
.stars svg { width: 16px; height: 16px; }

.resena-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.resena-card p { color: var(--ink-700); font-style: italic; margin-bottom: 10px; line-height: 1.6; }
.resena-card strong { font-size: 0.88rem; color: var(--ink-500); font-style: normal; }
.resenas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .resenas-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog / devocionales ---------- */
.blog-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 28px;
}
.blog-toolbar select {
  border: 1.5px solid rgba(23,36,32,0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  background: var(--white);
  color: var(--ink-900);
}

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

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--teal-50); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-date-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
}
.post-date-badge strong { display: block; font-size: 1.15rem; color: var(--ink-900); }
.post-date-badge span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; color: var(--teal-700); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h3 { font-size: 1.08rem; line-height: 1.35; }
.post-body h3 a:hover { color: var(--teal-700); }
.post-resumen { font-size: 0.92rem; color: var(--ink-500); line-height: 1.6; }
.post-readmore { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 0.9rem; color: var(--teal-700); }
.post-readmore:hover { text-decoration: underline; }

.post-header { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 36px; }
.post-header .prod-cat { justify-content: center; display: flex; }
.post-header h1 { margin-block: 14px 10px; }
.post-header .post-meta { color: var(--ink-500); font-size: 0.92rem; }
.post-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); max-width: 860px; margin: 0 auto 40px; aspect-ratio: 21/9; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-cuerpo { max-width: 700px; margin-inline: auto; color: var(--ink-700); line-height: 1.85; font-size: 1.05rem; }
.post-cuerpo p { margin-bottom: 22px; }

/* ---------- Eventos ---------- */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .event-grid { grid-template-columns: 1fr; } }

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex;
  gap: 20px;
}
.event-date-badge {
  flex-shrink: 0;
  width: 68px; height: 68px;
  border-radius: 14px;
  background: var(--teal-100);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-date-badge strong { font-size: 1.4rem; color: var(--teal-800); line-height: 1; }
.event-date-badge span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; color: var(--teal-700); margin-top: 4px; }
.event-body h3 { margin-bottom: 6px; }
.event-meta { font-size: 0.88rem; color: var(--ink-500); margin-bottom: 2px; }
.event-desc { font-size: 0.92rem; color: var(--ink-700); margin-block: 10px; line-height: 1.6; }
.event-cupo { font-size: 0.82rem; color: var(--gold-500); font-weight: 600; margin-bottom: 12px; }
.event-card.past { opacity: 0.72; }

.insc-form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); max-width: 620px; margin-inline: auto; }
.insc-form .field-group { margin-bottom: 18px; }
.insc-form label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.insc-form input, .insc-form select, .insc-form textarea {
  width: 100%;
  border: 1.5px solid rgba(23,36,32,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--cream);
}
.insc-form textarea { resize: vertical; min-height: 90px; }
.insc-form .social-row { justify-content: center; margin-top: 22px; }
.insc-form .form-note { text-align: center; font-size: 0.85rem; color: var(--ink-500); margin-top: 16px; }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background: var(--white); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.testi-card p { color: var(--ink-700); font-style: italic; line-height: 1.6; margin-bottom: 14px; }
.testi-card strong { display: block; font-size: 0.92rem; color: var(--ink-900); }
.testi-card span { font-size: 0.82rem; color: var(--ink-500); }

/* ---------- Newsletter (placeholder reservado, no visible) ----------
   Ver instrucciones al final de index.html: sección comentada,
   lista para activarse cuando se defina el proveedor de envíos. */
