* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Mini Carrusel ===== 
.carrusel-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
}

.mini-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.mini-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.mini-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.mini-carousel-slide.active {
    opacity: 1;
}

.mini-carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.mini-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mini-carousel-slide.active .mini-carousel-img {
    transform: scale(1.02);
}

.mini-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(49, 78, 145, 0.85) 0%, rgba(49, 78, 145, 0.4) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.mini-carousel-info {
    text-align: center;
}

.mini-carousel-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.mini-carousel-dates {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.mini-carousel-message {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.85;
    line-height: 1.4;
}

.mini-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #314e91;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.mini-carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mini-carousel-prev {
    left: 15px;
}

.mini-carousel-next {
    right: 15px;
}

.mini-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.mini-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.mini-carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive 
@media (max-width: 768px) {
    .carrusel-container {
        max-width: 320px;
    }
    
    .mini-carousel {
        height: 300px;
    }
    
    .mini-carousel-name {
        font-size: 1.2rem;
    }
    
    .mini-carousel-dates {
        font-size: 0.9rem;
    }
    
    .mini-carousel-arrow {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .carrusel-container {
        max-width: 280px;
    }
    
    .mini-carousel {
        height: 250px;
    }
    
    .mini-carousel-overlay {
        padding: 15px;
    }
}

 */



/* ===== Mini Carrusel Mejorado ===== */
.carrusel-container {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.mini-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: visible;
    perspective: 1500px;
}

.mini-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-carousel-slide {
    position: absolute;
    width: 70%;
    height: 85%;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0.5;
    z-index: 1;
    transform-style: preserve-3d;
}

/* Slide activa (centrada) */
.mini-carousel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Slide a la izquierda */
.mini-carousel-slide.prev {
    opacity: 0.7;
    transform: translateX(-85%) scale(0.85) rotateY(5deg);
    z-index: 2;
}

/* Slide a la derecha */
.mini-carousel-slide.next {
    opacity: 0.7;
    transform: translateX(85%) scale(0.85) rotateY(-5deg);
    z-index: 2;
}

.mini-carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.mini-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mini-carousel-slide.active .mini-carousel-img {
    transform: scale(1.03);
}

.mini-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(49, 78, 145, 0.85) 0%, rgba(49, 78, 145, 0.4) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.mini-carousel-info {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.mini-carousel-slide.active .mini-carousel-info {
    transform: translateY(0);
}

.mini-carousel-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.mini-carousel-dates {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.mini-carousel-message {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.85;
    line-height: 1.4;
}

.mini-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #314e91;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mini-carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.mini-carousel-prev {
    left: 5%;
}

.mini-carousel-next {
    right: 5%;
}

.mini-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.mini-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.mini-carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 968px) {
    .mini-carousel-slide {
        width: 80%;
    }
    
    .mini-carousel-slide.prev {
        transform: translateX(-95%) scale(0.85);
    }

    .mini-carousel-slide.next {
        transform: translateX(95%) scale(0.85);
    }
}

@media (max-width: 768px) {
    .carrusel-container {
        max-width: 500px;
    }
    
    .mini-carousel {
        height: 460px;
    }
    
    .mini-carousel-slide {
        width: 85%;
        height: 80%;
    }
    
    .mini-carousel-name {
        font-size: 1.2rem;
    }
    
    .mini-carousel-dates {
        font-size: 0.9rem;
    }
    
    .mini-carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .mini-carousel-slide.prev {
        transform: translateX(-100%) scale(0.8);
    }

    .mini-carousel-slide.next {
        transform: translateX(100%) scale(0.8);
    }
}

@media (max-width: 480px) {
    .carrusel-container {
        max-width: 320px;
    }
    
    .mini-carousel {
        height: 460px;
    }
    
    .mini-carousel-overlay {
        padding: 15px;
        height: 50%;
    }
    
    .mini-carousel-slide {
        width: 90%;
        height: 75%;
    }
    
    .mini-carousel-slide.prev {
        transform: translateX(-105%) scale(0.75);
    }

    .mini-carousel-slide.next {
        transform: translateX(105%) scale(0.75);
    }
    
    .mini-carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .mini-carousel-prev {
        left: 2%;
    }

    .mini-carousel-next {
        right: 2%;
    }
}










/* Estilos para el diseño de dos columnas */



/*  estilos obituarios  */
.obituario-header {
    position: relative;
}


.filter-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 10, 10, 0.1);
    overflow: hidden;
    margin-bottom: 0.5 rem;
}

.card-header {
    background: #fff ;
    color: #314e91;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.horizontal-form {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.form-group {
    flex: 1;
}

.form-group label {
    margin-top: 0.5rem;
    display: block;
}

.form-control, .form-select {
    width: 100%;
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: #0962ba;
    box-shadow: 0 0 0 0.25 rgba(52, 152, 219, 0.25);
}

.btn-filter {
    background: #314e91;
    border: none;
    color: white;
    padding: 0.1rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}


.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0, 4px 8px rgba(52, 152, 219, 0.25);
}

.btn-reset {
    background:  rgb(122, 175, 211, 0.25);
    border: none;
    color: #2f2f2f;
     padding: 0.11rem 1rem;
    border-radius: 8px;
    font-weight: 600; 
    transition: all 0.3s;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0, 4px 8px #314e91;
}

