/* ==========================================================
   Estilos propios del sitio "Funerales Eterna"
   (se cargan después de style.css)
   ========================================================== */

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--primary-color);
  letter-spacing: .5px;
  line-height: 1;
}
.logo-text small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-top: 4px;
}

/* Banner de páginas internas */
.page-banner {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 13, .55);
}
.page-banner .container-lg { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; }
.page-banner .breadcrumb a,
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item.active,
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.85); }

/* Accesos rápidos (estilo Velagio) */
.quick-access { margin-top: -70px; position: relative; z-index: 5; }
.quick-card {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 28px 18px;
  text-align: center;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
  display: block;
  color: var(--black-color);
}
.quick-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.12); color: var(--black-color); }
.quick-card iconify-icon { font-size: 2.6rem; color: var(--secondary-color); }
.quick-card h6 { margin: 12px 0 0; font-size: 1rem; }

/* Tarjetas de características */
.feature-box { border: 1px solid #e6e1dc; padding: 30px; height: 100%; background: #fff; }
.feature-box iconify-icon { font-size: 2.4rem; color: var(--secondary-color); }

/* Planes */
.plan-card { border: 1px solid #e6e1dc; background: #fff; padding: 36px 28px; height: 100%; display: flex; flex-direction: column; }
.plan-card.destacado { border: 2px solid var(--secondary-color); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.plan-card .precio { font-family: "Playfair Display", serif; font-size: 2.4rem; color: var(--primary-color); }
.plan-card ul { padding-left: 0; list-style: none; flex-grow: 1; }
.plan-card ul li { padding: 8px 0; border-bottom: 1px dashed #e6e1dc; }
.plan-card ul li iconify-icon { color: var(--secondary-color); margin-right: 6px; vertical-align: -2px; }

/* Panel de formularios (contacto, atención inmediata) */
.panel-form { position: sticky; top: 20px; background: #fff; border: 1px solid #e6e1dc; padding: 28px; }

/* Galería */
.gal-img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Florería */
.flor-card img { aspect-ratio: 5/6; object-fit: cover; width: 100%; }
.carrito { position: sticky; top: 20px; background: #fff; border: 1px solid #e6e1dc; padding: 24px; }
.carrito-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed #e6e1dc; }

/* Obituarios */
.obit-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

/* Salas */
.sala-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Sucursales */
.sucursal { border-left: 3px solid var(--secondary-color); padding: 14px 18px; background: #fff; margin-bottom: 14px; cursor: pointer; }
.sucursal.activa { background: #f6f1ec; }
.mapa-wrap iframe { width: 100%; height: 420px; border: 0; }

/* Pasos (trámites / atención inmediata) */
.paso { display: flex; gap: 18px; margin-bottom: 26px; }
.paso .num {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  background: var(--secondary-color); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 1.3rem;
}

/* Franja 24 horas */
.franja-24 { background: var(--primary-color); color: #fff; }
.franja-24 h2, .franja-24 p { color: #fff; }

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  font-size: 2rem;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

.nav-link.active { color: var(--secondary-color) !important; }
.btn-header { padding: 10px 22px !important; }

.error-num { font-family: "Playfair Display", serif; font-size: 8rem; color: var(--secondary-color); line-height: 1; }

/* Títulos en español: sin mayúscula en cada palabra */
h1, h2, h3, h4, h5, h6, .banner-title, .quick-card h6 { text-transform: none !important; }
#footer .info li { word-break: break-word; }
/* Evita el scroll horizontal que provocan los gutters g-5 de Bootstrap */
html, body { overflow-x: clip; }
/* Tarjetas de servicios con la misma proporción */
.svc-img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ==========================================================
   Barra superior + menú fijos al hacer scroll
   ========================================================== */
#header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  transition: box-shadow .25s;
}
#header.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .10); }
/* que los anclas (#planes, #condolencias...) no queden tapados por la barra */
html { scroll-padding-top: 150px; }

/* ==========================================================
   Logo Velagio Memorial (texto + paloma)
   ========================================================== */
.logo-velagio {
  display: inline-flex;
  align-items: center;
  font-family: "Playfair Display", "Times New Roman", serif;
  line-height: 1;
  --oro: linear-gradient(180deg, #e2c584 0%, #c9a65f 45%, #a8803c 100%);
}
.logo-velagio .lv-dove { height: 54px; width: auto; margin-right: 6px; }
.logo-velagio .lv-v,
.logo-velagio .lv-top,
.logo-velagio .lv-bot {
  background: var(--oro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-velagio .lv-v { font-size: 68px; font-weight: 500; margin-right: -4px; }
.logo-velagio .lv-words { display: flex; flex-direction: column; justify-content: center; }
.logo-velagio .lv-top,
.logo-velagio .lv-bot { font-size: 20px; letter-spacing: 1.8px; font-weight: 500; }
.logo-velagio .lv-top { padding-left: 4px; position: relative; padding-bottom: 5px; margin-bottom: 4px; }
/* la línea dorada con el punto al final */
.logo-velagio .lv-top::after {
  content: "";
  position: absolute; left: -10px; right: -22px; bottom: 0;
  height: 1.5px; background: #b8924a;
}
.logo-velagio .lv-top::before {
  content: "";
  position: absolute; right: -27px; bottom: -3px;
  width: 7px; height: 7px; border-radius: 50%; background: #c9a65f;
}
@media (max-width: 575px) {
  .logo-velagio .lv-dove { height: 36px; }
  .logo-velagio .lv-v { font-size: 46px; }
  .logo-velagio .lv-top, .logo-velagio .lv-bot { font-size: 14px; }
}

/* Al bajar sólo aparece la sombra; la barra NO cambia de tamaño
   (cambiarlo provocaba que "vibrara" cerca del inicio de la página) */

/* Redes sociales del pie de página */
.red-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--accent-color); color: var(--accent-color);
  transition: all .3s ease;
}
.red-social:hover { background: var(--accent-color); color: #fff; }
.red-social svg { fill: currentColor; }
.whatsapp-float svg { fill: currentColor; }

/* Que el botón flotante de WhatsApp no tape "Llamar ahora" en la franja negra */
@media (min-width: 992px) { .franja-24 .container-lg { padding-right: 90px; } }

/* Etiqueta "Funeraria en Ixtapaluca" (SEO) */
.eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-size: .85rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase !important; color: var(--secondary-color);
}
.page-banner .eyebrow { color: #e2c584; }
h1.eyebrow-hero { color: #e2c584; font-size: .95rem; line-height: 1.4; }
#funeraria-ixtapaluca a { color: var(--primary-color); text-decoration: underline; text-decoration-color: var(--secondary-color); }

/* Nuestro equipo (Nosotros) */
.equipo-img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.equipo-grupo {
  font-family: "Source Sans 3", sans-serif; font-size: .85rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase !important; color: var(--secondary-color);
}

/* =====================================================================
   RESPONSIVO MÓVIL / TABLET (menú, encabezado, carrusel y secciones)
   ===================================================================== */
:root { color-scheme: only light; }   /* evita que el navegador oscurezca la página solo */

/* ---- Menú lateral (hasta 1199px) ---- */
@media (max-width: 1199px) {
  .offcanvas.offcanvas-end { width: clamp(200px, 58vw, 250px) !important; max-width: 100%; border: 0 !important; box-shadow: -10px 0 30px rgba(0,0,0,.14); }
  .offcanvas-backdrop.show { opacity: .35; }
  .offcanvas-header { padding: 14px 18px 0 !important; margin-top: 0 !important; }
  .offcanvas-header .btn-close { width: .7rem; height: .7rem; opacity: .6; }
  .offcanvas-body { padding: 4px 20px 20px; }
  a.nav-link, span.breadcrumb-item.banner-title.active { font-size: 1.25rem; padding: 11px 0; }
  .offcanvas .dropdown-menu { font-size: 1rem; }
  .offcanvas .btn-header { padding: 9px 18px !important; font-size: .85rem; margin-top: 8px; }
}

/* ---- Encabezado, logo y carrusel (hasta 991px) ---- */
@media (max-width: 991px) {
  #primary-header { padding-top: .5rem !important; padding-bottom: .5rem !important; }
  .header-top { padding-top: 2px !important; padding-bottom: 2px !important; }
  .header-top .fs-6 { font-size: .85rem !important; }
  .logo-velagio .lv-dove { height: 38px; }
  .logo-velagio .lv-v { font-size: 50px; }
  .logo-velagio .lv-top, .logo-velagio .lv-bot { font-size: 14px; letter-spacing: 1.4px; }
  .navbar-toggler .navbar-icon { width: 38px; height: 38px; }

  section#slider .swiper-slide { height: 68vh !important; min-height: 340px; align-items: center; overflow: hidden; }
  section#slider .swiper-slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); z-index: 0; }
  section#slider .banner-content { position: relative; z-index: 1; width: 82% !important; padding: 0; }
  section#slider .banner-title { font-size: clamp(1.45rem, min(6.2vw, 8vh), 2.7rem) !important; line-height: 1.15; margin-bottom: .6rem !important; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
  section#slider .banner-content p { font-size: clamp(.85rem, min(3.4vw, 4.6vh), 1.15rem) !important; margin-bottom: .8rem !important; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
  section#slider .banner-content .eyebrow { font-size: .72rem; letter-spacing: .14em; margin-bottom: .5rem !important; }
  section#slider .banner-content .btn { padding: .5rem 1.15rem; font-size: .8rem; margin-top: 0 !important; }
  section#slider .main-slider-button-next, section#slider .main-slider-button-prev { transform: scale(.65); }

  .whatsapp-float { width: 48px; height: 48px; right: 14px; bottom: 14px; font-size: 1.6rem; }
}

/* ---- Teléfonos acostados (poca altura): encabezado compacto y sin barra fija ---- */
@media (max-height: 520px) and (max-width: 991px) {
  #header { position: relative; }
  .header-top { display: none; }
  .logo-velagio .lv-dove { height: 30px; }
  .logo-velagio .lv-v { font-size: 38px; }
  .logo-velagio .lv-top, .logo-velagio .lv-bot { font-size: 11px; letter-spacing: 1px; }
  .navbar-toggler .navbar-icon { width: 30px; height: 30px; }
  section#slider .swiper-slide { height: calc(100vh - 62px) !important; min-height: 260px; }
  .page-banner { min-height: 200px; }
}

/* ---- Secciones y títulos en teléfonos ---- */
@media (max-width: 767px) {
  .padding-medium, .padding-large { padding-top: 3em !important; padding-bottom: 3em !important; }
  .display-5 { font-size: 1.85rem; }
  .display-4 { font-size: 2.1rem; }
  .display-3, .display-2, .display-1 { font-size: 2.3rem; }
  .page-banner { min-height: 220px; }
  .page-banner h1 { font-size: 1.9rem; }
  .btn { font-size: .85rem; }
  .section-title { margin-bottom: 1.5rem !important; }
}

/* ---- Protección ligera de imágenes (disuade; no es infalible) ---- */
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }

/* ---- Dónde atendemos: carrusel de zonas ---- */
.zona-chip { display: inline-block; margin: .18rem .12rem; padding: .22rem .7rem; border: 1px solid #e3dbd2; border-radius: 999px; background: #faf6f1; font-size: .8rem; color: #4a423b; }
.zonas-wrap { position: relative; padding: 0 56px 46px; }
.zonas-swiper { overflow: hidden; padding: 6px 4px 10px; }
.zonas-swiper .swiper-slide { height: auto; }
.zona-card { height: 100%; background: #fff; border: 1px solid #ece5dc; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(40,30,20,.08); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.zona-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(40,30,20,.14); }
.zona-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.zona-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.zona-card:hover .zona-card__img img { transform: scale(1.06); }
.zona-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.zona-card__num { position: absolute; left: 16px; bottom: 10px; z-index: 1; color: #fff; font-family: "Playfair Display", serif; font-size: 1.6rem; letter-spacing: .05em; }
.zona-card__body { padding: 20px 22px 24px; }
.zona-card__eyebrow { margin: 0 0 4px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #b08a6e; font-weight: 600; }
.zona-card__body h3 { font-size: 1.35rem; margin: 0 0 8px; }
.zona-card__desc { font-size: .92rem; color: #6c6258; margin: 0 0 12px; }
.zonas-prev, .zonas-next { position: absolute; top: 40%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #1a1612; background: #fff; color: #1a1612; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s; }
.zonas-prev { left: 0; } .zonas-next { right: 0; }
.zonas-prev:hover, .zonas-next:hover { background: #1a1612; color: #fff; }
.zonas-dots { bottom: 0 !important; }
.zonas-dots .swiper-pagination-bullet { width: 9px; height: 9px; background: #c4a590; opacity: .45; }
.zonas-dots .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }
@media (max-width: 575px) { .zonas-wrap { padding: 0 0 42px; } .zonas-prev, .zonas-next { display: none; } }
.zonas-stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 28px 0 8px; }
.zonas-stats div { min-width: 150px; text-align: center; padding: 14px 20px; border: 1px solid #ece5dc; border-radius: 10px; background: #fff; }
.zonas-stats strong { display: block; font-family: "Playfair Display", serif; font-size: 1.9rem; color: #b08a6e; line-height: 1.1; }
.zonas-stats span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #6c6258; }

/* ---- Ubicación ---- */
.info-card { height: 100%; background: #fff; border: 1px solid #ece5dc; border-radius: 10px; padding: 24px 20px; text-align: center; box-shadow: 0 8px 22px rgba(40,30,20,.06); }
.info-card iconify-icon { font-size: 2rem; color: #b08a6e; }
.info-card h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.info-card p { margin: 0; font-size: .92rem; color: #6c6258; }
.info-card a { color: inherit; text-decoration: none; }
.mapa-frame { border-radius: 12px; overflow: hidden; box-shadow: 0 14px 36px rgba(40,30,20,.16); border: 1px solid #ece5dc; }
.sede-foto { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.sede-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sede-foto:hover img { transform: scale(1.06); }
.sede-foto span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: #fff; font-size: .95rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }
