/* =====================================================
   BASE CSS MODERNA
   Sustituye resets antiguos + prepara Flexbox
   ===================================================== */

/* -------------------------
   Variables globales
-------------------------- */
:root {
    --bg-main: #1c1f26;
    --bg-light: #f0f2f5;

    --text-main: #1c1f26;
    --text-muted: #868991;
    --text-light: #ffffff;

    --accent: #a5ad25;
    --accent-hover: #868991;

    --font-main: 'Open Sans', sans-serif;
    --font-title: 'BebasNeueRegular', sans-serif;
    --font-alt: 'Oswald', sans-serif;

    --container-width: 1200px;
    --container-padding: 20px;
}

/* -------------------------
   Reset moderno
-------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text-main);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

/* -------------------------
   Elementos base
-------------------------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--accent-hover);
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* -------------------------
   Tipografía base
-------------------------- */
h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
}

p {
    margin: 0;
    line-height: 1.5;
}

/* -------------------------
   Contenedor moderno
-------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* -------------------------
   Utilidades básicas
-------------------------- */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.full-height {
    min-height: 100vh;
}

.relative {
    position: relative;
}

/* =====================================================
   Layout helpers y compatibilidad moderna
   ===================================================== */

/* filas */
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 40px;
}

@media (max-width: 768px) {
    .row {
        gap: 20px;
    }
}

/* =====================================================
   FIX DEFINITIVO — Parallax 1 (override legacy)
   ===================================================== */

/* contenedor principal */
#parallax1 {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* capas de fondo */
#parallax1 .bg1,
#parallax1 .pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* contenedor de contenido */
#parallax1 .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔴 override total del legacy table-cell */
#parallax1 .vertical-text {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    vertical-align: initial !important;
    /* anula table-cell */
    height: auto;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

/* ajustes del texto */
#parallax1 .prlx-quote {
    margin-bottom: 20px;
}

/* responsive */
@media (max-width: 768px) {
    #parallax1 {
        min-height: 360px;
    }
}

/* =====================================================
   AJUSTE FINAL — Slider / Hero (márgenes correctos)
   ===================================================== */

.slider-text {
    position: absolute;
    left: 0;
    right: 0;

    min-height: 200px;
    height: auto !important;

    overflow: visible !important;

    /* 🔴 margen interno correcto */
    padding-left: clamp(24px, 6vw, 120px);
    padding-right: clamp(24px, 6vw, 120px);
}

/* texto principal */
#slidecaption {
    max-width: 1100px;
    /* evita líneas eternas */
    margin-left: auto;
    margin-right: auto;
    white-space: normal !important;
    line-height: 1.1;
}

/* descripción */
.slidedescription {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
}

/* móvil */
@media (max-width: 768px) {
    .slider-text {
        padding-left: 20px;
        padding-right: 20px;
        min-height: 140px;
    }
}

/* =====================================================
   About / Mónica responsive
   ===================================================== */

#about .container {
    row-gap: 20px;
}

#about .one-half.column,
#about .one-half.columns {
    width: min(100%, 860px);
}

#about .about-profile {
    margin-left: auto;
    margin-right: auto;
}

#about .about-video-wrap {
    width: 100%;
    text-align: center;
    padding: 12px 0 0 !important;
}

#about .one-half.column > div:first-child,
#about .one-half.columns > div:first-child {
    padding: 12px 0 0 !important;
}

#about video {
    width: min(100%, 760px);
    border-radius: 18px;
    margin: 0 auto;
}

#about .img-wrp {
    margin: 28px 0 18px 0;
    border-radius: 22px;
}

#about h3 {
    font-size: clamp(28px, 3vw, 38px);
    margin-top: 8px;
}

#about .job-position {
    margin: 6px 0 18px;
    font-size: 12px;
    letter-spacing: 0.08em;
}

#about .description {
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 959px) {
    #about .container {
        justify-items: center;
    }

    #about .one-half.column,
    #about .one-half.columns {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        justify-self: center;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #about .about-profile {
        width: 100% !important;
        max-width: 100% !important;
    }

    #about .about-video-wrap,
    #about .img-wrp,
    #about h3,
    #about .job-position,
    #about .description {
        width: min(100%, 560px);
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    #about video,
    #about .scaleimg {
        width: 100%;
        max-width: 100%;
    }

    #about h3,
    #about .job-position,
    #about .description,
    #about h1,
    #about .one-text {
        text-align: center;
    }
}

