.containers-header {
    position: relative;
    text-align: center;
    color: #E1E1E1;
    padding: 0; /* Quita el padding si usas height fija */
    margin-top: 100px;
    height: 500px;
    overflow: hidden;
    background-color: #000; /* fallback por si la imagen tarda */
}


.containers-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


.containers-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.containers-header-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: auto;
}

.containers-header-content h1 {
    font-size: 60px;
    color: #E1E1E1;
    margin: 0;
    opacity: 0;
    animation: slideInLeft 1.5s ease-out forwards;
}
.containers-content {
    background-color: #E1E1E1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 350px;

}

.containers-content h1 {
    font-size: 14px;
    text-transform: uppercase;
    color: #0D2C6D;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.containers-desc {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    border-bottom: 4px solid #3d7eed;
    padding-bottom: 20px;
}

.containers-desc h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin: 0;
    text-align: left;
    max-width: 50%;
}

.containers-desc p {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    max-width: 50%;
}


.containers {
    background: #E1E1E1;
    padding: 40px 350px;

}

.container-types {
    background-color: #E1E1E1;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}


.container-card img {
    max-width: 300px;
    height: auto;
}

.container-card h3 {
    margin: 15px 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.btn-specs {
    background-color: #006adb;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    transform: translateY(20px);
    transition: all 1.5s ease-out;
}

.btn-specs:hover {
    background-color: #0051aa;
}

.container-detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    padding: 150px 0;
    background-color: #E1E1E1;
}

.model-viewer-wrapper {
    background-color: #ffffff;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

model-viewer {
    width: 100%;
    height: 400px;
}

.container-info {
    max-width: 600px;
    flex: 1;
    padding-top: 20px;
    box-sizing: border-box;
}

.container-info h2 {
    color: #006adb;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;

}

.container-info .info-block p {
    margin-bottom: 25px;
    padding-bottom: 15px;

}

.container-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #003469;
}

.container-info p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.container-card {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
}

.container-card img {
    width: 300px;
    height: auto;
}

.container-card .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.container-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.container-card .btn-specs {
    background-color: #006adb;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.container-card .btn-specs:hover {
    background-color: #0051aa;
}

/**/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
}

.modal-content {
    background: white;
    width: 1140px;
    height: 518px;
    display: flex;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    flex-wrap: wrap;
}

/* Línea azul superior */
.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    height: 6px;
    width: 100%;
    background-color: #0070ba;
    /* azul corporativo */
}

/* Botón cerrar */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.modal-image {
    flex: 1 1 45%;
    padding: 40px 20px;
    background: #f9f9f9;
    text-align: center;
    width: 570px;
    height: 518px;
}

.modal-image img {
    max-width: 100%;
    height: auto;
    padding-top: 77px;
}

.modal-text {
    flex: 1 1 55%;
    padding: 60px;
    background: #DEDDDE;
}

.modal-text h2 {
    font-size: 38px;
    color: #0066cb;
    margin-bottom: 20px;
}

.info-block {
    margin-bottom: 20px;

}

.info-block h3 {
    font-size: 18px;
    padding-top: 20px;
    border-top: 0.5px solid #333333;
    padding-bottom: 5px;
    margin-bottom: 8px;
    color: #003469;
}

.info-block p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;

}

.info-block-note,
.modal-note {
    font-size: 14px;
    color: #333;
    font-style: italic;
    border-top: 0.5px solid #333333;
    padding-top: 20px;
}

.container-card {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1.5s ease-out;
}

.container-card.from-left {
    transform: translateX(-100px);
}

.container-card.show {
    opacity: 1;
    transform: translateX(0);
}




@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-200px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .containers-header {
        height: auto;
        padding: 100px 20px;
        text-align: center;
    }

    .containers-header-content h1 {
        font-size: 42px;
        margin: 0 auto;
        text-align: center;
    }

    .containers-content {
        padding: 40px 20px;
        align-items: center;
    }

    .containers-desc {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .containers-desc h2,
    .containers-desc p {
        max-width: 100%;
        text-align: center;
    }

    .containers {
        padding: 40px 20px;
    }

    .container-types {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
    }

    .container-detail {
        flex-direction: column;
        padding: 60px 20px;
    }

    .model-viewer-wrapper {
        max-width: 100%;
    }

    .container-info {
        padding: 0;
        max-width: 100%;
    }

    .modal-content {
        flex-direction: column;
        height: auto;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-image,
    .modal-text {
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }

    .modal-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        padding-top: 0;
    }

    .modal-text h2 {
        font-size: 24px;
    }

    .info-block h3 {
        font-size: 16px;
    }

    .info-block p,
    .modal-note {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .containers-header {
        padding: 60px 10px;
        height: 400px;
    }

    .containers-header-content h1 {
        font-size: 28px;
        margin: 0;
        text-align: center;
    }

    .containers-content h1 {
        font-size: 12px;
        text-align: center;
    }

    .containers-desc h2 {
        font-size: 24px;
    }

    .containers-desc p {
        font-size: 14px;
    }

    .container-card {
        flex-direction: column;
        text-align: center;
    }

    .container-card img {
        width: 100%;
        max-width: 280px;
    }

    .container-card .info {
        align-items: center;
    }

    .btn-specs {
        font-size: 12px;
        padding: 8px 16px;
    }

    .modal-text h2 {
        font-size: 22px;
    }

    .info-block h3 {
        font-size: 14px;
    }

    .info-block p {
        font-size: 13px;
    }
}