.mb-3 {
    margin-bottom: 1rem !important;
}

body {
    padding-bottom: 80px;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.container {
    max-width: 600px;
    margin: 0.5rem auto;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nombre {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 6vw, 4rem);
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.place-cont {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    color: #5a6c7d;
    font-style: italic;
    position: relative;
}

.place-cont::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #3498db;
}

.place {
    font-size: 2rem;
    color: #5a6c7d;
}

.fechas {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #5a6c7d;
    margin: 1.5rem 0;
}

.fecha {
    display: inline-block;
    margin: 0.5rem 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    border: 2px solid #e9ecef;
    position: relative;
}

/*
        .fecha::before {
            content: '';
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: #3498db;
            border-radius: 50%;
        }
        */
.fecha::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f9fa;
}

.fecha.nacimiento {
    border-color: #27ae60;
}

.fecha.nacimiento::before {
    content: '✨';
}

.fecha.defuncion::before {
    content: '✝️';
}

.fecha.defuncion {
    border-color: #e74c3c;
}

.fecha-nac::after {
    content: 'Nació';
    color: #27ae60;
}

.fecha-def::after {
    content: 'Falleció';
    color: #e74c3c;
    font-weight: bold;
}

.dedicatoria {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-style: italic;
    color: #7f8c8d;
    text-align: center;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    border-radius: 0 10px 10px 0;
}

.biografia,
.ubicacion {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
    margin-bottom: 2rem;
}

.ubicacion p {
    margin-top: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.gallery .caption {
    display: none;
}
.image img {
    border-radius: 12px;
    overflow: hidden;
}

/*
        .image {
            position: relative;
            cursor: pointer;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .image:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.25);
        }
        
        .image img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .image img:hover {
            transform: scale(1.05);
        }
        */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding-bottom: 25px;
}
.lightbox #lightbox-caption {
    position: fixed;
    bottom: 10px;
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
}
/* Navegación Lightbox */
.lightbox .nav-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.lightbox .close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.condolencias h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 24px;
}
/*
.condolencias .grp {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 1rem;
}
*/
.condolencias .grp {
    background-color: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #a1a1aa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-align: left;
}
.condolencias .name {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #2c3e50;
}
.condolencias .message {
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}
#enviar-condolencias h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 24px;   
}
#enviar-condolencias label {
    font-family: Inter, sans-serif;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #64748b;
}
#enviar-condolencias input[type="text"], #enviar-condolencias textarea {
    font-family: Inter, sans-serif;
}

#enviar-palabra {
    font-family: Inter, sans-serif;
}
/*
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    z-index: 100;
}
.footer .options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    place-content: center;
    background-color: #777777;
    padding: 5px 0;
}
*/
.send-condolencias {
    color: #fff;
    padding: 2px 5px;
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
    cursor: pointer;
    font-family: Verdana;
    line-height: 22px;
    z-index: 10;
}

.send-flores {
    color: #fff;
    padding: 2px 5px;
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
    cursor: pointer;
    font-family: Verdana;
    line-height: 22px;
    z-index: 10;
}

.share {
    color: #fff;
    padding: 2px 5px;
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
    cursor: pointer;
    font-family: Verdana;
    line-height: 22px;
    z-index: 10;
}

.send-flores a {
    color: #fff;
    text-decoration: none;
}

.marca {
    background-color: #777777;
}

.marca a {
    color: #000000;
    font-family: Verdana;
    line-height: 22px;
    text-decoration: none;
}

.form-label {
    margin-bottom: .5rem;
    display: inline-block;
    text-align: left;
    width: 100%;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    box-sizing: border-box;
}

.btn-primary {
    width: 250px;
    height: 48px;
    font-size: 20px;
    line-height: #fff;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid #0d6efd;
    border-radius: 0.5rem;
    background-color: #0d6efd;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.contenedor-flores:not(:empty) {
    display: flex;
    justify-content: center;
    background-image: url(flores/pasto.png);
    background-size: contain;
    background-position-y: bottom;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    position: relative;
    height: 200px;
}

