/* --- Variables y Reset Básico --- */
:root {
    --color-red-barflama: #fa5f4e;
    --color-black: black;
    --color-white: #ffffff;
    --font-primary: 'Bricolage Grotesque', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    /* Quita el resaltado celeste/azul al tocar (iOS/Android) */
    -webkit-tap-highlight-color: transparent;
}

/* Evita “focus ring” azul en taps; mantenemos focus accesible con :focus-visible */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(221, 62, 32, 0.9);
    outline-offset: 2px;
}

@supports not selector(:focus-visible) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid rgba(221, 62, 32, 0.9);
        outline-offset: 2px;
    }
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px;
    width: 100%;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

main {
    flex-grow: 1;
    width: 100%;
    display: block;
    position: relative;
    overflow-x: hidden;
}


::selection {
    background-color: rgb(32, 32, 32);
    color: var(--color-red-barflama);
}

::-moz-selection {
    background-color: rgb(32, 32, 32);
    color: var(--color-red-barflama);
}
/* -------------------------------------- IMÁGENES Y VIDEOS RESPONSIVOS -------------------------------------- */
img,
video,
picture,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    image-rendering: auto;
}

video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* -------------------------------------- ANIMACIONES (Visibles y Ocultas) -------------------------------------- */

.animate-slide-in-top {
    transform: translateY(-20px);
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-in-top-img {
    transform: translateY(-100px);
    opacity: 0;
    transition: opacity 2s ease-out, transform 0.8s ease-out;
}

.animate-slide-in-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-in-right {
    transform: translateX(50px);
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ----------------------------------------------------------------------------- PESTAÑA DE AVISO ----------------------------------------------------------------------------- */

.disclaimer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.disclaimer-modal {
    background-color: black;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 80%;
    max-height: 90%;
    overflow-y: auto;
    width: 50vw;
    min-width: 300px;
    animation: bounceIn 0.5s ease-out;
}

.disclaimer-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}
.btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%;
}
@media (min-width: 768px) {
    .disclaimer-modal {
        width: 50vw;
        max-width: 650px;
    }

    .disclaimer-buttons {
        flex-direction: row;
    }

    .btn-small {
        width: auto;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.disclaimer-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-red-barflama);
    margin-bottom: 20px;
    line-height: 1.2;
}

.disclaimer-message {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 30px;
}

.barflama-link {
    color: var(--color-red-barflama);
    font-weight: 700;
    text-decoration: none;
}

.barflama-link:hover {
    text-decoration: underline;
}

#accept-disclaimer {
    padding: 12px 30px;
    font-size: 1.1rem;
    width: auto;
}

/* --- Media Query para Móvil (ajustar tamaño si 50vw es muy grande) --- */
@media (max-width: 768px) {
    .disclaimer-modal {
        width: 90vw;
        padding: 30px 20px;
    }

    .disclaimer-title {
        font-size: 1.5rem;
    }
}

/* ----------------------------------------------------------------------------- HEADER ----------------------------------------------------------------------------- */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    background-color: #f8341f;
    height: 100px;
    box-shadow: none;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: 150px;
    object-fit: contain;
}

.nav-link {
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
}
@media (min-width: 1600px) {
    .logo-img {
        margin-left: 500px;
    }

    .main-nav.desktop-nav {
        margin-right: 300px;
    }
}
@media (min-width: 1024px) and (max-width: 1599px) {
    .logo-img {
        margin-left: 100px;
        margin-right: 250px;
        height: 130px;
    }

    .main-nav.desktop-nav {
        margin-right: 150px;
        gap: 25px;
    }
}
@media (min-width: 769px) and (max-width: 1023px) {
    .logo-img {
        margin-left: 50px;
        margin-right: 70px;
    }

    .main-nav.desktop-nav {
        margin-right: 80px;
        gap: 20px;
    }
}
.main-nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-left: auto;
    margin-top: 30px;
    margin-right: 300px;
}

