:root {
    --primary: #e74c3c;
    --secondary: #f39c12;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --maguey: #4D826E; /* Color Azul Maguey */
}

html {
    background-color: #666666; /* Mantenemos el color gris de fondo aquí */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--dark);
    position: relative;
    padding-bottom: 120px; /* Incrementado para que el footer flotante no tape el contenido al final */
}

body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('imagenes/pizza reyes.jpg');
    background-repeat: repeat;
    background-size: 10%; /* Ajustado: 10% de un contenedor al 200% mantiene el tamaño visual de 5 iconos por línea */
    opacity: 0.15; /* Aquí controlas la transparencia (0.15 es el 15%) */
    z-index: -1;
    pointer-events: none;
    animation: rotateBackground 120s linear infinite;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    body::before {
        background-size: 16.66%; /* Ajustado para mantener 3 iconos por línea en móviles */
    }
}

header {
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.8) 100%), /* Efecto Viñeta */
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
        url('imagenes/img fondo del encabezado.avif'); /* Imagen de fondo de respaldo si el video no carga */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9; 
    z-index: 1; /* Capa de filtro sobre el video */
    background-color: rgba(0, 0, 0, 0.45); /* Capa de transparencia oscura para contraste */
    backdrop-filter: blur(4px); /* Difumina el fondo para resaltar título y logo */
}

.header-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important; /* Se mantiene debajo del overlay de viñeta */
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Al fondo de todo */
}

header > * {
    position: relative;
    z-index: 2; /* Contenido al frente */
}

header .logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: cover;
    background-color: white;
}

header h1 {
    background: linear-gradient(to right, var(--secondary), #8A2BE2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-family: 'Luckiest Guy', cursive;
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 5px;
}

header p {
    font-family: 'Gloria Hallelujah', cursive;
    background: linear-gradient(to right, #FFD700, #FF8C00, #e74c3c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem; /* Tamaño más grande solicitado */
    font-weight: bold;
    min-height: 1.5em; /* Ajustado para la nueva tipografía */
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.4));
    animation: shineGradient 4s ease-in-out infinite;
}

.header-promo {
    margin: 20px auto;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    backdrop-filter: blur(5px);
    position: relative; /* Necesario para posicionar los pseudo-elementos */
    overflow: hidden; /* Recorta el borde animado a la forma del contenedor */
    z-index: 1; /* Asegura que esté por encima de otros elementos del header si es necesario */
    min-height: 100px; /* Altura mínima para que el efecto sea visible */
    display: flex; /* Para centrar el contenido interno */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px; /* Este padding será el espacio para el borde animado */
    box-sizing: border-box; /* Incluye el padding en el cálculo del ancho/alto */
}

/* Pseudo-elemento para el borde animado dorado */
.header-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Detrás del contenido y del fondo oscuro */
    border-radius: inherit; /* Hereda el border-radius del padre */
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500, #FFD700); /* Gradiente dorado */
    background-size: 400% 400%; /* Hace que el gradiente sea mucho más grande para el efecto de movimiento */
    animation: animateGoldenBorder 8s ease infinite; /* Animación del gradiente */
}

/* Pseudo-elemento para el fondo oscuro interno */
.header-promo::after {
    content: '';
    position: absolute;
    top: 2px; /* Posicionado ligeramente hacia adentro para revelar el borde ::before */
    left: 2px;
    right: 2px;
    bottom: 2px;
    z-index: 0; /* Encima de ::before, debajo del contenido de texto */
    background: rgba(0, 0, 0, 0.45); /* Fondo oscuro */
    border-radius: 13px; /* Radio ligeramente menor para que el borde se vea */
}

.promo-title {
    color: var(--secondary);
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: subtleBlink 3s infinite alternate ease-in-out; /* Animación de parpadeo sutil */
}

.promo-description {
    color: white !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    font-size: 1.1rem !important;
    font-family: 'Segoe UI', sans-serif !important;
    text-shadow: 1px 1px 2px black !important;
    min-height: auto !important;
    animation: none !important;
    filter: none !important;
    line-height: 1.4;
}

/* Aseguramos que el contenido de texto esté por encima del fondo oscuro */
.header-promo .promo-title,
.header-promo .promo-description {
    position: relative;
    z-index: 1; /* Por encima de ::after */
    padding: 15px; /* Aplicar el padding al contenido directamente */
    box-sizing: border-box;
    width: 100%; /* Asegurar que el contenido ocupe todo el ancho */
}

@keyframes subtleBlink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.85; /* Ligeramente menos opaco */
    }
    100% {
        opacity: 1;
    }
}