.flor {
    position: absolute;
    width: 100px;
    height: auto;
    /*opacity: 0.8;*/
}

.flor:nth-child(1) {
    bottom: 0px;
    left: calc(50% - 50px);
    z-index: 2;
}

.flor:nth-child(2) {
    bottom: 0px;
    left: calc(50% - 30%);
    z-index: 2;
}

.flor:nth-child(3) {
    bottom: 0px;
    right: calc(50% - 30%);
    z-index: 2;
}

.flor:nth-child(4) {
    bottom: 0px;
    left: calc(50% - 50%);
    z-index: 2;
}

.flor:nth-child(5) {
    bottom: 0px;
    right: calc(50% - 50%);
    z-index: 2;
}

.flor:nth-child(6) {
    bottom: 0px;
    left: calc(50% - 20%);
    z-index: 1;
}

.flor:nth-child(7) {
    bottom: 0px;
    right: calc(50% - 20%);
    z-index: 1;
}

.flor:nth-child(8) {
    bottom: 0px;
    left: calc(50% - 40%);
    z-index: 1;
}

.flor:nth-child(9) {
    bottom: 0px;
    right: calc(50% - 40%);
    z-index: 1;
}

#enviar-condolencias {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.ocultar {
    opacity: 0 !important;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 0.5rem;
    }

    .gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .send-condolencias,
    .send-flores,
    .share {
        flex-direction: column;
    }

    .send-condolencias,
    .send-flores a,
    .share {
        font-size: 12px;
    }
}

/* ALERT */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin: 1rem 0;
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 0.375rem;
    ;
}


/*FOOTER*/
.footer {
    left: 0;
    bottom: 0;
    width: 95%;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    color: #f0e6d2;
    padding: 0.5rem 2rem;
    position: fixed;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Georgia', serif;
    z-index: 200;
}

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

.site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #f4e4bc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-btn {
    background: none;
    border: 2px solid #d4af37;
    border-radius: 6px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    align-items: center;
    margin-right: 10px;
}

.menu-btn:hover {
    background: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.hamburger {
    width: 20px;
    height: 3px;
    background: #f0e6d2;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-dropdown {
    position: fixed;
    bottom: 50px;
    right: 48px;
    background: rgba(44, 24, 16, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 8px;
}

.menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: block;
    padding: 14px 20px;
    color: #f0e6d2;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.2s ease;
}

.menu-item:hover,
.menu-item:focus {
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
    padding-left: 28px;
}

.menu-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.menu-item:first-child {
    border-radius: 12px 12px 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }

    .menu-dropdown {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}



/* ALBUM FOTOS */
.btn-veralbum {
    display: flex;
    justify-content: end;
    gap: 0.5rem;
    margin-bottom: 10px;
    cursor: pointer;
}
.album-container {
    display: none;
}

.album-container.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.album-container .close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.album-container .close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.album-container .card {
    position: absolute;
    width: 90%;
    height: 70%;
    aspect-ratio: 9 / 16;
    background-color: #f4f1ea;
    /* Color papel viejo */
    padding: 15px 15px 60px 15px;
    /* Espacio abajo para el texto */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #d1ccc0;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s;
    cursor: pointer;
    transform-origin: left bottom;
    transition: transform 0.8s ease-in-out, opacity 0.6s, z-index 0s;

    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.album-container .card.no-transition {
    transition: none !important;
}

.album-container .card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /*filter: sepia(0.4) contrast(1.1) brightness(0.9); */
    /* Efecto vintage */
}

.album-container .caption {
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    margin-top: 15px;
    color: #555;
    font-weight: bold;
    font-size: 1.2rem;
}

.album-container .card.passed {
    transform: rotateZ(-25deg) translateX(-120%) translateY(-10%) rotateY(-40deg);
    opacity: 0;
}