/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    color: #01344F;
    line-height: 1.2;
    overflow-x: hidden;
    animation: pageIn 0.4s ease forwards;
}

body.page-out {
    animation: pageOut 0.38s ease forwards;
    pointer-events: none;
}

/* Main Container - Flujo normal, sin altura fija */
.main-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Background Layer - Scroll junto con el contenido */
.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden; /* Evita que mesa-trabajo extienda el área de scroll */
}

/* Background Video - Detrás del wallpaper */
.hero-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* min-width: 1440px; */
    height: auto;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 97%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 97%, transparent 100%);
}

.wallpaper {
    display: none;
}

/* Video móvil oculto por defecto (se muestra solo en móvil) */
.hero-background-mobile {
    display: none;
}

/* Mesa de trabajo - Enfrente del video */
.mesa-trabajo {
    position: absolute;
    top: -360px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    z-index: 1;
}

/* Content Layer - Flujo vertical normal */
.content-layer {
    position: relative;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 110px;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    transition: transform 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%);
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
}

.logo {
    width: 106px;
    height: 30px;
}

.contact-link {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #01344F;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

/* ========================================
   HERO SPACER - Espacio para el video de fondo
   ======================================== */
.hero-spacer {
    width: 100%;
    aspect-ratio: 16/6.5;
}

/* ========================================
   STATISTICS SECTION
   ======================================== */
.stats-section {
    width: 100%;
    max-width: 1012px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    line-height: 64px;
    color: #1987ac;
    text-align: center;
    white-space: nowrap;
}

.stat-label {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 29px;
    line-height: 31px;
    color: #1987ac;
    text-align: left;
    max-width: 155px;
}

/* ========================================
   SECCIONES CON FONDO BLANCO
   ======================================== */

/* Wrapper directo de ancho completo dentro del content-layer (z-index: 2),
   garantiza que el blanco quede siempre encima del mesa-trabajo */
.white-section {
    width: 100%;
    background: #ffffff;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    gap: 12%;
    padding: 60px 0;
    margin: 0 auto;
}

.project-card {
    position: relative;
    width: 240px;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.project-image-container {
    max-width: 324px;
    height: 240px;
    overflow: hidden;
}

.project-image {
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
}

.project-content {
    position: relative;
    text-align: center;
    color: #FFFFFF;
    padding: 20px 0 0 0;
}

.project-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 64px;
    color: #25a5cf;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-types {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-types span {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: #25a5cf;
    text-align: center;
}

/* ========================================
   VISION SECTION
   ======================================== */
.vision-section {
    width: 90%;
    max-width: 1212px;
    padding: 80px 0;
    margin: 0 auto;
    /* margin-top: 500px; */
}

.vision-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.vision-text {
    max-width: 609px;
    flex: 1;
}

.vision-image {
    flex: 0 0 auto;
    max-width: 450px;
}

.vision-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.vision-subtitle {
    font-family: "Plain", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    color: #01344f;
    margin-bottom: 6%;
}

.vision-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 96px;
    font-weight: 400;
    background: linear-gradient(269.66deg, #60d5fd 6.73%, #01344f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 90px;
}

.vision-description {
    font-family: 'Plain', sans-serif;
    font-weight: 250;
    font-size: 20px;
    line-height: 1.2em;
    color: #01344F;
}

.vision-image {
    max-width: 782px;
    height: auto;
}

.ceo-signature {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    width: 100%;
}

.quote-icons {
    display: flex;
    gap: 15%;
    align-items: center;
}

.quote-icons img {
    height: 40px;
    width: auto;
}

.ceo-info {
    text-align: right;
}

.ceo-name {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #01344F;
    margin-bottom: 5px;
}

.ceo-position {
    font-family: 'Plain', sans-serif;
    font-weight: 150;
    font-size: 15px;
    color: #01344F;
}

/* ========================================
   COMPANY / PHILOSOPHY SECTION
   ======================================== */
.company-section {
    width: 90%;
    max-width: 975px;
    text-align: center;
    padding: 100px 0;
    margin: 0 auto;
}

.company-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 96px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: -3%;
}

.philosophy-item.large {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.28125em;
    color: #ffffff;
}

.philosophy-quote {
    font-family: 'Plain', sans-serif;
    font-weight: 250;
    font-size: 20px;
    line-height: 1.2em;
    color: #ffffff;
    margin-bottom: 2%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.philosophy-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1%;
}