@keyframes animateGoldenBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shineGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ajustes de tamaño para móviles */
@media (max-width: 600px) {
    header h1 { font-size: 3rem; }
    header p { font-size: 1.2rem; min-height: auto; margin-bottom: 10px; }

    .promo-title { font-size: 1.1rem; }
    .promo-description { font-size: 0.9rem !important; }

    .container { 
        padding: 15px; 
        width: 95%; 
        margin: 10px auto; 
    }
    .pizza-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }
    .pizza-img-container { height: 130px; }
    .pizza-card h3 { font-size: 0.9rem; margin: 10px 0 5px; }
}

@media (max-width: 400px) {
    .pizza-grid { grid-template-columns: 1fr; }
    .pizza-card { max-width: 300px; margin: 0 auto; }
}

.container {
    max-width: 1300px; /* Expandido para dar mayor amplitud al catálogo y secciones */
    width: 95%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--secondary);
    animation: containerBorderGlow 3s infinite alternate ease-in-out;
}

/* Aseguramos que los botones de cantidad dentro de control-group también se vean bien */
.container:not(.hidden) {
    animation: fadeIn 0.6s ease-out forwards;
}

.announcement-banner {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: containerBorderGlow 3s infinite alternate ease-in-out;
}

.announcement-banner img {
    width: 100%;
    display: block;
    height: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes containerBorderGlow {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0px var(--secondary);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px var(--secondary), 0 0 25px var(--secondary);
    }
}

.hidden { display: none !important; }

.pizza-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

/* Expandir columnas en pantallas más grandes para mantener la estética */
@media (min-width: 1000px) {
    .pizza-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1300px) {
    .pizza-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pizza-card {
    border: 2px solid var(--secondary);
    padding: 0;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura uniformidad */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pizza-img-container {
    width: 100%;
    height: 200px;
    position: relative;
}

.pizza-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease; /* Transición para zoom y filtros */
    filter: saturate(1.1) contrast(1.05) brightness(1.02); /* Mejora base de color y luz */
}

/* Efecto de elevación y zoom al pasar el mouse por la tarjeta */
.pizza-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.pizza-card:hover .pizza-img-container img {
    transform: scale(1.1); /* Agranda la imagen un 10% */
    filter: saturate(1.3) contrast(1.15) brightness(1.05); /* Colores más vivos al interactuar */
}

.img-disclaimer {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
}

.pizza-card h3 { margin: 15px 0 10px; color: var(--primary); }
.pizza-card h3 {
    margin: 15px 0 10px;
    color: var(--primary);
    font-family: 'Gloria Hallelujah', cursive;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.pizza-options {
    padding: 0 10px 15px;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#btn-pedir:not(:disabled) {
    animation: pulseGlow 1.5s infinite ease-in-out;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--primary), #ff5e5e);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#btn-pedir:not(:disabled)::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: btnShine 3s infinite ease-in-out;
}

@keyframes btnShine {
    0% { left: -150%; }
    20%, 100% { left: 150%; }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px var(--primary);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 35px var(--secondary);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 5px var(--primary);
        transform: scale(1);
    }
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

button:hover {
    /* La regla específica para #menu-section button:hover sobrescribirá esto para los botones dentro del menú */
    background-color: #c0392b;
    transform: translateY(-2px); /* Efecto de elevación sutil */
}

#checkout-section {
    background-image: url('imagenes/anuncio mundial 2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.92); 
    background-blend-mode: overlay;
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    text-align: left;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    #checkout-section {
        padding: 20px 15px;
    }
}

/* Estilo específico para anuncios dentro de la cuadrícula */
.ad-in-feed {
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.ad-label {
    font-size: 10px;
    color: #999;
    margin-bottom: 10px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    border: 2px solid #ddd;
    padding: 12px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.2);
    outline: none;
}

.btn-primary-action {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--primary), #ff5e5e);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

#checkout-section .summary-total {
    margin-top: 20px;
    padding: 15px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 10px;
    border: 2px dashed var(--secondary);
    text-align: center;
    color: var(--dark);
}
/* Aseguramos que los botones de cantidad dentro del menú también tengan el color correcto */

