/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* FONDO GENERAL */
.fondo {
    background-image: url("../imagenes/negro.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    position: relative;
}

/* 🔵 NAVBAR NUEVO */
.navbar {
    width: 100%;
    background-color: white;
    padding: 0px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 100;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    width: 120px;      /* Tamaño grande */
    height: auto;
    margin-left: 30px;
}

/* MENÚ */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding-top: 5px;
    padding-left: 80px; /* Separación del logo */
    padding-right: 20px;
}

/* Estilo de enlaces */
.nav-links li a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: 500;
    transition: 0.2s ease-in-out;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: black;
}

.nav-phone {
    margin-left: auto;
    flex-shrink: 0;
}

/* Número (alineado a la derecha) */
.nav-phone a {
    font-weight: 600;
    color: #000000;
}

.llama {
    padding: 10px 20px;
    border: 2px solid goldenrod;
    background-color: white;
    color: black;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
}

.llama a {
    text-decoration: none;
    color: black;
    display: block;
}

.llama:hover {
    background-color: yellowgreen;
    transform: translateY(-3px);
}


/* BOTÓN HAMBURGUESA */
.menu-toggle {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    padding: 5px 10px;
    z-index: 101;
}

/* 🔵 RESPONSIVE */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        padding: 30px 20px;
        display: none;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.98);
        gap: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        margin-left: 0;
        padding-left: 20px;
        justify-content: flex-start;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-phone {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .llama {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .logo {
        margin-left: 0;
        width: 100px;
    }

    .navbar {
        padding: 10px 20px;
    }

    /* Responsive para segunda-presentacion en tablets */
    .segunda-presentacion {
        height: auto;
        min-height: auto;
        padding: 60px 30px;
    }

    .contenedor-dos {
        flex-direction: column;
        gap: 0;
        height: auto;
        align-items: center;
        position: relative;
    }

    .circulo-texto {
        width: 100%;
        max-width: 600px;
        height: auto;
        min-height: 600px;
        aspect-ratio: auto;
        min-width: auto;
        padding: 50px 40px 60px 40px;
        margin-left: 0;
        order: 1;
        position: relative;
        z-index: 5;
    }

    .imagen-lente {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 425/450;
        margin-left: auto;
        margin-right: 20px;
        margin-top: -200px;
        order: 2;
        position: relative;
        z-index: 10;
    }

    .circulo-texto h2 {
        font-size: 32px;
        padding-left: 0;
    }

    .circulo-texto .parrafo-1,
    .circulo-texto .parrafo-2,
    .circulo-texto .parrafo-3 {
        font-size: 15px;
        padding-left: 0;
        max-width: 100%;
        text-align: justify;
    }

    .circulo-texto h3 {
        font-size: 26px;
        padding-left: 0;
    }

    .lista-ventajas {
        padding-left: 0;
        max-width: 100%;
    }
}


/* 🔵 SECCIÓN PRINCIPAL */
.cuadrado {
    width: 100%;
    height: 40vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* TITULOS Y TEXTO */
.titulo {
    font-size: 55px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 10px;
}

.sub {
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin-bottom: 15px;
}

.primerparrafo {
    max-width: 650px;
    color: white;
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
}

/* 🔵 SEGUNDA SECCIÓN */
.segunda {
    position: relative;
    background-color: #0C223F;
    background-image: url("../imagenes/v.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 5px solid gray;
    border-bottom: 25px solid #B39758;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.segunda::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 34, 63, 0.55);
    z-index: 0;
}

.bloque-empresa {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    margin-left: auto;
    padding: 80px 70px 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.titulos-empresa {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nuestra {
    position: relative;
    z-index: 1;
    margin: 0 390px 0 0;
    color: white;
    font-size: 72px;
    line-height: 01.0;
    text-align: right;
    padding-top: 140px;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.nuestra.animate {
    opacity: 1;
    transform: translateX(0);
}

.empresa {
    position: relative;
    z-index: 1;
    color: burlywood;
    font-size: 78px;
    line-height: 0.95;
    padding: 0;
    margin: -6px 245px 0;
    text-align: right;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}

.empresa.animate {
    opacity: 1;
    transform: translateX(0);
}

.contenedor-empresa {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 28px 0 0;
}

.segundoparrafo {
    color: white;
    padding: 0;
    text-align: center;
    margin: 0 auto 0 0;
    max-width: 620px;
    font-size: 20px;
    line-height: 1.6;
}


/* Efecto parallax */
.parallax-img {
    will-change: transform;
}


/* ====== SECCIÓN PRESENTACIÓN ====== */
.presentacion-decencia {
    width: 98%;
    background-color: #B39758; 
    padding: 60px 0;
    display: flex;
    justify-content: center;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.contenedor-presentacion {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

/* ====== CÍRCULO ====== */
.logo-circulo {
    width: 280px;
    height: 280px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 12px solid #B39758;
    z-index: 5;
}

.logo-circulo img {
    width: 85%;
    height: auto;
}

/* ====== TEXTO CON RECORTE ====== */
.texto-presentacion {
    background-color: #0C1C2A;
    color: white;
    padding: 50px 60px;
    margin-left: -60px; /* Esto lo hace pegarse al círculo */
    border-radius: 5px;
    min-width: 700px;
    position: relative;
    z-index: 1;
    text-align: center;
    border-radius: 15px;
    flex-shrink: 0;
}

/* Recorte diagonal que simula el efecto pegado al círculo */
.recorte {
    clip-path: polygon(1% 0, 100% 0, 100% 100%, 0 100%);
}

.texto-presentacion h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.texto-presentacion p {
    font-size: 18px;
}

/*Seccion Lente*/
.segunda-presentacion{
    width: 100%;
    background: linear-gradient(to bottom right, #0C223F 0%, #0C223F 50%, #B39758 50%, #B39758 100%);
    border-top: 10px solid grey;
    padding: 80px 50px;
    height: 90vh;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.contenedor-dos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    height: 100%;
}

.imagen-lente{
    flex-shrink: 0;
    width: 425px;
    height: 450px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 50px;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease-out, transform 1s ease-out;
    z-index: 10;
    position: relative;
    margin-left: 150px;
}

.imagen-lente.animate {
    opacity: 1;
    transform: scale(1);
}

.imagen-lente img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Círculo con gradiente rojo-naranja */
.circulo-texto {
    height: 100%;
    width: auto;
    aspect-ratio: 1;
    min-width: 750px;
    min-height: 750px;
    background: linear-gradient(180deg, #E63946 0%, #F77F00 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 70px;
    color: white;
    text-align: left;
    flex-shrink: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
    margin-left: -155px;
}

.circulo-texto h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 20px;
    margin-top: 10px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    padding-left: 50px;
}

.circulo-texto .parrafo-1,
.circulo-texto .parrafo-2,
.circulo-texto .parrafo-3 {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: left;
    max-width: 100%;
    width: 100%;
    padding-left: 110px;
}

.circulo-texto h3 {
    font-size: 28px;
    font-weight: 800;
    margin-top: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    max-width: 100%;
    padding-left: 97px;
}

.lista-ventajas {
    list-style: none;
    padding-left: 150px;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.lista-ventajas li {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.lista-ventajas .check {
    width: 30px;
    height: 30px;
    background-color: #0C223F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
}


/* RESPONSIVE */
@media (max-width: 800px) {
    .presentacion-decencia {
        width: 95%;
        padding: 40px 0;
    }

    .contenedor-presentacion {
        flex-direction: column;
        gap: 20px;
        width: 95%;
    }

    .logo-circulo {
        width: 200px;
        height: 200px;
        border: 8px solid #B39758;
    }

    .texto-presentacion {
        margin-left: 0;
        clip-path: none;
        min-width: auto;
        width: 100%;
        padding: 30px 20px;
        text-align: center;
    }

    .texto-presentacion h2 {
        font-size: 24px;
    }

    .texto-presentacion p {
        font-size: 16px;
    }

    .segunda {
        min-height: auto;
        padding: 56px 0;
        background-position: 30% center;
    }

    .segunda::before {
        background: rgba(12, 34, 63, 0.7);
    }

    .bloque-empresa {
        width: 100%;
        margin-left: 0;
        padding: 0 30px;
        align-items: center;
    }

    .titulos-empresa {
        align-items: center;
    }

    .nuestra,
    .empresa {
        font-size: 35px;
        margin: 0;
        padding-top: 0;
        text-align: center;
    }

    .nuestra {
        margin: 0;
    }

    .empresa {
        margin: 4px 0 0;
    }

    .segundoparrafo {
        font-size: 16px;
        padding: 0;
        text-align: center;
        max-width: 680px;
    }

    .contenedor-empresa {
        justify-content: center;
        padding: 22px 0 0;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 80px;
    }

    .segunda {
        padding: 44px 0;
        background-position: 25% center;
    }

    .bloque-empresa {
        padding: 0 20px;
    }

    .nuestra,
    .empresa {
        font-size: 28px;
        margin: 0;
        padding-top: 0;
        text-align: center;
    }

    .empresa {
        margin: 4px 0 0;
    }

    .segundoparrafo {
        font-size: 14px;
        padding: 0;
        text-align: center;
    }

    .logo-circulo {
        width: 150px;
        height: 150px;
    }

    .texto-presentacion {
        padding: 20px 15px;
    }

    .texto-presentacion h2 {
        font-size: 20px;
    }

    .texto-presentacion p {
        font-size: 14px;
    }

    .segunda-presentacion {
        padding: 40px 20px 60px 20px;
        height: auto;
        min-height: auto;
    }

    .contenedor-dos {
        flex-direction: column;
        gap: 0;
        height: auto;
        align-items: center;
        position: relative;
    }

    .circulo-texto {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 650px;
        aspect-ratio: auto;
        min-width: auto;
        padding: 35px 20px 50px 20px;
        border-radius: 30px;
        margin-left: 0;
        order: 1;
        position: relative;
        z-index: 5;
    }

    .imagen-lente {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 425/450;
        margin-left: auto;
        margin-right: 15px;
        margin-top: -160px;
        order: 2;
        position: relative;
        z-index: 10;
    }

    .circulo-texto h2 {
        font-size: 22px;
        padding-left: 0;
        text-align: center;
        margin-bottom: 15px;
        margin-top: 5px;
    }

    .circulo-texto .parrafo-1,
    .circulo-texto .parrafo-2,
    .circulo-texto .parrafo-3 {
        font-size: 12px;
        padding-left: 0;
        max-width: 100%;
        text-align: justify;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .circulo-texto h3 {
        font-size: 18px;
        padding-left: 0;
        text-align: center;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .lista-ventajas {
        padding-left: 0;
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .lista-ventajas li {
        font-size: 14px;
        justify-content: center;
        margin-bottom: 8px;
        margin-top: 8px;
    }
}

/* ====== TERCERA SECCIÓN - ÁREAS DE ESPECIALIZACIÓN ====== */
.tercera-presentacion {
    width: 100%;
    background-color: #E5E5E5;
    padding: 80px 50px;
    min-height: 100vh;
}

.contenedor-tercera {
    max-width: 1400px;
    margin: 0 auto;
}

.titulo-tercera {
    font-size: 48px;
    font-weight: 800;
    color: #2C2C2C;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Animación para el título "POR QUE ELEGIR NUESTRA EMPRESA" */
.titulo-porque-elegir {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.titulo-porque-elegir.animate {
    opacity: 1;
    transform: translateX(0);
}

.titulo-tercera::before {
    content: '';
    width: 6px;
    height: 60px;
    background-color: #B39758;
    display: block;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card-especializacion {
    background-color: white;
    border-radius: 10px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-especializacion:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icono-card {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 50px;
    background-color: transparent;
}

.titulo-card {
    font-size: 24px;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 15px;
}

.descripcion-card {
    font-size: 16px;
    color: #2C2C2C;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: justify;
    flex-grow: 1;
}

.btn-mas-info {
    background-color: #2C2C2C;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.btn-mas-info:hover {
    background-color: #1a1a1a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideDown 0.3s;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}

.modal-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #2C2C2C;
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-body {
    color: #2C2C2C;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

.modal-body p {
    margin-bottom: 15px;
}

/* Carrusel del modal - Card 1 */
.modal-con-carrusel {
    max-width: 980px;
}

.modal-carrusel {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.carrusel-contenedor {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.carrusel-slide.activo {
    opacity: 1;
    pointer-events: auto;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #e0e0e0;
    cursor: pointer;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 44, 44, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.carrusel-btn:hover {
    background-color: rgba(44, 44, 44, 0.9);
}

.carrusel-prev {
    left: 10px;
}

.carrusel-next {
    right: 10px;
}

.carrusel-indicadores {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background-color: #f0f0f0;
}

.carrusel-indicador {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carrusel-indicador.activo {
    background-color: #B39758;
}

/* Responsive para tercera-presentacion */
@media (max-width: 1400px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .tercera-presentacion {
        padding: 60px 30px;
    }

    .titulo-tercera {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .titulo-tercera::before {
        height: 50px;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-especializacion {
        padding: 30px 20px;
    }

    .icono-card {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
        font-size: 45px;
    }

    .titulo-card {
        font-size: 20px;
    }

    .descripcion-card {
        font-size: 14px;
    }

    .modal-content {
        padding: 30px 25px;
        margin: 10% auto;
    }

    .modal-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .tercera-presentacion {
        padding: 40px 20px;
    }

    .titulo-tercera {
        font-size: 28px;
        margin-bottom: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .titulo-tercera::before {
        width: 4px;
        height: 40px;
    }

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

    .card-especializacion {
        padding: 25px 20px;
    }

    .icono-card {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
        font-size: 40px;
    }

    .titulo-card {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .descripcion-card {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn-mas-info {
        padding: 10px 25px;
        font-size: 14px;
    }

    .modal-content {
        padding: 25px 20px;
        margin: 15% auto;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 24px;
        padding-right: 30px;
    }

    .modal-body {
        font-size: 14px;
    }

    /* Keep the aspect ratio on mobile too */

    .carrusel-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* ====== SECCIÓN NUESTROS TRABAJOS ====== */
.seccion-trabajos {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-color: #0C223F;
    padding: 0;
    border-top: 3px solid #B39758;
    border-bottom: 3px solid #B39758;
    overflow: hidden;
}

.contenedor-trabajos {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    position: relative;
}

.trabajos-carrusel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.titulo-trabajos {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 45px 50px 70px;
    display: flex;
    align-items: center;
    gap: 20px;
    letter-spacing: 2px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(12, 34, 63, 0.92) 0%,
        rgba(12, 34, 63, 0.55) 55%,
        transparent 100%
    );
}

.titulo-trabajos::before {
    content: '';
    width: 6px;
    height: 60px;
    background-color: #B39758;
    display: block;
    flex-shrink: 0;
}

.trabajos-viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0C223F;
    cursor: pointer;
}

.trabajo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.trabajo-slide.activo {
    opacity: 1;
    pointer-events: auto;
}

.trabajo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #0C223F;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.trabajos-carrusel:hover .trabajo-slide.activo img {
    transform: scale(1.03);
}

.trabajos-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(179, 151, 88, 0.9);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
}

.trabajos-carrusel:hover .trabajos-btn {
    opacity: 1;
}

.trabajos-prev {
    left: 20px;
}

.trabajos-next {
    right: 20px;
}

.trabajos-btn:hover {
    background-color: #B39758;
}

.trabajos-indicadores {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.trabajos-indicador {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.trabajos-indicador.activo {
    background-color: #B39758;
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .seccion-trabajos {
        min-height: 82vh;
        height: auto;
    }

    .titulo-trabajos {
        font-size: 36px;
        padding: 35px 30px 55px;
    }

    .titulo-trabajos::before {
        height: 50px;
    }

    .trabajos-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        opacity: 1;
    }

    .trabajos-prev {
        left: 12px;
    }

    .trabajos-next {
        right: 12px;
    }
}

@media (max-width: 600px) {
    .seccion-trabajos {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }

    .contenedor-trabajos {
        height: auto;
        padding: 0 20px;
    }

    .trabajos-carrusel {
        position: relative;
        inset: auto;
        height: auto;
        padding: 22px 18px 58px;
        border-radius: 24px;
        background: rgba(7, 23, 46, 0.82);
        border: 1px solid rgba(179, 151, 88, 0.35);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(8px);
        overflow: hidden;
    }

    .titulo-trabajos {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: 2;
        font-size: 28px;
        padding: 0;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        letter-spacing: 1px;
        background: none;
    }

    .titulo-trabajos::before {
        width: 4px;
        height: 40px;
    }

    .trabajos-viewport {
        position: relative;
        inset: auto;
        height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 20px;
        overflow: hidden;
    }

    .trabajo-slide img {
        object-position: center;
    }

    .trabajos-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        opacity: 1;
        top: calc(50% + 18px);
    }

    .trabajos-prev {
        left: 10px;
    }

    .trabajos-next {
        right: 10px;
    }

    .trabajos-indicadores {
        bottom: 20px;
    }
}

/* ====== SECCIÓN COBERTURA ====== */
.seccion-cobertura {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #08192f 0%, #0C223F 52%, #09172b 100%);
    border-top: 3px solid #B39758;
    border-bottom: 3px solid #B39758;
    overflow: hidden;
}

.seccion-cobertura::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../imagenes/coberita.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    transform: scale(1.04);
    filter: blur(8px);
    z-index: 0;
}

.seccion-cobertura::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 34, 63, 0.5);
    z-index: 0;
}

.contenedor-cobertura {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 48px;
    padding: 80px 50px;
}

.cobertura-texto {
    width: 100%;
    color: white;
    margin: 0;
}

.titulo-cobertura {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animación para títulos */
.titulo-animado {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.titulo-animado.animate {
    opacity: 1;
    transform: translateX(0);
}

.parrafo-cobertura {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: white;
    text-align: justify;
}

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

.lista-cobertura li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
}

.icono-lista-cobertura {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E63946 0%, #F77F00 100%);
    flex-shrink: 0;
    margin-top: 2px;
}

.cobertura-media {
    width: 100%;
    padding: 24px;
    border-radius: 28px;
    background: rgba(7, 23, 46, 0.78);
    border: 1px solid rgba(179, 151, 88, 0.35);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.cobertura-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ====== SECCIÓN NUESTRAS MARCAS ====== */
.seccion-marcas {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #08192f 0%, #0C223F 52%, #09172b 100%);
    border-top: 3px solid #B39758;
    border-bottom: 3px solid #B39758;
    overflow: hidden;
}

.seccion-marcas::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../imagenes/marcas.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    transform: scale(1.06);
    filter: blur(10px);
}

.contenedor-marcas {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 50px;
}

.marcas-panel {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 48px 40px;
    border-radius: 32px;
    background: rgba(7, 23, 46, 0.82);
    border: 1px solid rgba(179, 151, 88, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.titulo-marcas {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.titulo-marcas::before {
    content: '';
    width: 6px;
    height: 60px;
    background-color: #B39758;
    display: block;
    flex-shrink: 0;
}

.marcas-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(179, 151, 88, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.marcas-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 62%;
    transform: scale(1.03);
}

/* ====== SECCIÓN POR QUÉ ELEGIR NUESTRA EMPRESA ====== */
.seccion-porque-elegir {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #08192f 0%, #0C223F 52%, #09172b 100%);
    border-top: 3px solid #B39758;
    border-bottom: 3px solid #B39758;
    overflow: hidden;
}

.seccion-porque-elegir::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../imagenes/imaima.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    transform: scale(1.06);
    filter: blur(10px);
}

.contenedor-porque-elegir {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 50px;
}

.porque-elegir-panel {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 48px 40px;
    border-radius: 32px;
    background: rgba(7, 23, 46, 0.82);
    border: 1px solid rgba(179, 151, 88, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.titulo-porque-elegir {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.titulo-porque-elegir::before {
    content: '';
    width: 6px;
    height: 60px;
    background-color: #B39758;
    display: block;
    flex-shrink: 0;
}

.porque-elegir-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(179, 151, 88, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.porque-elegir-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 62%;
    transform: scale(1.03);
}

/* Responsive para sección cobertura y marcas */
@media (max-width: 900px) {
    .contenedor-cobertura {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 60px 30px;
    }

    .titulo-cobertura {
        font-size: 42px;
        margin-bottom: 25px;
    }

    .parrafo-cobertura {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .lista-cobertura li {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .icono-lista-cobertura {
        width: 20px;
        height: 20px;
    }

    .cobertura-media {
        max-width: 760px;
        margin: 0 auto;
        padding: 20px;
        border-radius: 24px;
    }

    .titulo-marcas {
        font-size: 36px;
    }

    .titulo-marcas::before {
        height: 50px;
    }

    .contenedor-marcas {
        padding: 60px 30px;
    }

    .marcas-panel {
        padding: 36px 28px;
        border-radius: 28px;
    }

    .marcas-hero {
        aspect-ratio: 16 / 10;
        border-radius: 24px;
    }

    .titulo-porque-elegir {
        font-size: 36px;
    }

    .titulo-porque-elegir::before {
        height: 50px;
    }

    .contenedor-porque-elegir {
        padding: 60px 30px;
    }

    .porque-elegir-panel {
        padding: 36px 28px;
        border-radius: 28px;
    }

    .porque-elegir-hero {
        aspect-ratio: 16 / 10;
        border-radius: 24px;
    }
}

@media (max-width: 600px) {
    .contenedor-cobertura {
        padding: 40px 20px;
        gap: 24px;
        min-height: auto;
    }

    .titulo-cobertura {
        font-size: 32px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }

    .parrafo-cobertura {
        font-size: 14px;
        margin-bottom: 25px;
        text-align: left;
    }

    .lista-cobertura li {
        font-size: 14px;
        margin-bottom: 18px;
        gap: 15px;
    }

    .icono-lista-cobertura {
        width: 18px;
        height: 18px;
    }

    .cobertura-media {
        padding: 14px;
        border-radius: 20px;
    }

    .titulo-marcas {
        font-size: 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .titulo-marcas::before {
        width: 4px;
        height: 40px;
    }

    .seccion-marcas {
        min-height: auto;
    }

    .contenedor-marcas {
        align-items: flex-start;
        padding: 28px 20px;
        min-height: auto;
    }

    .marcas-panel {
        gap: 16px;
        padding: 20px 16px;
        border-radius: 24px;
    }

    .marcas-hero {
        aspect-ratio: 16 / 10;
        border-radius: 20px;
    }

    .marcas-hero img {
        object-position: center 68%;
        transform: scale(1.04);
    }

    .titulo-porque-elegir {
        font-size: 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .titulo-porque-elegir::before {
        width: 4px;
        height: 40px;
    }

    .seccion-porque-elegir {
        min-height: auto;
    }

    .contenedor-porque-elegir {
        align-items: flex-start;
        padding: 28px 20px;
        min-height: auto;
    }

    .porque-elegir-panel {
        gap: 16px;
        padding: 20px 16px;
        border-radius: 24px;
    }

    .porque-elegir-hero {
        aspect-ratio: 16 / 10;
        border-radius: 20px;
    }

    .porque-elegir-hero img {
        object-position: center 68%;
        transform: scale(1.04);
    }
}

/* ====== FOOTER ====== */
.footer {
    width: 100%;
    background-color: #0C223F;
    padding: 60px 50px;
    color: white;
}

.contenedor-footer {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-direccion,
.footer-telefono {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.titulo-footer {
    font-size: 24px;
    font-weight: 700;
    color: #B39758;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.texto-direccion,
.texto-telefono {
    font-size: 18px;
    line-height: 1.6;
    color: white;
    margin: 0;
}

.texto-telefono a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.texto-telefono a:hover {
    color: #B39758;
    opacity: 1;
}

.footer-mapa {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mapa-link {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.mapa-link:hover {
    transform: scale(1.02);
}

.mapa-iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.texto-click-mapa {
    font-size: 14px;
    color: #B39758;
    text-align: center;
    margin: 0;
    font-style: italic;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(179, 151, 88, 0.3);
    text-align: center;
}

.footer-copy,
.footer-credito {
    margin: 0;
    color: white;
    line-height: 1.6;
}

.footer-copy {
    font-size: 15px;
}

.footer-credito {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive para footer */
@media (max-width: 1000px) {
    .contenedor-footer {
        flex-direction: column;
        gap: 40px;
    }

    .footer-info {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 30px;
    }

    .footer-direccion,
    .footer-telefono {
        flex: 1;
    }

    .footer-mapa {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .footer {
        padding: 40px 30px;
    }

    .footer-info {
        flex-direction: column;
        gap: 30px;
    }

    .titulo-footer {
        font-size: 20px;
    }

    .texto-direccion,
    .texto-telefono {
        font-size: 16px;
    }

    .mapa-iframe {
        height: 200px;
    }

    .footer-bottom {
        margin-top: 32px;
        padding-top: 20px;
    }

    .footer-copy {
        font-size: 14px;
    }

    .footer-credito {
        font-size: 13px;
    }
}

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

    .titulo-footer {
        font-size: 18px;
    }

    .texto-direccion,
    .texto-telefono {
        font-size: 14px;
    }

    .mapa-iframe {
        height: 180px;
    }

    .texto-click-mapa {
        font-size: 12px;
    }

    .footer-bottom {
        margin-top: 28px;
    }

    .footer-copy,
    .footer-credito {
        font-size: 12px;
    }
}

/* ====== SECCIÓN FORMULARIO DE CONTACTO ====== */
.seccion-formulario {
    width: 100%;
    background-color: #0C223F;
    padding: 80px 50px;
    border-top: 3px solid #B39758;
    border-bottom: 3px solid #B39758;
}

.contenedor-formulario {
    max-width: 800px;
    margin: 0 auto;
}

.titulo-formulario {
    font-size: 48px;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Asegurar que el título del formulario también tenga la animación */
.titulo-formulario.titulo-animado {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.titulo-formulario.titulo-animado.animate {
    opacity: 1;
    transform: translateX(0);
}

.subtitulo-formulario {
    font-size: 18px;
    color: #B39758;
    text-align: center;
    margin-bottom: 50px;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.campo-formulario {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-formulario {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.requerido {
    color: #E63946;
}

.input-formulario {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #B39758;
    border-radius: 8px;
    background-color: white;
    color: #2C2C2C;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.input-formulario:focus {
    outline: none;
    border-color: #B39758;
    box-shadow: 0 0 0 3px rgba(179, 151, 88, 0.2);
}

.input-formulario:invalid:not(:placeholder-shown) {
    border-color: #E63946;
}

.textarea-formulario {
    resize: vertical;
    min-height: 120px;
    font-family: "Poppins", sans-serif;
}

.mensaje-error {
    color: #E63946;
    font-size: 14px;
    display: none;
    margin-top: -5px;
}

.mensaje-error:not(:empty) {
    display: block;
}

.btn-enviar {
    background-color: #B39758;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Poppins", sans-serif;
}

.btn-enviar:hover:not(:disabled) {
    background-color: #9a8049;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(179, 151, 88, 0.4);
}

.btn-enviar:active:not(:disabled) {
    transform: translateY(0);
}

.btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mensaje-exito {
    background-color: #2A9D8F;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

/* Responsive para formulario */
@media (max-width: 900px) {
    .seccion-formulario {
        padding: 60px 30px;
    }

    .titulo-formulario {
        font-size: 36px;
    }

    .subtitulo-formulario {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .formulario-contacto {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .seccion-formulario {
        padding: 40px 20px;
    }

    .titulo-formulario {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .subtitulo-formulario {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .label-formulario {
        font-size: 14px;
    }

    .input-formulario {
        padding: 12px 15px;
        font-size: 14px;
    }

    .textarea-formulario {
        min-height: 100px;
    }

    .btn-enviar {
        padding: 15px 30px;
        font-size: 16px;
    }

    .mensaje-exito {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* ====== LIGHTBOX ====== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #B39758;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(179, 151, 88, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(179, 151, 88, 1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-indicadores {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2001;
}

.lightbox-indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.lightbox-indicador.activo {
    background-color: #B39758;
}

/* ====== LANDSCAPE MOBILE MEDIA QUERY ====== */
@media (max-width: 896px) and (orientation: landscape),
(max-height: 550px) and (orientation: landscape) {
    /* Navbar */
    .navbar {
        padding: 5px 20px;
    }

    .logo {
        width: 80px;
        margin-left: 0;
    }

    /* Seccion por qué elegir */
    .contenedor-porque-elegir {
        padding: 40px 30px;
        min-height: auto;
    }

    .porque-elegir-panel {
        padding: 25px 20px;
        gap: 15px;
        border-radius: 24px;
    }

    .titulo-porque-elegir {
        font-size: 26px;
    }

    .titulo-porque-elegir::before {
        height: 38px;
    }

    .porque-elegir-hero {
        aspect-ratio: 16 / 10;
        border-radius: 20px;
    }

    /* Seccion trabajos */
    .seccion-trabajos {
        height: auto;
        min-height: auto;
        padding: 30px 20px;
    }

    .contenedor-trabajos {
        height: auto;
        padding: 0;
    }

    .trabajos-carrusel {
        position: relative;
        inset: auto;
        height: auto;
        padding: 20px 15px 45px;
        border-radius: 24px;
        background: rgba(7, 23, 46, 0.82);
        border: 1px solid rgba(179, 151, 88, 0.35);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(8px);
        overflow: hidden;
    }

    .titulo-trabajos {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: 2;
        font-size: 24px;
        padding: 0;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        letter-spacing: 1px;
        background: none;
        pointer-events: auto;
    }

    .titulo-trabajos::before {
        width: 4px;
        height: 35px;
    }

    .trabajos-viewport {
        position: relative;
        inset: auto;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 20px;
        overflow: hidden;
    }

    .trabajo-slide img {
        object-position: center;
    }

    .trabajos-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
        opacity: 1;
        top: calc(50% + 10px);
    }

    .trabajos-prev {
        left: 12px;
    }

    .trabajos-next {
        right: 12px;
    }

    .trabajos-indicadores {
        bottom: 15px;
    }
}

/* ====== TABLET MEDIA QUERY (768px - 1024px) ====== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Navbar */
    .navbar {
        padding: 10px 30px;
    }

    .logo {
        width: 100px;
        margin-left: 0;
    }

    .nav-links {
        padding-left: 20px;
        padding-right: 10px;
        gap: 20px;
    }

    .nav-links li a {
        font-size: 15px;
    }

    .llama {
        padding: 8px 16px;
        font-size: 15px;
    }

    /* Hero Section (presentacion-decencia) */
    .presentacion-decencia {
        padding: 50px 0;
        width: 96%;
    }

    .logo-circulo {
        width: 220px;
        height: 220px;
    }

    .texto-presentacion {
        min-width: 500px;
        padding: 40px 50px;
    }

    .texto-presentacion h2 {
        font-size: 26px;
    }

    .texto-presentacion p {
        font-size: 16px;
    }

    /* Segunda-presentacion */
    .segunda-presentacion {
        padding: 60px 40px;
        height: auto;
        min-height: 85vh;
    }

    .contenedor-dos {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .imagen-lente {
        width: 320px;
        height: 340px;
        margin-left: 0;
        margin-top: 0;
    }

    .circulo-texto {
        min-width: 450px;
        min-height: 450px;
        padding: 50px 40px;
        margin-left: -120px;
    }

    .circulo-texto h2 {
        font-size: 28px;
        padding-left: 0;
    }

    .circulo-texto .parrafo-1,
    .circulo-texto .parrafo-2,
    .circulo-texto .parrafo-3 {
        font-size: 14px;
        padding-left: 0;
    }

    .circulo-texto h3 {
        font-size: 22px;
        padding-left: 0;
    }

    .lista-ventajas {
        padding-left: 0;
    }

    .lista-ventajas li {
        font-size: 16px;
    }

    .lista-ventajas .check {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    /* Segunda section (nuestra empresa) */
    .segunda {
        padding: 60px 0;
        min-height: 70vh;
    }

    .bloque-empresa {
        padding: 0 40px;
        width: 100%;
    }

    .titulos-empresa {
        align-items: center;
    }

    .nuestra {
        font-size: 48px;
        margin: 0;
        padding-top: 0;
        text-align: center;
    }

    .empresa {
        font-size: 54px;
        margin: 4px 0 0;
        text-align: center;
    }

    .segundoparrafo {
        font-size: 17px;
        max-width: 700px;
        text-align: center;
        margin: 0 auto;
    }

    /* Tercera-presentacion (cards) */
    .tercera-presentacion {
        padding: 70px 40px;
        min-height: 80vh;
    }

    .titulo-tercera {
        font-size: 40px;
        margin-bottom: 50px;
    }

    .titulo-tercera::before {
        height: 54px;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .card-especializacion {
        padding: 35px 25px;
    }

    .icono-card {
        width: 75px;
        height: 75px;
        margin-bottom: 22px;
        font-size: 46px;
    }

    .titulo-card {
        font-size: 22px;
    }

    .descripcion-card {
        font-size: 15px;
    }

    .btn-mas-info {
        padding: 11px 28px;
        font-size: 15px;
    }

    /* Modal */
    .modal-content {
        padding: 35px;
        margin: 10% auto;
        width: 90%;
        max-width: 750px;
    }

    .modal-con-carrusel {
        max-width: 850px;
    }

    .modal-content h2 {
        font-size: 30px;
        padding-right: 35px;
    }

    .modal-body {
        font-size: 15px;
    }

    .carrusel-contenedor {
        aspect-ratio: 16 / 10;
    }

    /* Seccion trabajos */
    .seccion-trabajos {
        min-height: 75vh;
        height: auto;
    }

    .titulo-trabajos {
        font-size: 40px;
        padding: 40px 40px 60px;
    }

    .titulo-trabajos::before {
        height: 54px;
    }

    .trabajos-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        opacity: 1;
    }

    .trabajos-prev {
        left: 16px;
    }

    .trabajos-next {
        right: 16px;
    }

    /* Seccion cobertura */
    .contenedor-cobertura {
        padding: 70px 40px;
        gap: 40px;
        min-height: 80vh;
    }

    .titulo-cobertura {
        font-size: 46px;
        margin-bottom: 25px;
    }

    .parrafo-cobertura {
        font-size: 16px;
        margin-bottom: 35px;
    }

    .lista-cobertura li {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .icono-lista-cobertura {
        width: 22px;
        height: 22px;
    }

    .cobertura-media {
        padding: 22px;
        border-radius: 26px;
    }

    /* Seccion marcas */
    .contenedor-marcas {
        padding: 70px 40px;
        min-height: 80vh;
    }

    .titulo-marcas {
        font-size: 40px;
    }

    .titulo-marcas::before {
        height: 54px;
    }

    .marcas-panel {
        padding: 40px 35px;
        border-radius: 30px;
        gap: 25px;
    }

    .marcas-hero {
        aspect-ratio: 16 / 10;
        border-radius: 26px;
    }

    /* Seccion por qué elegir */
    .contenedor-porque-elegir {
        padding: 70px 40px;
        min-height: 80vh;
    }

    .titulo-porque-elegir {
        font-size: 40px;
    }

    .titulo-porque-elegir::before {
        height: 54px;
    }

    .porque-elegir-panel {
        padding: 40px 35px;
        border-radius: 30px;
        gap: 25px;
    }

    .porque-elegir-hero {
        aspect-ratio: 16 / 10;
        border-radius: 26px;
    }

    /* Footer */
    .footer {
        padding: 50px 40px;
    }

    .contenedor-footer {
        gap: 50px;
    }

    .titulo-footer {
        font-size: 22px;
    }

    .texto-direccion,
    .texto-telefono {
        font-size: 17px;
    }

    .mapa-iframe {
        height: 230px;
    }

    .footer-bottom {
        margin-top: 36px;
        padding-top: 22px;
    }

    .footer-copy {
        font-size: 14px;
    }

    .footer-credito {
        font-size: 13px;
    }
}

/* Responsive for lightbox */
@media (max-width: 600px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        font-size: 30px;
        right: 15px;
        top: 15px;
    }
}
