/* Simple Header Styling */
.simple-header {
    position: absolute;
    top: 20px;
    left: 60px;
    z-index: 100;
}

/* Mobile header adjustments */
@media (max-width: 768px) {
    .simple-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 10px 0;
        height: 60px;
        display: flex;
        align-items: center;
        background: #1a1a1a;
    }

    body {
        padding-top: 60px;
    }
}

/* Tablet header adjustments (768px–1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .header-productos-desktop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: #1a1a1a;
        z-index: 1000;
        padding: 10px 0;
    }

    .header-container-productos-desktop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
        padding: 0 var(--site-padding);
    }

    .logo-link-productos {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }

    .logo-img-productos {
        height: 50px;
        width: auto;
    }

    .logo-text-productos {
        font-size: 1.4rem;
        margin-left: 8px;
        color: #fff;
    }

    .simple-header {
        display: none;
    }
}

@media (min-width: 1025px) {
    body {
        padding-top: 100px;
    }

    .header-productos-desktop {
        background: linear-gradient(to bottom, rgba(26, 26, 26, 0.9), transparent);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        height: 100px;
        display: flex;
        align-items: center;
        transition: transform 0.3s ease-in-out;
    }

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

    .header-container-productos-desktop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
        padding: 0 10px;
    }

    .logo-link-productos {
        text-decoration: none;
        display: flex;
        align-items: center;
        margin-left: -60px;
    }

    .logo-img-productos {
        height: 40px;
    }

    .logo-text-productos {
        font-size: 1.5rem;
        font-weight: 700;
        margin-left: 10px;
        color: #fff;
    }

    .nav-link-productos {
        color: #fff;
        text-decoration: none;
        margin: 0 15px;
        transition: color 0.3s;
    }

    .nav-link-productos:hover {
        color: #f9751c;
    }

    header.simple-header {
        display: none;
    }
}

/* Estilos para el botón de retroceso */
.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(26, 26, 26, 0.6);
}

.back-button:hover {
    background: rgba(26, 26, 26, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.3);
    border-color: rgba(26, 26, 26, 0.9);
}

.back-button:hover .flecha-retorno {
    filter: brightness(0) saturate(100%) invert(52%) sepia(86%) saturate(1769%) hue-rotate(359deg) brightness(98%) contrast(92%);
    transform: rotate(0deg);
}

.back-button .flecha-retorno {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

/* Hidden Header for full video experience */
.hidden-header {
    display: none;
}

/* Global Styles & Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #e31837;
    --text-color: #333;
    --text-light: #f4f4f4;
    --section-padding: 80px 0;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin: 0 0 1rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section 1: Hero Video */
.hero-video-section {
    position: relative;
    height: 1080px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.6);
}

@media (min-width: 1024px) {
    .hero-video-section {
        height: 1080px !important;
    }

    .video-hero {
        object-fit: fill !important;
    }
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 1;
    max-width: 800px;
    /* animation: fadeIn 1s ease-out; */
    /* DESACTIVADA */
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}

/* Section 2: Mission, Vision, Cards */
.mvvp-section {
    padding: var(--section-padding);
    background-color: #f5f5f5;
    position: relative;
}

.mvvp-section .container {
    max-width: 1400px;
    padding-left: 200px;
    margin-left: 0;
}

.grid-mvvp {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    margin-left: 20px;
    transform: translateY(50px);
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    .grid-mvvp {
        flex-direction: column;
        align-items: flex-start;
    }
}

