* {
    margin: 0px;
    padding: 0px;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

a{
    user-select: none;
}

body{
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
    width: 100%;
    
}

@font-face {
    font-family: 'Associate-Sans';
    src: url('../../css/fonts/Associate-Sans/AssociateSansRegular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.main-div{
    line-height: 1;
    background-image: url("https://sds-uniformes-api.onrender.com/uploads/imagenes-1751377583123-180357472.jpg");
    background-size: 100% 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.div-title{
    background: #fffffff6;
}
.div-list {
    position: relative; /* Necesario para el pseudo-elemento */
    height: calc(80vh - 80px); /* Si tienes header 80px */
    padding: 35px;
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    
    z-index: 0; /* Asegura que el contenido esté encima del fondo */
    font-family: "Gabarito", sans-serif;
}

.div-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(120, 120, 120, 0.18); /* Gris suave y translúcido */
    pointer-events: none;
    z-index: 1;
}

.div-list > * {
    position: relative;
    z-index: 2; /* El contenido estará encima del sombreado */
}

.main-title {
    text-align: center;
    font-size: 2.4em;
    font-weight: 700;
    color: #17406b;
    padding: 14px 0 0 0;
    font-family: "Gabarito", sans-serif;
}

.main-subtitle {
    text-align: center;
    font-size: 1.2em;
    font-weight: 500;
    color: #2563a6;
    padding: 8px 0 12px 0;
    font-family: "Gabarito", sans-serif;
}

.card-class, .card-sport {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 20px;
    max-width: 600px;
    min-width: 320px;
    width: 100%;
    min-height: 340px;
    box-shadow: 0 6px 24px 0 rgba(60, 60, 60, 0.28);
    margin: 0 auto;
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.3s; /* Animación hover */
}

.card-class::after,
.card-sport::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2.5px solid rgba(255,255,255,0.25); /* Borde semitransparente */
    z-index: 1; /* Encima de la imagen, debajo del contenido */
    pointer-events: none;
}

.card-class:hover,
.card-sport:hover {
    box-shadow: 0 12px 36px 0 rgba(60, 60, 60, 0.36);
    transform: translateY(-3px) scale(1.03);
}

.card-class:focus,
.card-sport:focus {
    outline: 2px solid #2563a6;
    outline-offset: 2px;
}

.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-overflow {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: rgba(29, 75, 118, 0.18);
    height: 100%;
}

.section-text{
    padding-top: 100px;
    height: auto;
    width: 560px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.title{
    text-align: start;
    color: #fff;
    font-weight: 700;
    line-height: 60px;
    font-size: 2em;
    margin-bottom: 8px;
}

.btn-shop:link, .btn-shop:visited {
    position: absolute;
    border: 2px solid white;
    background-color: #3e98f5;
    padding: 20px 40px;
    bottom: 5%;
    right: 6%;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: 0.4s ease-in-out;
    font-size: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(62, 152, 245, 0.18);
}

.btn-shop:hover {
    background: #2563a6;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(62, 152, 245, 0.22);
}

.btn-shop:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/*Scale window*/
@media (max-width: 900px) {
  .div-list {
    flex-direction: column;
    height: auto;
    gap: 30px;
    padding: 20px;
  }
  .section-text {
    width: 100%;
    margin-left: 0;
    padding-top: 40px;
  }
  .background-winter-autumn, .background-spring-summer {
    height: 40vh;
    min-height: 220px;
  }
}

/* Responsive para menú */
@media (max-width: 700px) {
    #nav-buttons {
        right: 8px;
        top: 8px;
        min-width: 100px;
        padding: 6px;
        max-height: 36px;
    }
    #nav-buttons.open {
        max-height: 140px;
    }
    #nav-buttons::before {
        font-size: 0.95em;
        margin-bottom: 4px;
    }
    .nav-button {
        padding: 8px 10px;
        font-size: 0.95em;
    }
}

/* Responsive: ocultar menú horizontal en móviles y mostrar con .open */
@media (max-width: 900px) {
    #menu_horizontal {
        display: none;               /* oculto por defecto en móvil */
        position: absolute;
        top: 56px;                   /* ajustar según header */
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 8px 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
        z-index: 60;
    }

    #menu_horizontal.open {
        display: flex;               /* visible al abrir */
    }

    #menu_horizontal a {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }

    /* el botón del menú a la vista */
    #btn_menu_horizontal {
        display: inline-block;
    }
    .dropdownMenu{
        left: 0 !important;
        right: inherit;
        text-align: left;
    }
    
    #primera_franja nav#menu_horizontal a,
    .user-menu .dropdownButton,
    .user-menu .dropdownButton:visited {
        display: inline-block;
        padding: 8px 14px;
        color: #2563a6;
        background: none;
        border: 1px solid transparent;
        font-family: 'Associate-Sans', sans-serif;
        border-radius: 6px;
        font-weight: 500;
        font-size: 1em;
        text-decoration: none;
        line-height: 1;
        cursor: pointer;
        transition: color 0.1s , background-color 0.1s , border-color 0.1s ;
    }

    /* Hover: solo cambia color de la letra (y ligero fondo opcional muy sutil) */
    #primera_franja nav#menu_horizontal a:hover,
    .user-menu .dropdownButton:hover,
    #primera_franja nav#menu_horizontal a:focus,
    .user-menu .dropdownButton:focus {
        animation: hoverFlash 1s forwards;
    }

    /* Alineación y separación coherente con el menú */
    #primera_franja nav#menu_horizontal a,
    .user-menu .dropdownButton{
        margin: 0 6px;
    }
    
    @keyframes hoverFlash {
        0% {
            color: 2563a6;
            background-color: transparent;
            border-color: transparent;transition: color 0.1s , background-color 0.1s , border-color 0.1s ;
        }
        50% {
            color: #17406b;
            background-color: rgba(23,64,107,0.04);
            border-color: rgba(23,64,107,0.06);
            transition: color 0.1s , background-color 0.1s , border-color 0.1s ;
        }
        100% {
            color: 2563a6;
            background-color: transparent;
            border-color: transparent;
            transition: color 0.1s , background-color 0.1s , border-color 0.1s ;
        }

    }

    .main-div {
        background: none; /* quitamos el background original */
    }

    .main-div::before {
        content: "";
        position: absolute;
        top: 64%;
        width: 100vh; /* altura original de la imagen */
        height: 100%;
        background-image: url("https://sds-uniformes-api.onrender.com/uploads/imagenes-1751377583123-180357472.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center;
        transform: translate(-50%, -50%) rotate(90deg);
        z-index: -1; /* se queda detrás del contenido */
    }
}

.mensaje-cerrado {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 18px 44px 18px;
    background: #f4f8fb;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(47, 93, 137, 0.10), 0 1.5px 8px rgba(47,160,216,0.07);
    margin: 40px auto 0 auto;
    max-width: 480px;
}

.mensaje-cerrado-icono {
    font-size: 2.8em;
    margin-bottom: 16px;
}

.mensaje-cerrado-titulo {
    color: #1d4b76;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.35em;
    font-weight: 700;
}

.mensaje-cerrado-texto {
    font-size: 1.08em;
    color: #2563a6;
    margin-bottom: 10px;
    text-align: center;
}

.mensaje-cerrado-lista {
    color: #2563a6;
    font-size: 1em;
    margin: 16px 0 0 0;
    padding-left: 0;
    list-style: none;
    text-align: left;
}

.mensaje-cerrado-lista li {
    margin-bottom: 4px;
}

.mensaje-cerrado-contacto {
    margin-top: 18px;
    color: #17406b;
    font-size: 0.98em;
    text-align: center;
}