:root {
    /* ==== AQUÍ AJUSTAS TODO TU DISEÑO ==== */
    --ma-altura-escritorio: 450px;
    --ma-altura-movil: 700px;
    --ma-radio-bordes: 15px;
    
    --ma-color-titulo: #ffffff;
    --ma-color-desc: #e0e0e0;
    --ma-color-precio: #f5b027; 
    
    --ma-tamano-titulo: 24px;
    --ma-tamano-desc: 14px;
    --ma-tamano-precio: 18px;
    /* ====================================== */
}

.ma-wrapper {
    width: 100%;
    margin: 20px auto;
    font-family: inherit;
}

/* Conmutador de Idiomas */
.ma-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.ma-btn {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.ma-btn.active, .ma-btn:hover {
    background: #fff;
    color: #000;
}

/* Contenedor del Acordeón */
.ma-container {
    display: flex;
    width: 100%;
    height: var(--ma-altura-escritorio);
    gap: 10px;
}

/* Cada Imagen */
.ma-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: var(--ma-radio-bordes);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Efecto Hover: se expande */
.ma-item:hover {
    flex: 4;
}

/* Capa Oscura (Gradient) */
.ma-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.5s;
}
.ma-item:hover .ma-overlay {
    opacity: 1;
}

/* Contenido (Textos) */
.ma-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    text-align: center;
}
.ma-item:hover .ma-content {
    opacity: 1;
    transform: translateY(0);
}

.ma-title {
    color: var(--ma-color-titulo);
    font-size: var(--ma-tamano-titulo);
    margin: 0 0 10px 0;
    font-weight: 700;
}
.ma-desc {
    color: var(--ma-color-desc);
    font-size: var(--ma-tamano-desc);
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.ma-price {
    color: var(--ma-color-precio);
    font-size: var(--ma-tamano-precio);
    font-weight: bold;
}

/* MODO MOBILE Y TABLET VERTICAL */
@media (max-width: 768px) {
    .ma-container {
        flex-direction: column;
        height: var(--ma-altura-movil);
    }
    .ma-item:hover {
        flex: 3;
    }
}

/* ==== LIGHTBOX Y BOTÓN DE LUPA ==== */
.ma-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-zoom:hover {
    background: rgba(0, 0, 0, 0.9);
}

.ma-item:hover .ma-zoom {
    opacity: 1; 
}

/* Modal del Lightbox */
.ma-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    cursor: zoom-out;
}

.ma-lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ma-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

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