/* ============ RESET Y VARIABLES GLOBALES ============ */
:root {
    --primary-color: #3B71FE;
    --secondary-color: #051036;
    --accent-color: #FA5B30;
    --light-text: #697488;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--secondary-color);
    line-height: 1.6;
    background-color: #f5f8ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; }
ul { list-style: none; }

/* ============ HEADER ============ */
.main-header {
    background-color: var(--white);
    padding: 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.color-accent { color: var(--primary-color); }

.navbar a {
    color: var(--secondary-color);
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}
.navbar a:hover, .navbar a.active { color: var(--primary-color); }

.header-actions a {
    color: var(--secondary-color);
    margin-left: 20px;
}

/* ============ HERO BANNER ============ */
.hero-banner {
    /* AQUÍ usamos tu imagen local */
    background-image: linear-gradient(rgba(5, 16, 54, 0.4), rgba(5, 16, 54, 0.4)), url('img/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-primary:hover { background-color: #2a5ddf; }

/* ============ BARRA DE BÚSQUEDA FLOTANTE ============ */
.search-container-wrapper {
    margin-top: -60px; /* Sube la caja sobre el banner */
    position: relative;
    z-index: 10;
    padding-bottom: 40px;
}

.search-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-box form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.input-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.input-group label i { color: var(--primary-color); margin-right: 5px; }

.input-group input, .input-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    flex: 0 0 auto;
}

/* ============ SECCIÓN DESTINOS ============ */
.popular-section { padding: 20px 0 60px; }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.destination-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.destination-card:hover { transform: translateY(-5px); }

.card-image {
    position: relative;
    height: 200px;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.card-content { padding: 20px; }

.rating { color: #FFC107; margin-bottom: 10px; font-size: 0.9rem;}
.rating span { color: var(--light-text); margin-left: 5px; }

.card-content h3 a {
    color: var(--secondary-color);
    font-size: 1.3rem;
    transition: color 0.3s;
}
.card-content h3 a:hover { color: var(--primary-color); }

.location {
    color: var(--light-text);
    margin-top: 10px;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    color: var(--white);
    margin-top: auto;
}