@media (max-width: 767px) {
    #about .container {
        justify-items: center;
    }

    #about .one-half.column,
    #about .one-half.columns {
        width: min(100%, 420px);
        max-width: 420px;
        justify-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    #about .about-profile {
        width: min(100%, 420px) !important;
        max-width: 420px !important;
    }

    #about .container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        overflow: hidden;
        text-align: center;
    }

    #about h1,
    #about .one-text {
        text-align: center;
    }

    #about .one-half.column > div:first-child,
    #about .one-half.columns > div:first-child {
        width: 100%;
        padding: 0 !important;
    }

    #about .about-video-wrap {
        width: 100%;
        padding: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    #about video,
    #about .img-wrp,
    #about .scaleimg {
        width: 100% !important;
        max-width: 100% !important;
    }

    #about .img-wrp {
        margin: 12px 0 10px 0 !important;
    }

    #about h3 {
        text-align: center;
        margin-top: 4px;
    }

    #about .job-position {
        text-align: center;
    }

    #about .description {
        font-size: 13px;
        line-height: 1.65;
        text-align: center;
    }
}

@media (max-width: 479px) {
    #about .container {
        justify-items: center;
    }

    #about .one-half.column,
    #about .one-half.columns {
        width: min(100%, 92vw);
        max-width: 420px;
        padding-left: 0;
        padding-right: 0;
        justify-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #about .about-profile {
        width: min(100%, 92vw) !important;
        max-width: 420px !important;
    }

    #about video,
    #about .img-wrp {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    #about .img-wrp {
        margin: 18px 0 14px 0;
        border-radius: 18px;
    }

    #about h3 {
        width: 100%;
        font-size: 20px;
        line-height: 1.05;
        text-align: center;
        margin-top: 6px;
        margin-left: auto;
        margin-right: auto;
    }

    #about .job-position {
        width: 100%;
        text-align: center;
        margin: 8px 0 14px;
        font-size: 11px;
        margin-left: auto;
        margin-right: auto;
    }

    #about .description {
        width: 100%;
        font-size: 12px;
        line-height: 1.58;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =====================================================
   FIX DEFINITIVO — Sección previa a Contacto (full width)
   ===================================================== */

/* sección de fondo completo */
#extras,
#parallax3 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* el contenedor NO debe comportarse como grid */
#extras .container,
#parallax3 .container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding-left: clamp(20px, 6vw, 120px);
    padding-right: clamp(20px, 6vw, 120px);
}

/* fondo a pantalla completa */
#extras .bg,
#extras .bg1,
#extras .bg2,
#parallax3 .bg,
#parallax3 .bg1,
#parallax3 .bg2 {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

/* contenido por encima */
#extras .container>*,
#parallax3 .container>* {
    position: relative;
    z-index: 2;
}

#parallax3::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 14, 34, 0.62) 0%, rgba(12, 14, 34, 0.5) 45%, rgba(12, 14, 34, 0.66) 100%);
    z-index: 1;
}

#parallax3 .container {
    z-index: 3;
}

#parallax3 .vertical-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 980px);
    padding: 64px 24px;
    gap: 18px;
    text-align: center;
}

#parallax3 h2.white {
    margin: 0 0 12px;
    font-size: clamp(46px, 5.5vw, 72px);
    line-height: 0.95;
}

#parallax3 .prlx-author {
    width: min(100%, 760px);
    height: auto;
    margin: 0;
    padding: 14px 18px;
    left: auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    backdrop-filter: blur(3px);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    text-transform: none;
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: clip;
    }

    #parallax3 .vertical-text {
        width: 100%;
        padding: 56px 20px;
        gap: 14px;
    }

    #parallax3 .prlx-author {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* =====================================================
   Servicios responsive
   ===================================================== */

#services > .container {
    row-gap: 28px;
}

