/* --- Variables de Diseño Moderno --- */
:root {
    --color-primary: #8B4513;
    /* SaddleBrown - Tono tierra elegante */
    --color-primary-dark: #5D2906;
    --color-secondary: #DAA520;
    /* GoldenRod - Acento dorado */
    --color-accent: #E76F51;
    /* Terracotta - Vibrante para CTAs */

    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-text-main: #2D3436;
    --color-text-muted: #636E72;
    --color-border: #E0E0E0;

    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Tipografía --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-surface);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

section {
    padding: var(--spacing-xl) 0;
}

/* --- Header --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

nav ul li a {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
    padding: var(--spacing-xs) 0;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a:hover {
    color: var(--color-primary);
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-surface);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: var(--radius-sm);
    padding: 10px 0;
    top: 100%;
    left: 0;
    flex-direction: column;
    /* Sobrescribir flex row del ul padre */
    gap: 0;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
    color: var(--color-text-main);
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content li a:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

.dropdown-content li a::before {
    display: none;
    /* Quitar subrayado animado en dropdown */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hunucma.jpg') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-surface);
    padding: 0 var(--spacing-lg);
}

.hero-content {
    max-width: 800px;
    animation: fadeIn Up 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

/* --- Botones --- */
.primary-btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-text-main);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #C6951D;
}

/* --- Cards & Features --- */
.language-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-item {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-item:hover img {
    transform: scale(1.05);
}

.feature-item h3 {
    padding: var(--spacing-md) var(--spacing-md) 0;
    font-size: 1.3rem;
    color: var(--color-text-main);
}

.feature-item p {
    padding: 0 var(--spacing-md);
    font-size: 0.95rem;
    flex-grow: 1;
}

.feature-item .primary-btn {
    margin: var(--spacing-md);
    align-self: flex-start;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
    padding: 10px 24px;
}

.feature-item .primary-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-surface);
}

/* --- Evento Destacado (Custom Card) --- */
.evento-destacado {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    background-color: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.evento-destacado img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* --- Footer --- */
footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

footer p {
    color: inherit;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        height: 70vh;
    }

    header nav {
        flex-wrap: wrap;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: var(--spacing-md);
    }

    nav ul.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .hamburger {
        display: block;
    }

    .evento-destacado {
        flex-direction: column;
    }
}

/* Activities Page Premium Styles */
.activities-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../../assets/images/cenote.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.activities-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.activities-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    margin-top: -3rem;
    /* Overlap hero */
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #9ca3af;
    font-size: 1.1rem;
}

.search-form input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
}

.search-form .primary-btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.search-form .secondary-btn {
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: background 0.2s;
}

.search-form .secondary-btn:hover {
    background: #f3f4f6;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.activity-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.activity-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.activity-card:hover .activity-img img {
    transform: scale(1.1);
}

.activity-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    font-size: 1.1rem;
}

.activity-content {
    padding: 2rem;
}

.activity-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.activity-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #f3f4f6;
    color: var(--heading-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-details i {
    transition: transform 0.3s ease;
}

.btn-details:hover i {
    transform: translateX(5px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 24px;
    border: 2px dashed #e5e7eb;
}

.no-results i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .activities-hero h1 {
        font-size: 2.5rem;
    }

    .search-form {
        flex-direction: column;
        padding: 1.5rem;
        border-radius: 24px;
    }

    .search-form input {
        padding: 12px 12px 12px 40px;
    }

    .search-form .primary-btn {
        width: 100%;
    }
}