/* 
   VacacionesyHoteles.com - Master CSS
   Optimized for PC (Grid) & Mobile (List)
*/

:root {
    --primary-color: #006ce4;
    --secondary-color: #ffb700;
    --text-color: #1a1a1a;
    --light-text: #474747;
    --bg-color: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    background-color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

nav {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 15px;
        width: 100%;
        border-radius: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.9;
    margin: 0;
}

/* Search Container */
.search-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    margin: -60px auto 0;
    position: relative;
    z-index: 100;
    max-width: 1100px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 80px 0 40px;
    color: var(--text-color);
}

/* Grids: Responsive Columns */
.grid-pc-4, .grid-pc-3 {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .grid-pc-4 { grid-template-columns: repeat(2, 1fr); } /* Tablet: 2 cols */
    .grid-pc-3 { grid-template-columns: repeat(3, 1fr); } /* PC/Tablet: 3 cols */
}

@media (min-width: 1024px) {
    .grid-pc-4 { grid-template-columns: repeat(4, 1fr); } /* PC: 4 cols */
}

/* Cards */
.dest-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.dest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.dest-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dest-info {
    padding: 20px;
    text-align: center;
}

.dest-info h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.dest-info p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 800;
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-item h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.feature-item p {
    color: var(--light-text);
    font-size: 1rem;
    margin: 0;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 100px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.5;
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 20px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    z-index: 9999;
    border: 1px solid #eee;
}

#cookie-banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    #cookie-banner .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

/* Legal Pages Content */
.legal-content {
    margin: 60px auto;
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