.actions {
    display: flex;
    margin-top: 0.4rem;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px){
    .horizontal-form {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group {
        width: 100%;
    }

    .form-control {
        width: 100%;
    }

    .form-select {
        width: 50%;
    }

    .actions {
        justify-content: center;
    }
}



.testimonials {
    background: linear-gradient(180deg, #fff 0%, #f9fafc 100%);
    position: relative;  
    overflow: hidden;   
    z-index: 0; /* Cambiado de -1 a 0 */
}

.testimonials-content {
    position: relative;
    z-index: 1; /* El contenido va encima de los pseudo-elementos */
}
.testimonials::before,
.testimonials::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    animation: planta-balanceo 8s ease-in-out infinite alternate;
}

.testimonials::before {
    left: 0;
    bottom: -30px;
    width: 300px;   
    height: 300px;  
    background: url('../icons/fondo-planta1.svg') no-repeat left bottom/contain;
    animation-delay: 0s;
}

.testimonials::after {
    right: 0;
    bottom: -30px; 
    width: 320px;
    height: 320px;
    background: url('../icons/fondo-planta2.svg') no-repeat right bottom/contain;
    transform: scaleX(-1);
    animation-delay: 4s;
}

@keyframes planta-balanceo {
    0% {
        transform: scale(1) rotate(-2deg);
    }
    50% {
        transform: scale(1.03) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(-2deg);
    }
}

@media (max-width: 900px) {
    .testimonials::before,
    .testimonials::after {
        width: 160px;
        height: 160px;
        opacity: 0.3;
    }
}

@media (max-width: 600px) {
    .testimonials::before,
    .testimonials::after {
        width: 90px;
        height: 90px;
        opacity: 0.30;
    }
}

/*   paginacion !! no toques esto laura !  */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    margin: 20px 0;
}

.page-item {
    margin: 0 5px;
}

.page-item.active .page-link {
    background-color: #314e91;
    border-color: #314e91;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #314e91;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;

}

.page-link:hover {
    z-index: 2;
    color: #314e91;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-info {
    text-align: center;
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
}

/* Estilos responsivos */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-item {
        margin: 2px;
    }
}



/* fondo imagen flores */
.img-fondo-obi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; 
}
.fondo-flor-izq {
    position: absolute;
    left: 0;
    bottom: 190px; /* sube la imagen desde abajo */
    width: 1000px;
    max-width: 60vw;
    opacity: 0.25;
    rotate: -320deg; left: -15%;
}

.fondo-flor-der {
    position: absolute;
    right: 0;
    top: -5%; right:-13%; /* sube la imagen desde arriba */
    width: 999px;
    max-width: 60vw;
    opacity: 0.25;
    rotate: -1050deg;
}

/* Galería de obituarios */
.row.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1095px;
  margin: 0 auto;
}

.portfolio-container > .obituario-card {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.obituario-card-inner {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(25, 43, 75, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.obituario-card-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(25, 43, 75, 0.18);
}

.obituario-card-link {
  display: block;
  overflow: hidden;
  line-height: 0;
  background: #f4f6fa;
}

.obituario-card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.obituario-card-image:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 991px) {
  .row.portfolio-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .row.portfolio-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

/*  style de modal  */

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  padding: 0;
  background: rgba(12, 20, 36, 0.94);
  z-index: 1002;
  overflow: hidden;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .modal-inner {
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  overflow: hidden;
  position: relative;
  animation: obituario-viewer-in 0.2s ease-out;
}

.modal .modal-inner::before,
.modal .modal-inner::after {
  content: "";
  position: absolute;
  bottom: -36px;
  width: min(58vw, 300px);
  height: min(58vh, 300px);
  opacity: 0.38;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}

.modal .modal-inner::before {
  left: 13.5vw;
  bottom: -2vw;
  background-image: url("../icons/f-obi.svg");
  background-position: left bottom;
  transform: rotate(-60deg) scaleX(-1);
}

.modal .modal-inner::after {
  right:16.5vw;
    bottom:3vw;
  background-image: url("../icons/f-obi.svg");
  background-position: right bottom;
    transform: rotate(60deg);
}

@keyframes obituario-viewer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.modal-image {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.modal-image::-webkit-scrollbar {
  display: none;
}

.modal-image.is-zoomed {
  cursor: grab;
}

.modal-image.is-dragging {
  cursor: grabbing;
}

.modal-image.is-dragging img {
  transition: none;
}

.modal-image img {
  display: block;
  width: auto;
  height: auto;
  max-height: calc(100vh - 96px);
  max-width: calc(100vw - 48px);
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 10px;
  box-shadow: 0px 7px 6px 0px rgb(255 255 255 / 26%);
}

.modal-toolbar {
  position: absolute;
  top: 22px;
  right: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.modal-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-tool:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.modal-tool:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.modal-tool.modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

/* Responsive Modal */
@media (max-width: 767px) {
  .modal .modal-inner::before,
  .modal .modal-inner::after {
    bottom: -18px;
    width: 44vw;
    height: 36vh;
    opacity: 0.3;
  }

  .modal .modal-inner::before {
    left: -15vw;
  }

  .modal .modal-inner::after {
    right: -15vw;
  }

  .modal-image img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
  }

  .modal-toolbar {
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    right: 62px;
  }

  .modal-tool.modal-close {
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    right: 14px;
  }

  .modal-tool {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

}