#services-container {
    width: min(100%, 1240px);
    margin: 8px auto 0;
    padding-left: clamp(8px, 2vw, 28px);
    padding-right: clamp(8px, 2vw, 28px);
    gap: 28px !important;
    justify-content: center;
}

#services-container .service {
    flex: 0 1 320px !important;
    max-width: 360px;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#services-container .service .description {
    margin-top: 12px;
    line-height: 1.6;
    text-align: center !important;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1280px) {
    #services-container {
        width: min(100%, 1240px);
    }
}

@media (max-width: 767px) {
    #services-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        gap: 22px !important;
    }

    #services-container .service {
        flex-basis: 100% !important;
        max-width: 100%;
        padding: 0;
    }
}

/* =====================================================
   FIX RESPONSIVE — Scroll lateral indeseado
   ===================================================== */

/* bloqueo global de overflow horizontal */
html,
body {
    overflow-x: hidden;
}

/* asegurar que el slider no excede viewport */
#homepage,
#supersized,
#supersized li,
.slider-text {
    max-width: 100vw;
    overflow-x: hidden;
}

/* evitar que paddings rompan el ancho */
.slider-text {
    box-sizing: border-box;
}

/* seguridad extra para textos largos */
#slidecaption,
.slidedescription {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* =====================================================
   FIX DEFINITIVO — Overflow horizontal (móvil / responsive)
   ===================================================== */

/* 1) Bloqueo general (y que iOS no "arrastre" lateral) */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 2) Contenedores principales nunca deben superar el viewport */
.page,
.container,
.row,
.column,
.columns {
    max-width: 100%;
}

/* 4) Vídeos e iframes: que nunca se salgan */
video,
iframe {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* 5) Imágenes con "scale" y wrappers: recorta cualquier escala */
.img-wrp {
    overflow: hidden;
    max-width: 100%;
}

img,
.scaleimg {
    max-width: 100%;
    height: auto;
}

/* 6) SLIDER (muy importante): forzar que slides e imágenes no excedan 100vw */
#supersized,
#supersized li,
#supersized li a,
#supersized li img {
    max-width: 100vw !important;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden;
}

/* Si el slider es fullscreen, esto lo deja perfecto */
#supersized li img {
    height: 100vh !important;
    object-fit: cover;
}


/* =========================================================
   FIX ESPACIADO LATERAL GLOBAL (sin tocar Skeleton)
   ========================================================= */

.container {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* En pantallas grandes, un poco más de aire */
@media (min-width: 1200px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* En móvil, que no quede aplastado */
@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Parallax India */
#parallax-india {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#parallax-india .bg-india {
    position: absolute;
    inset: 0;
    background: url('images/india.jpg') center/cover no-repeat;
    z-index: 0;
}

#parallax-india::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 12, 10, 0.3) 0%, rgba(15, 12, 10, 0.38) 45%, rgba(15, 12, 10, 0.52) 100%);
    z-index: 1;
}

#parallax-india .pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Ajuste vertical real — Parallax India */
#parallax-india .container {
    position: relative;
    z-index: 3;

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

    min-height: inherit;
}

#parallax-india .vertical-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    max-width: 780px;

    padding: 96px 24px;
    gap: 20px;
}

#parallax-india h2.white {
    font-size: clamp(48px, 6vw, 72px);
    line-height: 0.95;
    margin: 0;
}

#parallax-india .prlx-quote-mini {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(22px, 2.1vw, 34px);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

#parallax-india .prlx-author {
    height: auto;
    width: auto;
    max-width: 54ch;
    margin: 0;
    padding: 0;
    left: auto;
    background: none;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    text-transform: none;
}

#parallax-india .prlx-author:last-of-type {
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.95;
}

@media (max-width: 767px) {
    #parallax-india .vertical-text {
        max-width: 100%;
        padding: 72px 20px;
        gap: 16px;
    }

    #parallax-india .prlx-author {
        font-size: 14px;
        max-width: 32ch;
    }
}

/* Horarios: imagen más contenida y centrada */
#horarios .container {
    justify-items: center;
}

#horarios .scaleimg {
    width: min(100%, 900px);
    margin-top: 24px;
}
