/* Fuente y colores globales */
* {
    font-family: "Source-sans-pro", sans-serif;
}

/* ———————————————————————————————
   Estilo opcional de la familia Roboto
——————————————————————————————— */
.roboto-regular {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
.container-week-cupons{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: start;
    padding-bottom: 80px
}

.week-container {
    height: 292px;
    flex: 1 1 calc(25% - 16px);
    max-width: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    position: relative;
    border: solid 1px #003278 !important;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);

    overflow: hidden; /* recorta la capa oscura */
    transition: all 0.3s ease;
    z-index: 2;
}

/* Capa OSCURA que aparece en hover */
.week-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

/* Flecha inferior izquierda */
.week-container::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 0;
    border-bottom: 125px solid transparent;
    border-top: 30px solid #d6eef6;
}

/* Efecto HOVER (crecer + oscurecer) */
.week-container:hover {
    transform: scale(1.04);
}
.week-container:hover::after {
    opacity: 1;
}

/* TEXTO "LEER MÁS" en el centro */
.week-leer-mas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 400;
    font-size: 1rem !important;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    width: 60%;
    border-radius: 12px;
    padding: 8px !important;
    background-color: #003278 !important;
    transition: opacity 0.3s ease, background-color 0.4s ease-in;

}
.week-leer-mas:hover{
    background-color: #59a5ff !important;
    color: white;

}
.week-container:hover .week-leer-mas {
    opacity: 1;
}
/* ———————————————————————————————
   TARJETA INTERNA
——————————————————————————————— */
.week-card {
    height: 220px;
    width: 190px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 8px;
    overflow: hidden;
    gap: 12px;
}
.week-nombre {
    color: #003278 !important;
    font-size: 1.4rem !important;
    line-height: 1em !important;
    font-weight: 400 !important;
    margin-bottom: 4px !important;

}
.week-container-img {
    height: 80px;
}
.week-img {
    max-width: 250px;
    max-height: 80px;
    border-radius: 10px !important;
}
.week-descripcion {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1em !important;
    word-wrap: break-word !important;
    margin-bottom: 4px !important;
}

/* ———————————————————————————————
   CONTENEDOR PRINCIPAL DE LA SEMANA
——————————————————————————————— */

.week-modal {
    position: fixed;
    top: 0;
    left: 0;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}
.week-modal.show {
    visibility: visible;
    opacity: 1;
}
.week-modal-container {
    height: 480px;
    width: 480px;
    padding-block: 36px;
    padding-inline: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;

    position: relative;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);

    overflow: hidden;
    transition: transform 0.3s ease;
}
.week-modal-container-normal{
    background: linear-gradient(
            to bottom,
            rgb(255, 255, 255) 50%,
            rgb(0, 150, 200) 400%
    );
}
.week-modal-container-e-commerce{
    background: linear-gradient(
            to bottom,
            rgb(255, 255, 255) 50%,
            rgb(200, 90,0) 400%
    );
}
.week-modal-container-restaurant{
    background: linear-gradient(
        to bottom,
        rgb(255, 255, 255) 50%,
        rgb(0, 200, 123) 400%
    );
}
.week-modal-container-tienda{
    background: linear-gradient(
        to bottom,
        rgb(255, 255, 255) 50%,
        rgb(197, 200,0)400%
    );
}
.week-modal-container-hoteleria{
    background: linear-gradient(
            to bottom,
            rgb(255, 255, 255) 10%,
            rgb(0, 53, 106) 400%
    );
}

/* ———————————————————————————————
   TARJETA INTERNA
——————————————————————————————— */
.week-modal-card {
    margin-top: 20px;
}
.week-modal-container-img {
    padding-top: 100px;
    padding-bottom: 20px;
}
.week-modal-img {
    margin-top: 12px;
    max-width: 500px;
    max-height: 160px;
    border-radius: 12px !important;
}
.week-modal-content h2{
    font-weight: 400 !important;
}
.week-modal-content p{
    line-height: 1.2em;
    color: #1b2533;
}
.week-modal-nombre {
    font-size: 2rem !important;
    margin-bottom: 10px;
}
.week-modal-descripcion {
    font-size: 1rem !important;
    font-weight: 400;
    max-width: 40ch;
    word-wrap: break-word;
    margin: 0 auto 10px;
    padding-top: 20px;
}
.week-modal-direccion {
    font-size: 0.9rem !important;
    color: rgba(0, 50, 120);
    padding-bottom: 20px;
}