.main-nav.desktop-nav .nav-link {
    color: black;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.main-nav.desktop-nav .nav-link:hover {
    color: white;
}

.main-nav.desktop-nav .nav-link.active {
    font-weight: 600;
    color: white;
}
.hamburger-menu,
.main-nav.mobile-nav {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* --- MEDIA QUERY: VERSIÓN MÓVIL (<= 768px) --- */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    .main-header {
        justify-content: space-between;
        padding: 15px 20px;
        height: 70px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: var(--color-red-barflama);
        z-index: 1000;
    }

    .logo-img {
        height: 90px;
        margin-left: 0;
    }

    .main-nav.desktop-nav {
        display: none !important;
    }

    .hamburger-menu {
        width: 30px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 102;
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: var(--color-black);
        transition: all 0.3s ease-in-out;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav.mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        padding: 20px 0;
        z-index: 101;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
    }

    .main-nav.mobile-nav.open {
        transform: translateX(0);
    }

    .main-nav.mobile-nav .nav-link {
        font-size: 1.2rem;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #eee;
        color: var(--color-black);
        width: 100%;
    }

    body {
        padding-top: 70px;
    }
}

/* ----------------------------------------------------------------------------- SECCION 1 (SLIDER CORREGIDO) ----------------------------------------------------------------------------- */

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 60vh;
    display: block;
    margin-top: -1px;
}

.slides-wrapper {
    display: flex;
    width: calc(100% * var(--total-slides));
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    width: calc(100% / var(--total-slides));
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Flechas de Navegación --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0.8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--color-red-barflama);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

.left-arrow {
    left: 15px;
}

.right-arrow {
    right: 15px;
}

/* --- Indicadores (Puntos) --- */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.indicator.active {
    background-color: var(--color-red-barflama);
    transform: scale(1.3);
    border-color: var(--color-red-barflama);
}

/* --- MEDIA QUERY: ESCRITORIO (>= 768px) --- */
@media (min-width: 768px) {
    .slider-container {
        height: calc(100vh - 100px);
    }

    .slider-arrow svg {
        width: 30px;
        height: 30px;
    }

    .slider-arrow {
        padding: 15px;
    }

    .left-arrow {
        left: 30px;
    }

    .right-arrow {
        right: 30px;
    }
}

/* ====================================== ====================================== SECCION 2 ====================================== ======================================*/

.seccion2-container {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
    margin-bottom: 200px;
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* --- Contenedor Izquierdo (Video) --- */
.seccion2-left {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.seccion2-video-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1);
}

.seccion2-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Contenedor Derecho (Texto y Botones) --- */
.seccion2-right {
    text-align: center;
}

.seccion2-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
}

.seccion2-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-right: auto;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.seccion2-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-red-barflama);
    color: var(--color-white);
    border-color: var(--color-red-barflama);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-red-barflama);
    color: var(--color-red-barflama);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* --- Logo flotante de la esquina superior derecha (manos con pizza) --- */
.seccion2-corner-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: auto;
    z-index: 10;
    opacity: 0.7;
}

.seccion2-corner-logo img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .seccion2-video-wrapper {
        width: 300px;
        height: 300px;
        margin-top: 80px;
    }
}

/* -------------------------------------------------------------------------- */
/* --- MEDIA QUERY: ESCRITORIO (>= 768px) --- */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .seccion2-container {
        flex-direction: row;
        justify-content: center;
        padding: 80px 40px;
        gap: 80px;
    }

    .seccion2-left {
        margin-bottom: 0;
        width: 40%;
        max-width: 450px;
        flex-shrink: 0;
    }

    .seccion2-video-wrapper {
        width: 400px;
        height: 400px;
    }

    .seccion2-right {
        text-align: left;
        width: 45%;
        max-width: 550px;
    }

    .seccion2-title {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }

    .seccion2-text {
        font-size: 1.2rem;
        margin-bottom: 40px;
        margin-left: 0;
        margin-right: 0;
    }

    .seccion2-buttons {
        justify-content: flex-start;
    }

    .seccion2-corner-logo {
        width: 200px;
        top: 20px;
        right: 40px;
        opacity: 1;
    }
}

/* ====================================== ====================================== SECCION 3 ====================================== ======================================*/

