/* =========================================================
   RESET
========================================================= */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;

    background-image: url('/imagenes/fondos_ventanaS/fondogastro.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;

    color: #4a413c;
}


/* =========================================================
   MENU SUPERIOR
========================================================= */
.menu-superior {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0px 0;

    display: flex;
    justify-content: center;
    z-index: 999;

    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    backdrop-filter: blur(4px);
}

.menu-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.menu-links li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 130px;
    text-align: center;

    color: white;
    text-decoration: none;
    font-size: 16px;

    padding: 6px 10px;
    line-height: 1.2;

    transition: 0.3s;
    position: relative;
}

.menu-links li a:hover {
    color: #ffe6ff;
    transform: translateY(-2px);
}

.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;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 25px;
    border: 2px solid #e7b57a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.20);
}

.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 */
.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;
}


/* =========================================================
   TÍTULO
========================================================= */
.servicios-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;

    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;

    margin-top: 20px;
    margin-bottom: 40px;

    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   SECCIÓN
========================================================= */
.servicios-section {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 0 40px 80px;
}

/* =========================================================
   GRID
========================================================= */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 45px;
}


/* =========================================================
   CARD
========================================================= */
.servicio-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    overflow: hidden;

    backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);

    text-align: center;
    transition: 0.35s;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}


/* IMG */
.servicio-img {
    width: 100%;
    height: 240px;
    object-fit: cover;

    display: block;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

/* TEXTO */
.servicio-card h3 {
    margin: 15px;
    font-size: 22px;
    color: #7c4c25;
}

.servicio-card p {
    margin: 0 15px 18px;
    color: #4a413c;
    font-size: 16px;
}


/* =========================================================
   BOTÓN
========================================================= */
.btn-ir {
    display: inline-block;
    margin: 15px auto 25px auto;
    padding: 12px 30px;

    background: #ffb36d;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 700;

    border-radius: 14px;
    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

    transition: 0.35s ease;
}

.btn-ir:hover {
    background: #a32bbf;
    color: white;
    transform: translateY(-2px) scale(1.05);
}

/* =========================================================
   RESPONSIVE MOVIL
========================================================= */

@media (max-width: 768px) {

    /* ===== AJUSTES EDITABLES ===== */

    /* Tamaño de la card */
    .servicio-card {
        width: 100%;
        max-width: 420px;
        /* ← CAMBIA AQUÍ */
        margin: 0 auto;

        border-radius: 20px;
        overflow: hidden;

        background: rgba(255, 255, 255, .95);
        box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
    }

    /* Tamaño de la imagen */
    .servicio-img {
        width: 100%;
        height: 240px;
        /* ← CAMBIA AQUÍ */
        object-fit: cover;
        display: block;
    }

    /* Separación lateral */
    .servicios-section {
        padding: 0 4px 40px;
        /* ← CAMBIA AQUÍ */
    }

    /* Grid centrado */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        /* ← CAMBIA AQUÍ */
        justify-items: center;
        align-items: center;
    }

    /* ==========================
   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;
    }

    /* ===== TITULO ===== */

    .servicios-title {
        font-size: 28px;
        margin-top: 20px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    /* ===== TEXTO ===== */

    .servicio-card h3 {
        font-size: 20px;
        /* ← CAMBIA AQUÍ */
        margin: 15px;
        text-align: center;
    }

    .servicio-card p {
        font-size: 14px;
        /* ← CAMBIA AQUÍ */
        line-height: 1.7;
        padding: 0 15px;
        margin-bottom: 18px;
        text-align: justify;
    }

    /* ===== BOTÓN ===== */

    .btn-ir {
        width: 90%;
        max-width: 260px;
        /* ← CAMBIA AQUÍ */

        display: block;
        margin: 18px auto 20px;

        padding: 12px;
        font-size: 15px;
        text-align: center;

        border-radius: 14px;
    }
}

/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 480px) {

    .servicio-card {
        max-width: 380px;
        /* ← CAMBIA AQUÍ */
    }

    .servicio-img {
        height: 220px;
        /* ← CAMBIA AQUÍ */
    }

    .servicio-card h3 {
        font-size: 18px;
    }

    .servicio-card p {
        font-size: 13px;
    }

    .btn-ir {
        width: 90%;
        font-size: 14px;
    }
}