/* =====================================
   RESET
===================================== */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;

    /* 🟡 Fondo */
    background-image: url('/imagenes/fondos_ventanaS/fondoAtractivos.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}


/* =====================================
   MENU SUPERIOR (ESTILO HOME)
===================================== */

.menu-superior {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;

    padding: 4px 0;

    display: flex;
    justify-content: center;
    z-index: 99;

    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    backdrop-filter: blur(4px);
}

.menu-container {
    width: 100%;
    max-width: 1450px;
    display: flex;
    justify-content: center;
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 38px;
    align-items: center;
    justify-content: center;
}

.menu-links li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 130px;

    color: white;
    text-decoration: none;
    font-size: 16px;

    padding: 4px 10px;
    line-height: 1.2;

    transition: 0.3s;
    position: relative;
}

.menu-links li a:hover {
    color: #ffb36d;
    transform: translateY(-2px);
}

/* Subrayado degradado */
.menu-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a32bbf, #ff6db7, #ffb36d);
    border-radius: 4px;
    transition: .35s ease;
}

.menu-links li a:hover::after {
    width: 100%;
}

.menu-links li a.activo {
    background-color: #9c7a47;
    /* Fondo café */
    color: #ffffff;
    /* Texto blanco */
    padding: 8px 24px;
    /* Espaciado más uniforme */
    border-radius: 25px;
    /* Forma ovalada */
    border: 2px solid #e7b57a;
    /* Contorno durazno */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.20);
    /* Sombra */
    display: inline-block;
    /* Permite centrar correctamente */
    text-align: center;
    /* Asegura que el texto quede centrado */
    margin: 0 auto;
    /* Centrado del botón */
    transition: 0.3s ease;
}

/* Elimina completamente la línea inferior */
.menu-links li a.activo::after {
    display: none;
}



/* LOGO HOME */
.menu-links .home-icon img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    border-radius: 12px;
    transition: 0.3s;
}

.menu-links .home-icon img:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(3px);
    padding: 6px;
}

/* LOGIN ICON */
.menu-links .login-icon img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    transition: 0.3s;
}

.menu-links .login-icon img:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(3px);
    padding: 6px;
}



/* =====================================
   BOTONES CATEGORÍA
===================================== */

.categoria-switch {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 50px;
}

.categoria-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #ffb36d;
    color: white;

    padding: 14px 33px;
    font-size: 18px;
    font-weight: 600;

    border-radius: 999px;
    cursor: pointer;
    margin: 0 15px;

    transition: 0.4s;
    backdrop-filter: blur(5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.categoria-btn:hover {
    background: rgba(255, 179, 109, 0.8);
    color: black;
    transform: translateY(-3px);
}

.categoria-btn.activo {
    background: linear-gradient(135deg, #a32bbf, #ff6db7, #ffb36d);
    border-color: transparent;
    color: white;
    transform: scale(1.03);
}



/* =====================================
   GRID
===================================== */

.atractivos-grid {
    padding: 20px 40px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.oculto {
    display: none;
}



/* =====================================
   CARDS
===================================== */

.atractivo-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    transition: 0.35s;
}

.atractivo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.atractivo-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.atractivo-card h3 {
    margin: 15px;
    font-size: 20px;
    color: #222;
}

.atractivo-card p {
    margin: 0 15px 18px 15px;
    color: #333;
    font-size: 15px;
}


/* BUTTON VER MÁS */
.btn-ver-mas {
    display: block;
    text-align: center;
    margin: 0 15px 20px;
    padding: 10px;

    background: #ffb36d;
    color: black;
    font-weight: bold;
    text-decoration: none;

    border-radius: 10px;
    transition: 0.3s;
}

.btn-ver-mas:hover {
    background: #a32bbf;
    color: white;
}



/* =====================================
   MODAL
===================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 700px;
    padding: 25px;
    border-radius: 15px;
    position: relative;
}

.cerrar-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.modal-imagen {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-texto {
    margin: 15px 0;
}

/* =====================================
   MODAL PRO
===================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;

    background: rgba(0, 0, 0, 0.85);

    animation: fadeIn .3s ease;
}


/* CARD GLASS */
.modal-pro {
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;

    padding: 30px;

    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);

    color: white;

    animation: zoomIn .25s ease;
}


.modal-pro::-webkit-scrollbar {
    width: 6px;
}

.modal-pro::-webkit-scrollbar-thumb {
    background: #ffb36d;
    border-radius: 6px;
}


/* CERRAR */
.cerrar-pro {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    transition: .3s;
}

.cerrar-pro:hover {
    color: #ffb36d;
}


/* IMAGEN HERO */
.modal-img-pro {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 25px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}


/* TITULO */
.modal-titulo-pro {
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: #ffb36d;
}


/* INFO */
.modal-info-pro h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #ffb36d;
    border-left: 6px solid #ffb36d;
    padding-left: 10px;
}