.seccion3-container {
    padding: 60px 0;
    background-color: var(--color-black);
    overflow: hidden;
    position: relative;
}

.gallery-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 400px;
    user-select: none;
    touch-action: pan-y;
}

.gallery-inner {
    display: flex;
    height: auto;
    padding: 20px 0;
    will-change: transform;

    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.gallery-item {
    flex-shrink: 0;
    max-width: 250px;
    height: 100%;
    margin-right: 20px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-out;
    background-color: #222;
    perspective: 1000px;
}

.gallery-item img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
    transition: transform 0.3s ease-out;

    image-rendering: auto;
    will-change: transform;
}
.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: none;
}

/* --- LIGHTBOX STYLES --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* --- MEDIA QUERY: ESCRITORIO (>= 768px) --- */
@media (min-width: 768px) {
    .gallery-wrapper {
        height: 500px;
    }

    .gallery-item {
        max-width: 350px;
        margin-right: 30px;
    }
}

/* ====================================== ====================================== FOOTER ====================================== ======================================*/

.main-footer {
    background-color: #000000;
    color: #FFFFFF;
    font-size: 0.875rem;
    padding-top: 2rem;
    margin-top: 150px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* --- Sección de Marca (Logo y Copyright) --- */

.footer-brand-section {
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-brand-section {
        width: 30%;
    }
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-image {
    height: 4rem;
    width: 10rem;
    object-fit: contain;
    user-select: none;
    transition: filter 0.3s ease;
}

.footer-logo-image:hover {
    filter: brightness(3) saturate(0);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo-highlight {
    color: var(--color-primary);
}

.footer-copyright {
    color: #A0A0A0;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* --- Iconos Sociales (Final - Usando SVG) --- */
.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.3rem;
    width: 1.3rem;
    color: #8c8c8c;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    user-select: none;
}

.social-icon svg {
    fill: currentColor;
    width: 1.5rem;
    height: 1.5rem;
}

.social-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* --------------------------------------
   7. Tooltip para Iconos Sociales 
   -------------------------------------- */

.social-icon::after {
    content: attr(data-platform);
    background-color: #333333;
    color: var(--color-white);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon:hover::after,
.social-icon:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

/* --- Selector de Idioma Desplegable (Simulación de la caja) --- */
.footer-language-selector {
    position: relative;
    margin-bottom: 1.5rem;
}

.language-display-button {
    background-color: transparent;
    color: #A0A0A0;
    border: 1px solid #A0A0A0;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="12" viewBox="0 0 24 24" width="12" fill="%23A0A0A0"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-display-button:hover {
    color: white;
    border: 1px solid rgb(255, 255, 255);
}

.language-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 10;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #121212;
    border: 1px solid #A0A0A0;
    border-radius: 0.25rem;
    min-width: 100%;
    display: none;
}

.language-dropdown-menu.open {
    display: block;
}

.language-option {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #A0A0A0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s, color 0.15s;
}

.language-option:hover {
    background-color: #333333;
    color: var(--color-white);
}

.language-option.active-language {
    color: white;
}
.language-select option {
    background-color: initial;
    color: initial;
}

/* --- Grupos de Links (Explorar, Recursos, Cuenta) --- */

.footer-links-group {
    width: 45%;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-links-group {
        width: 20%;
    }
}

.footer-links-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--color-white);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-desc {
    color: #A0A0A0;
    text-decoration: none;
    line-height: 2.2;
    display: block;
    transition: color 0.15s;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: .875rem;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-link-desc2 {
    color: #A0A0A0;
    text-decoration: none;
    line-height: 2.2;
    display: block;
    transition: color 0.15s;
    margin-bottom: 15px;
    font-size: .875rem;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-link {
    color: #A0A0A0;
    text-decoration: none;
    line-height: 2.2;
    display: block;
    transition: color 0.15s;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: .875rem;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-link:hover {
    color: var(--color-white);
}

/* --- Barra Inferior --- */

.footer-bottom-bar {
    background-color: rgb(26, 26, 26);
    border-top: 1px solid #222222;
    padding: 1rem 1rem;
    text-align: center;
}

.footer-bottom-text {
    max-width: 1280px;
    margin: 0 auto;
    color: #A0A0A0;
    font-size: 0.75rem;
}

.footer-bottom-link {
    color: #A0A0A0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.15s;
}

.footer-bottom-link:hover {
    color: white;
}

/* ====================================== ====================================== ERROR 404 ====================================== ======================================*/

.error404-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 60px 20px;
    text-align: center;
    background-color: var(--color-white);
    min-height: calc(100vh - 200px);
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-red-barflama);
    margin-bottom: 0;
    line-height: 1;
    opacity: 0.9;
}

.error-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-top: 10px;
    margin-bottom: 15px;
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin-bottom: 30px;
}

.error-button {
    padding: 14px 30px;
    font-size: 1rem;
}

.error-decoration {
    font-size: 3rem;
    margin-top: 40px;
    opacity: 0.5;
    transition: all 0.5s ease-in-out;
}

.error-decoration:hover {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.8;
}

/* --- Media Query para Escritorio --- */
@media (min-width: 768px) {
    .error-code {
        font-size: 12rem;
    }

    .error-title {
        font-size: 3rem;
    }
}

/* -------------------------------------------------------------------------- MENU -------------------------------------------------------------------------- */

.menu-section-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    text-align: center;
}

.menu-section-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-red-barflama);
    letter-spacing: 1px;
    margin: 0 0 8px;
    user-select: none;
    margin-top: 100px;
}

