/* Colores Quimura */
:root {
    --quimura-yellow: #f7b818;
    --quimura-dark: #1a1a1a;
}

.section-dark-industrial {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('../img/port1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.border-yellow {
    border: 2px solid var(--quimura-yellow);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.border-yellow:hover {
    background-color: rgba(247, 184, 24, 0.1);
    transform: translateY(-5px);
}

.bg-yellow-soft {
    background-color: rgba(247, 184, 24, 0.2);
}

.cert-card {
    background: white;
    border-radius: 12px;
    border-bottom: 4px solid var(--quimura-yellow);
}

.cert-icon {
    font-size: 3rem;
}
/* Bento Grid==================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
}

.bento-item {
    background: #2a2a2a;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    border: 1px solid #444;
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: scale(1.02);
    border-color: #f7b818;
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
    padding-bottom: 40px !important;
    padding-left: 25px !important;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/port2.jpeg'); /* Una foto de obra */
    background-size: cover;
}

.item-medium {
    grid-column: span 2;
}

.bento-content h3 {
    color: #f7b818;
    font-weight: bold;
    font-size: 1.4rem;
}

.bento-content p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .item-large, .item-medium {
        grid-column: span 1;
        grid-row: span 1;
    }
}
/* Contenedor del slideshow */
.bento-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Al fondo */
}

/* Cada imagen individual */
.bento-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Transición suave */
}

.bento-slide.active {
    opacity: 1;
}

/* Asegurar que el contenido y el overlay estén arriba */
.bento-overlay {
    z-index: 2; /* Sobre las imágenes */
}

.bento-content {
    z-index: 3; /* Sobre todo */
    position: relative;
}

/* Limpieza: Quita el fondo estático que pusimos antes */
.item-large {
    background: #000; /* Fondo negro base por si fallan las fotos */
}
/* Este estilo SOLO afectará a la tarjeta del carrusel */
.item-large .bento-content {
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro traslúcido */
    backdrop-filter: blur(1px);    /* Desenfoque suave para legibilidad */
    -webkit-backdrop-filter: blur(4px);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2px; /* Separación del borde inferior */
    max-width: 95%;      /* Para que no pegue a los bordes laterales */
}

/* Mantenemos el texto resaltado solo en esta card */
.item-large .bento-content h3 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.item-large .bento-content p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    color: white;
}
/* Estilo para los números guía */
.badge-numero {
    background: #f7b818;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

/* Imagen con toque técnico */
.imagen-adn {
    overflow: hidden;
    border-radius: 20px;
}

.overlay-plano {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#f7b818 0.5px, transparent 0.5px); /* Puntitos de plano */
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
}

.texto-tecnico-flotante {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: #f7b818;
    padding: 10px 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    border-left: 3px solid #f7b818;
    z-index: 10;
}

.object-fit-cover {
    object-fit: cover;
}
