/* ==========================================
   MOMENTOS
   Identidad visual - Versión inicial
   ========================================== */

/* 1. PALETA DE COLORES */

:root {
  --momentos-marfil: #F7F2EA;
  --momentos-beige:
    #E9D9C5;
  --momentos-dorado: #C9A77E;
  --momentos-cafe: #35251D;
  --momentos-texto: #46372F;
}

/* 2. FONDO GENERAL */

body {
  background-color: var(--momentos-marfil);
  color: var(--momentos-texto);
}

/* 3. ENCABEZADO */

.container-header {
  background: var(--momentos-marfil);
  background-image: none;
  color: var(--momentos-cafe);
  box-shadow: 0 2px 12px rgba(53, 37, 29, 0.08);
}

/* 4. NOMBRE DE LA MARCA */

.container-header .navbar-brand a,
.container-header .navbar-brand .brand-logo {
  color: var(--momentos-cafe) !important;
  text-decoration: none;
}

/* 5. ESLOGAN */

html body .container-header .navbar-brand .site-description {
  color: #9B744D !important;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.5;
}

/* 6. ENLACES */

a {
  color: var(--momentos-cafe);
}

a:hover {
  color: #9B744D;
}

/* 7. TITULOS */

h1, h2, h3, h4, h5, h6 {
  color: var(--momentos-cafe);
}
/* MENU HORIZONTAL - MOMENTOS */

.container-header .mod-menu {
  color: var(--momentos-cafe);
}

.container-header .mod-menu a {
  color: var(--momentos-cafe);
  text-decoration: none;
}

.container-header .mod-menu a:hover {
  color: #9B744D;
}
/* CORRECCIÓN DEL COLOR DEL MENÚ */

.container-header .mod-menu .nav-item a,
.container-header .mod-menu .nav-item a:visited {
  color: #35251D !important;
}

.container-header .mod-menu .nav-item a:hover {
  color: #9B744D !important;
}

/* MOMENTOS - SLIDER PRINCIPAL */

.momentos-slider {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: 580px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(
    110deg,
    #49362c 0%,
    #79604b 55%,
    #b49a7c 100%
  );
  color: #fffaf3;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.momentos-slide {
  width: 100%;
  padding: 90px max(6%, calc((100vw - 1200px) / 2));
}

.momentos-slide-contenido {
  max-width: 650px;
}

.momentos-etiqueta {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 22px;
  color: #e8d0ae;
}

.momentos-slider h1 {
  color: #fffaf3;
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
}

.momentos-slider p {
  color: #f5e9da;
  font-size: 18px;
  line-height: 1.7;
  max-width: 530px;
}

@media (max-width: 768px) {
  .momentos-slider {
    min-height: 480px;
  }

  .momentos-slide {
    padding: 65px 25px;
  }

  .momentos-slider p {
    font-size: 16px;
  }
}

/* MOMENTOS - FOTOGRAFÍA DE PRUEBA */

.momentos-slider {
  background-image:
    linear-gradient(
      90deg,
      rgba(35, 24, 19, 0.88) 0%,
      rgba(45, 31, 24, 0.70) 38%,
      rgba(45, 31, 24, 0.12) 100%
    ),
    url("/images/momentos/img%20prueba1.jpg");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* MOMENTOS - CARRUSEL DE TRES ESCENAS */

.momentos-slider {
  position: relative;
  height: 580px;
  min-height: 0;
  display: block;
  isolation: isolate;
}

.momentos-slider .momentos-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: momentos-cambio 21s infinite;
}

.momentos-slider .momentos-slide-1 {
  background-image:
    linear-gradient(90deg, rgba(35,24,19,.88), rgba(35,24,19,.08)),
    url("/images/momentos/img%20prueba1.jpg");
  
}

.momentos-slider .momentos-slide-2 {
  background-image:
    linear-gradient(90deg, rgba(35,24,19,.88), rgba(35,24,19,.08)),
    url("/images/momentos/img%20prueba2.jpg");
  
}

.momentos-slider .momentos-slide-3 {
  background-image:
    linear-gradient(90deg, rgba(35,24,19,.88), rgba(35,24,19,.08)),
    url("/images/momentos/img%20prueba3.jpg");
  
}

.momentos-slider .momentos-slide h2 {
  color: #fffaf3;
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
}



/* MOMENTOS - SECUENCIA CORREGIDA DEL SLIDER */