.menu-section-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .menu-section-title {
        font-size: 2.1rem;
    }
}

.menu-placeholder {
    padding: 60px 20px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.location-card {
    width: 100%;
    max-width: 350px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;

}

.location-card:hover {
    transform: translateY(-5px);
}

.card-link {
    text-decoration: none;
    display: block;
    position: relative;
}

.card-image {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.location-card:hover .card-image {
    filter: brightness(1);
}

/* --- Estilos del Overlay de Texto (Caja Naranja) --- */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    background-color: var(--color-red-barflama);
    color: var(--color-white);

    padding: 15px 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 3px solid var(--color-white);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.overlay-text {
    font-family: var(--font-primary);
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.menu-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.location-name {
    font-size: 2.5rem;
    font-weight: 800;
}


/* --- MEDIA QUERY: ESCRITORIO (>= 768px) --- */
@media (min-width: 768px) {
    .menu-placeholder {
        flex-direction: row;
        gap: 50px;
        padding: 80px 40px;
    }

    .location-card {
        max-width: 400px;
    }

    .card-image {
        height: 600px;
    }

    .location-name {
        font-size: 3rem;
    }
}

/* ----------------------------------------------------------------------------- EVENTOS (NO HAY EVENTOS) ----------------------------------------------------------------------------- */

.events-empty-section {
    flex-grow: 1;
    min-height: 70vh;
    background-color: black;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.events-empty-container {
    max-width: 700px;
    padding: 40px;
    border-radius: 12px;
    background-color: black;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.empty-code {
    font-size: 4rem;
    margin-bottom: 10px;
    line-height: 1;
}

.empty-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.empty-message {
    font-size: 1.2rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 25px;
}

.empty-subtext {
    font-size: 1rem;
    color: var(--color-red-barflama);
    font-weight: 600;
    margin-bottom: 30px;
}

.empty-button {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.empty-decoration {
    font-size: 2rem;
    position: absolute;
    top: 10px;
    right: 15px;
    transform: rotate(15deg);
}

/* --- Media Query para Escritorio --- */
@media (min-width: 768px) {
    .events-empty-container {
        padding: 60px 80px;
    }

    .empty-title {
        font-size: 3rem;
    }

    .empty-code {
        font-size: 6rem;
    }
}

/* ----------------------------------------------------------------------------- SECCIÓN PREGUNTAS FRECUENTES (FAQ) ----------------------------------------------------------------------------- */

.faq-section-container {
    padding: 60px 40px;
    background-color: black;
}

.faq-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid black;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid black;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background-color: var(--color-red-barflama);
    padding: 20px 25px;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: black;
    cursor: pointer;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: white;
}

.faq-question.active {
    background-color: var(--color-red-barflama);
    color: white;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
    line-height: 1;
    margin-left: 15px;
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: var(--color-red-barflama);
}

.faq-answer {
    padding: 0 25px 20px 25px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: white;
}

/* --- Media Query para Móvil --- */
@media (max-width: 600px) {
    .faq-title {
        font-size: 2.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
}

/* ----------------------------------------------------------------------------- SECCIÓN NOSOTROS / ABOUT US ----------------------------------------------------------------------------- */

.nosotros-section-container {
    padding: 80px 20px;
    background-color: black;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.main-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

/* --- Estilos de las Filas Alternadas --- */
.content-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto;
}

.row-content-block {
    padding: 0 20px;
    text-align: center;
}

.row-image-block {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.row-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.row-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.row-text {
    font-size: 1.1rem;
    color: white;
    line-height: 1.7;
    margin-bottom: 25px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}


/* -------------------------------------------------------------------------- */
/* --- MEDIA QUERY: ESCRITORIO (>= 768px) --- */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .content-row {
        flex-direction: row;
        gap: 50px;
    }

    .row-content-block,
    .row-image-block {
        width: 50%;
    }

    /* --- FILA ESTÁNDAR (IMAGEN A LA DERECHA) --- */
    .row-content-block {
        order: 1;
        text-align: left;
    }

    .row-image-block {
        order: 2;
    }

    /* --- FILA ALTERNADA (IMAGEN A LA IZQUIERDA) --- */
    .content-row.image-left .row-content-block {
        order: 2;
    }

    .content-row.image-left .row-image-block {
        order: 1;
    }

    .row-title {
        font-size: 2.5rem;
    }
}

/* ----------------------------------------------------------------------------- SECCIÓN CONTACTO Y FORMULARIO ----------------------------------------------------------------------------- */

.contacto-placeholder-css {
    background-color: #000;
}

.contact-header {
    padding: 60px 20px 20px;
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-red-barflama);
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    margin-bottom: 40px;
}

.contact-columns-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    gap: 40px;
}

.contact-form-column,
.contact-instagram-column {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-column {
    background-color: #fcfcfc;
}

.contact-instagram-column {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 50px;
}

.column-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-black);
}

.contact-instagram-column .column-title {
    color: var(--color-white);
}


/* --- Estilos del Formulario --- */
.contact-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group.half-width {
    width: 100%;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--color-white);
    transition: border-color 0.3s;
    font-family: var(--font-primary);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-red-barflama);
    outline: none;
    box-shadow: 0 0 0 1px var(--color-red-barflama);
}

textarea {
    resize: vertical;
}

.reservation-fields-hidden {
    display: none;
    width: 100%;
}

.notice-hidden {
    display: none;
}

.reservation-notice,
.event-notice {
    width: 100%;
    border: 1px solid rgba(214, 32, 32, 0.35);
    background: rgba(214, 32, 32, 0.08);
    color: #111;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 15px;
    line-height: 1.5;
}

.reservation-notice strong,
.event-notice strong {
    color: var(--color-red-barflama);
    font-weight: 800;
    margin-right: 6px;
}

.form-status-message {
    width: 100%;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}


/* --- Estilos Columna Instagram --- */
.instagram-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.contact-direct-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.direct-button {
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.direct-button:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-red-barflama);
}

