/**
 * Estilos para Buscar Vuelos Baratos Colombia
 * Diseño: Minimalismo Moderno
 */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-500: #6b7280;
    --neutral-700: #374151;
    --neutral-900: #111827;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Tipografía */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    
    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-sans);
    color: var(--neutral-900);
    background-color: var(--neutral-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
    box-sizing: border-box;
}

/* Header / Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-4) 0;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-16) 0;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-12);
    opacity: 0.95;
}

/* Search Form */
.search-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.25s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Trip Type Radio Buttons - Modern Design */
.trip-type {
    display: flex;
    gap: var(--space-3);
    background: var(--neutral-100);
    padding: var(--space-1);
    border-radius: var(--radius-lg);
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--neutral-700);
    background: transparent;
    position: relative;
}

.radio-label:hover {
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.radio-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label input:checked ~ span {
    color: white;
}

.radio-label:has(input:checked) {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.radio-label span {
    transition: color 0.3s ease;
}

/* Search Button */
.btn-search {
    width: 100%;
    padding: var(--space-4);
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-md);
}

.btn-search:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-search:active {
    transform: translateY(0);
}

/* Airports Section */
.airports-section {
    padding: var(--space-16) 0;
    background: white;
}

.airports-section h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-8);
    color: var(--neutral-900);
}

.airports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-6);
}

.airport-card {
    background: var(--neutral-50);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.25s ease;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay oscuro para mejorar legibilidad del texto */
.airport-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.75) 0%, rgba(59, 130, 246, 0.65) 100%);
    transition: all 0.3s ease;
}

.airport-card:hover .airport-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(59, 130, 246, 0.75) 100%);
}

/* Contenedor del contenido */
.airport-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 232px;
}

/* Imágenes de fondo para cada aeropuerto */
.airport-bog {
    background-image: url('../img/aeropuertos/bogota.jpg');
}

.airport-mde {
    background-image: url('../img/aeropuertos/medellin.jpg');
}

.airport-clo {
    background-image: url('../img/aeropuertos/cali.jpg');
}

.airport-ctg {
    background-image: url('../img/aeropuertos/cartagena.jpg');
}

.airport-baq {
    background-image: url('../img/aeropuertos/barranquilla.jpg');
}

.airport-smr {
    background-image: url('../img/aeropuertos/santamarta.jpg');
}

.airport-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.airport-code {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.airport-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-1);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.airport-full-name {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--neutral-900);
    color: white;
    padding: var(--space-8) 0;
    text-align: center;
}

footer a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.25s ease;
}

footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Admin Panel */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--neutral-900);
}

.admin-panel {
    padding: var(--space-12) 0;
    min-height: calc(100vh - 200px);
}

.admin-section {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-8);
}

.admin-section h2 {
    margin-bottom: var(--space-6);
    color: var(--neutral-900);
    font-size: 1.5rem;
}

.admin-form .form-row {
    display: flex;
    gap: var(--space-4);
}

.admin-form input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.admin-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Buttons */
.btn-primary,
.btn-danger,
.btn-success,
.btn-logout {
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-blue-dark);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-logout {
    background: var(--neutral-700);
    color: white;
}

.btn-logout:hover {
    background: var(--neutral-900);
}

/* Table */
.blocked-ips-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-4);
}

.blocked-ips-table th,
.blocked-ips-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.blocked-ips-table th {
    background: var(--neutral-100);
    font-weight: 600;
    color: var(--neutral-700);
}

.blocked-ips-table code {
    background: var(--neutral-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
}

/* Messages */
.success-message,
.error-message {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    font-weight: 500;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.help-text {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-top: var(--space-2);
}

.no-data {
    text-align: center;
    color: var(--neutral-500);
    padding: var(--space-8);
}

.system-info p {
    margin-bottom: var(--space-2);
}

.system-info code {
    background: var(--neutral-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
}

/* Privacy & Terms Pages */
.content-page {
    padding: var(--space-12) 0;
    background: white;
}

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-6);
    color: var(--neutral-900);
}

.content-page h2 {
    font-size: 1.75rem;
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: var(--neutral-900);
}

.content-page p {
    margin-bottom: var(--space-4);
    color: var(--neutral-700);
}

/* Responsive Design */
/* Large Tablets y pantallas pequeñas */
@media (max-width: 1024px) {
    .search-form {
        max-width: 800px;
        padding: var(--space-6);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-group:nth-child(5),
    .form-group:nth-child(6) {
        grid-column: span 1;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-8) 0 var(--space-12) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-3);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-8);
    }
    
    .search-form {
        padding: var(--space-6);
        margin: 0 var(--space-4);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .trip-type {
        gap: var(--space-2);
    }
    
    .radio-label {
        padding: var(--space-2) var(--space-4);
        font-size: 0.875rem;
    }
    
    .airports-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-form .form-row {
        flex-direction: column;
    }
    
    .blocked-ips-table {
        font-size: 0.875rem;
    }
    
    .airports-section {
        padding: var(--space-12) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero {
        padding: var(--space-6) 0 var(--space-8) 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: var(--space-2);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-6);
    }
    
    .search-form {
        padding: var(--space-4);
        margin: 0 var(--space-2);
        border-radius: var(--radius-lg);
    }
    
    .form-grid {
        gap: var(--space-3);
    }
    
    .form-group label {
        font-size: 0.8125rem;
        margin-bottom: var(--space-1);
    }
    
    .form-group input,
    .form-group select {
        padding: var(--space-2) var(--space-3);
        font-size: 0.9375rem;
    }
    
    .radio-label {
        padding: var(--space-2) var(--space-4);
        font-size: 0.9rem;
    }
    
    .btn-search {
        padding: var(--space-3) var(--space-4);
        font-size: 1rem;
    }
    
    .airports-section {
        padding: var(--space-8) 0;
    }
    
    .airports-section h3 {
        font-size: 1.5rem;
        margin-bottom: var(--space-6);
    }
    
    .airport-card {
        padding: var(--space-4);
    }
    
    .airport-code {
        font-size: 1.5rem;
    }
    
    .airport-name {
        font-size: 1rem;
    }
    
    .airport-full-name {
        font-size: 0.8125rem;
    }
    
    .navbar {
        padding: var(--space-3) 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    footer {
        padding: var(--space-6) 0;
        font-size: 0.875rem;
    }
}
