/* CONFIGURACIÓN GENERAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background-color: #111111;
}

main {
    margin: 0;
    padding: 0;
}


/* ================================================
   CABECERA
   ================================================ */

.encabezado {
    position: relative;
    z-index: 1000;

    width: 100%;
    min-height: 105px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 24px;

    background-color: #242424;

    border-top: 6px solid #aaa78b;
}


/* LOGO */

.logo-enlace {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.logo-native {
    display: block;

    width: 245px;
    height: auto;
    max-height: 80px;

    object-fit: contain;
    object-position: left center;
}


/* ================================================
   BOTÓN HAMBURGUESA
   ================================================ */

.boton-menu {
    position: relative;
    z-index: 1002;

    width: 50px;
    height: 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;
    padding: 8px;

    background-color: #aaa78b;

    border: none;
    border-radius: 11px;

    cursor: pointer;

    transition:
        background-color 0.3s,
        transform 0.3s;
}

.boton-menu:hover {
    background-color: #c2bea0;
    transform: scale(1.04);
}

.boton-menu span {
    display: block;

    width: 27px;
    height: 4px;

    background-color: white;

    border-radius: 5px;

    transition:
        transform 0.3s,
        opacity 0.3s;
}


/* BOTÓN CONVERTIDO EN X */

.boton-menu.activo span:nth-child(1) {
    transform:
        translateY(10px)
        rotate(45deg);
}

.boton-menu.activo span:nth-child(2) {
    opacity: 0;
}

.boton-menu.activo span:nth-child(3) {
    transform:
        translateY(-10px)
        rotate(-45deg);
}


/* ================================================
   MENÚ
   ================================================ */

.menu-principal {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    z-index: 1001;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;

    max-height: 0;
    overflow: hidden;

    padding: 0 6%;

    background-color: #aaa78b;

    opacity: 0;
    visibility: hidden;

    transition:
        max-height 0.4s,
        padding 0.4s,
        opacity 0.3s,
        visibility 0.3s;
}

.menu-principal.abierto {
    max-height: 230px;

    padding-top: 28px;
    padding-bottom: 28px;

    opacity: 1;
    visibility: visible;
}

.menu-principal a {
    min-height: 75px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 15px;

    color: white;

    font-size: 21px;
    font-weight: bold;

    text-align: center;
    text-decoration: none;

    background:
        rgba(20, 20, 20, 0.80);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 18px;

    transition:
        transform 0.3s,
        background 0.3s;
}

.menu-principal a:hover {
    transform: translateY(-4px);

    background:
        rgba(20, 20, 20, 0.95);
}


/* ================================================
   SECCIÓN CON VIDEO
   ================================================ */

.organika-section {
    position: relative;
    isolation: isolate;

    width: 100%;

    min-height:
        calc(100vh - 105px);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 30px 18px;

    overflow: hidden;

    background-image: none !important;
    background-color: #111111;
}


/* VIDEO RESPONSIVO */

.video-fondo {
    position: absolute;
    inset: 0;

    z-index: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}


/* CAPA OSCURA */

.organika-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        rgba(0, 0, 0, 0.65);

    pointer-events: none;
}


/* CONTENIDO SOBRE EL VIDEO */

.organika-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1100px;

    color: white;

    text-align: center;
}


/* TÍTULO */

.organika-content > h1 {
    margin: 0 0 8px;

    color: white;

    font-size:
        clamp(32px, 5vw, 52px);

    letter-spacing: 3px;
}


/* TEXTO INTRODUCTORIO */

.texto-introduccion {
    max-width: 950px;

    margin: 0 auto 25px;

    color: #eeeeee;

    font-size:
        clamp(20px, 2.5vw, 30px);

    line-height: 1.4;
}


/* ================================================
   CONTENEDOR DE FICHAS
   ================================================ */

.organika-restaurantes {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
}


/* ================================================
   FICHAS
   ================================================ */

.restaurante-card {
    width: 100%;
    min-height: 145px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 12px 15px;

    background:
        rgba(25, 25, 25, 0.80);

    border:
        1px solid
        rgba(255, 255, 255, 0.40);

    border-radius: 18px;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    cursor: pointer;

    transition:
        transform 0.3s,
        background 0.3s,
        border-color 0.3s;
}