.instagram-button {
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
    text-align: center;
}

.instagram-button:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-red-barflama);
}

.instagram-decoration {
    font-size: 4rem;
    opacity: 0.15;
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--color-white);
}

.instagram-decoration svg {
    width: 50px;
    height: 50px;
    color: var(--color-white);
}


/* -------------------------------------------------------------------------- */
/* --- MEDIA QUERY: ESCRITORIO (>= 768px) --- */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .contact-title {
        font-size: 3.5rem;
        font-weight: 800;
        color: var(--color-red-barflama);
        margin-bottom: 10px;
    }

    .contact-columns-wrapper {
        flex-direction: row;
        gap: 60px;
    }

    .contact-form-column,
    .contact-instagram-column {
        width: 50%;
        padding: 40px;
    }

    .form-group.half-width {
        width: calc(100% - 7.5px);
    }

    .contact-instagram-column {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .direct-button {
        max-width: 350px;
    }

    .instagram-button {
        max-width: 350px;
    }
}

/* ----------------------------------------------------------------------------- SECCIÓN POLÍTICA DE PRIVACIDAD ----------------------------------------------------------------------------- */

.politica-section {
    background-color: black;
}

.policy-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.7;
    color: white;
    background-color: black;
}

.policy-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-red-barflama);
    margin-bottom: 5px;
}

