/* === ESTILOS PARA INDEX === */
.show-imagen img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    margin-bottom: 25px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.show-imagen img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.titulo-show {
    font-size: 2.3rem;
    color: #facc15;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.descripcion-show {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 25px;
    line-height: 1.7;
}

.detalles-show p {
    color: #ccc;
    font-size: 1rem;
    margin: 5px 0;
}

.btn-comprar {
    display: inline-block;
    background: linear-gradient(45deg, #facc15, #e11d48);
    padding: 14px 35px;
    color: #111;
    font-weight: bold;
    border-radius: 40px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-comprar:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.5);
}

/* === BOTÓN FLOTANTE STICKY === */
.sticky-comprar-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.btn-comprar-sticky {
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
    animation: none;
}

.btn-comprar-sticky:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(250, 204, 21, 0.6);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Ocultar botón sticky cuando el formulario está visible */
.sticky-comprar-btn.hidden {
    display: none;
}

/* === LOADER MODAL === */
.loader-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.loader-modal.active {
    display: flex;
}

.loader-content {
    text-align: center;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(225, 29, 72, 0.1) 100%);
    padding: 40px 60px;
    border-radius: 20px;
    border: 2px solid rgba(250, 204, 21, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(250, 204, 21, 0.2);
    border-top: 4px solid #facc15;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #facc15;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .loader-content {
        padding: 30px 40px;
    }

    .loader-spinner {
        width: 50px;
        height: 50px;
    }

    .loader-text {
        font-size: 1rem;
    }
}

/* === TABLA DE SILLAS RESPONSIVE === */
#sillaContainerTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    overflow-x: auto;
    display: block;
}

#sillaContainerTable tbody {
    display: table;
    width: 100%;
}

.silla-cell {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid rgba(250, 204, 21, 0.2);
    background: rgba(30, 30, 30, 0.5);
    white-space: nowrap;
}

.silla-checkbox {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.silla-label {
    margin-left: 5px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    vertical-align: middle;
}

/* Estilo para sillas ocupadas */
.silla-ocupada {
    background: rgba(220, 38, 38, 0.2) !important;
    border: 2px solid #dc2626 !important;
    position: relative;
}

.silla-ocupada .silla-checkbox {
    cursor: not-allowed;
    opacity: 0.5;
}

.silla-ocupada .silla-label {
    color: #fca5a5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .show-container {
        max-width: 95%;
        text-align: center;
    }

    .titulo-show {
        font-size: 1.8rem;
    }

    .descripcion-show {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .btn-comprar {
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
    }

    /* Ajustes para botón sticky en móvil */
    .sticky-comprar-btn {
        bottom: 15px;
        right: 15px;
        left: 15px;
        text-align: center;
    }

    .btn-comprar-sticky {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Ajustes para tabla de sillas en móvil */
    #sillaContainerTable {
        font-size: 0.85rem;
    }

    .silla-cell {
        padding: 6px 2px;
    }

    .silla-checkbox {
        width: 14px;
        height: 14px;
    }

    .silla-label {
        font-size: 0.75rem;
        margin-left: 3px;
    }

    /* Mantener estilos de silla ocupada en móvil */
    .silla-ocupada {
        background: rgba(220, 38, 38, 0.2) !important;
        border: 2px solid #dc2626 !important;
    }
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Fondo semitransparente */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(30, 30, 30, 0.9);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: #fff;
    position: relative;
    animation: fadeIn 0.4s ease;
    backdrop-filter: blur(6px);
    /* Da ese efecto translúcido elegante */
}

.modal-content h2 {
    color: #facc15;
    margin-bottom: 10px;
}

.modal-content .modal-sub {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.modal-close:hover {
    color: #facc15;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #222;
    color: #fff;
}

.btn-pago {
    background: linear-gradient(45deg, #facc15, #e11d48);
    color: #111;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-pago:hover {
    transform: translateY(-2px);
}

/* Modal de imagen */
.img-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

/* Imagen dentro del modal */
.img-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    margin: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Botón de cerrar */
.img-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.img-modal-close:hover {
    color: #ccc;
}

#precioDisplay,
#precioOriginal {
    display: inline-block;
    margin-right: 10px;
    /* Espacio entre los elementos */
}

/* === CONTADOR REGRESIVO === */
.countdown-container {
    margin: 30px auto;
    max-width: 800px;
}

.countdown-title {
    color: #facc15;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(250, 204, 21, 0.3);
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.countdown-item {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(225, 29, 72, 0.1) 100%);
    border: 2px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    padding: 12px 15px;
    min-width: 75px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(250, 204, 21, 0.3);
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #facc15;
    line-height: 1;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.5);
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    color: #ddd;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-separator {
    font-size: 1.8rem;
    color: #facc15;
    font-weight: bold;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .countdown-display {
        gap: 5px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 10px 12px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.6rem;
        margin-top: 3px;
    }

    .countdown-separator {
        font-size: 1.3rem;
    }
}

/* === CARRUSEL DE LOGOS === */
.logos-clientes {
    background: linear-gradient(180deg, #1a0300 0%, #0a0100 100%);
    overflow: hidden;
    position: relative;
}

.logos-clientes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #facc15, transparent);
    opacity: 0.3;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 40px;
    will-change: transform;
}

.logo-item {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05) 0%, rgba(225, 29, 72, 0.05) 100%);
    border: 1px solid rgba(250, 204, 21, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-item:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(225, 29, 72, 0.1) 100%);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.2);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(1.1);
}

