/* ===================================================
   SECCIÓN TIPOS DE IMÁGENES (CORREGIDO)
   =================================================== */

#tipos_imagenes {
    background-color: #000;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Contenedor del título principal */
.main-title-overlay {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 100;
    pointer-events: none;
}

.section-title-white {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}

.types-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.type-card {
    position: relative;
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 30px;
    /* Quitamos el borde sólido para usar la sombra */
    border: none; 
}

/* SOMBRA AL COSTADO DERECHO (Efecto de la imagen) */
.type-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px; /* Ancho de la sombra difuminada */
    height: 100%;
    /* Degradado de negro intenso a transparente hacia la izquierda */
    background: linear-gradient(to left, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* El último contenedor no necesita sombra a la derecha */
.type-card:last-child::after {
    display: none;
}

/* Overlay con degradado vertical para legibilidad de textos */
.type-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.7) 0%, 
                rgba(0,0,0,0.1) 30%, 
                rgba(0,0,0,0.1) 70%, 
                rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Título Vertical */
.vertical-title {
    position: relative;
    z-index: 4; /* Por encima de la sombra lateral */
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem; /* Un poco más grande */
    font-weight: 700;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    margin: 0 auto;
    white-space: nowrap;
    opacity: 0.7;
    transition: all 0.4s ease;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Contenido Inferior (Descripción) */
.type-content {
    position: absolute;
    bottom: 50px;
    left: 25px;
    right: 40px; /* Más margen a la derecha para no chocar con la sombra */
    z-index: 4;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    line-height: 1.5;
    text-align: left;
}

.type-content p {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem; /* Ajustado para que quepa bien */
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Efecto Hover */
.type-card:hover {
    flex: 1.5; /* Se expande más */
}

.type-card:hover .vertical-title {
    opacity: 1;
    transform: rotate(180deg) scale(1.1);
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .types-container { flex-direction: column; height: auto; }
    .type-card { height: 600px; flex: none; }
    .type-card::after {
        width: 100%;
        height: 60px;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    }
    .vertical-title { writing-mode: horizontal-tb; transform: none; margin-bottom: 20px; }
    .type-card:hover .vertical-title { transform: scale(1.1); }
    .main-title-overlay { position: relative; top: 0; left: 0; padding: 40px; }
}