﻿/* ==========================================================================
   ÃNDICE CSS - PÃGINA INICIO
   1. ESTILOS BASE
   2. INTRO EFECTO CORTINA
   3. HERO
   4. SCROLL INDICADOR (FLECHA)
   5. SECCIÃ“N DE SCROLL HORIZONTAL
      5a. Paneles
      5b. Contenido de texto
      5c. H1 con inclinaciÃ³n
      5d. PÃ¡rrafo slider
      5e. Video
      5f. Footer del scroll
   6. MEDIA QUERIES
      6a. Tablet (768px â€“ 1024px)
      6b. Mobile (â‰¤ 767px)
      6c. Mobile S (â‰¤ 480px)
      6d. Desktop/Tablet â€” tamaÃ±o de fuente H1
   ========================================================================== */


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   1. ESTILOS BASE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html,
body {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   2. INTRO EFECTO CORTINA
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.intro-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.curtain-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0a0a;
    z-index: 1;
}

.intro-logo {
    z-index: 2;
    width: 100%;
    margin: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    opacity: 0;
}

.intro-logo svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Flecha blanca */
.flecha-fill {
    opacity: 0;
    animation: fadeIn 0.9s ease forwards;
}

/* Flecha hueca */
.flecha-stroke {
    opacity: 0;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 1.5s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes draw {
    0% {
        opacity: 1;
        stroke-dashoffset: 1000;
    }

    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   3. HERO
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 5rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-subtitle {
    color: var(--accent);
    opacity: 0;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   4. SCROLL INDICADOR (FLECHA)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.portfolio-scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.portfolio-scroll-arrow {
    width: 45px;
    height: 45px;
    color: #ffffff;
    animation: portfolioArrowBounce 2s infinite ease-in-out;
}

/* Flecha mÃ¡s grande para el hero del index */
.portfolio-scroll-arrow--lg {
    width: 60px;
    height: 60px;
}

@keyframes portfolioArrowBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.9;
    }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   5. SECCIÃ“N DE SCROLL HORIZONTAL
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â€” Indicador de scroll lateral â€” */
.horizontal-scroll-indicator {
    position: fixed;
    right: 3vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9990;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.horizontal-scroll-indicator.visible {
    opacity: 1;
}

.horizontal-scroll-indicator.hidden {
    opacity: 0;
}

.horizontal-scroll-arrow {
    width: 90px;
    height: 90px;
    color: #000000;
    animation: horizontalArrowBounce 1.8s infinite ease-in-out;
}

@keyframes horizontalArrowBounce {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.25;
    }

    50% {
        transform: translateX(8px);
        opacity: 0.85;
    }
}

/* Ocultar en mÃ³vil (el scroll lateral no existe en mÃ³vil) */
@media (max-width: 767px),
(max-height: 500px) {
    .horizontal-scroll-indicator {
        display: none;
    }
}

/* â€” 5a. Paneles â€” */
.horizontal-scroll-section {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}



.horizontal-scroll-wrapper {
    display: flex;
    height: 100%;
    width: max-content;
    will-change: transform;
    padding: 0;
    gap: 5vw;
}

.mobile-pair-wrapper {
    display: contents;
}

.horizontal-panel {
    width: 50vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-top: 50px;
}

.horizontal-panel.first-full-panel {
    width: 100vw;
}

.horizontal-panel.full-video-panel {
    width: 60vw;
    height: 100vh;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}


/* â€” 5b. Contenido de texto â€” */
.about-content-section--full-width {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-body {
    position: relative;
    width: 100%;
    height: 100%;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-content-wrapper {
    width: 100%;
    margin: 0 2rem 0 4.6rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
}

.text-content-wrapper h1 {
    font-size: auto;

}

.text-content-wrapper p {
    margin: 0 2rem 0 4.6rem;

}


.section-body h1 {
    text-align: left;
}

.section-body p {
    color: #333333;
    text-align: left;
}



/* â€” 5c. H1 con inclinaciÃ³n â€” */
.horizontal-title-offset-1 {
    color: #000000 !important;
    font-style: italic;
    margin-left: 20%;
    opacity: 0.95;
}

.horizontal-title-offset-2 {
    color: #000000 !important;
    font-style: italic;
    margin-right: 0%;
    opacity: 0.95;
    font-size: 20px;
}




/* â€” 5d. PÃ¡rrafo slider â€” */
.section-body p.slider {
    color: #555555 !important;
    width: 100% !important;
}


/* â€” 5e. Video â€” */
.horizontal-panel.full-video-panel video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* â€” 5f. Footer del scroll horizontal â€” */
.footer-scroll-index {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    margin-left: -5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6vh 8vw;
    box-sizing: border-box;
    background-color: black;
    color: #ffffff;
}

.footer-scroll-index .footer-logo-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2vh;
    width: 100%;
}

.footer-scroll-index .footer-logo-img {
    height: 60%;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-scroll-index .footer-logo-svg {
    width: 180px;
    height: 90px;
    display: block;
    overflow: visible;
}

.footer-scroll-index .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 860px;
    text-align: left;
    justify-items: center;
    margin-top: 2vh;
    margin-bottom: 3vh;
}

.footer-scroll-index .footer-grid h4 {
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.footer-scroll-index .footer-grid p {
    color: #a0a0a0;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}

.footer-scroll-index .footer-grid a {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.footer-scroll-index .footer-grid a:hover {
    color: var(--accent);
}

.footer-scroll-index .footer-bottom {
    width: 100%;
    max-width: 860px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-linkedin img {
    margin-top: 5%;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-scroll-index .footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: left;
    justify-content: left;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.footer-scroll-index .footer-social img {
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-scroll-index .footer-social a:hover img {
    opacity: 1;
}

.footer-scroll-index .footer-copyright p {
    color: #888888;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   6. MEDIA QUERIES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â€” 6a. Tablet (768px â€“ 1024px) â€” */
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 501px) {

    .hero-content {
        margin-top: 3rem;
    }

    .horizontal-panel {
        width: 70vw;
    }

    .horizontal-panel.first-full-panel {
        width: 100vw;
    }

    .horizontal-panel.full-video-panel {
        width: 100vw;
    }

    .section-body {
        width: 100%;
        height: 100%;
    }

    .about-content-section--full-width {
        width: 100%;
        height: 100%;
    }

    .text-content-wrapper {
        width: 85%;
        padding: 1.5rem;
    }

    .horizontal-title-offset-1 {
        margin-left: 12%;
    }

    .horizontal-title-offset-2 {
        margin-left: 0;
    }
}


/* â€” 6b. Mobile (â‰¤ 767px) y mÃ³vil horizontal (< 500px alto) â€” */
@media (max-width: 767px),
(max-height: 500px) {

    /* Scroll horizontal â†’ vertical */
    .horizontal-scroll-section {
        height: auto;
        overflow: visible;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .horizontal-scroll-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 0;
        transform: none !important;
        will-change: auto;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .mobile-pair-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: auto;
        flex-shrink: 0;
    }

    .mobile-pair-wrapper:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .mobile-pair-wrapper:last-child .horizontal-panel:last-child {
        margin-bottom: 0;
    }

    .horizontal-panel {
        width: 100% !important;
        height: auto !important;
        min-height: 50vh !important;
        padding: 4rem 9vw !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .horizontal-panel.full-video-panel {
        height: 50vh !important;
        min-height: 250px !important;
        padding: 0 !important;
    }

    .horizontal-panel.full-video-panel video {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Textos */
    .section-body {
        width: 100%;
        height: 100%;
        text-align: left;
    }

    .about-content-section--full-width {
        width: 100%;
        height: 100%;
    }

    .text-content-wrapper {
        width: 90%;
        padding: 0rem;
    }

    /* H1 adaptado al tamaÃ±o de pantalla mÃ³vil */
    .zona1-texts h1,
    .zona2-texts h1,
    .zona3-texts h1 {
        font-size: clamp(4rem, 14vw, 8rem);
    }

    /* PÃ¡rrafos en mÃ³vil */
    .section-body p,
    .section-body p.slider {
        text-align: justify !important;
        margin-top: 2.5rem !important;
    }

    /* H1 itÃ¡licos en mÃ³vil */
    .horizontal-title-offset-1 {
        margin-left: 20%;
    }

    .horizontal-title-offset-2 {
        margin-left: 0;
    }

    /* Footer del scroll en mÃ³vil */
    .footer-scroll-index {
        width: 100%;
        height: auto;
        display: block;
        padding: 4rem 2rem;
        margin-left: 0 !important;
        background-color: #000000;
    }

    .footer-scroll-index .footer-logo-desktop {
        display: none !important;
    }

    .footer-scroll-index .footer-icons-above-copyright {
        display: flex !important;
    }

    .footer-scroll-index .footer-icons-mobile {
        display: none !important;
    }

    .footer-scroll-index .footer-social {
        display: none !important;
    }

    .footer-scroll-index .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        max-width: none;
        margin-bottom: 2rem;
    }

    .footer-scroll-index .footer-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
        max-width: none;
    }

    .about-content-section {
        padding: 2vh 0;
    }

    p.slider {
        font-size: 1.1rem;
        line-height: 1.75;
    }

    .footer {
        scroll-snap-align: end;
    }

    .portfolio-scroll-indicator {
        bottom: 12vh;
    }
}


/* â€” 6c. Mobile S (â‰¤ 480px) â€” */
@media (max-width: 480px) {

    .mobile-pair-wrapper {
        height: auto;
        min-height: auto;
    }

    .horizontal-panel {
        height: auto !important;
        min-height: 50vh !important;
        padding: 2rem 9vw !important;
    }

    .horizontal-panel.full-video-panel {
        height: 45vh !important;
    }

    .zona1-texts {
        width: 100%;
    }
}


/* â€” 6d. Desktop / Tablet â€” tamaÃ±o de fuente H1 y margen slider â€” */
@media (min-width: 768px) {

    .zona1-texts h1,
    .zona2-texts h1,
    .zona3-texts h1 {
        color: #000000;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.02);
        width: 100%;
        overflow-wrap: normal;
        font-size: clamp(6rem, 8vw, 11rem);
    }

    .section-body p.slider {
        margin: 4rem 0 1rem 0 !important;
        line-height: 1.55;
        font-size: 2.3em;
    }

    /* SangrÃ­a en el pÃ¡rrafo de la zona 1 (solo desktop) */
    .zona1-texts p.f_slider {
        margin: 4rem 0 1rem 0 !important;
        font-size: 2.3em;
        text-indent: 21%;
        justify-content: center;
        text-align: left;
        line-height: 1.55;
        color: #555555 !important;
        width: 100% !important;

    }
}

/* ══════════════════════════════════════════════════════════
   MAPA MUNDIAL - FOOTER (ancho completo, contenedor grande)
   ══════════════════════════════════════════════════════════ */

.footer-world-map-desktop {
    width: 50%;
    margin-bottom: 4rem;
    line-height: 0;
}

/* Difuminado gestionado desde JS con SVG mask nativo */
#world-map-footer {
    width: 100%;
    line-height: 0;
}

#world-map-footer svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .footer-world-map-desktop {
        display: none;
    }
}