.logo-item img[src*="2.png"] {
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.logo-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-item {
        width: 170px;
        height: 120px;
        padding: 18px;
    }

    .carousel-track {
        gap: 20px;
    }

    .logos-clientes h2 {
        font-size: 1.8rem;
    }
}

/* === MAPA DE UBICACIÓN === */
.mapa-ubicacion {
    background: linear-gradient(180deg, #0a0100 0%, #1a0300 100%);
    padding: 60px 20px;
    position: relative;
}

.mapa-ubicacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #facc15, transparent);
    opacity: 0.3;
}

.mapa-titulo {
    color: #facc15;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
}

.mapa-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.mapa-iframe-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(250, 204, 21, 0.2);
}

.mapa-iframe-wrapper iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.mapa-info {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05) 0%, rgba(225, 29, 72, 0.05) 100%);
    border: 2px solid rgba(250, 204, 21, 0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.mapa-info h3 {
    color: #facc15;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mapa-info p {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.mapa-info strong {
    color: #fff;
}

.mapa-detalles {
    margin-top: 25px;
}

.mapa-detalle-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #facc15;
}

.mapa-detalle-item h4 {
    color: #facc15;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.mapa-detalle-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .mapa-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mapa-titulo {
        font-size: 1.8rem;
    }

    .mapa-container {
        grid-template-columns: 1fr;
    }

    .mapa-iframe-wrapper iframe {
        height: 400px;
    }

    .mapa-info {
        padding: 20px;
    }
}

/* === REDES SOCIALES === */
.redes-sociales {
    background: linear-gradient(180deg, #1a0300 0%, #0a0100 100%);
    padding: 50px 20px;
    position: relative;
}

.redes-sociales::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #facc15, transparent);
    opacity: 0.3;
}

.redes-sociales h2 {
    color: #facc15;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center;
}

.redes-sociales p {
    color: #ddd;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(225, 29, 72, 0.1) 100%);
    border: 2px solid rgba(250, 204, 21, 0.3);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #facc15, #e11d48);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
    border-color: #facc15;
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3);
}

.social-icon:hover::before {
    opacity: 0.2;
}

.social-icon svg {
    width: 35px;
    height: 35px;
    fill: #facc15;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icon:hover svg {
    fill: #fff;
    transform: scale(1.2);
}

.social-label {
    display: block;
    color: #ddd;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .redes-sociales h2 {
        font-size: 1.8rem;
    }

    .social-icons {
        gap: 20px;
    }

    .social-icon {
        width: 70px;
        height: 70px;
    }

    .social-icon svg {
        width: 30px;
        height: 30px;
    }
}