.modal-texto-pro {
    font-size: 17px;
    line-height: 1.6;
    text-align: justify;

    background: rgba(0, 0, 0, 0.35);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
}


/* EMPTY MESSAGE */
.mensaje-vacio {
    grid-column: 1/-1;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}


/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(.85);
    }

    to {
        transform: scale(1);
    }
}

/* =====================================
   RESPONSIVE CELULARES Y TABLETS
===================================== */

@media (max-width:768px) {

    body {
        overflow-x: hidden;
    }

    /* ==========================
   MENU MOVIL COMPLETO
========================== */

    .menu-superior {
        position: sticky;
        top: 0;
        width: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    .menu-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .menu-superior::before,
    .menu-superior::after {
        content: "";
        position: absolute;
        top: 0;
        width: 70px;
        height: 100%;
        pointer-events: none;
        z-index: 25;
    }

    .menu-superior::before {
        left: 0;
        background: linear-gradient(to left,
                rgba(0, 0, 0, 0),
                rgba(0, 0, 0, .75));
    }

    .menu-superior::after {
        right: 0;
        background: linear-gradient(to right,
                rgba(0, 0, 0, 0),
                rgba(0, 0, 0, .75));
    }

    .menu-links {
        width: 100%;
        margin: 0;
        padding: 10px 20px;

        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;

        gap: 20px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
        box-sizing: border-box;
    }

    .menu-links::-webkit-scrollbar {
        display: none;
    }

    .menu-links li {
        flex-shrink: 0;
        width: auto;
    }

   .menu-links li a{
        min-width:auto;
        width:auto;
        white-space:nowrap;

        font-size:14px;
        padding:8px 12px;
    }

    /* LOGO INICIO */

    .home-icon {
        display: block;
        flex-shrink: 0;
    }

    .home-icon img {
        width: 65px;
        height: 65px;
        object-fit: contain;
    }

    /* LOGIN */

    .login-icon {
        flex-shrink: 0;
        width: auto !important;
    }

    .login-icon img {
        width: 35px;
        height: 35px;
    }

    /* ==========================
       BOTONES CATEGORIA
    ========================== */

    .categoria-switch {
        margin-top: 20px;
        margin-bottom: 30px;

        display: flex;
        justify-content: center;
        align-items: center;

        gap: 12px;
        padding: 0 15px;
    }

    .categoria-btn {
        flex: 1;
        max-width: 190px;

        margin: 0;

        font-size: 14px;
        padding: 12px 10px;
    }

    /* ==========================
       GRID
    ========================== */

    .atractivos-grid {
        padding: 15px;
        grid-template-columns: 1fr;
        gap: 30px;

        justify-items: center;
    }

    /* ==========================
       CARDS
    ========================== */

    .atractivo-card {
        width: 100%;
        max-width: 380px;

        margin: 0 auto;

        border-radius: 20px;
        overflow: hidden;

        background: rgba(255, 255, 255, .92);

        box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
    }

    .atractivo-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

    .atractivo-card h3 {
        font-size: 20px;
        text-align: center;
        margin: 15px;
    }

    .atractivo-card p {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 15px;
        text-align: justify;
    }

    .btn-ver-mas {
        width: 90%;
        max-width: 250px;

        display: block;

        margin: 18px auto 20px;
        padding: 12px;

        text-align: center;
        font-size: 15px;

        border-radius: 14px;
    }

    /* ==========================
       MODAL
    ========================== */

    .modal {
        padding: 10px;
    }

    .modal-pro {
        width: 95%;
        max-height: 85vh;
        padding: 20px;
    }

    .modal-img-pro {
        height: 220px;
    }

    .modal-titulo-pro {
        font-size: 24px;
    }

    .modal-info-pro h3 {
        font-size: 17px;
    }

    .modal-texto-pro {
        font-size: 14px;
    }

    .cerrar-pro {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}


/* =====================================
   CELULARES PEQUEÑOS
===================================== */

@media (max-width:480px) {

    .categoria-switch {
        flex-direction: column;
        align-items: center;
    }

    .categoria-btn {
        width: 100%;
        max-width: 320px;
    }

    .atractivo-card {
        max-width: 340px;
    }

    .atractivo-card img {
        height: 190px;
    }

    .atractivo-card h3 {
        font-size: 18px;
    }

    .atractivo-card p {
        font-size: 13px;
    }

    .modal-img-pro {
        height: 180px;
    }

    .modal-titulo-pro {
        font-size: 20px;
    }
}