:root {
    --color-primary: #02305b;
    --color-secondary: #0750cf;
    --color-accent: #0845bd;
    /* Color de acento/naranja según la imagen */
    --color-dark: #212122;
    --color-white: #ffffff;
}

.hero-slider-section {
    position: relative;
    background-color: var(--color-dark);
    color: var(--color-white);
    overflow: hidden;
}

.hero-slide-item {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* Overlay para lograr el degradado oscuro como en la imagen */
.hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(2, 48, 91, 0.95) 0%,
            rgba(33, 33, 34, 0.85) 45%,
            rgba(33, 33, 34, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-subtitle {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.hero-title .text-accent {
    color: var(--color-accent);
}

.hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Botón principal */
.btn-hero-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Botón Play / Pause circular con efecto de ondas */
.video-play-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    border: none;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2), 0 0 0 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.video-play-btn:hover {
    transform: scale(1.08);
    color: var(--color-white);
}

/* Flechas de navegación laterales */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(33, 33, 34, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 5;
}

.hero-slider-section .carousel-control-prev {
    left: 25px;
}

.hero-slider-section .carousel-control-next {
    right: 25px;
}

.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
    background-color: var(--color-secondary);
    opacity: 1;
}

/* Elemento decorativo flotante (Triángulo) */
.decorative-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--color-accent);
    z-index: 3;
}

.triangle-top-left {
    top: 30px;
    left: 20px;
}

.triangle-bottom-center {
    bottom: 30px;
    left: 40%;
}

@media (max-width: 767.98px) {
    .hero-slide-item {
        min-height: 70vh;
        padding: 60px 0;
    }

    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        display: none;
        /* Se ocultan en móviles para mejorar legibilidad */
    }
}


/*===========About Cont==========*/
.about-section {
    padding: 80px 0;
    background-color: var(--color-white);
    color: var(--color-dark);
    position: relative;
    overflow: hidden;
}

/* Imagen compuesta única de la izquierda (PNG) */
.about-img-wrapper {
    position: relative;
    text-align: center;
}

