/* =========================================
   RESET Y VARIABLES (ESTILO PREMIUM)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --azul-oscuro: #0a142f; /* Azul casi negro tipo Emirates */
    --azul-marca: #002060;
    --dorado: #d4af37; /* Toque First Class */
    --rojo-alerta: #e74c3c;
    --gris-fondo: #f8f9fa;
    --gris-texto: #555;
    --blanco: #ffffff;
    --sombra-suave: 0 8px 30px rgba(0,0,0,0.08);
}

body {
    background-color: var(--gris-fondo);
    color: #333;
    line-height: 1.6;
}

/* =========================================
   HEADER PREMIUM (CON LOGIN/REGISTRO)
   ========================================= */
.main-header {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--blanco);
}

.nav-main a {
    color: #ccc;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nav-main a:hover {
    color: var(--blanco);
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login {
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-register {
    border: 1px solid var(--blanco);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-register:hover {
    background-color: var(--blanco);
    color: var(--azul-oscuro);
}

/* =========================================
   HERO (IMAGEN DE FONDO)
   ========================================= */
.hero-premium {
    background: url('https://images.unsplash.com/photo-1436491865332-7a61a109c0f2?q=80&w=1600') center/cover no-repeat;
    height: 60vh;
    min-height: 500px;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 20, 47, 0.4), rgba(10, 20, 47, 0.8));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--blanco);
    padding-bottom: 80px; /* Espacio para que el buscador suba */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* =========================================
   BUSCADOR (SUPERPUESTO AL HERO)
   ========================================= */
.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.search-container {
    background: var(--blanco);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--sombra-suave);
    margin-top: -100px; /* Sube la caja sobre la foto */
    position: relative;
    z-index: 10;
}

.search-tabs {
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.search-tabs label {
    margin-right: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--azul-oscuro);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: end;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gris-texto);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.field select, .field input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.field select:focus, .field input:focus {
    border-color: var(--azul-marca);
}

.btn-search {
    background-color: var(--azul-marca);
    color: var(--blanco);
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    height: 100%; /* Iguala la altura de los inputs */
}

.btn-search:hover {
    background-color: var(--azul-oscuro);
}

/* =========================================
   EXPERIENCIA VOLANTIS (TARJETAS)
   ========================================= */
.title-center {
    text-align: center;
    font-size: 2.2rem;
    color: var(--azul-oscuro);
    margin: 80px 0 40px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.exp-card {
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: 0.3s;
}

.exp-card:hover {
    transform: translateY(-5px);
}

.exp-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.exp-info {
    padding: 25px;
}

.exp-info h3 {
    color: var(--azul-marca);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* =========================================
   DESTINOS MOSAICO (ESTILO REVISTA)
   ========================================= */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.dest-card {
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.dest-card.large {
    grid-column: span 2; /* Ocupa dos columnas */
}

.dest-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    color: var(--blanco);
    transition: 0.3s;
}

.dest-card:hover .dest-overlay {
    padding-bottom: 30px; /* Efecto al pasar el mouse */
}

.dest-overlay h3 { font-size: 1.5rem; }
.dest-overlay p { font-size: 0.9rem; color: #ddd; }

/* =========================================
   MEGA FOOTER (4 COLUMNAS)
   ========================================= */
.mega-footer {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 60px 5% 20px;
    margin-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--blanco);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: var(--blanco);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1300px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
}

/* =========================================
   VALIDACIÓN Y FEEDBACK EN TIEMPO REAL
   ========================================= */
.field-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.field-success {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1) !important;
}

.error-msg {
    display: none;
    color: #e74c3c;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 5px;
}

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-width: 400px;
}

.toast-visible {
    transform: translateX(0);
}

.toast-info {
    background: var(--azul-marca);
    color: white;
}

.toast-error {
    background: #e74c3c;
    color: white;
}

.toast-warning {
    background: #f39c12;
    color: white;
}

.toast-success {
    background: #2ecc71;
    color: white;
}

/* =========================================
   SPINNER PARA BOTONES
   ========================================= */
.spinner-btn {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   RESPONSIVE PARA MÓVIL Y IPAD
   ========================================= */
@media (max-width: 900px) {
    .header-left { flex-direction: column; align-items: flex-start; gap: 15px; }
    .nav-main { display: none; } /* Ocultar menú en móvil para simplificar por ahora */
    .hero-content h1 { font-size: 2.5rem; }
    .dest-grid { grid-template-columns: 1fr; }
    .dest-card.large { grid-column: span 1; }
    .search-container { margin-top: -50px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}