.philosophy-icon {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.philosophy-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.philosophy-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 48px;
    color: #ffffff;
    line-height: 1.2;
}

.philosophy-description {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #ffffff;
    line-height: 1.3;
    max-width: 250px;
}

.company-icons {
    display: none;
}

.philosophy-item:not(.large) {
    display: none;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline-section {
    width: 90%;
    max-width: 1200px;
    padding: 80px 0;
    margin: 0 auto;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.timeline-text {
    flex: 1;
    max-width: 480px;
    text-align: right;
}

.timeline-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 96px;
    font-weight: 400;
    background: linear-gradient(269deg, #FFFFFF 25%, #4FC5EB 84%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.timeline-subtitle {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 40px;
}

.timeline-source {
    font-family: 'Plain', sans-serif;
    font-weight: 200;
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff;
}

.timeline-chart {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.chart-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
}

/* ========================================
   PODCAST SECTION
   ======================================== */
.podcast-section {
    width: 90%;
    max-width: 942px;
    padding: 100px 0;
    margin: 0 auto;
}

.podcast-intro {
    text-align: center;
    margin-bottom: 60px;
}

.podcast-subtitle {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 64px;
    line-height: 64px;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
    background: linear-gradient(269.66deg, #01344f 21.24%, #1987ac 83.29%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.podcast-description {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.42em;
    color: #FFFFFF;
}

.podcast-button {
    text-align: center;
    margin-bottom: 50px;
}

.podcast-button .button-bg {
    width: 258px;
    height: 84px;
    position: relative;
}

.podcast-button span {
    position: absolute;
    top: 50%;
    left: 141px;
    transform: translateY(-50%);
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.25em;
}

.podcast-button .button-icon {
    position: absolute;
    top: 50%;
    right: 26px;
    transform: translateY(-50%);
    width: 66px;
    height: 46px;
}

.podcast-main-title {
    text-align: right;
    margin-top: 50px;
    font-family: 'Plain', sans-serif;
    font-weight: 700;
    font-size: 34px;
    color: #FFFFFF;
    background: linear-gradient(90deg, #FFFFFF 0%, #1987AC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   FEATURE CONTENT (Podcast detail)
   ======================================== */
.feature-content {
    width: 90%;
    max-width: 1242px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    align-items: start;
    padding: 80px 0 80px 0;
    margin: 0 auto;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text {
    color: #FFFFFF;
    font-family: 'Plain', sans-serif;
    padding-top: 10px;
}

.feature-title {
    font-weight: 700;
    font-size: 34px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #25a5cf, #01344f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    font-family: 'Plain', sans-serif;
    font-weight: 250;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 40px;
    color: #1987ac;
}

.feature-name {
    display: block;
    font-weight: 500;
    color: #1987ac;
}

.feature-role {
    font-weight: 250;
    color: #1987ac;
}

.feature-text-light {
    font-weight: 200;
    color: #1987ac;
}

.feature-button {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    cursor: pointer;
}

.feature-button .youtube-icon {
    width: 55px;
    height: 55px;
}

.feature-button-text {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
}

/* ========================================
   ZUL RESIDENCES SECTION
   ======================================== */
.zul-section {
    width: 90%;
    max-width: 1200px;
    display: flex;
    padding: 180px 20px;
    gap: 100px;
    align-items: center;
    margin: 0 auto;
}

.zul-gallery {
    flex: 1;
    min-width: 0;
    max-width: 834px;
}

.gallery-main {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.03);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.zul-content {
    flex: 0 0 365px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.logo-svg {
    width: 260px;
    height: auto;
}

.zul-info {
    text-align: left;
}

.zul-title {
    font-family: 'Plain', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #01344F;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.feature-item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(1, 52, 79, 0.2);
}

.feature-value {
    font-family: 'Plain', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #01344F;
    display: block;
}

.zul-buttons {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.zul-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #01344F;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    width: 365px;
    border-radius: 42px;
}

.zul-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 52, 79, 0.1);
}

.button-icon {
    width: 100%;
    height: auto;
}

.cta-button {
    grid-column: span 2;
    border-color: #01344F;
    border-radius: 62px;
    height: auto;
    width: 312px;
    align-self: center;
    margin: 35px;
}

.cta-button:hover {
    background: #02567c;
    border-color: #02567c;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    width: 100%;
    padding: 380px 20px;
}

.newsletter-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 80px;
    align-items: flex-start;
}

.newsletter-text {
    flex: 1;
    max-width: 500px;
}

.newsletter-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    font-weight: 400;
    background: linear-gradient(269deg, #FFFFFF 25%, #1987AC 84%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    line-height: 1;
}

.newsletter-subtitle {
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-description {
    font-family: 'Plain', sans-serif;
    font-weight: 250;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
}

.newsletter-features {
    margin-top: 40px;
}

.feature-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
}

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

.newsletter-form-wrapper {
    flex: 1;
    max-width: 600px;
    margin-top: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 480px;
    align-items: center;
    margin: 0 auto;
}

.form-input {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 174px;
    padding: 12px 30px;
    font-family: 'Plain', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #FFFFFF;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1987AC;
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-button {
    width: 219px;
    height: 66px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 200px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    margin-top: 15px;
    position: relative;
    transition: all 0.3s ease;
    align-self: center;
}

.submit-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #1987AC;
}

.submit-button img {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    width: 100%;
    background: #ffffff;
    font-family: 'Plain', sans-serif;
    padding: 20px 0;
    margin-top: auto;
}

.footer-top {
    text-align: center;
    padding: 10px 0;
}

.footer-logo {
    width: 100px;
    height: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-column {
    flex: 1;
    padding: 0 10px;
}

.footer-column.left {
    text-align: left;
}

.language-selector {
    margin-bottom: 10px;
}

.current-language {
    font-weight: 400;
    font-size: 14px;
    color: #01344F;
}

.copyright {
    font-family: 'Plain', sans-serif;
    font-weight: 200;
    font-size: 12px;
    color: #01344F;
    line-height: 1.4;
    margin: 0;
}

.footer-column.center {
    font-family: 'Plain', sans-serif;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-link {
    font-weight: 200;
    font-size: 12px;
    color: #01344F;
    text-decoration: none;
    white-space: nowrap;
}

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

.separator {
    color: #01344F;
    font-size: 12px;
    margin: 0 2px;
}

.footer-column.right {
    text-align: right;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    font-size: 14px;
    color: #01344F;
}

.contact-text {
    font-family: 'Plain', sans-serif;
    font-weight: 200;
    font-size: 12px;
    color: #01344F;
    line-height: 1.4;
}

/* ========================================
   ANIMATIONS & PAGE TRANSITIONS
   ======================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0);     }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0);    }
}

@keyframes pageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pageOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Base state: hidden before intersection */
.anim-up,
.anim-left,
.anim-right {
    opacity: 0;
    will-change: opacity, transform;
}

/* Triggered state: added by IntersectionObserver */
.anim-up.in-view {
    animation: fadeInUp 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--anim-delay, 0ms);
}

.anim-left.in-view {
    animation: fadeInLeft 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--anim-delay, 0ms);
}

.anim-right.in-view {
    animation: fadeInRight 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--anim-delay, 0ms);
}

/* ========================================
   RESPONSIVE - Tablet landscape (1024px)
   ======================================== */
@media (max-width: 1024px) {
    .mesa-trabajo {
        top: -880px;
        width: auto;
        height: 13200px;
    }

    .header {
        padding: 0 40px;
    }

    .stats-section {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 15px;
        max-width: 95%;
    }

    .stat-item .stat-bg {
        width: 100%;
        height: auto;
    }

    .projects-section {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .project-card {
        width: 80%;
        max-width: 400px;
    }

    .vision-content {
        flex-direction: column;
        gap: 40px;
    }

    .vision-text {
        max-width: 100%;
    }

    .vision-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .vision-title {
        font-size: 72px;
        line-height: 70px;
    }

    .company-title {
        font-size: 72px;
    }

    .philosophy-grid {
        gap: 40px;
    }

    .timeline-container {
        flex-direction: column;
        gap: 40px;
    }

    .timeline-text {
        text-align: center;
        max-width: 100%;
    }

    .timeline-title {
        font-size: 72px;
    }

    .timeline-chart {
        max-width: 100%;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .zul-section {
        flex-direction: column;
        gap: 40px;
    }

    .zul-content {
        flex: 1;
        width: 100%;
        align-items: center;
    }

    .zul-button {
        width: 100%;
        max-width: 365px;
    }

    .cta-button {
        width: 100%;
        max-width: 312px;
    }

    .newsletter-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .newsletter-text {
        max-width: 100%;
    }

    .newsletter-form-wrapper {
        max-width: 100%;
    }

    .newsletter-form {
        max-width: 100%;
        margin-left: 0;
    }

    .footer-bottom {
        padding: 0 20px;
    }
}

/* ========================================
   RESPONSIVE - Tablet portrait (768px)
   ======================================== */
@media (max-width: 768px) {
    /* Intercambio de videos: ocultar escritorio, mostrar móvil */
    .hero-background-desktop {
        display: none;
    }
    .hero-background-mobile {
        display: block;
        z-index: 2; /* Por encima del mesa-trabajo (z-index: 1) */
    }

    .mesa-trabajo {
        top: -180px;
        width: auto;
        height: 15000px;
    }

    .header {
        padding: 0 20px;
        height: 56px;
    }

    .logo {
        width: 80px;
        height: 23px;
    }

    .contact-link {
        font-size: 16px;
    }

    .hero-spacer {
        aspect-ratio: 9/16;
        min-height: unset;
        max-height: unset;
    }

    .stats-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 15px;
    }

    .stat-item {
        max-width: 280px;
        height: 140px;
    }

    .projects-section {
        gap: 20px;
        padding: 20px 0;
    }

    .project-card {
        width: 90%;
    }

    .project-name {
        font-size: 36px;
    }

    .project-types span {
        font-size: 18px;
    }

    .vision-section {
        padding: 30px 0;
    }

    .vision-title {
        font-size: 56px;
        line-height: 54px;
    }

    .vision-subtitle {
        font-size: 20px;
    }

    .vision-description {
        font-size: 16px;
    }

    .company-section {
        padding: 30px 0;
    }

    .company-title {
        font-size: 56px;
    }

    .philosophy-item.large {
        font-size: 24px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .philosophy-title {
        font-size: 36px;
    }

    .philosophy-description {
        font-size: 16px;
    }

    .timeline-section {
        padding: 30px 0;
    }

    .timeline-title {
        font-size: 56px;
    }

    .timeline-subtitle {
        font-size: 24px;
    }

    .timeline-chart {
        display: none;
    }

    .podcast-section {
        padding: 30px 0;
    }

    .podcast-subtitle {
        font-size: 48px;
        line-height: 48px;
    }

    .podcast-description {
        font-size: 20px;
    }

    .feature-title {
        font-size: 28px;
    }

    .feature-description {
        font-size: 16px;
    }

    .zul-section {
        padding: 20px 15px;
        gap: 20px;
    }

    .zul-button {
        width: 100%;
        max-width: 320px;
    }

    .cta-button {
        max-width: 280px;
    }

    .newsletter-section {
        padding: 30px 15px;
    }

    .newsletter-title {
        font-size: 48px;
    }

    .newsletter-subtitle {
        font-size: 20px;
    }

    .form-input {
        height: 48px;
        font-size: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-column.left,
    .footer-column.center,
    .footer-column.right {
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }
}

/* ========================================
   RESPONSIVE - Mobile (480px)
   ======================================== */
@media (max-width: 480px) {
    .mesa-trabajo {
        top: -880px;
        width: auto;
        height: 11600px;
    }

    .header {
        padding: 0 15px;
        height: 50px;
    }

    .header-right {
        padding-right: 0;
    }

    .logo {
        width: 70px;
        height: 20px;
    }

    .contact-link {
        font-size: 14px;
    }

    .hero-spacer {
        min-height: unset;
        max-height: unset;
    }

    .stats-section {
        padding: 50px 15px;
        gap: 40px;
    }

    .stat-item {
        max-width: fit-content;
        height: 177px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-label {
        font-size: 22px;
    }

    .projects-section {
        width: 80%;
        gap: 25px;
        padding: 30px 0;
    }

    .project-card {
        width: 100%;
    }

    .project-name {
        font-size: 30px;
    }

    .project-types span {
        font-size: 16px;
    }

    .vision-section {
        width: 95%;
        padding: 40px 0;
        margin-top: 50px;
    }

    .vision-title {
        font-size: 42px;
        line-height: 40px;
    }

    .vision-subtitle {
        font-size: 18px;
    }

    .vision-description {
        font-size: 14px;
    }

    .ceo-signature {
        flex-direction: column;
        gap: 15px;
    }

    .ceo-info {
        text-align: left;
    }

    .company-section {
        width: 95%;
        padding: 100px 0;
    }

    .company-title {
        font-size: 42px;
    }

    .philosophy-item.large {
        font-size: 20px;
    }

    .philosophy-quote {
        font-size: 16px;
    }

    .philosophy-icon {
        width: 80px;
        height: 80px;
    }

    .philosophy-title {
        font-size: 30px;
    }

    .philosophy-description {
        font-size: 14px;
    }

    .timeline-section {
        width: 95%;
        padding: 40px 0;
    }

    .timeline-title {
        font-size: 42px;
    }

    .timeline-subtitle {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .timeline-source {
        font-size: 12px;
    }

    .podcast-section {
        width: 95%;
        padding: 100px 0;
    }

    .vision-image {
        max-width: -webkit-fill-available;
        height: auto;
        padding-top: 50px;
    }

    .podcast-subtitle {
        font-size: 36px;
        line-height: 36px;
    }

    .podcast-description {
        font-size: 16px;
    }

    .feature-content {
        width: 95%;
        padding-bottom: 40px;
    }

    .feature-title {
        font-size: 22px;
    }

    .feature-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .feature-image {
        border-radius: 15px;
    }

    .zul-section {
        width: 95%;
        padding: 100px 10px;
        gap: 25px;
    }

    .logo-svg {
        width: 200px;
    }

    .zul-button {
        max-width: 100%;
    }

    .cta-button {
        max-width: 100%;
        margin: 15px 0;
    }

    .newsletter-section {
        padding: 100px 15px;
    }

    .newsletter-title {
        font-size: 36px;
    }

    .newsletter-subtitle {
        font-size: 16px;
    }

    .newsletter-description {
        font-size: 14px;
    }

    .form-input {
        height: 45px;
        font-size: 14px;
        padding: 10px 20px;
    }

    .submit-button {
        width: 180px;
        height: 55px;
    }

    .footer {
        padding: 15px 0;
    }

    .footer-bottom {
        padding: 0 15px;
    }

    .legal-links {
        gap: 5px;
    }

    .contact-text {
        font-size: 11px;
    }
}

/* ========================================
   ZUL FOOTER (shared)
   ======================================== */
.zul-footer {
    position: relative;
    z-index: 10;
    background: #fff;
    padding: 20px 50px;
    width: 100%;
}

.zul-footer-logo {
    text-align: center;
    margin-bottom: 10px;
}

.zul-footer-logo img {
    width: 82px;
    height: 24px;
}

.zul-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.zul-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zul-footer-lang {
    font-family: 'Plain', sans-serif;
    font-weight: 200;
    font-size: 12px;
    color: #01344f;
}

.zul-footer-copyright {
    font-family: 'Plain', sans-serif;
    font-weight: 200;
    font-size: 12px;
    color: #01344f;
}

.zul-footer-dev {
    font-family: 'Plain', sans-serif;
    font-weight: 200;
    font-size: 12px;
    color: #01344f;
}

.zul-footer-dev-link {
    font-weight: 400;
    color: #01344f;
    text-decoration: none;
}

.zul-footer-dev-link:hover {
    text-decoration: underline;
}

.zul-footer-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zul-footer-link {
    font-family: 'Plain', sans-serif;
    font-weight: 200;
    font-size: 12px;
    color: #01344f;
    text-decoration: none;
}

.zul-footer-link:hover {
    text-decoration: underline;
}

.zul-footer-divider {
    color: #01344f;
    font-size: 12px;
}

.zul-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.zul-footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zul-footer-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.zul-footer-contact span {
    font-family: 'Plain', sans-serif;
    font-weight: 200;
    font-size: 12px;
    color: #01344f;
}

@media (max-width: 768px) {
    .zul-footer {
        padding: 20px;
    }

    .zul-footer-content {
        flex-direction: column;
        text-align: center;
    }

    .zul-footer-left,
    .zul-footer-center,
    .zul-footer-right {
        align-items: center;
    }

    .zul-footer-left {
        flex-direction: column;
    }
}