.momentos-slider .momentos-slide {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

.momentos-slider .momentos-slide-1 {
  animation: momentos-escena-1 21s linear infinite;
}

.momentos-slider .momentos-slide-2 {
  animation: momentos-escena-2 21s linear infinite;
}

.momentos-slider .momentos-slide-3 {
  animation: momentos-escena-3 21s linear infinite;
}

@keyframes momentos-escena-1 {
  0%, 30% {
    opacity: 1;
    visibility: visible;
  }
  33.333%, 96.666% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes momentos-escena-2 {
  0%, 30% {
    opacity: 0;
    visibility: hidden;
  }
  33.333%, 63.333% {
    opacity: 1;
    visibility: visible;
  }
  66.666%, 100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes momentos-escena-3 {
  0%, 63.333% {
    opacity: 0;
    visibility: hidden;
  }
  66.666%, 96.666% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* MOMENTOS - FLECHAS DEL SLIDER */

.momentos-slider .momentos-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 64px;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;

  color: rgba(255, 255, 255, 0.55);
  font-size: 36px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
  transition: color 0.3s ease;
}

.momentos-slider .momentos-anterior {
  left: 22px;
}

.momentos-slider .momentos-siguiente {
  right: 22px;
}

.momentos-slider .momentos-flecha:hover,
.momentos-slider .momentos-flecha:focus-visible {
  color: rgba(255, 255, 255, 1);
  background: transparent;
}

@media (max-width: 768px) {
  .momentos-slider .momentos-flecha {
    width: 32px;
    height: 48px;
    font-size: 26px;
  }

  .momentos-slider .momentos-anterior {
    left: 5px;
  }

  .momentos-slider .momentos-siguiente {
    right: 5px;
  }
}

/* MOMENTOS - INDICADORES DEL SLIDER */

.momentos-indicadores {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.momentos-indicador {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.3s ease,
              transform 0.3s ease;
}

.momentos-indicador.activo {
  background: #ffffff;
  transform: scale(1.25);
}

.momentos-indicador:hover,
.momentos-indicador:focus-visible {
  background: rgba(255, 255, 255, 0.85);
}

/* MOMENTOS - OPTIMIZACIÓN PARA CELULARES */

@media (max-width: 768px) {

  /* Altura del slider */
  .momentos-slider {
    height: 520px;
    min-height: 0;
  }

  /* Distribución del contenido */
  .momentos-slider .momentos-slide {
    padding: 65px 48px 75px;
    align-items: center;
    background-position: center center;
  }

  .momentos-slider .momentos-slide-contenido {
    max-width: 100%;
  }

  /* Etiqueta superior */
  .momentos-slider .momentos-etiqueta {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }

  /* Títulos */
  .momentos-slider h1,
  .momentos-slider h2 {
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.2;
    margin-bottom: 16px;
  }

  /* Descripción */
  .momentos-slider p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Flechas laterales */
  .momentos-slider .momentos-flecha {
    width: 30px;
    height: 44px;
    font-size: 25px;
  }

  .momentos-slider .momentos-anterior {
    left: 5px;
  }

  .momentos-slider .momentos-siguiente {
    right: 5px;
  }

  /* Indicadores inferiores */
  .momentos-indicadores {
    bottom: 20px;
  }
}

/* MOMENTOS - ENCABEZADO COMPACTO EN CELULARES */

@media (max-width: 768px) {

  /* Reducir espacios del encabezado */
  .container-header {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Compactar la zona de marca */
  .container-header .navbar-brand {
    margin: 0;
    padding: 0;
  }

  /* Nombre de la marca */
  .container-header .site-title {
    font-size: 28px;
    line-height: 1.15;
    margin: 0;
  }

  /* Eslogan */
  .container-header .site-description {
    font-size: 11px;
    letter-spacing: 1.5px;
    line-height: 1.4;
    margin-top: 4px;
    margin-bottom: 0;
  }

  /* Reducir espacio del menú */
  .container-header .container-nav {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .container-header .mod-menu {
    margin: 0;
  }

  .container-header .mod-menu a {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

/* MOMENTOS - ALTURA FINAL DEL SLIDER EN CELULARES */

@media (max-width: 768px) {
  .momentos-slider {
    height: 450px;
    min-height: 0;
  }
}

/* =========================================
   MOMENTOS - SECCION COMO FUNCIONA
========================================= */

.momentos-como-funciona {
  display: grid;
  grid-template-columns: 44% 56%;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #F7F2EA;
  color: #46372F;
  box-sizing: border-box;
}

/* Espacio para la fotografía */

.momentos-como-imagen {
  min-height: 380px;
  background-color: #E9D9C5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contenido principal */

.momentos-como-contenido {
  padding: 55px 7%;
  box-sizing: border-box;
}

.momentos-como-etiqueta {
  display: block;
  color: #9B744D;
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.momentos-como-contenido h2 {
  color: #35251D;
  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

.momentos-como-intro {
  color: #79593C;
  font-size: 16px;
  margin-bottom: 32px;
}

/* Tres pasos */

.momentos-pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.momentos-paso {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid #D7C5B1;
}

.momentos-paso:last-child {
  border-right: none;
}

.momentos-paso-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #B89A78;
  border-radius: 50%;
  color: #79593C;
  font-size: 16px;
  margin-bottom: 15px;
}

.momentos-paso h3 {
  color: #35251D;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 10px;
}

.momentos-paso p {
  color: #46372F;
  font-size: 14px;
  line-height: 1.6;
}

/* Adaptación para celulares */

@media (max-width: 768px) {

  .momentos-como-funciona {
    grid-template-columns: 1fr;
  }

  .momentos-como-imagen {
    min-height: 240px;
  }

  .momentos-como-contenido {
    padding: 35px 25px;
  }

  .momentos-como-contenido h2 {
    font-size: 30px;
  }

  .momentos-pasos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .momentos-paso {
    border-right: none;
    border-bottom: 1px solid #D7C5B1;
    padding-bottom: 18px;
  }

  .momentos-paso:last-child {
    border-bottom: none;
  }
}

/* MOMENTOS - FOTOGRAFIA COMO FUNCIONA */

.momentos-como-imagen {
  background-image: url("/images/momentos/tarjetaqrweb.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* =========================================
   MOMENTOS - NUESTROS SERVICIOS
   ========================================= */

.momentos-servicios {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 75px max(25px, calc((100vw - 1200px) / 2));
  background: #F7F2EA;
  color: #46372F;
  box-sizing: border-box;
}

/* Encabezado */

.momentos-servicios-encabezado {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 45px;
}

.momentos-servicios-etiqueta {
  display: block;
  color: #9B744D;
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.momentos-servicios-encabezado h2 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  color: #35251D;
  margin-bottom: 15px;
}

.momentos-servicios-encabezado p {
  font-size: 16px;
  line-height: 1.7;
}

/* Distribución de las tarjetas */

.momentos-servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.momentos-servicio {
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E9D9C5;
  box-shadow: 0 5px 20px rgba(53,37,29,0.06);
  overflow: hidden;
}

/* Fotografías */

.momentos-servicio-imagen {
  height: 250px;
  background-color: #E9D9C5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contenido */

.momentos-servicio-contenido {
  padding: 28px 25px 32px;
}

.momentos-servicio-contenido h3 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  color: #35251D;
  margin-bottom: 12px;
}

.momentos-servicio-frase {
  color: #9B744D;
  font-style: italic;
  font-size: 15px;
  margin-bottom: 15px;
}

.momentos-servicio-contenido p {
  line-height: 1.7;
  font-size: 14px;
}

.momentos-servicio-enlace {
  display: inline-block;
  margin-top: 18px;
  color: #79593C;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #C9A77E;
  padding-bottom: 4px;
}

/* Adaptación a celulares */

@media (max-width: 768px) {
  .momentos-servicios {
    padding: 50px 25px;
  }

  .momentos-servicios-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .momentos-servicio-imagen {
    height: 240px;
  }

  .momentos-servicios-encabezado {
    margin-bottom: 30px;
  }
}

/* MOMENTOS - IMAGENES DE SERVICIOS */

.momentos-img-celebraciones {
  background-image: url("/images/momentos/celebracionesweb.png");
}

.momentos-img-homenajes {
  background-image: url("/images/momentos/homenajesweb.png");
}

.momentos-img-agradecimientos {
  background-image: url("/images/momentos/agradecimientosweb.png");
}

/* MOMENTOS - SEPARACION ENTRE SLIDER Y COMO FUNCIONA */

.momentos-como-funciona {
  margin-top: 24px;
}

/* =========================================
   MOMENTOS - PARA FUNERARIAS
   ========================================= */

.momentos-funerarias {
  display: grid;
  grid-template-columns: 55% 45%;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #E9D9C5;
  color: #46372F;
  box-sizing: border-box;
}

/* Columna de contenido */

.momentos-funerarias-contenido {
  padding: 65px 10% 65px 15%;
  box-sizing: border-box;
}

.momentos-funerarias-etiqueta {
  display: block;
  color: #79593C;
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.momentos-funerarias-contenido h2 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 400;
  line-height: 1.2;
  color: #35251D;
  margin-bottom: 22px;
}

.momentos-funerarias-intro {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.momentos-funerarias-beneficios p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.momentos-funerarias-beneficios strong {
  color: #35251D;
}

/* Invitación comercial */

.momentos-funerarias-enlace {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 22px;
  background: #79593C;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
}

/* Fotografía */

.momentos-funerarias-imagen {
  min-height: 440px;
  background-image: url("/images/momentos/funerariasweb.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Adaptación a celulares */

@media (max-width: 768px) {
  .momentos-funerarias {
    grid-template-columns: 1fr;
  }

  .momentos-funerarias-contenido {
    padding: 40px 25px;
  }

  .momentos-funerarias-contenido h2 {
    font-size: 30px;
  }

  .momentos-funerarias-imagen {
    min-height: 300px;
    background-position: center;
  }
}

/* MOMENTOS - AJUSTE MINIMALISTA COMO FUNCIONA */

.momentos-como-funciona {
  grid-template-columns: 40% 60%;
  align-items: center;
  padding: 35px 4%;
}

.momentos-como-imagen {
  min-height: 330px;
  margin: 0 20px;
  background-position: center;
}

.momentos-como-contenido {
  padding: 25px 4%;
}

/* Adaptacion a celulares */

@media (max-width: 768px) {
  .momentos-como-funciona {
    grid-template-columns: 1fr;
    padding: 25px 15px;
  }

  .momentos-como-imagen {
    min-height: 260px;
    margin: 0;
  }

  .momentos-como-contenido {
    padding: 30px 10px;
  }
}

/* =========================================
   MOMENTOS - CUATRO TARJETAS DE SERVICIOS
   ========================================= */

.momentos-servicios-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Ajuste del contenido para cuatro columnas */

.momentos-servicio-contenido {
  padding: 24px 20px 28px;
}

.momentos-servicio-contenido h3 {
  font-size: 24px;
}

/* Pantallas medianas */

@media (max-width: 1100px) {
  .momentos-servicios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celulares */

@media (max-width: 768px) {
  .momentos-servicios-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* MOMENTOS - ALINEACION DE ENLACES */

.momentos-servicio {
  display: flex;
  flex-direction: column;
}

.momentos-servicio-contenido {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.momentos-servicio-enlace {
  align-self: flex-start;
  margin-top: auto;
}

/* =========================================
   MOMENTOS - IMAGEN DE SEIS GRADOS
   ========================================= */

.momentos-img-seisgrados {
  background-image: url("/images/momentos/seisgradosweb.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* MOMENTOS PARA TU NEGOCIO */

.momentos-funerarias {
  background: #F7F2EA;
  align-items: center;
  padding: 40px 4%;
  box-sizing: border-box;
}

.momentos-funerarias-contenido {
  padding: 30px 8%;
}

.momentos-funerarias-imagen {
  min-height: 380px;
  margin: 0 20px;
  background-position: center;
}

@media (max-width: 768px) {
  .momentos-funerarias {
    grid-template-columns: 1fr;
    padding: 25px 15px;
  }

  .momentos-funerarias-contenido {
    padding: 30px 10px;
  }

  .momentos-funerarias-imagen {
    min-height: 280px;
    margin: 0;
  }
}

/* WHATSAPP FLOTANTE - MOMENTOS */

.momentos-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 9999;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: #FFFFFF;

  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.20);

  text-decoration: none;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease;
}

.momentos-whatsapp svg {
  width: 29px;
  height: 29px;
}

.momentos-whatsapp:hover {
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Adaptación para celulares */

@media (max-width: 768px) {
  .momentos-whatsapp {
    right: 16px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }

  .momentos-whatsapp svg {
    width: 27px;
    height: 27px;
  }
}

/* NUEVA POSICIÓN - REDES FLOTANTES */

.momentos-whatsapp {
  top: 290px;
  bottom: auto;
  right: 24px;
}

@media (max-width: 768px) {
  .momentos-whatsapp {
    top: 110px;
    bottom: auto;
    right: 16px;
  }
}

/* Icono visible de WhatsApp */

.momentos-whatsapp::after {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background-image: url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/whatsapp.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0) invert(1);
}

.momentos-whatsapp svg {
  display: none;
}

/* =====================================
   PIE DE PÁGINA - MOMENTOS
   ===================================== */

.momentos-footer {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #E9D9C5;
  color: #46372F;
  box-sizing: border-box;
}

.momentos-footer-contenido {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding: 65px 8% 55px;
}

.momentos-footer h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: #35251D;
  margin: 0;
}

.momentos-footer-marca span {
  display: block;
  color: #79593C;
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 5px;
}

.momentos-footer-marca p {
  margin-top: 22px;
  max-width: 340px;
  line-height: 1.7;
}

.momentos-footer h3 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #35251D;
  margin-bottom: 22px;
}

.momentos-footer p {
  font-size: 14px;
  line-height: 1.7;
}

.momentos-footer a {
  color: #46372F;
  text-decoration: none;
}

.momentos-footer a:hover {
  color: #79593C;
  text-decoration: underline;
}

.momentos-footer-inferior {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8%;
  border-top: 1px solid #CDBBA6;
  font-size: 12px;
  color: #79593C;
}

/* Adaptación a celulares */

@media (max-width: 768px) {
  .momentos-footer-contenido {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 45px 25px;
  }

  .momentos-footer-inferior {
    flex-direction: column;
    gap: 10px;
    padding: 22px 25px;
  }
}

/* =====================================
   PAGINA NOSOTROS - MOMENTOS
   ===================================== */

.momentos-nosotros .com-content-article {
  max-width: 900px;
  margin: 45px auto 80px;
  padding: 0 25px;
}

.momentos-nosotros .com-content-article__body {
  color: #46372F;
  font-size: 16px;
  line-height: 1.85;
}

.momentos-nosotros .page-header h1,
.momentos-nosotros .page-header h2 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 400;
  color: #35251D;
  margin-bottom: 30px;
}

.momentos-nosotros .com-content-article__body h2,
.momentos-nosotros .com-content-article__body h3 {
  font-family: Georgia, serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.3;
  color: #35251D;
  margin-bottom: 25px;
}

.momentos-nosotros .com-content-article__body p {
  margin-bottom: 22px;
}

.momentos-nosotros .com-content-article__body strong {
  color: #35251D;
}

@media (max-width: 768px) {
  .momentos-nosotros .com-content-article {
    margin: 30px auto 55px;
    padding: 0 20px;
  }
}
/* AJUSTE DEL MODULO PIE DE PAGINA */

.container-footer .mod-custom {
    width: 100%;
    max-width: none;
}

.container-footer .momentos-footer {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.container-footer .momentos-footer-contenido {
    width: 100%;
}
/* FONDO UNIFICADO DEL PIE DE PÁGINA */

.container-footer {
    background: #E9D9C5;
}

.container-footer .momentos-footer {
    background: #E9D9C5;
}

/* MOMENTOS - Color del botón hamburguesa móvil */
@media (max-width: 768px) {
  .container-header .navbar-toggler {
    border-color: #35251D;
    color: #35251D;
  }

  .container-header .navbar-toggler-icon {
    filter: brightness(0) saturate(100%);
  }
}

/* MOMENTOS - Enlace de alianzas comerciales */
.momentos-funerarias-enlace,
.momentos-funerarias-enlace:hover,
.momentos-funerarias-enlace:focus {
  text-decoration: none !important;
  color: #FFFFFF;
}


/* =========================================
   MOMENTOS - ACCESO A HOMENAJES
   ========================================= */

.momentos-acceso {
    max-width: 760px;
    margin: 35px auto 75px;
    padding: 55px 35px;
    background: #F7F2EA;
    border: 1px solid #E9D9C5;
    border-radius: 18px;
    text-align: center;
}

.momentos-acceso-etiqueta {
    display: block;
    margin-bottom: 16px;
    color: #A68158;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

.momentos-acceso h2 {
    margin-bottom: 20px;
    color: #35251D;
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: normal;
}

.momentos-acceso p {
    max-width: 540px;
    margin: 0 auto 32px;
    color: #46372F;
    font-size: 16px;
    line-height: 1.8;
}

.momentos-acceso-formulario {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.momentos-acceso-formulario label {
    color: #46372F;
    font-size: 14px;
    font-weight: 600;
}

#codigo-homenaje {
    width: 100%;
    max-width: 360px;
    padding: 14px 18px;
    border: 1px solid #C9A77E;
    border-radius: 8px;
    background: #FFFFFF;
    color: #35251D;
    font-size: 16px;
    text-align: center;
}

#codigo-homenaje:focus {
    outline: 2px solid #C9A77E;
    outline-offset: 2px;
}

.momentos-acceso-boton {
    padding: 14px 35px;
    background: #35251D;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.momentos-acceso-boton:hover {
    background: #6B4D3C;
    color: #FFFFFF;
}

/* Adaptación a teléfonos */
@media (max-width: 768px) {
    .momentos-acceso {
        margin: 25px 15px 50px;
        padding: 40px 22px;
    }

    .momentos-acceso h2 {
        font-size: 29px;
    }

    .momentos-acceso p {
        font-size: 15px;
    }

    .momentos-acceso-boton {
        width: 100%;
        max-width: 360px;
    }
}

/* MOMENTOS - Fotografía principal del homenaje */

.momentos-foto-principal {
    max-width: 650px;
    width: 100%;
    margin: 24px auto;
}

.momentos-foto-principal img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* MOMENTOS - Galería de recuerdos */

.momentos-galeria {
    max-width: 1100px;
    margin: 45px auto;
}

.momentos-galeria h2 {
    color: var(--momentos-cafe);
    font-size: 26px;
    margin-bottom: 24px;
}

.momentos-galeria-fotos {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  overflow-y: hidden;
}
.momentos-galeria-fotos::-webkit-scrollbar {
    display: none;
}

.momentos-galeria-fotos img {
    display: block;
   flex: 0 0 calc((100% - 16px) / 5);
    min-width: 0;
    width: 100%;
    height: 205px;
    object-fit: cover;
    border: 6px solid #fffaf2;
    border-bottom-width: 12px;
    border-radius: 3px;
    box-shadow: 0 5px 14px rgba(53, 37, 29, 0.18);
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .momentos-galeria-fotos {
        grid-template-columns: 1fr;
    }
}
/* MOMENTOS - Inclinación de fotografías */

.momentos-galeria-fotos img:nth-child(1) {
    transform: rotate(-3deg);
}

.momentos-galeria-fotos img:nth-child(2) {
    transform: rotate(2deg);
}

.momentos-galeria-fotos img:nth-child(3) {
    transform: rotate(-2deg);
}

.momentos-galeria-fotos img:nth-child(4) {
    transform: rotate(3deg);
}

.momentos-galeria-fotos img:nth-child(5) {
    transform: rotate(-2deg);
}

/* MOMENTOS - Controles de la galería */

.momentos-galeria {
    position: relative;
}

.momentos-galeria-controles {
    position: absolute;
    top: 50%;
    left: -45px;
    right: -45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.momentos-galeria-controles button {
    pointer-events: auto;
}

.momentos-galeria-controles button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #55405F;
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.momentos-galeria-controles button:hover {
    background: #35251D;
}


/* MOMENTOS - Visor de fotografías ampliadas */

.momentos-visor[hidden] {
    display: none !important;
}

.momentos-visor {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px;
    background: rgba(20, 15, 25, 0.92);
}

.momentos-visor img {
    display: block;
    max-width: 95%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 8px solid #fffaf2;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.momentos-visor-cerrar {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #c9a77e;
    color: #35251d;
    font-size: 30px;
    cursor: pointer;
}

.momentos-galeria-fotos img {
    cursor: zoom-in;
}


/* MOMENTOS - Flechas del visor de fotografías */

.momentos-visor-anterior,
.momentos-visor-siguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #51405f;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.momentos-visor-anterior {
    left: 20px;
}

.momentos-visor-siguiente {
    right: 20px;
}

.momentos-visor-anterior:hover,
.momentos-visor-siguiente:hover {
    background: #725b82;
}

@media (max-width: 600px) {
    .momentos-visor {
        padding: 15px;
    }

    .momentos-visor img {
        max-width: 100%;
        max-height: 80vh;
    }

    .momentos-visor-anterior,
    .momentos-visor-siguiente {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .momentos-visor-anterior {
        left: 8px;
    }

    .momentos-visor-siguiente {
        right: 8px;
    }
}


/* MOMENTOS - Sección Su historia */

.momentos-historia {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0;
}

.momentos-historia h2 {
    font-size: 26px;
    color: #35251d;
    margin-bottom: 22px;
}

.momentos-historia-video {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(53, 37, 29, 0.15);
}

.momentos-historia-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* MOMENTOS - Mensaje emotivo de Su historia */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,400;1,500&display=swap');

.momentos-historia-mensaje {
    max-width: 720px;
    margin: 30px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.momentos-historia-mensaje p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    color: #46372F;
    margin: 0;
}

@media (max-width: 600px) {
    .momentos-historia-mensaje {
        margin: 24px auto 32px;
        padding: 0 12px;
    }

    .momentos-historia-mensaje p {
        font-size: 25px;
    }
}

/* MOMENTOS - Su historia en dos columnas */

.momentos-historia {
    max-width: 1100px;
    margin: 60px auto;
   padding: 30px 0;
}

.momentos-historia-contenido {
    display: grid;
    grid-template-columns: 32% 68%;
    align-items: center;
    gap: 0;
}

.momentos-historia-texto {
    padding: 20px 35px 20px 0;
}

.momentos-historia-texto h2 {
    font-size: 36px;
    color: #30243D;
    margin-bottom: 25px;
}

.momentos-historia-mensaje {
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.momentos-historia-mensaje p {
    font-size: 27px;
    line-height: 1.35;
    text-align: left;
}

.momentos-historia-video {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Adaptación a dispositivos móviles */

@media (max-width: 767px) {
    .momentos-historia {
        padding: 25px 15px;
        margin: 35px auto;
    }

    .momentos-historia-contenido {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .momentos-historia-texto {
        padding: 0;
    }

    .momentos-historia-texto h2 {
        font-size: 30px;
    }

    .momentos-historia-mensaje p {
        font-size: 25px;
    }
}

/* MOMENTOS - Línea decorativa de Su historia */

.momentos-historia-texto h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 12px;
    background-color: #A78BBC;
    border-radius: 2px;
}

/* MOMENTOS - Composición de tres postales de portada */

.momentos-portada-postales {
    position: relative;
    width: 100%;
    max-width: 780px;
    height: 480px;
    margin: 30px auto 50px;
}

/* Fotografía principal: delante */

.momentos-portada-postales .momentos-foto-principal {
    position: absolute;
    width: 62%;
    height: 85%;
    top: 7%;
    left: 5%;
    z-index: 3;
    transform: rotate(-5deg);
}

/* Fotografía secundaria superior */

/* MOMENTOS - Fotografía secundaria superior */

.momentos-portada-postales .momentos-foto-secundaria-1 {
    position: absolute;
    width: 38%;
    height: 43%;
    top: 2%;
    right: 3%;
    z-index: 1;
    transform: rotate(7deg);
    border: 9px solid #F5E8D5;
    box-shadow: 0 8px 18px rgba(53, 37, 29, 0.22);
}

/* MOMENTOS - Fotografía secundaria inferior */

.momentos-portada-postales .momentos-foto-secundaria-2 {
    position: absolute;
    width: 38%;
    height: 43%;
    top: 42%;
    right: 0;
    z-index: 2;
    transform: rotate(-6deg);
    border: 9px solid #F5E8D5;
    box-shadow: 0 8px 18px rgba(53, 37, 29, 0.22);
}

/* Tamaño de las imágenes */

.momentos-portada-postales img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adaptación para celulares */

@media (max-width: 767px) {
    .momentos-portada-postales {
        height: 310px;
        margin: 25px auto 35px;
    }

    .momentos-portada-postales .momentos-foto-principal {
        width: 65%;
        height: 78%;
        left: 2%;
        top: 10%;
    }

    .momentos-portada-postales .momentos-foto-secundaria-1,
    .momentos-portada-postales .momentos-foto-secundaria-2 {
        width: 40%;
        height: 40%;
    }
}

/* MOMENTOS - Marco de postal para fotografía principal */

.momentos-portada-postales .momentos-foto-principal {
    padding: 12px;
    background: #F2E5D1;
    border: 1px solid #D8C3A5;
    border-radius: 3px;
    box-shadow: 0 12px 28px rgba(53, 37, 29, 0.25);
    box-sizing: border-box;
}

.momentos-portada-postales .momentos-foto-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1px;
}

/* MOMENTOS - Portada en dos columnas */

.momentos-portada {
    display: grid;
    grid-template-columns: 30% 70%;
   align-items: start;
    width: 100%;
   max-width: 1100px;
    margin: 30px auto 50px;
}

.momentos-portada-informacion {
    padding: 20px 25px 20px 0;
    position: relative;
    z-index: 4;
}

.momentos-portada .momentos-portada-postales {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Adaptación para celulares */

@media (max-width: 767px) {
    .momentos-portada {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .momentos-portada-informacion {
        padding: 0;
    }

    .momentos-portada .momentos-portada-postales {
        height: 310px;
    }
}

/* MOMENTOS - Ajuste de alineación de portada */

/* MOMENTOS - Nombre y fechas de portada */

.momentos-portada-informacion .page-header {
    margin: 0 0 16px;
    padding: 0;
}

.momentos-portada-informacion .page-header h1,
.momentos-portada-informacion .page-header h2 {
    margin: 0;
    line-height: 1.12;
    color: #30243D;
}

.momentos-portada-informacion .momentos-fechas {
    margin: 0;
    padding: 0;
    font-size: 19px;
    color: #46372F;
}

/* MOMENTOS - Mensaje conmemorativo de portada */

.momentos-portada-mensaje {
    margin: 24px 0 0;
    max-width: 320px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;

    color: #46372F;
}

@media (max-width: 767px) {
    .momentos-portada-mensaje {
        font-size: 20px;
        max-width: 100%;
        margin-top: 20px;
    }
}

/* MOMENTOS - Línea decorativa bajo el nombre */

.momentos-portada-informacion .page-header::after {
    content: "";
    display: block;
    width: 54px;
    height: 2px;
    margin-top: 16px;
    background-color: #A78ABD;
}

/* MOMENTOS - Palabras que quedan */

.momentos-testimonios {
    max-width: 1100px;
    margin: 60px auto 20px;
  padding: 20px 0;
}

.momentos-testimonios h2 {
    color: #35251d;
    font-size: 28px;
    margin-bottom: 30px;
}

.momentos-testimonio {
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    gap: 45px;
}

.momentos-testimonio-foto {
    display: block;
    width: 230px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(53, 37, 29, 0.15);
}

.momentos-testimonio-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.momentos-testimonio-mensaje {
    font-size: 21px;
    line-height: 1.6;
    color: #35251d;
    margin-bottom: 25px;
}

.momentos-testimonio-texto strong {
    font-size: 18px;
    color: #35251d;
}

.momentos-testimonio-texto span {
    font-size: 14px;
    color: #806b5c;
}

@media (max-width: 767px) {
    .momentos-testimonio {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .momentos-testimonio-foto {
        width: 100%;
        max-width: 280px;
    }

    .momentos-testimonio-mensaje {
        font-size: 18px;
    }
}

/* MOMENTOS - Selección de testimonios */

/* MOMENTOS - Selección de testimonios */

/* MOMENTOS - Selección de testimonios */

.momentos-testimonios-lista .momentos-testimonio {
    display: none;
}

.momentos-testimonios-lista .momentos-testimonio.momentos-testimonio-activo {
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    gap: 45px;
}

/* MOMENTOS - Controles de Palabras que quedan */

/* MOMENTOS - Ajuste final de navegación de testimonios */

.momentos-testimonios-controles {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding-right: 20px;
}

.momentos-testimonio-anterior,
.momentos-testimonio-siguiente {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #C9A77E;
    border-radius: 50%;
    background: transparent;
    color: #35251D;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.momentos-testimonio-anterior:hover,
.momentos-testimonio-siguiente:hover {
    background: #C9A77E;
    color: #ffffff;
}

/* MOMENTOS - Sistema tipográfico unificado */

/* Títulos principales de las secciones */

.momentos-historia h2,
.momentos-galeria h2,
.momentos-testimonios h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #35251D;
    margin-bottom: 24px;
}

/* MOMENTOS - Mensajes conmemorativos */

.momentos-portada-mensaje,
.momentos-historia-mensaje p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 23px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    color: #46372F;
}

@media (max-width: 767px) {
    .momentos-portada-mensaje,
    .momentos-historia-mensaje p {
        font-size: 20px;
    }
}

/* MOMENTOS - Tipografía de testimonios */

.momentos-testimonio-mensaje {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #35251D;
}

.momentos-testimonio-texto strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #35251D;
}

.momentos-testimonio-texto span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #8A6B5C;
}

@media (max-width: 767px) {
    .momentos-testimonio-mensaje {
        font-size: 18px;
    }
}

/* MOMENTOS - Jerarquía tipográfica unificada */

.momentos-historia h2,
.momentos-galeria h2,
.momentos-testimonios h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #35251D;
}

/* MOMENTOS - Textos principales */

.momentos-testimonio-mensaje {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.6;
    color: #35251D;
}

/* MOMENTOS - Identificación de familiares */

.momentos-testimonio-texto strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #35251D;
}

.momentos-testimonio-texto span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #84653F;
}

/* MOMENTOS - Nombre del homenajeado */

.momentos-portada-informacion .page-header h1,
.momentos-portada-informacion .page-header h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    color: #35251D;
}

/* MOMENTOS - Fechas del homenajeado */

.momentos-portada-informacion .momentos-fechas {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #46372F;
}

/* MOMENTOS - Mensaje conmemorativo de portada */

.momentos-portada-mensaje {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 21px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: #46372F;
}

/* MOMENTOS - Eliminar espacio sobrante antes del pie de página */
/* Aplicar únicamente a las páginas de homenaje */

body.view-article .site-grid {
    margin-bottom: 0;
}

/* MOMENTOS - Testimonios en celulares */
@media (max-width: 767px) {

    .momentos-testimonios-lista .momentos-testimonio.momentos-testimonio-activo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

    .momentos-testimonio-foto {
        width: 190px;
        height: 190px;
        margin: 0 auto;
    }

    .momentos-testimonio-texto {
        width: 100%;
        min-width: 0;
    }

    .momentos-testimonio-mensaje {
        font-size: 18px;
        line-height: 1.6;
    }
}



/* MOMENTOS - Galería de recuerdos en celulares */
@media (max-width: 600px) {

    .momentos-galeria-fotos {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x mandatory;
    }

    .momentos-galeria-fotos img {
        flex: 0 0 78% !important;
        width: 78% !important;
        min-width: 78% !important;
        max-width: none !important;
        height: 230px;
        object-fit: cover;
        scroll-snap-align: start;
    }

}


/* MOMENTOS - Botón conocer su historia */


/* MOMENTOS - Botón conocer su historia */

.momentos-conocer-historia {
    display: block;
    width: fit-content;
    margin: 40px auto;
    padding: 20px 48px;

    background-color: #35251D;
    color: #F7F2EA !important;

    font-size: 22px;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;

    border: 1px solid #C9A77E;
    border-radius: 6px;

    transition: background-color 0.3s ease,
                transform 0.3s ease;
}


.momentos-conocer-historia:hover {
  background-color: #46372F;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Mantener oculto el botón hasta finalizar el video */
.momentos-conocer-historia[hidden] {
  display: none !important;
}

/* ==========================================
   MOMENTOS - BIENVENIDA 001
   Presentacion audiovisual de prueba
   ========================================== */

/* Ocultar encabezado y pie de pagina */
body.itemid-109 .container-header,
body.itemid-109 .container-footer {
    display: none !important;
}

/* Eliminar espacios de la estructura */
body.itemid-109 .site-grid {
    display: block;
    margin: 0;
    padding: 0;
}

body.itemid-109 .container-component,
body.itemid-109 main,
body.itemid-109 .com-content-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Presentacion de bienvenida */
body.itemid-109 .momentos-bienvenida {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
    background: #111111;
}

/* Ocultar titulo de prueba */
body.itemid-109 .momentos-bienvenida h2 {
    display: none;
}

/* Video adaptable a cada dispositivo */
body.itemid-109 .momentos-bienvenida-video {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.itemid-109 .momentos-bienvenida-video iframe {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
}

/* Espacio para el boton al finalizar */
body.itemid-109 .momentos-conocer-historia {
    margin: 20px auto 30px;
}

/* ==========================================
   MOMENTOS - BOTON SOBRE VIDEO DE BIENVENIDA
   ========================================== */

body.itemid-109 .momentos-conocer-historia:not([hidden]) {
    position: fixed;
    left: 50%;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 9999;

    margin: 0;
    white-space: nowrap;
}

body.itemid-109 .momentos-conocer-historia[hidden] {
    display: none !important;
}


/* ==========================================
   MOMENTOS - BOTON INICIAR HOMENAJE
   ========================================== */

/* Contenedor del reproductor */
body.itemid-109 .momentos-bienvenida-video {
    position: relative;
}

/* Boton de inicio centrado sobre el video */
body.itemid-109 .momentos-iniciar-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;

    padding: 18px 32px;
    background: #35251D;
    color: #FFFFFF;
    border: 1px solid #C9A77E;
    border-radius: 8px;

    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

/* Efecto al pasar el cursor */
body.itemid-109 .momentos-iniciar-video:hover {
    background: #46372F;
}

/* Respetar el estado oculto de los botones */
body.itemid-109 .momentos-iniciar-video[hidden],
body.itemid-109 .momentos-conocer-historia[hidden] {
    display: none !important;
}

/* Adaptacion a celulares */
@media (max-width: 600px) {
    body.itemid-109 .momentos-iniciar-video {
        padding: 15px 24px;
        font-size: 15px;
    }
}

/* ==========================================
   MOMENTOS - PLANTILLA MADRE DE BIENVENIDA
   Aplicable a todos los homenajes
   ========================================== */

/* Ocultar encabezado y pie de página */
body:has(.momentos-bienvenida) .container-header,
body:has(.momentos-bienvenida) .container-footer {
    display: none !important;
}

/* Eliminar espacios de la estructura */
body:has(.momentos-bienvenida) .site-grid {
    display: block;
    margin: 0;
    padding: 0;
}

body:has(.momentos-bienvenida) .container-component,
body:has(.momentos-bienvenida) main,
body:has(.momentos-bienvenida) .com-content-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Presentación a pantalla completa */
body:has(.momentos-bienvenida) .momentos-bienvenida {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
    background: #111111;
}

/* Ocultar título de prueba */
body:has(.momentos-bienvenida) .momentos-bienvenida h2 {
    display: none;
}

/* Reproductor */
body:has(.momentos-bienvenida) .momentos-bienvenida-video {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

body:has(.momentos-bienvenida) .momentos-bienvenida-video iframe {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
}

/* Botón para acceder a la historia */


/* Respetar botones ocultos */
body:has(.momentos-bienvenida) .momentos-conocer-historia[hidden],
body:has(.momentos-bienvenida) .momentos-iniciar-video[hidden] {
    display: none !important;
}

/* Botón iniciar homenaje */
body:has(.momentos-bienvenida) .momentos-iniciar-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    padding: 18px 32px;
    background: #35251D;
    color: #FFFFFF;
    border: 1px solid #C9A77E;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

body:has(.momentos-bienvenida) .momentos-iniciar-video:hover {
    background: #46372F;
}

@media (max-width: 600px) {
    body:has(.momentos-bienvenida) .momentos-iniciar-video {
        padding: 15px 24px;
        font-size: 15px;
    }
}


/* ==========================================
   MOMENTOS - PLANTILLA MADRE DE HOMENAJES
   Ocultar encabezado y pie comercial
   ========================================== */

body:has(.momentos-portada) .container-header,
body:has(.momentos-portada) .container-footer {
    display: none !important;
}



/* ==========================================
   MOMENTOS - ENCABEZADO DE HOMENAJES
   ========================================== */

.momentos-homenaje-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #40304D;
    padding: 12px 30px;
}

.momentos-homenaje-header-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.momentos-homenaje-logo img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}

.momentos-homenaje-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.momentos-homenaje-nav a {
    color: #F7F2EA;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.momentos-homenaje-nav a:hover,
.momentos-homenaje-nav a:focus {
    color: #C9A77E;
}

/* En celulares, el encabezado no permanece fijo */

@media (max-width: 767px) {
    .momentos-homenaje-header {
        position: static;
        padding: 15px;
    }

    .momentos-homenaje-header-contenido {
        flex-direction: column;
        gap: 15px;
    }

    .momentos-homenaje-logo img {
        width: 190px;
    }

    .momentos-homenaje-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .momentos-homenaje-nav a {
        font-size: 14px;
    }
}


/* MOMENTOS - Encabezado a todo el ancho */

.momentos-homenaje-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

/* MOMENTOS - Evitar desbordamiento horizontal */

body:has(.momentos-portada) {
    overflow-x: clip;
}

/* MOMENTOS - Ajuste de proporciones del encabezado */

.momentos-homenaje-header {
    padding-top: 22px;
    padding-bottom: 22px;
}

.momentos-homenaje-logo img {
    width: 285px;
}

@media (max-width: 767px) {
    .momentos-homenaje-header {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .momentos-homenaje-logo img {
        width: 230px;
    }
}



/* MOMENTOS - Ola superior de los homenajes */

body:has(.momentos-portada) .momentos-ola-superior {
    width: 100vw;
    height: 48px;
    margin-left: calc(50% - 50vw);
    background-color: #F7F2EA;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V8C1190 5 1050 42 790 29C510 14 260 5 0 44Z' fill='%2340304D'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

@media (max-width: 767px) {
    body:has(.momentos-portada) .momentos-ola-superior {
        height: 26px;
    }
}


/* MOMENTOS - Encabezado con desplazamiento natural */

body:has(.momentos-portada) .momentos-homenaje-header {
    position: relative;
    top: auto;
}


/* MOMENTOS - Ajustar posición del menú */

@media (min-width: 768px) {
    .momentos-homenaje-nav {
        transform: translateX(-60px);
    }
}


/* MOMENTOS - Papel antiguo continuo */

body:has(.momentos-portada) .com-content-article {
    position: relative;
    isolation: isolate;
}

body:has(.momentos-portada) .com-content-article::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-image: url("/images/momentos/fondos/fondo-portada-momentos.png");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    pointer-events: none;
    z-index: -1;
}

body:has(.momentos-portada) .momentos-portada::before {
    background-image: none;
}

/* MOMENTOS - Textura continua de papel envejecido */

body:has(.momentos-portada) .com-content-article::before {
    background-image: url('/images/momentos/fondos/fondo-momentos-continuo.png') !important;
    background-position: center top !important;
    background-size: 100% auto !important;
    background-repeat: repeat-y !important;
}

/* MOMENTOS - Fondo optimizado en WebP */

body:has(.momentos-portada) .com-content-article::before {
    background-image: url('/images/momentos/fondos/fondo-momentos-optimizado-q92.webp') !important;
}

/* MOMENTOS - Fondo general detrás del encabezado */

body:has(.momentos-portada) {
    background-image: url('/images/momentos/fondos/fondo-momentos-optimizado-q92.webp') !important;
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

/* El contenedor deja ver el fondo general */

body:has(.momentos-portada) .com-content-article {
    background: transparent !important;
}

body:has(.momentos-portada) .com-content-article::before {
    display: none !important;
}

/* MOMENTOS - Eliminar fondo claro bajo la ola */

body:has(.momentos-portada) .momentos-portada {
    background-color: transparent !important;
}

/* MOMENTOS - Fondo transparente en la curva superior */
body:has(.momentos-portada) .momentos-ola-superior {
    background-color: transparent !important;
}


/* MOMENTOS - Pie de página del homenaje */

.momentos-footer-homenaje {
    background: #40304d;
    color: #f7f2ea;
    padding: 35px 6%;
    width: 100%;
    box-sizing: border-box;
}

.momentos-footer-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.momentos-footer-marca,
.momentos-footer-contacto,
.momentos-footer-redes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.momentos-footer-nombre {
    font-size: 28px;
    color: #c9a77e;
    font-family: Georgia, serif;
}

.momentos-footer-eslogan {
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

.momentos-footer-contacto {
    font-size: 15px;
}

/* Adaptación para celulares */

@media (max-width: 768px) {
    .momentos-footer-contenido {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }

    .momentos-footer-marca,
    .momentos-footer-contacto,
    .momentos-footer-redes {
        align-items: center;
    }
}


/* MOMENTOS - Pie de página a todo el ancho */

body:has(.momentos-portada) .momentos-footer-homenaje {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

/* MOMENTOS - Líneas decorativas en títulos */

.momentos-galeria h2::after,
.momentos-testimonios h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #b39acb;
    margin-top: 12px;
    border-radius: 2px;
}

/* MOMENTOS - Logotipo del pie de página */

.momentos-footer-logo {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .momentos-footer-logo {
        width: 240px;
    }
}

/* MOMENTOS - Enlaces del pie de página */

.momentos-footer-homenaje .momentos-footer-contacto a {
    color: #F7F2EA !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.momentos-footer-homenaje .momentos-footer-contacto a:hover {
    color: #C9A77E !important;
    text-decoration: underline;
}

/* MOMENTOS - Iconos de contacto del pie de página */

.momentos-footer-contacto a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.momentos-contacto-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    font-size: 22px;
    color: #F7F2EA;
    flex-shrink: 0;
}

/* MOMENTOS - Separador entre logotipo y contacto */

.momentos-footer-marca {
    border-right: 1px solid rgba(247, 242, 234, 0.45);
    padding-right: 35px;
}


/* MOMENTOS - Separador entre contacto y redes sociales */

.momentos-footer-contacto {
    border-right: 1px solid rgba(247, 242, 234, 0.45);
    padding-right: 35px;
}

/* MOMENTOS - Botón centrado sobre el video */

.momentos-bienvenida-video {
    position: relative;
}

.momentos-bienvenida-video .momentos-conocer-historia:not([hidden]) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;

    display: block;
    width: max-content;
    max-width: 90%;
    margin: 0;
    padding: 20px 48px;

    background-color: #35251D;
    color: #F7F2EA !important;

    font-size: 22px;
    font-weight: 600;
    text-align: center;

    border: 2px solid #C9A77E;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.momentos-bienvenida-video .momentos-conocer-historia[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .momentos-bienvenida-video .momentos-conocer-historia:not([hidden]) {
        padding: 16px 26px;
        font-size: 18px;
    }
}

/* MOMENTOS - Corrección de dimensiones del botón */

.momentos-bienvenida-video
.momentos-conocer-historia:not([hidden]) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 20px 40px !important;
    margin: 0 !important;

    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    font-size: 22px !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    box-sizing: border-box;
    z-index: 20;
}

@media (max-width: 600px) {
    .momentos-bienvenida-video
    .momentos-conocer-historia:not([hidden]) {
        padding: 16px 24px !important;
        font-size: 18px !important;
    }
}