.restaurante-card:hover {
    transform: translateY(-4px);

    background:
        rgba(255, 255, 255, 0.17);

    border-color:
        rgba(255, 255, 255, 0.75);
}

.restaurante-card.reproduciendo {
    border-color: #aaa78b;

    background:
        rgba(170, 167, 139, 0.22);
}


/* NOMBRE */

.restaurante-card h2 {
    margin: 0 0 4px;

    color: white;

    font-size:
        clamp(18px, 2vw, 24px);

    text-transform: uppercase;
}


/* TIPO DE COCINA */

.restaurante-card .tipo-cocina {
    display: block;

    margin-bottom: 6px;

    color: #dddddd;

    font-size:
        clamp(12px, 1.2vw, 15px);
}


/* HORARIO */

.restaurante-card .horario-card {
    max-width: 100%;

    margin: 2px auto;

    color: #eeeeee;

    font-size: 12px;
    line-height: 1.3;
}


/* DIRECCIÓN */

.restaurante-card .direccion-card {
    display: block;

    max-width: 100%;

    margin: 2px auto;

    color: #eeeeee;

    font-size: 12px;
    line-height: 1.3;

    text-decoration: none;
}


/* TELÉFONO */

.restaurante-card .telefono-card {
    display: inline-block;

    margin-top: 3px;

    color: white;

    font-size: 12px;
    font-weight: bold;

    text-decoration: none;
}

.restaurante-card .direccion-card:hover,
.restaurante-card .telefono-card:hover {
    color: #c8d77a;

    text-decoration: underline;
}


/* OCULTAR AUDIO */

.restaurante-card audio {
    display: none;
}


/* ================================================
   FRANJA NEGRA INFERIOR
   ================================================ */

.footer-negro {
    position: relative;
    z-index: 100;

    display: block;

    width: 100%;
    height: 50px;

    margin: 0;
    padding: 0;

    background-color: #000000;

    border-top: 3px solid #aaa78b;
}


/* ================================================
   TABLETS
   ================================================ */

@media (max-width: 850px) {

    .encabezado {
        min-height: 90px;
    }

    .logo-native {
        width: 210px;
        max-height: 65px;
    }

    .menu-principal {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .menu-principal.abierto {
        max-height: 330px;
    }

    .organika-section {
        min-height:
            calc(100vh - 90px);

        padding: 25px 14px;
    }

    .organika-restaurantes {
        grid-template-columns: 1fr;
    }
}


/* ================================================
   CELULARES
   ================================================ */

@media (max-width: 600px) {

    .encabezado {
        min-height: 75px;

        padding: 7px 12px;

        border-top-width: 4px;
    }

    .logo-native {
        width: 170px;
        max-height: 56px;
    }

    .boton-menu {
        width: 43px;
        height: 43px;

        border-radius: 10px;
    }

    .boton-menu span {
        width: 24px;
        height: 3px;
    }

    .menu-principal {
        grid-template-columns: 1fr;

        gap: 8px;

        padding-left: 15px;
        padding-right: 15px;
    }

    .menu-principal.abierto {
        max-height: 460px;

        padding-top: 15px;
        padding-bottom: 15px;
    }

    .menu-principal a {
        min-height: 52px;

        padding: 10px;

        font-size: 17px;

        border-radius: 12px;
    }

    .organika-section {
        min-height:
            calc(100vh - 75px);

        padding: 20px 10px;

        background-image: none !important;
    }

    .video-fondo {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }

    .organika-content > h1 {
        font-size: 28px;
    }

    .texto-introduccion {
        margin-bottom: 18px;

        font-size: 19px;

        line-height: 1.4;
    }

    .organika-restaurantes {
        width: 94%;

        margin: 0 auto;

        gap: 8px;
    }

    .restaurante-card {
        min-height: 125px;

        padding: 9px 8px;

        border-radius: 14px;
    }

    .restaurante-card h2 {
        font-size: 18px;
    }

    .restaurante-card .tipo-cocina {
        font-size: 12px;
    }

    .restaurante-card .horario-card,
    .restaurante-card .direccion-card,
    .restaurante-card .telefono-card {
        font-size: 10px;

        line-height: 1.2;
    }

    .footer-negro {
        height: 35px;
    }
}