/* =========================================================
   WHITE OWL STUDIO
   MÉXICO
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

button,
input,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: #000;
    z-index: 3000;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-container {
    position: relative;
    width: 100%;
    height: 90px;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3100;
}

.brand-name {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: .85;
}

.brand-name span {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-name small {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #999;
}


/* =========================================================
   BANDERAS
========================================================= */

.country-flags {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 3100;
}

.flag-link {
    width: 30px;
    height: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.35);
    display: block;
    transition:
        transform .3s ease,
        opacity .3s ease;
}

.flag-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flag-link:hover {
    transform: scale(1.12);
    opacity: .8;
}


/* =========================================================
   MENÚ HAMBURGUESA
========================================================= */

.menu-button {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 4000;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    min-height: 3px;
    transform-origin: center;
    transition:
        transform .3s ease,
        opacity .3s ease;
}

.menu-button .line-red {
    background: #ff3b30;
}

.menu-button .line-yellow {
    background: #ffd60a;
}

.menu-button .line-blue {
    background: #0a84ff;
}

.menu-button .line-green {
    background: #30d158;
}

.menu-button.active {
    gap: 0;
}

.menu-button.active .line-red {
    position: absolute;
    top: 50%;
    left: 8px;
    width: calc(100% - 16px);
    transform: translateY(-50%) rotate(45deg);
}

.menu-button.active .line-yellow {
    opacity: 0;
    transform: scaleX(0);
}

.menu-button.active .line-blue {
    position: absolute;
    top: 50%;
    left: 8px;
    width: calc(100% - 16px);
    transform: translateY(-50%) rotate(-45deg);
}

.menu-button.active .line-green {
    opacity: 0;
    transform: scaleX(0);
}


/* =========================================================
   MENÚ LATERAL
========================================================= */

.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 380px;
    max-width: 82%;
    height: 100vh;
    background: #000;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
        transform .4s ease,
        opacity .3s ease,
        visibility .3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.menu-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 80% 20%,
        rgba(255,255,255,.05),
        transparent 35%
    );
}

.menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 90px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-label {
    margin-bottom: 35px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,.5);
}

.menu-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    width: 100%;
}

.menu-list li {
    width: 100%;
}

.menu-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: 100%;
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.5px;
    transition:
        transform .3s ease,
        color .3s ease;
}

.menu-link span {
    width: 28px;
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    opacity: .7;
}

.menu-link:hover {
    transform: translateX(8px);
}

.menu-yellow:hover {
    color: #ffd60a;
}

.menu-blue:hover {
    color: #0a84ff;
}

.menu-green:hover {
    color: #30d158;
}

.menu-red:hover {
    color: #ff3b30;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;
    background: #000;
    border-top: 1px solid rgba(255,255,255,.12);
}

.footer-container {
    width: min(1200px, 90%);
    min-height: 130px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: .9;
}

.footer-logo strong {
    font-size: 18px;
    letter-spacing: 2px;
}

.footer-logo span {
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: 5px;
    color: #777;
}

.footer-social span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #aaa;
}

.footer-bottom {
    padding: 20px 5%;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 10px;
    letter-spacing: 1px;
    color: #666;
}


/* =========================================================
   PÁGINA MÉXICO
========================================================= */

.mexico-page {
    min-height: 100vh;
    padding-top: 90px;
    background: #000;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.mexico-heading {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 110px 0 70px;
    text-align: center;
}

.mexico-heading p:first-child {
    margin: 20px 0;
    font-size: 11px;
    letter-spacing: 4px;
    color: #888;
}

