/* ========================================
   SECCIÓN DE PLANOS
   ======================================== */

.container-planos {
    padding: 80px 50px;
    font-family: 'Poppins', sans-serif;
    background-image: url('img/fondo-form.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container-planos h1 {
    font-size: 80px;
    color: #452E38;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
    line-height: 84px;
    text-align: center;
}

.container-planos p {
    font-size: 20px;
    color: #452E38;
    text-align: center;
    margin-bottom: 40px;
}

.planos-display-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.planos-display {
    flex: 1;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 600px;
    cursor: grab;
    user-select: none;
    gap: 20px;
}

.planos-display:active {
    cursor: grabbing;
}

.plano-imagen-container {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plano-imagen {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    pointer-events: none;
}

.plano-nombre {
    font-size: 14px;
    color: #452E38;
    font-weight: 500;
    text-align: center;
}

.planos-brochure-btn {
    display: inline-block;
    margin: 40px auto 0;
    padding: 16px 60px;
    background: #452E38;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.planos-brochure-btn:hover {
    background: #5e3e4e;
    transform: translateY(-2px);
}

.plano-prev,
.plano-next {
    background: transparent;
    color: #452E38;
    border: 2px solid #452E38;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.plano-fullscreen {
    display: none;
}

.plano-prev svg,
.plano-next svg {
    stroke: currentColor;
}

/* Modal de Planos (Lightbox) */
.planos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.planos-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.planos-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

.plano-nombre-modal {
    font-size: 16px;
    color: white;
    font-weight: 500;
    text-align: center;
}

.planos-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: white;
    border: 2px solid white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease;
    font-weight: 300;
    line-height: 1;
    z-index: 10001;
}

.planos-modal-prev,
.planos-modal-next {
    position: absolute;
    background: transparent;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease;
    z-index: 10001;
}

.planos-modal-prev {
    left: 30px;
}

.planos-modal-next {
    right: 30px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .container-planos {
        padding: 60px 30px;
    }

    .container-planos h1 {
        margin: 20px;
        font-size: 24px;
        line-height: 24px;
    }

    .container-planos p {
        margin: 5px;
        font-size: 16px;
        line-height: 18px;
    }

    .planos-modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .planos-modal-prev,
    .planos-modal-next {
        width: 60px;
        height: 60px;
    }

    .planos-modal-prev {
        left: 15px;
    }

    .planos-modal-next {
        right: 15px;
    }
}

@media screen and (max-width: 480px) {
    .container-planos h1 {
        font-size: 20px;
        line-height: 22px;
    }

    .container-planos p {
        font-size: 14px;
        line-height: 16px;
    }

    .planos-display-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .planos-display {
        padding: 20px;
        min-height: auto;
        width: 100%;
        flex-basis: 100%;
        order: -1;
        gap: 10px;
    }

    .plano-imagen-container {
        height: auto;
        max-height: 400px;
    }

    .plano-imagen {
        max-height: 400px;
        width: 100%;
        display: block;
    }

    .plano-nombre {
        font-size: 12px;
    }

    .plano-prev,
    .plano-next {
        position: static;
        width: 50px;
        height: 50px;
        transform: none;
        order: 1;
    }

    .plano-fullscreen {
        display: flex;
        background: transparent;
        color: #452E38;
        border: 2px solid #452E38;
        cursor: pointer;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        position: static;
        order: 1;
    }

    .plano-fullscreen svg {
        stroke: currentColor;
    }

    /* Modal responsive */
    .planos-modal {
        padding: 60px 10px 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .planos-modal-content {
        max-width: 95vw;
        max-height: calc(100vh - 180px);
        width: 100%;
        flex-basis: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        order: -1;
    }

    .planos-modal-content img {
        max-height: calc(100vh - 220px);
        width: 100%;
        object-fit: contain;
    }

    .plano-nombre-modal {
        font-size: 14px;
    }

    .planos-modal-close {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .planos-modal-prev,
    .planos-modal-next {
        position: static;
        width: 50px;
        height: 50px;
        transform: none;
        order: 1;
    }

    .planos-modal-prev svg,
    .planos-modal-next svg {
        width: 35px;
        height: 35px;
    }
}
