/* Estilos para La Terraza de Siruela */

/* Animaciones para los acordeones */
.category-header .fa-chevron-down {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.category-header .fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

/* Transición suave para mostrar/ocultar contenido */
.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0;
}

.category-content:not(.hidden) {
    max-height: 2000px; /* Valor alto para permitir cualquier altura */
    opacity: 1;
    transition: max-height 0.6s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s ease 0.1s;
}

/* Efectos hover para los elementos del menú */
.menu-item {
    background-color: #E6D3A3; /* marrón claro */
    border: 2px solid #000000; /* borde negro */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0.75rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    background-color: #D2B48C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #f5e9d3, #d1d5db);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.menu-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Estilos para los precios */
.menu-item .price {
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: #2D2D2D;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-item:hover .price {
    transform: scale(1.05);
    color: #1A1A1A;
}

/* Título platos en color oscuro */
.menu-item h3 {
    color: #2D2D2D;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Animación brillo en título */
.menu-item:hover h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%
    );
    animation: shine 1.5s forwards;
}

/* Descripción plato en color medio */
.menu-item p {
    color: #4A4A4A;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 400;
}

/* Etiqueta destacado: degradado beige suave */
.destacado-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to bottom, #f5e9d3, #d0c595);
    color: #736f65;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ajuste para dar espacio a la etiqueta */
.menu-item.has-destacado {
    padding-left: 30px;
    border-left: none;
}

/* Header acordeón con fondo marrón claro */
.category-header {
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #D2B48C;
    color: #2D2D2D;
    font-weight: 700;
    border-radius: 1rem 1rem 0 0;
    border-bottom: 2px solid #000000;
    outline: none;
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background: #C19A6B;
}

/* Iconos acordeón */
.category-header i {
    color: #2D2D2D;
    transition: all 0.3s ease;
}

.category-header:hover i {
    transform: scale(1.2);
    color: #1A1A1A;
}

/* Fondo general carta gris claro */
.carta-background {
    background-color: #F8F8F8;
}

/* Efectos para los iconos del menú */
.category-header i {
    transition: all 0.3s ease;
}

/* Mejoras para dispositivos móviles */
@media (max-width: 640px) {
    .menu-item {
        padding: 0.5rem;
    }
    
    .category-header h2 {
        font-size: 1.1rem;
    }
    
    .menu-item .price {
        font-size: 0.9rem;
        padding: 0.25rem 0.75rem;
    }
    
    .category-header {
        padding: 0.75rem 1rem;
    }
    
    .category-content > div {
        padding: 1rem;
    }
}