.btn-qty {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-qty:hover {
    background-color: #c0392b; /* Mismo rojo oscuro que los botones generales */
    transform: scale(1.1); /* Ligeramente más grande al pasar el mouse */
}

.control-group div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group span[id^="qty-"] {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 22px;
    text-align: center;
    user-select: none; /* Evita que se seleccione el número al hacer clic rápido */
}

.form-group {
    margin-bottom: 15px;
}

label { display: block; margin-bottom: 5px; font-weight: bold; }

input, select, textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.error-text {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    font-weight: bold;
    background-color: rgba(0,0,0,0.8);
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 15px;
    text-shadow: 1px 1px 2px white;
}

.info-box {
    background-color: #666666; /* Gris rata */
    color: white; /* Para que el texto sea legible */
    border: 1px solid var(--secondary); /* Borde naranja para combinar */
    padding: 15px;
    margin: 15px 0;
    border-radius: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.info-box strong {
    font-size: 1.1rem; /* Hace el texto un poco más grande */
    font-weight: bold; /* Asegura que esté en negrita */
}

.summary-total {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    border-top: 2px solid var(--primary);
    padding-top: 10px;
    transition: color 0.3s ease;
}

.summary-total.total-reached {
    color: #2ecc71;
}

.min-msg {
    text-align: right;
    font-size: 0.95rem;
    margin-top: 5px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.bank-details {
    background: #d4edda;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #28a745;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mercado-pago-box {
    background: #e5f1f7;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #009ee3;
}

.btn-mercadopago {
    background-color: #009ee3 !important;
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-mercadopago:hover {
    background-color: #007bbd !important;
}

footer {
    padding: 10px 20px; 
    min-height: 80px; 
    text-align: center;
    background: #000;
    border: 2px solid var(--secondary);
    color: var(--light);
    border-radius: 40px;
    position: fixed;
    bottom: 5px;
    left: 10%;
    width: 80%;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

#universeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none; /* Asegura que no interfiera con los clics en los links */
}

.footer-content {
    position: relative;
    z-index: 2;
    will-change: transform, filter; /* Optimización para animaciones de distorsión */
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-hidden {
    transform: translateY(100%);
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    text-shadow: 0 0 10px var(--secondary);
}

.footer-links a.admin-link {
    color: silver;
    opacity: 0.4; /* Opacidad reducida para discreción */
}

.footer-links a.admin-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px silver;
}

.social-icons {
    margin-top: 5px;
    text-align: center;
}

@media (min-width: 600px) {
    .social-icons {
        text-align: center;
    }
}

.social-icons a {
    font-size: 1.8rem;
    margin: 0 10px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    animation: socialEntrance 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.social-icons a.email-link {
    color: var(--light);
    font-size: 1rem;
    vertical-align: middle;
    text-shadow: 0 0 8px rgba(236, 240, 241, 0.4);
    animation-delay: 1s;
    margin-left: 10px;
    display: inline-block;
}

@media (max-width: 480px) {
    .social-icons a.email-link { display: block; margin-top: 10px; margin-left: 0; }
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons a.email-link:hover { 
    color: white; 
    text-shadow: 0 0 10px #fff, 0 0 20px var(--secondary); 
}

@keyframes socialEntrance {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.gallery-section {
    margin-top: 40px;
}

.gallery-divider {
    border: none;
    border-top: 2px solid var(--secondary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.gallery-title {
    text-align: center;
    color: var(--secondary);
    text-shadow: 1px 1px 2px black;
    margin-bottom: 20px;
}

.gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-item {
    min-width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid var(--secondary);
    padding: 15px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.2rem;
}

.carousel-control:hover { background: var(--primary); transform: scale(1.1); }
.carousel-control.prev { left: -60px; }
.carousel-control.next { right: -60px; }

.pizza-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    color: white;
    padding: 10px 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 3px black;
    border-top: 1px solid var(--secondary);
    transform: translateY(100%); /* Oculto por defecto */
    transition: transform 0.3s ease;
}

.gallery-item:hover .pizza-name-overlay {
    transform: translateY(0); /* Visible al pasar el ratón */
}

@media (max-width: 950px) {
    .gallery-carousel-wrapper { margin: 0 50px; }
    .carousel-control.prev { left: -45px; }
    .carousel-control.next { right: -45px; }
    .gallery-item { height: 300px; }
}

@media (max-width: 600px) {
    .gallery-carousel-wrapper { margin: 0; }
    .carousel-control { width: 40px; height: 40px; font-size: 1rem; padding: 0; display: flex; align-items: center; justify-content: center; }
    .carousel-control.prev { left: 5px; }
    .carousel-control.next { right: 5px; }
    .gallery-item { height: 220px; }
}

/* ESTILOS MODALES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    text-align: center;
    color: var(--dark);
    border: 4px solid var(--secondary);
    display: flex;
    flex-direction: column;
}

.modal-body-text {
    overflow-y: auto;
    text-align: left;
    margin: 15px 0;
    padding-right: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Estilos para la Notificación de Administrador */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    z-index: 9999;
    box-shadow: 0 0 20px var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.5s ease;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes barPulse { from { height: 5px; } to { height: 20px; } }