
:root {
    --color-base: #065d2d;
    --color-dark: #022714;
    --color-medium: #216a43;
    --color-light: #548f72;
    --color-soft: #91a9a0;
    --color-text: #e4fff5;
}

/* ===== CONFIGURACIÓN GENERAL ===== */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-serv-construcciones {
    width: 100%;
}

/* ===== NUEVA SECCIÓN HERO DE INTRODUCCIÓN ===== */
.fullscreen-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Capa de degradado oscuro izquierdo para el Hero */
.hero-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    z-index: 5;
    background: linear-gradient(to right, rgba(1, 43, 20, 0.95) 0%, rgba(1, 43, 20, 0.7) 70%, rgba(1, 43, 20, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
}

.hero-large-icon-side {
    display: flex;
    align-items: right;
    justify-content: right;
    flex-shrink: 0;
}

.hero-large-icon-side img {
    filter: grayscale(100%) brightness(100);
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
}

.hero-text-wrapper {
    max-width: 600px;
    width: 100%;
}

.custom-title-box h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF !important;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* TEXTO DESCRIPTIVO ESTILO IMAGEN 1 */
.hero-description-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ffffff;
    text-align: justify;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* ===== SECCIONES DE VIDEO EXISTENTES ===== */
.fullscreen-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-caption {
    position: absolute;
    top: 0;
    width: 55%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 80px;
}

.overlay-caption.align-left {
    left: 0;
    background: linear-gradient(to right, rgba(0, 102, 55, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0) 100%);
    justify-content: flex-start;
}

.overlay-caption.align-right {
    right: 0;
    background: linear-gradient(to left, rgba(0, 102, 55, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0) 100%);
    justify-content: flex-end;
    text-align: right;
}

.caption-content {
    max-width: 550px;
    width: 100%;
}

.caption-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* ===== DESIGN RESPONSIVO OPTIMIZADO ===== */

/* Laptops y Tabletas Grandes */
@media (max-width: 1399px) {
    .hero-overlay-content {
        width: 70%;
        padding: 0 50px;
    }
    .overlay-caption {
        width: 65%;
        padding: 0 50px;
    }
}

/* Tabletas Medianas (Modo Portarretrato) */
@media (max-width: 991px) {
    .hero-overlay-content,
    .overlay-caption {
        width: 85%;
        padding: 0 40px;
    }

    .custom-title-box h1 {
        font-size: 2.8rem;
    }

    .caption-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-large-icon-side img {
        max-width: 90px;
    }
}

/* Teléfonos Inteligentes (Móviles) */
@media (max-width: 767px) {
    .fullscreen-hero-section,
    .fullscreen-video-section {
        height: auto;
        min-height: 100vh; /* Conserva la experiencia inmersiva de pantalla completa */
        display: flex;
        flex-direction: column;
    }

    /* Ajuste de Hero en Móvil */
    .hero-overlay-content {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 100vh;
        background: rgba(1, 43, 20, 0.93); /* Color de marca sólido para legibilidad */
        padding: 80px 25px;
        flex-direction: column-reverse; /* Mandar el ícono arriba del texto de forma estética */
        justify-content: center;
        gap: 30px;
    }

    .hero-text-wrapper {
        max-width: 100%;
    }

    .custom-title-box h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-description-text p {
        font-size: 1rem;
        text-align: justify;
    }

    /* Ajuste de Secciones de Video en Móvil */
    .overlay-caption.align-left,
    .overlay-caption.align-right {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 100vh;
/*        background: linear-gradient(to top, rgba(0, 39, 20, 0.95) 0%, rgba(0, 102, 55, 0.8) 50%, rgba(0, 39, 20, 0.95) 100%) !important;
        */flex-direction: column;
        justify-content: center !important;
        text-align: center !important;
        padding: 60px 25px;
        gap: 25px;
        left: auto;
        right: auto;
    }

    /* Invertir orden visual para consistencia en móvil (Icono arriba, texto abajo) */
    .overlay-caption.align-right {
        flex-direction: column-reverse;
    }

    .caption-content h2 {
        font-size: 1.6rem;
    }

    .hero-large-icon-side img {
        max-width: 200px;
        opacity: 0.9;
    }
}