﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}


/* Header */
header {
    background-color: #181818;
    color: white; /* Opcional: para que el texto sea visible */
}

.navbar {
    background: #181818 !important;
    color: white;
}


/* Footer */
footer {
    background-color: #181818;
    color: white; /* Opcional */
    padding: 10px 0; /* Add some padding */
    width: 100%; /* Ensure full width */
    height: 200px;
    margin-top: 2em;
}

/* Body content */
body {
    background-color: #f6f9fc;
    color: #425466;
}


#svgContainer {
    width: 60%;
    height: 600px;
    border: 1px solid #ccc;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    float: left;
}

svg text {
    fill: white;
}

#selectedSeats {
    flex: 1 1 30%;
    min-width: 300px;
    float: none !important;
    padding: 20px;
    font-size: small;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* sombra suave */
    border: 1px solid #ddd;
    margin-left: 1em;
    margin-top: 10px;
}

.asiento {
    cursor: pointer;
    fill: #1D92FF;
}

    .asiento.ocupado {
        fill: red;
    }

    .asiento.comprado {
        fill: gray;
        cursor: not-allowed;
        pointer-events: none;
    }

text {
    font-size: 3px;
    color: white;
    text-anchor: middle;
    alignment-baseline: middle;
    pointer-events: none;
}

.selected-seat {
    margin: 5px 0;
}

/*Obsoleto*/
/* .asiento.ocupado-otro {
                    fill: orange;
                }
        */
.asiento.seleccionado-usuario {
    fill: green;
}

button {
    background-color: #222;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 24px;
    /*border: 3px solid #555;*/
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    letter-spacing: 1.2px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 20px auto;
}


    button:hover {
        background-color: #444;
        border-color: #888;
        transform: scale(1.08);
        color: #ffffff;
    }

    button:active {
        background-color: #111;
        border-color: #333;
        transform: scale(0.96);
    }

    button:not(#minusBtn):not(#closePopup):not(#plusBtn):not(.button_cant)::before {
        /*content: "🛒";*/
        font-size: 20px;
    }


.button_cant {
    background-color: #fff; /* Fondo blanco */
    color: #333; /* Texto gris oscuro */
    font-size: 20px;
    font-weight: bold;
    padding: 14px; /* Igual ancho y alto para círculo */
    border: 2px solid #aaa; /* Borde gris */
    border-radius: 50%; /* Forma circular */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Controla tamaño del círculo */
    height: 60px; /* Igual que width */
    margin: 20px auto;
}

/* Ejemplo de dos botones de control */
.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .control-buttons button {
        font-size: 20px; /* Íconos o texto más visible */
    }




.small-btn {
    /*font-size: 12px;*/ /* Fuente reducida */
    /*padding: 5px 8px;*/ /* Menor padding */
    /*margin: 5px;*/
}

#detallesPago {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    margin-top: 10px;
}


.costo-item {
    font-size: 16px;
    margin-bottom: 5px;
}

.costo-total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    background-color: #222;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}


.toggle-container {
    width: 220px;
    background: #f1f3f5;
    padding: 4px;
    border-radius: 40px;
    display: flex;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.08);
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    z-index: 2;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: color .25s ease;
    user-select: none;
}

    .toggle-option.active {
        color: #ffffff;
    }

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 8px);
    height: calc(100% - 8px);
    background: #4f46e5; /* Indigo estilo moderno */
    border-radius: 40px;
    transition: all .25s ease;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Contenedor de toda la lista (opcional) */
.lista-zonas {
    flex: 1 1 60%;
    min-width: 300px;
    float: none !important;
}

/* Card individual */
.zona-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

    /* Hover */
    .zona-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }

/* Columna izquierda */
.zona-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zona-nombre {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.zona-precio {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
}

/* Columna derecha: selector de cantidad */
.zona-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .qty-btn:hover {
        background: #e5e7eb;
    }

    .qty-btn:active {
        background: #d1d5db;
    }

.qty-input {
    width: 40px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 0;
    background: #fff;
}

/* Contenedor que envuelve el mapa, lista y columna derecha */
.contenedor-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


@media (max-width: 500px) {
    .zona-card {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .zona-cantidad {
        justify-content: center;
    }
    /* Contenedor de toda la lista (opcional) */
    .lista-zonas {
        width: 100%;
       
    }
}



@media (max-width: 768px) {
    #svgContainer {
        width: 100%;
        height: 50%;
        float: none;
    }

   
    #selectedSeats {
        width: 90%;
        float: none;
        margin-left: 0;
    }
}