.mexico-heading h1 {
    margin: 25px 0;
    font-size: clamp(60px, 10vw, 125px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -5px;
}

.mexico-heading .mexico-location {
    max-width: 600px;
    margin: 0 auto 22px;
    font-size: 16px;
    line-height: 1.7;
    color: #aaa;
}


/* =========================================================
   INTRODUCCIÓN DE CATEGORÍAS
========================================================= */

.mexico-heading .intro-category,
.mexico-heading .mexico-intro {
    max-width: 900px;
    margin: 0 auto;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.8;
    color: #888;
    text-align: center;
}

.mexico-heading .intro-category span,
.mexico-heading .mexico-intro span {
    margin: 0 7px;
    font-weight: 900;
}

.mexico-heading .intro-category .dot-red,
.mexico-heading .mexico-intro .red {
    color: #ff3b30;
}

.mexico-heading .intro-category .dot-yellow,
.mexico-heading .mexico-intro .yellow {
    color: #ffd60a;
}

.mexico-heading .intro-category .dot-blue,
.mexico-heading .mexico-intro .blue {
    color: #0a84ff;
}

.mexico-heading .intro-category .dot-green,
.mexico-heading .mexico-intro .green {
    color: #30d158;
}


/* =========================================================
   GALERÍA
========================================================= */

.country-gallery {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 20px 0 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.country-gallery-item {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
}

.country-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .4s ease;
    cursor: zoom-in;
}

.country-gallery-item:hover img {
    transform: scale(1.04);
}


/* =========================================================
   VISOR DE IMÁGENES
========================================================= */

.image-lightbox {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 65px 80px;

    background: rgba(0,0,0,.96);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    cursor: zoom-out;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    display: block;
    position: relative;
    z-index: 1;

    max-width: 90vw;
    max-height: 88vh;
    max-height: 88dvh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 0;

    box-shadow: 0 20px 60px rgba(0,0,0,.7);

    cursor: default;
}


/* =========================================================
   BOTÓN CERRAR — X
   BLANCA NORMALMENTE
   ROJA Y GIRATORIA AL PASAR EL CURSOR
========================================================= */

.image-lightbox button.lightbox-close {
    position: absolute;

    top: 25px;
    right: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    padding: 0;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;

    outline: none !important;
    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;

    color: #fff !important;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    z-index: 100002;

    opacity: 1;

    transform: rotate(0deg);

    transition:
        color .3s ease,
        transform .3s ease;
}

/* Estado normal */
.image-lightbox button.lightbox-close:not(:hover) {
    color: #fff !important;
    transform: rotate(0deg);
    opacity: 1;
}

/* Hover */
.image-lightbox button.lightbox-close:hover {
    color: #ff3b30 !important;
    transform: rotate(90deg);
    opacity: 1;
}

/* Evitar fondos o contornos del navegador */
.image-lightbox button.lightbox-close:focus,
.image-lightbox button.lightbox-close:focus-visible,
.image-lightbox button.lightbox-close:active {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Mantener el efecto al interactuar con el cursor encima */
.image-lightbox button.lightbox-close:hover:focus,
.image-lightbox button.lightbox-close:hover:focus-visible,
.image-lightbox button.lightbox-close:hover:active {
    color: #ff3b30 !important;
    transform: rotate(90deg);
}


/* =========================================================
   FLECHAS DEL VISOR
   SIEMPRE BLANCAS
   SIN MOVIMIENTO NI CAMBIO DE COLOR
========================================================= */

.image-lightbox button.lightbox-prev,
.image-lightbox button.lightbox-next {
    position: absolute;

    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 70px;

    padding: 0;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;

    outline: none !important;
    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;

    color: #fff !important;
    -webkit-text-fill-color: #fff !important;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 58px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    z-index: 100001;

    opacity: 1;
    visibility: visible;

    transform: translateY(-50%);

    transition: none !important;
}

/* Flecha izquierda */
.image-lightbox button.lightbox-prev {
    left: 20px;
    right: auto;
}

/* Flecha derecha */
.image-lightbox button.lightbox-next {
    right: 20px;
    left: auto;
}

/* Mantener el mismo aspecto al pasar el cursor */
.image-lightbox button.lightbox-prev:hover,
.image-lightbox button.lightbox-next:hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    opacity: 1;

    transform: translateY(-50%);
}

/* Mantener el mismo aspecto al hacer clic o recibir foco */
.image-lightbox button.lightbox-prev:focus,
.image-lightbox button.lightbox-next:focus,
.image-lightbox button.lightbox-prev:focus-visible,
.image-lightbox button.lightbox-next:focus-visible,
.image-lightbox button.lightbox-prev:active,
.image-lightbox button.lightbox-next:active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    opacity: 1;

    transform: translateY(-50%);
}

/* Ocultar flechas cuando el JavaScript así lo indique */
.image-lightbox button.lightbox-prev[hidden],
.image-lightbox button.lightbox-next[hidden] {
    display: none !important;
}


/* =========================================================
   DEMO FARID PINILLA
========================================================= */

.country-demo {
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding: 30px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.country-demo-video {
    width: 90%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.country-demo-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
    border-radius: 14px;
}

.country-demo-info {
    width: 90%;
    margin: 25px auto 0;
    text-align: left;
}

.country-demo-title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: left;
}

.country-demo-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
    letter-spacing: 1px;
}

.country-demo-info p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #aaa;
}


/* =========================================================
   CONTACTO MÉXICO
========================================================= */

.mexico-contact-info {
    width: 100%;
    margin: 0;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: flex-start;

    gap: 7px;

    text-align: left;
}

.mexico-contact-info span {
    white-space: normal;
    font-size: 13px;
    line-height: 1.5;
    color: #aaa;
}


/* =========================================================
   BOTÓN REGRESAR AL INICIO
========================================================= */

