:root {
    --primary-color: #00FFFF; /* Cyan */
    --secondary-color: #008B8B; /* Dark Cyan/Teal */
    --dark-text: #ffffff;
    --medium-text: #cccccc;
    --light-text: #aaaaaa;
    --border-color: #333333;
    --premium-color: #e74c3c;
    --estandar-color: #3498db;
    --basico-color: #27ae60;
    --esquina-color: #f39c12;
    --card-bg: #1e1e1e;
    --bg-color: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--dark-text);
}

.header {
    background-color: var(--card-bg);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.header-subtitle {
    font-size: 14px;
    color: var(--medium-text);
}

.header-nav a {
    margin-left: 15px;
    color: var(--medium-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 24px;
}

.page-description {
    color: var(--medium-text);
    margin-bottom: 20px;
    font-size: 16px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.card-body {
    padding: 20px;
}

/* Layout de dos columnas */
.layout-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .layout-columns {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el mapa interactivo */
.map-container {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    cursor: grab;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #1a1a1a;
}

.floor-map {
    display: block;
    max-width: 100%;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stand-area {
    position: absolute;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.stand-area:hover {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 5;
}

.stand-area.no-disponible {
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.3) 10px, rgba(0,0,0,0.5) 10px, rgba(0,0,0,0.5) 20px);
    cursor: not-allowed;
    opacity: 0.5;
}

.stand-label {
    position: absolute;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Leyenda del mapa */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--medium-text);
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Filtros */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--medium-text);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-item:hover, .filter-item.active {
    background-color: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Tabla de stands */
.stands-table {
    width: 100%;
    border-collapse: collapse;
}

.stands-table th, .stands-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.stands-table th {
    position: sticky;
    top: 0;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.stands-table tbody tr {
    transition: all 0.3s ease;
}

.stands-table tr:hover {
    background-color: rgba(0, 255, 255, 0.05);
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    margin-right: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.tag-premium { background-color: var(--premium-color); }
.tag-estandar { background-color: var(--estandar-color); }
.tag-basico { background-color: var(--basico-color); }
.tag-esquina { background-color: var(--esquina-color); }

.disponibilidad {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.disponible {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.no-disponible {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.price {
    font-weight: 600;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: black;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.btn:hover {
    background-color: #00cccc;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
}

.btn-disabled {
    background-color: #444;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-disabled:hover {
    background-color: #444;
    transform: none;
    box-shadow: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: 1;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn span, .btn i {
    position: relative;
    z-index: 2;
}

/* Detalles del stand */
.stand-details {
    display: none;
    padding: 15px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-top: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.stand-details.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.details-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.details-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--medium-text);
    cursor: pointer;
    transition: color 0.3s;
}

.details-close:hover {
    color: white;
}

.details-info {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.info-label {
    font-weight: 500;
    color: var(--medium-text);
}

.info-value {
    color: white;
    font-weight: 500;
}

.benefits-list {
    margin-bottom: 15px;
    background-color: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 6px;
}

.benefits-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 14px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: var(--light-text);
    font-size: 13px;
}

.benefit-item i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 12px;
}

/* Selección de servicios adicionales */
.services-selection {
    margin-top: 15px;
}

.services-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-info {
    display: flex;
    align-items: center;
}

.service-check {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.service-name {
    font-size: 14px;
    color: var(--medium-text);
}

.service-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

.total-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.total-label {
    font-weight: 500;
    color: var(--medium-text);
}

.total-value {
    font-weight: 600;
    color: white;
}

.total-final {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.sidebar-card {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.category-list {
    margin-bottom: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.category-name {
    flex: 1;
    font-size: 14px;
    color: var(--medium-text);
}

.category-count {
    background-color: rgba(0, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary-color);
}

.contact-info {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--medium-text);
}

.contact-item i {
    margin-right: 8px;
    color: var(--primary-color);
}

.contact-action {
    margin-top: 10px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 255, 255, 0.05);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--medium-text);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    background-color: rgba(0, 0, 0, 0.2);
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--medium-text);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ccc' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.form-text {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check-input {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.form-check-label {
    font-size: 14px;
    color: var(--medium-text);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-nav {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .header-nav a {
        margin-left: 0;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

@keyframes slideInRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Stand seleccionado */
.stand-area.selected {
    transform: scale(1.05) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 3px var(--primary-color), 0 0 20px rgba(0, 255, 255, 0.4);
    z-index: 10;
    animation: pulseHighlight 1.5s infinite;
    border-color: white;
}

.selected-row {
    background-color: rgba(0, 255, 255, 0.1) !important;
    border-left: 3px solid var(--primary-color);
}

/* Tooltips de stands */
.stand-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    width: max-content;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.stand-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
