/* Sección Gastronomía */
.gastronomia-seccion {
    position: relative;
    background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--uesca-primary) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--uesca-accent) 10%, transparent) 0%, transparent 50%),
        linear-gradient(135deg, var(--uesca-light) 0%, var(--uesca-neutral) 100%);
    padding: 6rem 2rem;
    overflow: hidden;
}

/* Fondo animado con partículas */
.gastronomia-fondo-animado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gastronomia-particula {
    position: absolute;
    background: var(--uesca-accent);
    border-radius: 50%;
    opacity: 0.08;
    animation: gastronomia-flotar 25s linear infinite;
}

.gastronomia-particula:nth-child(1) {
    width: 3px;
    height: 3px;
    left: 15%;
    animation-delay: 0s;
}

.gastronomia-particula:nth-child(2) {
    width: 5px;
    height: 5px;
    left: 35%;
    animation-delay: 3s;
}

.gastronomia-particula:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 55%;
    animation-delay: 6s;
}

.gastronomia-particula:nth-child(4) {
    width: 6px;
    height: 6px;
    left: 75%;
    animation-delay: 9s;
}

.gastronomia-particula:nth-child(5) {
    width: 3px;
    height: 3px;
    left: 85%;
    animation-delay: 12s;
}

@keyframes gastronomia-flotar {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.08;
    }

    50% {
        opacity: 0.15;
    }
}

.gastronomia-contenido {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Header de la sección */
.gastronomia-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: gastronomia-aparecer 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gastronomia-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--uesca-accent) 15%, transparent);
    color: var(--uesca-accent);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--uesca-accent) 30%, transparent);
}

.gastronomia-titulo {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--uesca-dark) 0%, var(--uesca-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.gastronomia-descripcion {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contenedor de la Carta */
.gastronomia-carta-container {
    background: var(--uesca-light);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(134, 47, 46, 0.15);
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    animation: gastronomia-aparecer-escala 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gastronomia-carta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid color-mix(in srgb, var(--uesca-primary) 15%, transparent);
}

.gastronomia-carta-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uesca-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gastronomia-botones {
    display: flex;
    gap: 1rem;
}

.gastronomia-btn {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-primary-dark));
    color: var(--uesca-light);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.gastronomia-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(134, 47, 46, 0.3);
}

.gastronomia-btn-secondary {
    background: transparent;
    border: 2px solid var(--uesca-primary);
    color: var(--uesca-primary);
}

.gastronomia-btn-secondary:hover {
    background: var(--uesca-primary);
    color: var(--uesca-light);
}

/* Visor PDF */
.gastronomia-pdf-visor {
    width: 100%;
    height: 800px;
    border: 2px solid color-mix(in srgb, var(--uesca-primary) 15%, transparent);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.gastronomia-pdf-visor iframe,
.gastronomia-pdf-visor embed,
.gastronomia-pdf-visor object {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mensaje alternativo si PDF no carga */
.gastronomia-pdf-fallback {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--uesca-neutral);
    border-radius: 16px;
}

.gastronomia-pdf-fallback-icon {
    font-size: 4rem;
    color: var(--uesca-primary);
    margin-bottom: 1.5rem;
}

.gastronomia-pdf-fallback-text {
    color: var(--uesca-dark);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Info adicional */
.gastronomia-info-adicional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gastronomia-info-card {
    background: var(--uesca-light);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    box-shadow: 0 8px 24px rgba(134, 47, 46, 0.1);
    transition: all 0.3s ease;
}

.gastronomia-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(134, 47, 46, 0.15);
}

.gastronomia-info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-primary-dark));
    color: var(--uesca-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.gastronomia-info-card-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--uesca-primary);
    margin-bottom: 0.8rem;
}

.gastronomia-info-card-texto {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Animaciones */
@keyframes gastronomia-aparecer {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gastronomia-aparecer-escala {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gastronomia-seccion {
        padding: 4rem 1rem;
    }

    .gastronomia-titulo {
        font-size: 2rem;
    }

    .gastronomia-descripcion {
        font-size: 1rem;
    }

    .gastronomia-carta-container {
        padding: 1.5rem;
    }

    .gastronomia-carta-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .gastronomia-botones {
        width: 100%;
        flex-direction: column;
    }

    .gastronomia-btn {
        width: 100%;
        justify-content: center;
    }

    .gastronomia-pdf-visor {
        height: 600px;
    }

    .gastronomia-info-adicional {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gastronomia-pdf-visor {
        height: 500px;
    }

    .gastronomia-carta-titulo {
        font-size: 1.4rem;
    }
}