.back-home {
    display: block;
    width: fit-content;
    margin: 0 auto 110px;
    padding: 13px 25px;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;

    color: #fff;
    text-decoration: none;

    font-size: 10px;
    letter-spacing: 2px;

    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease;
}

.back-home:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .header-container {
        padding: 0 25px;
    }

    .menu-button {
        right: 25px;
    }

    .country-gallery {
        grid-template-columns: 1fr;
        width: 92%;
        gap: 15px;
        padding-bottom: 55px;
    }

    .country-demo-video,
    .country-demo-info {
        width: 90%;
    }

    .mexico-page .back-home {
        margin-bottom: 70px;
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 600px) {

    .header,
    .header-container {
        height: 80px;
    }

    .header-container {
        padding: 0 18px;
    }

    .brand-name span {
        font-size: 17px;
    }

    .brand-name small {
        font-size: 8px;
        letter-spacing: 4px;
    }

    .menu-button {
        right: 18px;
        width: 38px;
        height: 38px;
    }

    .country-flags {
        gap: 8px;
    }

    .flag-link {
        width: 26px;
        height: 17px;
    }

    .menu-overlay {
        width: 82%;
        max-width: 340px;
    }

    .menu-content {
        padding: 80px 25px 30px;
    }

    .menu-link {
        font-size: 30px;
        gap: 9px;
        padding: 7px 0;
    }

    .menu-link span {
        width: 25px;
    }

    .mexico-page {
        padding-top: 80px;
    }

    .mexico-heading {
        width: 90%;
        padding: 70px 0 45px;
    }

    .mexico-heading p:first-child {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .mexico-heading h1 {
        font-size: clamp(45px, 15vw, 75px);
        letter-spacing: -3px;
    }

    .mexico-heading .mexico-location {
        font-size: 15px;
        margin-bottom: 18px;
    }

    /* Introducción de categorías */
    .mexico-heading .intro-category,
    .mexico-heading .mexico-intro {
        font-size: 8px;
        letter-spacing: 1.5px;
        line-height: 1.8;
    }

    .mexico-heading .intro-category span,
    .mexico-heading .mexico-intro span {
        margin: 0 4px;
    }

    /* Galería */
    .country-gallery {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .country-gallery-item {
        border-radius: 14px;
    }

    .country-gallery-item img {
        border-radius: 14px;
    }

    /* Visor en celular */
    .image-lightbox {
        padding: 20px;
    }

    .image-lightbox img {
        max-width: 94vw;
        max-height: 82vh;
        max-height: 82dvh;
    }

    /* X */
    .image-lightbox button.lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 36px;
    }

    /* Flechas */
    .image-lightbox button.lightbox-prev,
    .image-lightbox button.lightbox-next {
        width: 38px;
        height: 55px;
        font-size: 44px;
    }

    .image-lightbox button.lightbox-prev {
        left: 3px;
    }

    .image-lightbox button.lightbox-next {
        right: 3px;
    }

    /* Demo */
    .country-demo {
        padding: 30px 0 70px;
        align-items: center;
    }

    .country-demo-video {
        width: 92%;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
    }

    .country-demo-video video {
        border-radius: 14px;
    }

    .country-demo-info {
        width: 92%;
        margin: 25px auto 0;
        text-align: left;
    }

    .country-demo-title {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .country-demo-info h3 {
        font-size: 18px;
    }

    .country-demo-info p {
        font-size: 13px;
    }

    /* Contacto */
    .mexico-contact-info {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .mexico-contact-info span {
        white-space: normal;
    }

    /* Botón regresar */
    .mexico-page .back-home {
        margin-bottom: 70px;
        padding: 13px 20px;
        font-size: 10px;
    }

    /* Footer */
    .footer-container {
        min-height: auto;
        padding: 35px 0;
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
}

/* VISOR DE IMÁGENES - MÉXICO */

.image-lightbox .lightbox-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
    box-sizing: border-box;
}

.image-lightbox .lightbox-image,
.image-lightbox .lightbox-video {
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    object-position: center;
    flex: 0 1 auto;
    margin: 0;
    border-radius: 10px;
}

.image-lightbox .lightbox-image {
    clip-path: inset(0 round 10px);
}

@media (max-width: 600px) {
    .image-lightbox .lightbox-media-container {
        padding: 55px 15px;
    }

    .image-lightbox .lightbox-image,
    .image-lightbox .lightbox-video {
        max-width: 95%;
        max-height: 90%;
    }
}


/* ESQUINAS LIMPIAS PARA LAS IMÁGENES */
.image-lightbox .lightbox-image {
    clip-path: inset(0 round 10px);
}

@media (max-width: 600px) {
    .image-lightbox .lightbox-media-container {
        padding: 55px 15px;
    }
}