.about-img-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Título principal */
.about-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Textos de descripción */
.about-description {
    color: var(--color-gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Cajas de características / Servicios */
.feature-box {
    background-color: var(--color-white);
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
    position: relative;
    border-left: 3px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.25;
}

/* Botón y Firma */
.about-footer {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-about-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-about-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.signature-wrapper {
    display: inline-flex;
    align-items: center;
}

.signature-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .about-section {
        padding: 50px 0;
    }

    .about-img-wrapper {
        margin-bottom: 2.5rem;
    }
}


/* START: Services Section */
.services-section {
    position: relative;
    padding: 90px 0 100px;
    background-image: url('assets/images/resource/service-bg.jpg');
    /* Reemplaza por la ruta de tu imagen de fondo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

/* Capa de superposición para asegurar buena legibilidad y tono oscuro */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 48, 91, 0.88);
    /* Ajustado con el azul del root y opacidad */
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* Header de la sección */
.services-header {
    max-width: 680px;
    margin: 0 auto 60px;
    text-align: center;
}

.services-title {
    font-size: clamp(2.1rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.services-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tarjeta de Servicio */
.service-card {
    background-color: var(--color-white);
    border-radius: 4px;
    position: relative;
    padding-top: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Ícono en forma de casita/flecha arriba */
.service-icon-box {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 100%, 0% 100%, 0% 25%);
    z-index: 3;
}

.service-icon-box svg {
    margin-top: 6px;
}

/* Contenido de texto en la tarjeta */
.service-card-body {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.85rem;
}

.service-card-text {
    font-size: 0.88rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Imagen inferior de la tarjeta */
.service-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Ajustes Responsive */
@media (max-width: 991.98px) {
    .services-section {
        padding: 60px 0;
    }
}


/* START: Projects Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* Encabezado con título a la izquierda y botón a la derecha */
.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.gallery-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.25;
    margin: 0;
    max-width: 420px;
}

/* Botón View All Projects */
.btn-gallery-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-gallery-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Tarjeta de Galería */
.gallery-card {
    position: relative;
    border: 1px solid #e0e0e0;
    padding: 4px;
    /* Simula el marco fino alrededor de la foto */
    background-color: var(--color-white);
    border-radius: 2px;
    height: 100%;
}

.gallery-img-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Mantiene la proporción vertical limpia */
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-container img {
    transform: scale(1.06);
}

/* Decoraciones superiores (puntos / círculos naranjas sobre el marco) */
.gallery-card-dot-top-right {
    position: absolute;
    top: -6px;
    right: 15%;
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    background-color: var(--color-white);
    z-index: 2;
}

.gallery-card-dot-top-left {
    position: absolute;
    top: -5px;
    left: 20%;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    z-index: 2;
}

/* Ajustes Responsive */
@media (max-width: 767.98px) {
    .gallery-section {
        padding: 50px 0;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-img-container {
        aspect-ratio: 4 / 3;
        /* Proporción más horizontal en pantallas pequeñas */
    }
}

/* END: Projects Gallery Section */


/* START: Contact & Info Section */
.contact-info-section {
    position: relative;
    background-color: var(--color-primary);
    /* Fondo azul oscuro del root */
    color: var(--color-white);
    overflow: hidden;
}

/* Columna Izquierda: Fondo de trabajador */
.contact-left-col {
    position: relative;
    background-image: url('assets/images/resource/5.jpg');
    /* Reemplaza por tu imagen */
    background-size: cover;
    background-position: center left;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 60px 0 60px 30px;
}

/* Formulario flotante naranja */
.contact-form-card {
    background-color: var(--color-accent);
    /* Color naranja de acento */
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Solapa / Doblez en la esquina superior derecha del formulario */
.contact-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -35px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 35px 0 0 35px;
    border-color: transparent transparent transparent #0845bd;
    /* Tono naranja más oscuro para sombra de doblez */
}

.contact-form-title {
    color: var(--color-white);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-form-card .form-control {
    border: none;
    border-radius: 0;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--color-dark);
    background-color: var(--color-white);
    margin-bottom: 1.1rem;
}

.contact-form-card .form-control::placeholder {
    color: #a0a0a0;
}

.contact-form-card .form-control:focus {
    box-shadow: none;
    outline: 2px solid var(--color-secondary);
}

.btn-form-submit {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    border: none;
    width: 100%;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.btn-form-submit:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Columna Derecha: Información */
.contact-right-col {
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.info-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

/* Tarjetas de características */
.info-feature-card {
    background-color: var(--color-white);
    padding: 1.25rem 1.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    border-left: 3px solid var(--color-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.info-feature-card:hover {
    transform: translateY(-3px);
}

.info-feature-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.info-feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.3;
}

/* Adaptación Mobile / Tablet */
@media (max-width: 991.98px) {
    .contact-left-col {
        padding: 40px 15px;
        justify-content: center;
        min-height: auto;
    }

    .contact-form-card::after {
        display: none;
        /* Se oculta la solapa en pantallas pequeñas para mejor flujo */
    }

    .contact-right-col {
        padding: 50px 20px;
    }
}

/* END: Contact & Info Section */

/* START: Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--color-white);
    color: var(--color-dark);
    position: relative;
}

/* Encabezado y elementos decorativos superiores */
.testimonials-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
    position: relative;
}

.testimonials-header-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin: 0 auto 10px;
}

.testimonials-header-circle {
    position: absolute;
    top: -15px;
    left: calc(50% - 140px);
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.testimonials-subtitle {
    color: #777777;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Tarjetas de Testimonios */
.testimonial-card {
    background-color: #f4f4f5;
    /* Gris claro de fondo */
    padding: 2.2rem 2rem 2.2rem;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* Insignia de Calificación (Rating) */
.rating-badge-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    padding: 4px 10px 4px 0;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.rating-score {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 8px;
    clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%);
    margin-right: 8px;
    display: inline-block;
}

.rating-stars {
    color: #0845bd;
    /* Color amarillo/dorado de estrellas */
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
}

/* Ícono de Comillas */
.quote-icon-box {
    width: 36px;
    height: 36px;
    background-color: var(--color-dark);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.quote-icon-box svg {
    fill: currentColor;
}

/* Contenido del testimonio */
.testimonial-body {
    margin-bottom: 2rem;
}

.testimonial-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.testimonial-text {
    color: #666666;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* Perfil del Autor en la parte inferior */
.testimonial-author-box {
    background-color: var(--color-white);
    padding: 0.85rem 1.25rem;
    border-left: 3px solid var(--color-accent);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 2px 0;
}

.author-role {
    font-size: 0.82rem;
    color: var(--color-accent);
    margin: 0;
    font-weight: 600;
}

/* Ajustes Responsive */
@media (max-width: 767.98px) {
    .testimonials-section {
        padding: 50px 0;
    }
}

/* END: Testimonials Section */

.text-warning {
    color: #93bbff !important;
}


/* START: Header / Navbar Section */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

/* Efecto compacto cuando se hace Scroll */
.site-header.is-sticky {
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Bloque del Logo con corte diagonal naranja */
.header-brand-wrapper {
    position: relative;
    background-color: var(--color-accent);
    /* Naranja del root */
    padding: 18px 40px 18px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 2;
    transition: padding 0.3s ease;
}

/* Polígono para el corte diagonal estilo paralelogramo */
.header-brand-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: -30px;
    width: 60px;
    height: 100%;
    background-color: var(--color-accent);
    transform: skewX(-35deg);
    z-index: -1;
}

.brand-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.brand-title {
    color: var(--color-white);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Menú de Navegación */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link-custom {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.nav-link-custom:hover {
    color: var(--color-accent);
}

.nav-plus-icon {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666666;
}

/* Área de acciones de la derecha (Lupa + Separador + Get In Touch) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.search-btn-trigger {
    background: none;
    border: none;
    color: var(--color-dark);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.search-btn-trigger:hover {
    color: var(--color-accent);
}

.action-divider {
    width: 1px;
    height: 28px;
    background-color: #e0e0e0;
}

.btn-get-in-touch {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.btn-get-in-touch:hover {
    color: var(--color-secondary);
}

/* Botón Hamburguesa Mobile */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-dark);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 5px;
}

/* Adaptación Responsive (Móviles y Tablets) */
@media (max-width: 991.98px) {
    .header-container {
        padding: 0 20px;
        height: 70px;
    }

    /* Desactivar corte diagonal en mobile para alinearse a la izquierda limpiamente */
    .header-brand-wrapper {
        background-color: transparent;
        padding: 0;
    }

    .header-brand-wrapper::after {
        display: none;
    }

    .brand-logo-icon {
        color: var(--color-accent);
    }

    .brand-title {
        color: var(--color-dark);
    }

    .mobile-toggle-btn {
        display: block;
    }

    /* Menú desplegable lateral/vertical */
    .header-nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-nav-wrapper.is-open {
        max-height: 450px;
    }

    .header-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 0;
    }

    .header-nav li {
        width: 100%;
    }

    .nav-link-custom {
        width: 100%;
        padding: 12px 25px;
        border-bottom: 1px solid #f0f0f0;
        justify-content: space-between;
    }

    .header-actions {
        display: none;
        /* Se oculta o integra dentro del desplegable en pantallas pequeñas */
    }
}

/* END: Header / Navbar Section */

/* Corrección y adaptación para logo en imagen con corte diagonal */
.header-brand-wrapper {
    position: relative;
    background-color: var(--color-accent);
    /* Naranja del root */
    padding: 12px 35px 12px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
    transition: all 0.3s ease;
    height: 100%;
}

/* Polígono para el corte diagonal en escritorio */
.header-brand-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: -25px;
    width: 50px;
    height: 100%;
    background-color: var(--color-accent);
    transform: skewX(-30deg);
    z-index: -1;
    transition: all 0.3s ease;
}

/* Ajuste responsivo de la imagen del logo */
.header-brand-wrapper img {
    max-height: 80px;
    /* Controla la altura máxima para no deformar el header */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Ajustes para el botón e ícono de teléfono */
.header-phone-link {
    color: var(--color-dark);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header-phone-link:hover {
    color: var(--color-accent);
}

/* Adaptación Mobile y Tablet */
@media (max-width: 991.98px) {
    .header-brand-wrapper {
        background-color: transparent;
        padding: 0;
        height: auto;
    }

    .header-brand-wrapper::after {
        display: none;
        /* Se elimina la diagonal en mobile para alineación limpia */
    }

    .header-brand-wrapper img {
        max-height: 40px;
        /* Tamaño ligeramente más compacto en móviles */
    }
}