.card-mvvp-btn,
.back-to-all-btn {
    background: rgba(26, 26, 26, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    min-height: 60px;
    flex: 0 0 auto;
    width: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
}

.card-mvvp-btn:hover,
.back-to-all-btn:hover {
    background: rgba(26, 26, 26, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-mvvp-btn h3 {
    font-size: 1rem;
    color: white;
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}

/* Imagen de la sección - ALARGADA */
.section-image {
    margin-top: 30px;
    text-align: left;
    margin-left: 0;
    position: relative;
    /* Para posicionar el recuadro encima */
}

.section-image img {
    max-width: 100%;
    /* Alargar la imagen al 100% */
    width: 100%;
    /* Forzar ancho completo */
    height: 600px;
    /* Altura fija para alargar */
    object-fit: cover;
    /* Mantener proporciones */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.1);
}

/* Recuadro de mensaje - SOBRE LA IMAGEN CON FONDO TRANSPARENTE */
.message-box {
    background: rgba(26, 26, 26, 0.7);
    /* Fondo más transparente */
    backdrop-filter: blur(10px);
    /* Efecto glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 600px;
    /* POSICIONAMIENTO SOBRE LA IMAGEN */
    position: absolute;
    bottom: 40px;
    /* Desde abajo de la imagen */
    left: 50%;
    transform: translateX(-50%);
    /* Centrar horizontalmente */
    z-index: 10;
    /* Por encima de la imagen */
}

/* ELIMINAR COMPLETAMENTE LA LÍNEA NARANJA */
.message-box::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-right: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

.message-box p {
    font-size: 1.1rem;
    color: #f9751c;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Section Modal Styles */
.section-modal {
    background: rgba(26, 26, 26, 0.9);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    position: absolute;
    top: 45%;
    right: 200px;
    transform: translateY(-50%);
    z-index: 10;
    width: 320px;
    height: 350px;
    overflow: visible;
    box-sizing: border-box;
}

.section-modal::before {
    display: none;
}

/* Borde fijo para modales de sección */
.modal-border {
    position: absolute;
    top: 120px;
    right: 180px;
    transform: translateY(0);
    width: 220px;
    height: 500px;
    border-top: 3px solid #f9751c;
    border-right: 3px solid #f9751c;
    border-left: none;
    border-bottom: none;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Mobile-friendly modal and decorations */
@media (max-width: 768px) {
    .section-modal {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        width: 95% !important;
        height: auto !important;
        max-height: 90vh !important;
        border-radius: 0;
        padding: 20px;
        transform: translate(-50%, -50%) !important;
        z-index: 10001 !important;
        overflow-y: auto;
    }

    .modal-border {
        display: none !important;
    }

    .message-box {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 20px !important;
        max-width: 100% !important;
        padding: 20px !important;
        background: rgba(26, 26, 26, 1) !important;
        /* Full opacity for readability */
    }

    .section-image img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .message-box {
        bottom: -20px;
        /* Move lower on tablets */
    }
}

.section-modal.active~.modal-border,
.modal-border.active {
    opacity: 1;
    visibility: visible;
}

.section-modal.active {
    display: block;
}

.section-modal .modal-close {
    display: none !important;
}

.info-panel .panel-close {
    display: none !important;
}

.section-modal h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-modal p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Section 3: Company Intro */
.company-intro-section {
    padding: var(--section-padding);
    background: #111 url('../Images/nosotros/foto-seccion3.jpg') center/contain no-repeat scroll !important;
    color: #fff;
    text-align: center;
    position: relative;
    min-height: 1000px;
}

.company-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.6);
    z-index: 1;
}

.company-intro-section .container {
    position: relative;
    z-index: 2;
    max-width: none;
    padding: 0 20px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.company-card:first-child {
    margin-left: 400px;
}

.company-card:last-child {
    margin-left: 300px;
    margin-top: 240px;
}

.company-card {
    background: rgba(26, 26, 26, 0.6);
    color: white;
    padding: 30px 160px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    max-width: 1600px;
    margin: 0 auto;
}

.company-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: transparent;
    border-left: 3px solid #f9751c;
    border-bottom: 3px solid #f9751c;
    border-radius: 0;
    z-index: -1;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.2);
}

.company-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.company-card p {
    font-family: 'Work Sans', 'Arial', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    position: relative;
}

.split-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(26, 26, 26, 0.15);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Section 4: Ethics & Contact */
.ethics-section {
    padding: var(--section-padding);
    background: #f5f5f5;
    padding: 60px 0;
    color: #333;
    min-height: 600px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ethics-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.ethics-section .container {
    max-width: 1400px;
}

.ethics-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.ethics-quote {
    flex: 0 0 30%;
    background: rgba(26, 26, 26, 0.8);
    color: white;
    padding: 80px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-left: -30px;
}

.ethics-quote::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    background: transparent;
    border-left: 3px solid #f9751c;
    border-top: 3px solid #f9751c;
    border-radius: 0;
    z-index: 1;
}

.ethics-quote p {
    font-family: 'Work Sans', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.ethics-top-quote {
    background: rgba(26, 26, 26, 0.9);
    color: #f5f5f5;
    padding: 12px 80px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
    max-width: 1000px;
    margin: 20px 0 40px 480px;
    transform: translateY(60px);
}


.ethics-top-quote p {
    font-family: 'Work Sans', 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    color: #f5f5f5;
    font-style: italic;
}

.ethics-right-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ethics-header-image {
    max-width: 1000px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.3);
}

.ethics-grid {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding-left: 40px;
}

.ethics-card {
    background: rgba(26, 26, 26, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 45px;
    flex: 0 0 auto;
    width: 160px;
}

.ethics-card:hover {
    background: rgba(26, 26, 26, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.ethics-card h3 {
    font-family: 'Neo Sans', 'Arial', sans-serif;
    font-size: 14px;
    color: white;
    margin: 0;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.3;
}

.ethics-card p {
    display: none;
}

.btn-ethics {
    display: none;
}

/* Modal de PDF */
.pdf-modal {
    max-width: 95vw !important;
    width: 1000px !important;
    background: rgba(26, 26, 26, 0.95) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-sizing: border-box !important;
    max-height: 98vh !important;
    height: auto !important;
    overflow-y: auto !important;
}

.pdf-container {
    margin: 20px 0 !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    height: 80vh !important;
    min-height: 650px !important;
}

.pdf-container iframe {
    border: none !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.pdf-actions {
    text-align: center;
    margin-top: 20px;
}

.download-btn {
    display: inline-block;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #555;
}

/* Section 5: Community */
.community-section {
    padding: var(--section-padding);
    background: #f4f4f4;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.community-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.commitment-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.split-image img {
    width: 80%;
    height: auto;
    max-width: none;
}

@media (min-width: 1025px) {
    .split-image {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 4px 60px 0 0;
        transform: translateX(50px);
    }
}

@media (max-width: 1024px) {
    .split-image {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        transform: none;
    }
}

.border-container {
    position: absolute;
    top: -84px;
    right: -164px;
    width: 300px;
    height: calc(100% + 84px);
    border-top: 4px solid #f9751c;
    border-right: 4px solid #f9751c;
    z-index: 1;
    pointer-events: none;
}

.bottom-commitment-box {
    background: rgba(26, 26, 26, 0.9);
    color: #f5f5f5;
    padding: 12px 80px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: -40px;
    left: 37%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 900px;
    z-index: 5;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-commitment-box p {
    margin: 0;
    color: #f5f5f5;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

.section-modal.pdf-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000 !important;
    max-width: 95vw !important;
    width: 1000px !important;
    max-height: 98vh !important;
    overflow-y: auto !important;
}

.section-modal.pdf-modal::before {
    top: -120px !important;
    left: -20px !important;
    right: -20px !important;
    bottom: -200px !important;
    background: transparent !important;
    border-top: 3px solid #f9751c !important;
    border-right: 3px solid #f9751c !important;
    border-left: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    z-index: -1 !important;
}

.image-with-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Base styles for .info-panel (Mobile-first or Tablet-compatible) */
.info-panel {
    background: rgba(26, 26, 26, 0.9);
    color: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 50%;
    right: -180px;
    /* Default out of view */
    transform: translateY(-50%);
    width: 350px;
    max-height: 80%;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}

.info-panel.hidden {
    opacity: 0;
    visibility: hidden;
    right: -180px;
}

.info-panel:not(.hidden) {
    opacity: 1;
    visibility: visible;
    right: -170px;
}

/* DESKTOP SPECIFIC OVERRIDES (1025px+) */
@media (min-width: 1025px) {
    .info-panel {
        background: rgba(26, 26, 26, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        right: -320px !important;
        /* MOVIDO A LA DERECHA PARA NO ESTAR EN EL MEDIO */
        z-index: 100 !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    .info-panel.hidden {
        right: -350px !important;
        opacity: 0 !important;
    }

    .info-panel:not(.hidden) {
        right: -320px !important;
        opacity: 1 !important;
    }
}


.info-content h4 {
    font-family: 'Neo Sans', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 15px 0;
    color: white;
    text-transform: uppercase;
}

.info-content p {
    font-family: 'Work Sans', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.commitment-btn {
    background: rgba(26, 26, 26, 0.8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Neo Sans', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    white-space: nowrap;
}

.commitment-btn:hover {
    background: rgba(26, 26, 26, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.2);
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .ethics-grid {
        grid-template-columns: 1fr;
    }

    .ethics-header {
        flex-direction: column;
        gap: 30px;
    }

    .ethics-quote {
        order: 2;
        min-height: auto;
        padding: 30px;
        margin-left: 0;
    }

    .ethics-header-image {
        order: 1;
        max-width: 100%;
    }

    .ethics-top-quote {
        max-width: 100%;
        margin: 20px auto 40px auto;
        transform: none;
    }
}

/* CUSTOM OVERRIDES FOR QUIENES-SOMOS SECTION 3 */
.company-card-custom {
    text-align: left !important;
    padding: 30px 80px 30px 40px !important;
}

@media (max-width: 768px) {
    .company-card-custom {
        padding: 30px 20px !important;
        text-align: center !important;
    }
    
    .company-card-custom .desktop-text-only {
        display: none !important;
    }
    
    .company-card-custom .mobile-text-only {
        display: block !important;
        text-align: center !important;
    }
}

/* Fix for blanco humo close button */
.section-modal .modal-close {
    color: #f5f5f5 !important;
    display: flex !important;
    background: #333 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
}


/* Botón de Mute para el Video Hero */
.hero-video-section {
    position: relative;
}

.mute-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mute-btn:hover {
    background: rgba(249, 117, 28, 0.8);
    transform: scale(1.1);
}

.mute-btn i {
    font-size: 1.2rem;
}