.policy-last-updated {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 30px;
}

.policy-intro {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid white;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid white;
}

.policy-text,
.policy-contact {
    font-size: 1rem;
    margin-bottom: 15px;
}

.policy-contact {
    font-style: italic;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* --- Media Query para Escritorio --- */
@media (min-width: 768px) {
    .policy-title {
        font-size: 3.5rem;
    }
}

/* ----------------------------------------------------------------------------- SECCIÓN PRODUCTOS POR CATEGORÍA (NUEVA VERSIÓN) ----------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* --- SECCIÓN CATEGORÍAS DE PRODUCTOS (CLASES CON '2') --- */
/* -------------------------------------------------------------------------- */

.productos-categorias-wrapper2 {
    padding: 60px 20px;
    background-color: black;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    user-select: none;
}

.category-card2 {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-link2 {
    text-decoration: none;
    display: block;
    position: relative;
}

.card-image-wrapper2 {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}

.card-image2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card2:hover .card-image2 {
    transform: scale(1.05);
}

/* --- Texto Minimalista Superpuesto --- */
.card-name-overlay2 {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 15px 10px;
    text-align: center;
}

.card-name2 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
}


/* -------------------------------------------------------------------------- */
/* --- MEDIA QUERY: ESCRITORIO (3 COLUMNAS) --- */
/* -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .productos-categorias-wrapper2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .card-name2 {
        font-size: 1.1rem;
    }
}

/* ----------------------------------------------------------------------------- PRODUCTOS -------------------------------------------------------------------------- */
.products-controls2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: right;
    display: grid;
}

.products-header2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px;
    text-align: center;
}

.product-subsection-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 15px;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-red-barflama);
    text-align: left;
    border-bottom: 3px solid var(--color-dark-gray);
    margin-bottom: 30px;
    user-select: none;
    text-align: center;
}

.products-header2 h2 {
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--color-dark-gray);
    user-select: none;
}

.products-grid2 {
    padding: 20px;
    background-color: black;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
}

@media (min-width: 768px) {
    .products-header2 h2 {
        font-size: 2.5rem;
    }

    .products-grid2 {
        max-width: 1200px;
    }
}

.filter-favorites-btn2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--color-red-barflama);
    background-color: transparent;
    color: var(--color-red-barflama);
    font-weight: 600;
}

.filter-favorites-btn2:hover {
    background-color: var(--color-red-barflama);
    color: var(--color-white);
}

.filter-favorites-btn2.active {
    background-color: var(--color-red-barflama);
    color: var(--color-white);
}

.filter-favorites-btn2 i {
    font-size: 1.2em;
    color: inherit;
    user-select: none;
}


.product-card2 {
    background-color: black;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    user-select: none;
    position: relative;
}

.product-card2:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --- AJUSTE DE IMAGEN: completa + hover funcional --- */
.product-image-wrapper2 {
    width: 50%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: black;
    user-select: none;
    margin-left: 25%;
}

@media (min-width: 768px) {
    .product-image-wrapper2 {
        width: 75%;
        margin-left: 10%;
    }
}

.product-image2 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: #0000;
    user-select: none;
}

.product-card2:hover .product-image2 {
    transform: scale(1.08);
}

.product-info2 {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
}

.product-name2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.2;
    user-select: none;
}

.product-description2 {
    font-size: 0.95rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.product-price2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-red-barflama);
    text-align: right;
    display: block;
}

@media (min-width: 768px) {
    .product-name2 {
        font-size: 1.5rem;
    }

    .product-description2 {
        font-size: 1.1rem;
    }

    .product-price2 {
        font-size: 1.45rem;
    }
}

