* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.app-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.app-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff9800;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: #4CAF50;
}

.status-dot.error {
    background: #f44336;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.app-main {
    padding: 20px;
}

section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
}

section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.language-selection,
.tour-selection {
    margin-bottom: 0;
}

.language-selection label,
.tour-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.language-selection select,
.tour-selection select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.language-selection select:focus,
.tour-selection select:focus {
    outline: none;
    border-color: #2196F3;
}

.location-info p {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
}

.location-info span {
    font-weight: 600;
    color: #2196F3;
}

.station-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.station-info h2 {
    color: white;
}

.station-image-container {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.image-carousel {
    position: relative;
    width: 100%;
}

.carousel-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.station-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.station-details p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.audio-player {
    background: #fff;
    border: 2px solid #2196F3;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #2196F3;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    background: #1976D2;
    transform: scale(1.1);
}

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

.progress-container {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2196F3;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.station-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.station-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.station-item:hover {
    border-color: #2196F3;
    transform: translateX(5px);
}

.station-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.station-item-content {
    flex: 1;
    min-width: 0;
}

.station-item h4 {
    margin-bottom: 5px;
    color: #333;
}

.station-item p {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-item .distance {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    background: #2196F3;
    color: white;
    border-radius: 12px;
    font-size: 11px;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.app-footer {
    background: #f5f5f5;
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Notificaciones */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Overlay de inicio */
.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.start-overlay.hidden {
    display: none;
}

.start-overlay-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.start-overlay-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.start-overlay-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.start-tour-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.start-tour-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.start-tour-btn:active {
    transform: scale(0.95);
}

.start-note {
    font-size: 14px !important;
    opacity: 0.7 !important;
    margin-top: 20px !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .app-container {
        border-radius: 10px;
    }
    
    .app-main {
        padding: 15px;
    }
}

/* Tours Checkboxes - Simple */
.tours-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    max-height: 180px;
    overflow-y: auto;
}

.tour-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.tour-checkbox-item:hover {
    background: #e3f2fd;
    border-color: #2196F3;
}

.tour-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2196F3;
}

.tour-checkbox-item span {
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