/*     LOGO      */
.logo-fallback {
    width: 80px;
    height: 80px;
    background-color: #e0e0e0;
    border-radius: 50%;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.3s, transform 0.3s;
}
.logo-fallback:hover {
    background-color: #d0d0d0;
    transform: scale(1.05);
}

/* ———————————————————————————————
   FOOTER PEGADO ABAJO
——————————————————————————————— */
.week-modal-footer {
    text-align: center;
}

/* Instagram link con ícono */
.week-modal-instagram {
    display: inline-block;
    margin-bottom: 5px;
    text-decoration: none;
    line-height: 1.2em;
}
.week-modal-img{

    width: 120px;
    height: 120px;
    border-radius: 12px;
}
.week-modal-icon {
    width: 25px;
    height: 25px;
    transition: transform 0.2s ease;
    filter: brightness(0) saturate(100%) invert(16%) sepia(51%) saturate(734%)
    hue-rotate(181deg) brightness(94%) contrast(101%);
}
.week-modal-insta-icon:hover {
    transform: scale(1.2);
}

/* Validez */
.week-modal-validez {
    font-size: 1rem !important;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* error al cargar */
.container-week-error {
    width: 320px;
    height: 240px;
    border: 1px solid #003278;
    border-radius: 8px;
    margin-top: 52px;
    padding-inline: 64px;
    padding-block: 24px;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s;
}
.container-week-error h3 {
    margin-bottom: 0;
}
.container-week-error h2 {
    color: #003278;
}
.week-error-btn {
    padding-inline: 46px;
    padding-block: 8px;
    background-color: #003278;
    color: #fefefe;
    border-radius: 4px;
    border: none;
    font-size: 1.2em;
    transition: all 0.3s;
    cursor: pointer;
}
.week-error-btn:hover {
    box-shadow: #003278 0px 12px 12px -12px;
    background: #0078e8;
}
.week-error-btn-hidden {
    display: none;
}


.week-filters {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: space-evenly !important;
    margin-bottom: 36px !important;
}
.week-btn-filter {
    all: unset;
    padding-inline: 46px !important;
    padding-block: 8px !important;
    background-color: #003278 !important;
    color: #fefefe !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 1em !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
}
.week-btn-filter:hover {
    all: unset;
    color: #003278 !important;
    box-shadow: 0 6px 12px -6px rgb(0, 163, 234) !important;
    background-color: #fefefe !important;
}
.week-btn-filter:active{
    all: unset;
    background-color: transparent !important;
    color: #003278 !important;
    border: solid 1px #003278  !important;
}
.week-btn-filter:focus{
    all: unset;
     background-color: transparent !important;
     color: #003278 !important;
    border: solid 1px #003278 !important ;
 }
.week-btn-filter p{
    margin-bottom: 0 !important;
    padding: 4px;
}
.week-btn-filter-restaurante:hover {
    all: unset;
    color: #003278 !important;
    box-shadow: 0 6px 12px -6px rgb(0, 200, 123) !important;
}
.week-btn-filter-tienda:hover {
    all: unset;
    color: #003278 !important;
    box-shadow: 0 6px 12px -6px rgb(197, 200, 0) !important;
}
.week-btn-filter-hoteleria:hover {
    all: unset;
    color: #003278 !important;
    box-shadow: 0 6px 12px -6px rgb(0, 53, 106) !important;
}
.week-btn-filter-ecommerce:hover {
    all: unset;
    color: #003278 !important;
    box-shadow: 0 6px 12px -6px rgb(200, 90, 0) !important;
}

@media (max-width: 380px) {
    .week-container {
        flex: 1 1 calc(50% - 16px); /* 2 por fila en mobile */
    }
    .week-leer-mas{
        width: 95%;
    }
    .week-modal-container{
        width: 95%;
    }
}

@media (380px <= width <= 768px) {
    .week-container {
        flex: 1 1 calc(50% - 16px); /* 2 por fila en mobile */
    }
    .week-leer-mas{
        width: 95%;
    }
    .week-modal-container{
        width: 95%;
    }
    .container-week-cupons{
        justify-content: center !important;
    }
}