.favorite-button2 {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: #ccc;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 10;
}

.favorite-button2.active {
    color: var(--color-red-barflama);
}

.favorite-button2.active i {
    font-weight: 900;
}

.no-products-message2 {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    font-size: 1.2rem;
    color: #666;
}

.no-products-message2 .btn {
    margin-top: 20px;
}

/* -------------------------------------------------------------------------- */
/* --- MODAL DE DETALLE DEL PRODUCTO (PREVIEW) --- */
/* -------------------------------------------------------------------------- */

.product-detail-backdrop2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    user-select: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.product-detail-backdrop2.is-open {
    opacity: 1;
}

.product-detail-modal2 {
    background: #0b0b0b;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.65);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.product-detail-backdrop2.is-open .product-detail-modal2 {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.close-modal-btn2 {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    background-color: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.close-modal-btn2:hover {
    background-color: rgba(25, 25, 25, 0.82);
    color: #fff;
}

.close-modal-btn2:focus-visible,
.modal-favorite-button2:focus-visible {
    outline: 2px solid rgba(221, 62, 32, 0.9);
    outline-offset: 2px;
}

.modal-image-wrapper2 {
    width: 100%;
    max-height: 350px;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: radial-gradient(circle at 30% 20%, rgba(221, 62, 32, 0.14), rgba(0, 0, 0, 0) 55%),
        #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-product-image2 {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    padding: 20px;
}


.modal-favorite-button2 {
    position: absolute;
    top: 15px;
    right: 80px;
    background-color: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    color: #ccc;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.modal-favorite-button2:hover {
    background-color: rgba(25, 25, 25, 0.82);
    transform: scale(1.05);
}

.modal-favorite-button2.active {
    color: var(--color-red-barflama);
}

@media (max-width: 768px) {
    .modal-favorite-button2 {
        left: 20px;
        right: auto;
        top: 15px;
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
        background-color: rgba(0, 0, 0, 0.6);
    }
    .close-modal-btn2 {
        right: 20px;
        top: 15px;
        width: 38px;
        height: 38px;
        font-size: 2rem;
        background-color: rgba(10, 10, 10, 0.55);
    }
}

.modal-info2 {
    padding: 25px;
    flex-grow: 1;
    background: linear-gradient(135deg, rgba(221, 62, 32, 0.12), rgba(0, 0, 0, 0) 55%),
        #0b0b0b;
}

.modal-product-name2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-product-description2 {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-product-price2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-align: left;
    display: block;
}

