:root {
    --primary-color: #2c3e50; /* Azul oscuro */
    --accent-color: #3498db; /* Azul claro para acentos */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --button-bg: #2980b9;
    --button-hover-bg: #2471a3;
    --footer-bg: #2c3e50;
    --card-bg: #ffffff;
    --discount-bg: #e74c3c; /* Rojo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5em;
}

.navbar .logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 5px;
}

.navbar nav ul {
    list-style: none;
    display: flex;
}

.navbar nav ul li {
    margin-left: 25px;
}

.navbar nav ul li a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Hero carousel removed */

.search-bar {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.search-bar input[type="text"],
.search-bar input[type="date"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-color);
}

.search-bar button {
    background-color: var(--button-bg);
    color: var(--light-text-color);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--button-hover-bg);
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: -80px; /* Superposición sobre el hero */
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.destination-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.mini-gallery {
    padding: 10px;
}

.mini-gallery-main {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.mini-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mini-gallery-thumbs img {
    width: 22%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.destination-card span {
    display: block;
    padding: 15px;
    font-weight: 600;
    font-size: 1.2em;
    color: var(--primary-color);
}

/* Main Offers */
.main-offers {
    padding: 60px 0;
}

.main-offers h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.offer-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.offer-card .offer-details {
    flex: 1;
    padding: 25px;
}

.offer-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.offer-card .discount {
    background-color: var(--discount-bg);
    color: var(--light-text-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 15px;
}

.offer-card .explore-btn {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.offer-card .explore-btn:hover {
    color: var(--button-hover-bg);
}

.offer-card .explore-btn i {
    margin-left: 8px;
    font-size: 1.1em;
}

.offer-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--light-text-color);
    padding: 40px 0;
    margin-top: 60px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left .logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-left .logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 5px;
}

.footer-left p {
    font-size: 0.9em;
    opacity: 0.8;
}

.footer-center h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
    color: var(--light-text-color);
}

.footer-center p {
    margin-bottom: 8px;
    font-size: 0.95em;
    opacity: 0.9;
}

.footer-right .social-icons {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.footer-right .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--light-text-color);
    border-radius: 5px;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-right .social-icon:hover {
    background-color: var(--accent-color);
}

.footer-right .subscribe-btn {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.footer-right .subscribe-btn:hover {
    background-color: var(--button-hover-bg);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Tablet y dispositivos medianos (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .destinations-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 768px) {
    /* Navbar responsive */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar .logo {
        font-size: 1.3em;
    }
    
    .navbar .logo img {
        height: 35px;
    }
    
    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .navbar nav ul li {
        margin-left: 0;
    }
    
    .navbar nav ul li a {
        font-size: 0.9em;
        padding: 8px 12px;
        display: block;
    }

    /* Hero Section responsive */
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.2em;
        padding: 0 20px;
    }

    .search-bar {
        flex-direction: column;
        padding: 15px;
        max-width: 90%;
    }
    
    .search-bar input, 
    .search-bar button {
        width: 100%;
    }

    /* Destinations Grid responsive */
    .destinations-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        margin-top: -40px;
        gap: 15px;
    }
    
    .destination-card img {
        height: 180px;
    }
    
    .destination-card span {
        font-size: 1.1em;
        padding: 12px;
    }

    /* Offers responsive */
    .main-offers {
        padding: 40px 0;
    }
    
    .main-offers h2 {
        font-size: 2em;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .offer-card img {
        width: 100%;
        height: 200px;
        border-radius: 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    
    .offer-card .explore-btn {
        justify-content: center;
    }

    /* Footer responsive */
    footer {
        padding: 30px 0;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-left, 
    .footer-center, 
    .footer-right {
        width: 100%;
    }
    
    .footer-right .social-icons {
        justify-content: center;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 480px) {
    /* Navbar mobile */
    .navbar .logo {
        font-size: 1.1em;
    }
    
    .navbar .logo img {
        height: 30px;
    }
    
    .navbar nav ul li a {
        font-size: 0.85em;
        padding: 6px 10px;
    }

    /* Hero mobile */
    .hero-section {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8em;
        padding: 0 15px;
        line-height: 1.2;
    }

    /* Destinations mobile */
    .destinations-grid {
        grid-template-columns: 1fr;
        margin-top: -30px;
        gap: 15px;
    }
    
    .destination-card img {
        height: 200px;
    }

    /* Offers mobile */
    .main-offers {
        padding: 30px 0;
    }
    
    .main-offers h2 {
        font-size: 1.6em;
        padding: 0 15px;
    }
    
    .offer-card h3 {
        font-size: 1.5em;
    }

    /* Footer mobile */
    footer {
        padding: 25px 0;
    }
    
    .footer-left .logo {
        font-size: 1.2em;
    }
    
    .footer-center h3 {
        font-size: 1.1em;
    }
    
    .footer-right .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}

/* Extra small devices (320px - 479px) */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar .logo span {
        font-size: 1em;
    }
    
    .hero-content h1 {
        font-size: 1.5em;
    }
    
    .destination-card span {
        font-size: 1em;
    }
    
    .main-offers h2 {
        font-size: 1.4em;
    }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
}
