:root {
    --primary-color: #e67e22;
    --secondary-color: #d35400;
    --dark-text: #333;
    --medium-text: #555;
    --light-text: #777;
    --border-color: #eaeaea;
    --premium-color: #e74c3c;
    --estandar-color: #3498db;
    --basico-color: #27ae60;
    --esquina-color: #f39c12;
}

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

body {
    background-color: #f5f7fa;
}

.header {
    background-color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.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);
}

.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(--dark-text);
    margin-bottom: 5px;
    font-size: 24px;
}

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

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

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

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

.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: #f8f9fa;
}

.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.7;
    transition: opacity 0.3s, transform 0.3s;
}

.stand-area:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

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

.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.5);
}

/* Leyenda del mapa */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.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;
}

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

.filter-item {
    background-color: white;
    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: white;
    border-color: var(--primary-color);
}

/* 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(--dark-text);
    background-color: #f8f9fa;
    z-index: 5;
}

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

.stands-table tr:hover {
    background-color: #f8f9fa;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    margin-right: 5px;
}

.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.1);
    color: #27ae60;
}

.no-disponible {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

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

.btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.btn:hover {
    background-color: var(--secondary-color);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background-color: #ccc;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    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: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stand-details.active {
    display: block;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

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

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

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

.info-row {
    display: flex;
    margin-bottom: 8px;
}

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

.info-value {
    flex: 1;
    color: var(--dark-text);
}

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

.benefits-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

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

.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(--dark-text);
}

.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;
}

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

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

.total-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.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: var(--dark-text);
}

.total-final {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
    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;
}

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

.category-count {
    background-color: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--medium-text);
}

.contact-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.contact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    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.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.modal {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.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;
}

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

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

.modal-body {
    padding: 20px;
}

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

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

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

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' 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 0 3px rgba(230, 126, 34, 0.1);
}

.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;
}

.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(230, 126, 34, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 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 15px rgba(0,0,0,0.3);
    z-index: 10;
    animation: pulseHighlight 1.5s infinite;
}

.selected-row {
    background-color: rgba(230, 126, 34, 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: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    width: max-content;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 50;
    pointer-events: none;
}

.stand-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.stand-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    top: -45px;
}

.tooltip-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tooltip-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

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

/* Zoom del mapa */
.map-zoom-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 20;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--medium-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Animación de filtrado */
.filtrando {
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

/* Sistema de notificaciones */
#notificaciones {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.notificacion {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notificacion.activa {
    transform: translateX(0);
    opacity: 1;
}

.notif-icono {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notificacion.info .notif-icono {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.notificacion.success .notif-icono {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.notificacion.warning .notif-icono {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.notificacion.error .notif-icono {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.notif-mensaje {
    font-size: 14px;
    color: var(--dark-text);
    flex: 1;
    padding-right: 5px;
}

.notif-cerrar {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--medium-text);
    cursor: pointer;
    padding: 0;
    align-self: flex-start;
}

.notif-cerrar:hover {
    color: var(--dark-text);
}

/* Mensaje de no resultados */
.no-results {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    color: var(--medium-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.no-results i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Animación para actualización de precios */
.precio-actualizado {
    animation: pulseHighlight 1s;
    background-color: rgba(230, 126, 34, 0.1);
    border-radius: 4px;
}

/* Mejora en la barra de búsqueda */
.search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-text);
    font-size: 14px;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--medium-text);
    font-size: 12px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-clear:hover {
    background-color: #f1f1f1;
    color: var(--dark-text);
}

/* Spinner para carga */
.fa-spinner {
    animation: rotate 1s linear infinite;
}

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

/* Animaciones para entrada del modal */
.modal {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    #notificaciones {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .map-zoom-controls {
        flex-direction: row;
        bottom: 10px;
        right: 10px;
    }
    
    .stand-tooltip {
        display: none;
    }
}

/* Estilos para estadísticas */
.stats-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.stats-value {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 14px;
}

/* Subtítulo de la tarjeta */
.card-subtitle {
    font-size: 12px;
    color: var(--medium-text);
    margin-top: 3px;
}

/* Animación para filas al filtrar */
@keyframes fadeRow {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stands-table tbody tr {
    animation: fadeRow 0.3s ease forwards;
}

/* Ajuste para el scroll horizontal en dispositivos móviles */
@media (max-width: 768px) {
    .card-body {
        overflow-x: auto;
    }
    
    .stats-item {
        flex-direction: column;
    }
    
    .stats-value {
        margin-top: 5px;
    }
}