@media (min-width: 768px) {
    .products-grid2 {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-detail-modal2 {
        flex-direction: row;
        max-width: 900px;
        max-height: 600px;
    }
    .modal-image-wrapper2 {
        min-width: 400px;
        height: auto;
        align-self: stretch;

        /* Evita que el contenedor blanco quede “corto” (max-height móvil) y
           se vea el fondo naranjo por debajo en el lado izquierdo. */
        max-height: none;

        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
        border-top-right-radius: 0;

        /* Separador sutil entre imagen e info */
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
    .modal-product-image2 {
        width: 100%;
        height: 100%;
        max-height: 500px;
        object-fit: contain;
        padding: 20px;
    }

    .modal-info2 {
        padding: 40px;
    }
}

/* --- Estilos de Disponibilidad --- */
.product-location {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
    color: var(--color-white);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.location-both {
    background-color: #28a745;
}

.location-lastarria {
    background-color: #007bff;
}

.location-providencia {
    background-color: #ffc107;
    color: #333;
    text-shadow: none;
}

.modal-product-location {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    text-align: center;
    border-radius: 4px;
}

.modal-product-location.location-both {
    color: #0b0b0b;
}

.modal-product-location.location-lastarria {
    color: #ffffff;
}

.modal-product-location.location-providencia {
    color: #000000;
}

.products-header2 {
    color: white;
    padding: 20px 20px 0;
    margin-bottom: 0;
}

.products-grid2 {
    padding: 0 20px 60px;
}

@media (min-width: 768px) {
    .product-subsection-title {
        padding: 60px 40px 20px;
        font-size: 2rem;
    }

    .products-grid2 {
        padding: 0 0px 60px;
    }
}

/* ----------------------------------------------------------------------------- 💻 MEDIAS PARA NOTEBOOKS 💻 -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* PANTALLAS DE NOTEBOOK 1366 x 768                                                 -------------------- MENU -------------------- */
/* -------------------------------------------------------------------------- */
@media screen and (min-width: 1350px) and (max-width: 1380px) {
    .card-overlay {
        padding: 10px 5px;
    }

    .card-image {
        width: 100%;
        height: 430px;
    }

    .menu-label {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 5px;
        letter-spacing: 2px;
    }

    .location-name {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .location-card {
        max-width: 250px;
    }

    .card-image {
        height: 400px;
    }
}

/* -------------------------------------------------------------------------- */
/* PANTALLAS DE NOTEBOOK 1366 x 768                                                 -------------------- PRODUCTOS POR CATEGORIA -------------------- */
/* -------------------------------------------------------------------------- */
@media screen and (min-width: 1350px) and (max-width: 1380px) {
    .productos-categorias-wrapper2 {
        padding: 20px 10px;
        max-width: 1000px;
        gap: 20px;
    }

    .category-card2 {
        border-radius: 8px;
    }
}

/* -------------------------------------------------------------------------- */
/* PANTALLAS DE NOTEBOOK 1366 x 768                                                 -------------------- PRODUCTOS -------------------- */
/* -------------------------------------------------------------------------- */
@media screen and (min-width: 1350px) and (max-width: 1380px) {
    .products-header2 {
        max-width: 1000px;
        padding: 0 10px 30px;
    }

    .products-header2 h2 {
        font-size: 1.6rem;
        font-weight: 800;
    }

    .filter-favorites-btn2 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 15px 0;
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .product-subsection-title {
        margin-bottom: 4px;
    }
}

/* ----------------------------------------------------------------------------- 📱 MEDIAS PARA CELULARES 📱 -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* --- MÓVILES: CELULARES PEQUEÑOS Y MEDIANOS                                           -------------------- SECCION 1 -------------------- */
/* -------------------------------------------------------------------------- */
@media screen and (min-width: 320px) and (max-width: 767px) {
  .slider-container {
      height: 40vh;
  }
  .slider-image {
      object-fit: cover;
            object-position: center center;
  }
}
@media screen and (min-width: 768px) and (max-width: 834px) {
  .slider-container {
            height: 55vh;
  }
  .slider-image {
            object-position: center center;
  }
}

/* ----------------------------------------------------------------------------- 🔳 MEDIAS PARA TABLETS 🔳 -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* --- MEDIA QUERY: TABLETS VERTICALES (768px a 834px)                                   -------------------- HEADER -------------------- */
/* -------------------------------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 834px) {
    .main-header {
        padding: 0 30px;
        height: 90px;
        justify-content: space-between;
        align-items: center;
    }

    .logo-img {
        height: 60px;
        margin-left: 0;
        margin-right: 20px;
    }

    .main-nav.desktop-nav {
        display: flex;
        margin-left: auto;
        margin-right: 0;
        gap: 15px;
    }

    .main-nav.desktop-nav .nav-link {
        font-size: 0.9rem;
    }
}

/* -------------------------------------------------------------------------- */
/* --- MEDIA QUERY: TABLETS VERTICALES (768px a 834px)                                   -------------------- MENU -------------------- */
/* -------------------------------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 834px) {
    .location-name {
        font-size: 1.9rem;
        font-weight: 800;
    }
}

/* -------------------------------------------------------------------------- */
/* --- MEDIA QUERY: TABLETS VERTICALES PRODUCTOS (768px a 834px)                          -------------------- PRODUCTOS -------------------- */
/* -------------------------------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 834px) {
    .products-grid2 {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
        gap: 20px;
        padding: 20px;
    }

    .products-header2,
    .product-subsection-title {
        max-width: 95%;
        margin: 0 auto;
    }

    .filter-favorites-btn2 {
        margin: 15px auto;
        display: flex;
        justify-content: center;
    }
}