/* --- ESTILOS MODERNOS PARA CARRUSEL (Inspirado en Referencia) --- */

/* Reset básico para asegurar que no herede estilos rotos */
.modern-carousel-card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.modern-carousel-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 400px;
    /* Altura contenida */
    /* El background base se sobrescribe por temas */
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    /* Centrar si es necesario */
}

/* --- TEMA 1: NATURALEZA / AVENTURA (Verde Azulado / Fresco) --- */
.card-theme-nature {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    /* Teal muy suave */
}

.card-theme-nature .card-main-title {
    color: #00695c;
    /* Teal oscuro */
}

.card-theme-nature .card-main-title span {
    color: #004d40;
    /* Teal más oscuro para contraste */
}

.card-theme-nature .card-cta-btn {
    background: linear-gradient(45deg, #009688, #00796b);
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

.card-theme-nature .card-cta-btn:hover {
    background: linear-gradient(45deg, #26a69a, #00897b);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.5);
}


/* --- TEMA 2: GASTRONOMIA / TRADICION (Cálido / Naranja / Tierra) --- */
.card-theme-food {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    /* Naranja suave */
}

.card-theme-food .card-main-title {
    color: #ef6c00;
    /* Naranja intenso */
}

.card-theme-food .card-main-title span {
    color: #d84315;
    /* Rojo ladrillo */
}

.card-theme-food .card-cta-btn {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.card-theme-food .card-cta-btn:hover {
    background: linear-gradient(45deg, #ffa726, #fb8c00);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}


/* --- TEMA 3: ARTE / CULTURA (Violeta / Rosa / Creativo) --- */
.card-theme-art {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    /* Lila suave */
}

.card-theme-art .card-main-title {
    color: #8e24aa;
    /* Violeta */
}

.card-theme-art .card-main-title span {
    color: #4a148c;
    /* Violeta oscuro */
}

.card-theme-art .card-cta-btn {
    background: linear-gradient(45deg, #9c27b0, #7b1fa2);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.card-theme-art .card-cta-btn:hover {
    background: linear-gradient(45deg, #ab47bc, #8e24aa);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.5);
}


/* --- Contenedor de Imagen (Izquierda) --- */
.card-image-container {
    width: 60%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Efecto de máscara para desvanecer la imagen hacia el texto */
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
    transition: transform 0.5s ease;
}

.modern-carousel-card:hover .card-image-container img {
    transform: scale(1.05);
    /* Zoom suave al hover */
}

/* --- Contenedor de Texto (Derecha) --- */
.card-text-container {
    width: 40%;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Alinear a la derecha */
    text-align: right;
    z-index: 2;
    /* Encima de la imagen si se solapa */
}

/* Prefijo pequeño */
.card-title-prefix {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #555;
    /* Neutro */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Título Principal (Base, sobrescrito por temas) */
.card-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    /* Grande e impactante */
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #fff;
}

/* Descripción */
.card-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 2rem;
    max-width: 90%;
    line-height: 1.6;
}

/* Botón (Base, color sobrescrito por temas) */
.card-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    color: white !important;
    /* Forzar color blanco */
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 1px;
}

/* --- Ajustes Responsive --- */
@media (max-width: 768px) {
    .modern-carousel-card {
        flex-direction: column;
        /* Apilar verticalmente */
        height: auto;
        min-height: 500px;
    }

    .card-image-container {
        width: 100%;
        height: 250px;
    }

    .card-image-container img {
        /* Máscara hacia abajo en móvil */
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }

    .card-text-container {
        width: 100%;
        padding: 2rem;
        align-items: center;
        /* Centrar texto */
        text-align: center;
    }

    .card-main-title {
        font-size: 2rem;
    }
}