/* ================== AJUSTES PARA QUE DETALLES COINCIDA CON INDEX ================== */

/* 1. Quitamos la altura fija del hero y lo hacemos compacto */
body .hero {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    align-items: flex-start !important;
}

/* 2. Quitamos el overlay blanco */
body .hero-overlay {
    display: none !important;
}

/* 3. Hero content sin padding extra */
body .hero-content {
    padding: 20px !important;
    margin: 0 !important;
}

/* 4. Ocultamos elementos que no están en detalles.html */
body .hero h1,
body .hero .services {
    display: none !important;
}

/* 5. Responsive */
@media (max-width: 768px) {
    body .hero-content {
        padding: 15px 10px !important;
    }
}

/* ================== CARRUSEL ================== */
.photo-carousel {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Agregamos espacio extra arriba para compensar el h1 y servicios que faltan */
    padding-top: 150px;
}

@media (max-width: 768px) {
    .photo-carousel {
        padding-top: 120px;
    }
}

.carousel-wrapper {
    position: relative;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 calc(25% - 15px);
    cursor: pointer;
    transition: transform 0.3s;
    min-width: 200px;
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }
}

.carousel-item img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.4);
    border: none;
    padding: 0 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 3px;
}

.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }

/* ================== MODAL ================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 100;
    overflow: hidden;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 3cm);
    max-width: calc(100vw - 3cm);
    max-height: calc(100vh - 3cm);
    object-fit: contain;
}

@media (max-width: 768px) {
    .modal-content {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
}

.modal-arrow-modal {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(0,0,0,0.4);
    border: none;
    padding: 0 12px;
    cursor: pointer;
    z-index: 110;
}

.modal-arrow-modal.left { left: 1cm; }
.modal-arrow-modal.right { right: 1cm; }

@media (max-width: 768px) {
    .modal-arrow-modal.left { left: 10px; }
    .modal-arrow-modal.right { right: 10px; }
}

.modal-close {
    position: fixed;
    top: 1cm;
    right: 1cm;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 120;
}

@media (max-width: 768px) {
    .modal-close {
        top: 10px;
        right: 10px;
    }
}