/* =====================================================
   LURKAIA - Design System
   Modern Tech Aesthetic (Stripe/Linear inspired)
   ===================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');

/* =====================================================
   1. CSS VARIABLES (Root)
   ===================================================== */
:root {
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Colors - Light Theme */
    --color-bg: #F5F7FA;
    --color-bg-alt: #EBEEF3;
    --color-card: #FFFFFF;
    --color-text: #1a1a1a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-accent: #4F46E5;
    --color-accent-hover: #4338CA;
    --color-accent-light: rgba(79, 70, 229, 0.1);
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    --gradient-accent: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-card: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Layout */
    --max-width: 1200px;
    --navbar-height: 80px;
}

/* =====================================================
   2. RESET & BASE STYLES
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* =====================================================
   3. TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.25rem;
    color: var(--color-text);
}

/* =====================================================
   4. LAYOUT UTILITIES
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

/* =====================================================
   5. IMMERSIVE HEADER (Overlay Style)
   ===================================================== */
.header-immersive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

/* Scrolled state - solid background */
.header-immersive.scrolled {
    position: fixed;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-immersive.scrolled .top-bar {
    background: rgba(0, 0, 0, 0.3);
}

/* Top Bar - Secondary Links */
.top-bar {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xs) 0;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.top-bar-social a:hover {
    color: #fff;
    transform: scale(1.1);
}

.top-bar-social svg {
    width: 16px;
    height: 16px;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    margin-right: var(--space-lg);
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: color var(--transition-fast);
}

.top-bar-links a:hover {
    color: #fff;
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Main Nav - Logo + Navigation */
.main-nav {
    background: transparent;
    padding: 6px 0;
}

.main-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.navbar-brand:hover {
    color: #a5b4fc;
    text-shadow: 0 2px 8px rgba(165, 180, 252, 0.4);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.navbar-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-sm) 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color var(--transition-fast);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: #fff;
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   6. HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-hero);
    color: #fff;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/img/hero.webp') center/100% 100% no-repeat;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(2.125rem, 5vw, 3.625rem);
    color: #d4af7a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.7);
}

.hero h1 span {
    color: #d4af7a !important;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-subtitle-mobile {
    display: none;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero Button - Transparent with golden border */
.btn-hero {
    background: rgba(0, 0, 0, 0.55);
    color: #d4af7a;
    border: 1px solid #d4af7a;
    padding: var(--space-md) var(--space-2xl);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0;
    transition: all var(--transition-base);
}

.btn-hero:hover {
    background: rgba(212, 175, 122, 0.15);
    color: #e8c88b;
    border-color: #e8c88b;
    transform: translateY(-2px);
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* =====================================================
   HERO INTERNAL (Internal Pages - 385px height)
   ===================================================== */
.hero-internal {
    position: relative;
    height: 385px;
    min-height: 385px;
    max-height: 385px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    color: #fff;
    overflow: hidden;
    padding-top: 80px;
}

.hero-internal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/img/hero-internal.webp') center/cover no-repeat;
    opacity: 0.35;
    z-index: 0;
}

.hero-internal .container {
    position: relative;
    z-index: 1;
}

.hero-internal .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-internal h1 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #d4af7a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 1);
}

.hero-internal p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Hero Minimal - Solo espacio para navegación */
.hero-minimal {
    height: 120px;
    min-height: 120px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: #1a1a1a;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb__list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb__list li:not(:last-child)::after {
    content: '/';
    color: rgba(255, 255, 255, 0.4);
    margin-left: var(--space-sm);
}

.breadcrumb__list a {
    color: #d4af7a;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb__list a:hover {
    color: #fff;
}

/* =====================================================
   7. BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}

/* =====================================================
   8. BENTO GRID & CARDS
   ===================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.bento-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bento-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card h3 {
    margin-bottom: var(--space-sm);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-weight: 600;
    color: var(--color-accent);
}

.card-link svg {
    transition: transform var(--transition-fast);
}

.card-link:hover svg {
    transform: translateX(4px);
}

/* Blog Cards */
.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card .card-image {
    height: 180px;
}

.blog-card-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.blog-card h4 {
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.blog-card:hover h4 {
    color: var(--color-accent);
}

/* =====================================================
   9. FEATURES SECTION
   ===================================================== */
.features {
    background: var(--color-card);
}

.feature-item {
    text-align: center;
    padding: var(--space-xl);
}

.feature-item .card-icon {
    margin: 0 auto var(--space-lg);
}

/* =====================================================
   10. CONTENT SECTION
   ===================================================== */
.content-section {
    padding: 30px 0 var(--space-4xl) 0;
}

/* Map page specific styles */
.content-section .content-wrapper h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.content-section .content-wrapper:first-child {
    padding-top: 0;
}

.content-section .map-intro {
    margin-bottom: var(--space-xl);
}

.content-section h1 {
    margin-bottom: var(--space-xl);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    color: var(--color-text-muted);
}

.content-wrapper p strong {
    color: var(--color-text);
    font-weight: 600;
}

/* First paragraph with drop cap */
.content-wrapper p:first-of-type::first-letter {
    float: left;
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
    padding-right: 0.5rem;
    padding-top: 0.1rem;
    color: var(--color-accent);
}

/* Note Box - Highlighted information */
.note-box {
    position: relative;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) auto;
    max-width: 800px;
    font-size: 1rem !important;
}

.note-box::before {
    content: '💡';
    position: absolute;
    top: var(--space-lg);
    left: calc(-1 * var(--space-lg) - 12px);
    background: var(--color-accent);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.note-box strong {
    color: var(--color-accent) !important;
}

.note-box p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   10.5 CATEGORY TABS (Filter System)
   ===================================================== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: 12px;
    padding: var(--space-md) 0;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.65rem 1.25rem;
    min-height: 60px;
    min-width: 160px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    line-height: 1.3;
}

.category-tab:hover {
    background: var(--color-card);
    border-color: var(--color-bg-alt);
    color: var(--color-text);
}

/* Modificador para tabs en grid (Creadores): 1 columna móvil / 4 desktop */
/* Modificador para tabs en grid (Creadores): 1 columna móvil / 4 desktop */
.category-tabs--4-cols {
    display: grid !important;
    grid-template-columns: 1fr;
    /* 1 column for mobile */
    width: 100%;

    /* Ensure absolutely no extra spacing on mobile */
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 0 var(--space-lg) 0 !important;
}

.category-tabs--4-cols .category-tab {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    /* Align start for list look */
    flex-direction: row;
    /* Icon left, text right */
    text-align: left;

    /* Optimize padding and height for list view */
    padding: 0.75rem 1rem;
    height: auto;
    min-height: auto;

    /* Remove any default margins */
    margin: 0 !important;
    margin-bottom: 2px !important;
    /* Tiny separator */

    gap: var(--space-md);
    background: var(--color-bg-alt);
    border: none;
    border-radius: 4px;
    /* Slight roundness */
}

.category-tabs--4-cols .category-tab__text {
    font-size: 0.95rem;
    line-height: 1.3;
}

.category-tabs--4-cols .category-tab__text br {
    display: none;
}

@media (min-width: 992px) {
    .category-tabs--4-cols {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
        gap: var(--space-md);
    }

    .category-tabs--4-cols .category-tab {
        flex-direction: row;
        text-align: left;
        padding: 0.65rem 1.25rem;
        gap: var(--space-sm);
    }

    .category-tabs--4-cols .category-tab__text {
        font-size: 0.9rem;
    }

    .category-tabs--4-cols .category-tab__text br {
        display: inline;
    }
}

.category-tab.active {
    background: var(--color-card);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.category-tab.active .category-tab__icon svg {
    transform: scale(1.1);
    color: var(--color-accent);
}

.category-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.category-tab__icon svg {
    width: 100%;
    height: 100%;
    transition: all var(--transition-fast);
}

.category-tab:hover .category-tab__icon svg {
    transform: scale(1.1);
}

/* Tab text as h3 - maintain original size */
h3.category-tab__text {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

/* Hidden cards when filtered */
.pilar-card.hidden {
    display: none;
}

/* No results message */
.no-results-message {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .category-tabs {
        gap: var(--space-xs);
    }

    .category-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: auto;
        min-height: 50px;
        flex: 1 1 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }

    .category-tab__icon {
        width: 20px;
        height: 20px;
    }

    h3.category-tab__text {
        font-size: 0.75rem;
    }
}

/* Map page tabs - selector for JS */
.category-tabs--map {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   10.6 LUGARES GRID (Map page places list)
   ===================================================== */
.lugares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.lugares-provincia {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.lugares-provincia:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.lugares-provincia__title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent-light);
}

.lugares-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lugares-list li {
    padding: var(--space-xs) 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-bg-alt);
    transition: color var(--transition-fast);
}

.lugares-list li:last-child {
    border-bottom: none;
}

.lugares-list li:hover {
    color: var(--color-text);
}

.lugares-territory {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
}

.lugares-provincia--shared {
    grid-column: 1 / -1;
}

.lugares-provincia--shared .lugares-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0 var(--space-xl);
}

@media (max-width: 768px) {
    .lugares-grid {
        grid-template-columns: 1fr;
    }

    .lugares-provincia--shared .lugares-list {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   11. FOOTER
   ===================================================== */
.footer {
    background: var(--gradient-dark);
    color: #fff;
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: #fff;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* =====================================================
   12. FORMS
   ===================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-card);
    border: 2px solid var(--color-bg-alt);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* =====================================================
   13. COOKIE BANNER
   ===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-card);
    padding: var(--space-lg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-banner p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: var(--space-sm);
}

.cookie-banner .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
}

/* =====================================================
   14. 404 PAGE
   ===================================================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-content h2 {
    margin-bottom: var(--space-lg);
}

.error-content p {
    margin-bottom: var(--space-xl);
}

/* =====================================================
   15. UTILITIES
   ===================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-md);
}

.mt-2 {
    margin-top: var(--space-xl);
}

.mt-3 {
    margin-top: var(--space-3xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-md);
}

.mb-2 {
    margin-bottom: var(--space-xl);
}

.mb-3 {
    margin-bottom: var(--space-3xl);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =====================================================
   16. RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .bento-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }

    /* Hide top bar on mobile */
    .top-bar {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: #0f172a;
        padding: var(--space-lg) var(--space-xl);
        gap: var(--space-xs);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-nav.active {
        transform: translateX(0);
    }

    .navbar-nav a {
        font-size: 1.1rem;
        padding: var(--space-sm) var(--space-md);
        color: #fff;
        text-shadow: none;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.05);
    }

    .navbar-nav a:hover,
    .navbar-nav a.active {
        color: #a5b4fc;
        background: rgba(165, 180, 252, 0.15);
    }

    .header-immersive.scrolled .navbar-nav {
        top: 70px;
    }

    .hero {
        height: 700px;
        min-height: 700px;
        max-height: 700px;
        text-align: center;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-decoration {
        display: none;
    }

    .hero::before {
        background: url('../assets/img/hero-mobile.webp') center/cover no-repeat;
    }

    .hero-subtitle-desktop {
        display: none;
    }

    .hero-subtitle-mobile {
        display: block;
    }

    .bento-grid,
    .bento-grid-2,
    .bento-grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .card {
        padding: var(--space-lg);
    }
}

/* =====================================================
   17. ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =====================================================
   18. TARJETA HORIZONTAL PILAR (3 columnas)
   Layout: Imagen (25%) | Contenido (50%) | Botón (25%)
   ===================================================== */

/* --- Container de la Tarjeta --- */
.pilar-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pilar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- Columna Izquierda: Imagen (25%) --- */
.pilar-card__image {
    flex: 0 0 25%;
    height: 180px;
    overflow: hidden;
}

.pilar-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.pilar-card:hover .pilar-card__image img {
    transform: scale(1.05);
}

/* --- Columna Central: Contenido (50%) --- */
.pilar-card__content {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: #ffffff;
}

/* --- Título --- */
.pilar-card__title {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* --- Descripción --- */
.pilar-card__description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* --- Tags/Chips --- */
.pilar-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pilar-card__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border: 1px solid var(--color-bg-alt);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pilar-card__tag:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

/* --- Columna Derecha: Botón (20%) --- */
.pilar-card__action {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: #ffffff;
    position: relative;
}

/* Separador vertical con espacio arriba y abajo */
.pilar-card__action::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 1px;
    background: #e5e7eb;
}

/* --- Botón Ver Ficha (Verde) --- */
.pilar-card__btn {
    display: inline-block;
    background: #10B981;
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.pilar-card__btn:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.pilar-card__btn:focus-visible {
    outline: 2px solid #f4623a;
    outline-offset: 2px;
}

/* --- Grid de Tarjetas Pilar --- */
.pilar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* --- Responsive Tablet (< 992px) --- */
@media (max-width: 992px) {
    .pilar-card__image {
        flex: 0 0 30%;
    }

    .pilar-card__content {
        flex: 1;
    }

    .pilar-card__action {
        flex: 0 0 auto;
        min-width: 140px;
    }
}

/* --- Responsive Móvil (< 768px) --- */
@media (max-width: 768px) {
    .pilar-card {
        flex-direction: column;
    }

    .pilar-card__image {
        flex: none;
        width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: hidden;
    }

    .pilar-card__image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .pilar-card__content {
        flex: none;
        padding: var(--space-lg);
    }

    .pilar-card__title {
        font-size: 1.2rem;
    }

    .pilar-card__action {
        flex: none;
        width: 100%;
        padding: 0 var(--space-lg) var(--space-lg);
        justify-content: flex-start;
    }

    .pilar-card__btn {
        width: 100%;
    }
}

/* =====================================================
   18.5 TRADITION CARDS (2 per row, horizontal layout)
   ===================================================== */

/* --- Grid de Tarjetas Tradiciones (2 por fila) --- */
.tradition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

/* --- Tarjeta Individual Tradición --- */
.tradition-card {
    display: flex;
    flex-direction: row;
    background: var(--color-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tradition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* --- Imagen (33% izquierda) --- */
.tradition-card__image {
    flex: 0 0 33.333%;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.tradition-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.tradition-card:hover .tradition-card__image img {
    transform: scale(1.05);
}

/* --- Contenido (67% derecha) --- */
.tradition-card__content {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tradition-card__title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.tradition-card__description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.tradition-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    align-self: flex-start;
}

.tradition-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    color: #fff;
}

/* --- Responsive Tablet (< 1024px) --- */
@media (max-width: 1024px) {
    .tradition-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive Móvil (< 768px) --- */
@media (max-width: 768px) {
    .tradition-card {
        flex-direction: column;
    }

    .tradition-card__image {
        flex: none;
        width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: hidden;
    }

    .tradition-card__image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .tradition-card__content {
        padding: var(--space-lg);
    }

    .tradition-card__title {
        font-size: 1.1rem;
    }

    .tradition-card__btn {
        width: 100%;
    }
}

/* --- Estilos específicos para página Tradiciones --- */
.page-tradiciones .tradition-card {
    height: 150px;
}

.page-tradiciones .tradition-card__image {
    min-height: 150px;
    max-height: 150px;
}

.page-tradiciones .tradition-card__btn {
    display: none;
}

.page-tradiciones .tradition-card__content {
    justify-content: center;
}

.page-tradiciones .tradition-card__description {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-tradiciones .tradition-card {
        height: auto;
        min-height: auto;
    }

    .page-tradiciones .tradition-card__image {
        min-height: auto;
        max-height: none;
    }
}

/* --- Estilos específicos para página Deportes --- */
.page-deportes .tradition-card {
    height: 150px;
}

.page-deportes .tradition-card__image {
    min-height: 150px;
    max-height: 150px;
}

.page-deportes .tradition-card__btn {
    display: none;
}

.page-deportes .tradition-card__content {
    justify-content: center;
}

.page-deportes .tradition-card__description {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-deportes .tradition-card {
        height: auto;
        min-height: auto;
    }

    .page-deportes .tradition-card__image {
        min-height: auto;
        max-height: none;
    }
}

/* --- Estilos específicos para página Blog --- */
.page-blog .tradition-card {
    height: 150px;
}

.page-blog .tradition-card__image {
    min-height: 150px;
    max-height: 150px;
}

.page-blog .tradition-card__btn {
    display: none;
}

.page-blog .tradition-card__content {
    justify-content: center;
}

.page-blog .tradition-card__description {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-blog .tradition-card {
        height: auto;
        min-height: auto;
    }

    .page-blog .tradition-card__image {
        min-height: auto;
        max-height: none;
    }
}

/* =====================================================
   19. ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =====================================================
   20. GLOSSARY STYLES
   ===================================================== */
.glossary-list {
    margin-bottom: var(--space-xl);
}

.glossary-list dt {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
    margin-top: var(--space-lg);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.02em;
}

.glossary-list dt:first-child {
    margin-top: 0;
}

.glossary-list dd {
    margin-left: 0;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
    padding-left: var(--space-lg);
    border-left: 3px solid var(--color-accent-light);
    line-height: 1.6;
}

/* =====================================================
   ARCHIVO CULTURAL - Cards Grid
   ===================================================== */
.archivo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.archivo-card {
    position: relative;
    background: var(--color-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.archivo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.archivo-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.archivo-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.archivo-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.archivo-card:hover .archivo-card__image img {
    transform: scale(1.05);
}

.archivo-card__content {
    padding: var(--space-xl);
}

.archivo-card__title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archivo-card__description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(0.95rem * 1.6 * 3);
}

.archivo-card__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    text-decoration: none;
}

.archivo-card__btn:hover {
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
    color: #fff;
    transform: translateX(4px);
}

/* Archivo Grid Responsive */
@media (max-width: 1024px) {
    .archivo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .archivo-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .archivo-card__image {
        height: auto;
    }

    .archivo-card__image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .archivo-card__content {
        padding: var(--space-lg);
    }

    .archivo-card__title {
        font-size: 1.2rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =====================================================
   12. CATEGORY GRID SECTION (Home)
   ===================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    width: 100%;
}

.category-card {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   11. DUAL BANNER SECTION (Home)
   ===================================================== */
.dual-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    width: 100%;
}

.banner-link {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.banner-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.banner-link:hover .banner-img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .dual-banner-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* =====================================================
   13. ROUTES & MAPS SECTION (Home)
   ===================================================== */
.routes-card {
    display: flex;
    align-items: stretch;
    /* Ensure both halves are equal height */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    /* padding removed to handle halves differently */
}

.routes-image-wrapper {
    flex: 1;
    /* 50% width */
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    /* 25px top/bottom/left/right padding from box border */
    background-color: #fff;
    /* Match card bg */
}

.routes-image-wrapper img {
    max-width: 400px;
    max-height: 400px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    /* Rounded corners for the image itself */
}

.routes-content {
    flex: 1;
    /* 50% width */
    width: 50%;
    padding: var(--space-xl);
    /* Uniform padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically centered */
    align-items: center;
    /* Horizontally centered */
    text-align: center;
    /* Text centered */
}

.routes-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    /* Reduced to make room for separator */
}

.routes-separator {
    width: 100%;
    /* Or fixed width if preferred, but requested "below h2" implied width related to content or container? "Coloca un separador... debajo del h2". Typically a divider. */
    height: 2px;
    background-color: #e5e7eb;
    /* Light grey */
    margin-bottom: var(--space-md);
    max-width: 100%;
}

.routes-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.routes-buttons {
    display: flex;
    gap: var(--space-md);
}

/* Responsive */
@media (max-width: 900px) {
    .routes-card {
        flex-direction: column;
        padding: 0;
    }

    .routes-image-wrapper {
        width: 100%;
        padding: 25px;
    }

    .routes-content {
        width: 100%;
        padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
        align-items: flex-start;
    }

    .routes-subtitle {
        text-align: left;
    }

    .routes-buttons {
        justify-content: flex-start;
    }
}

/* =====================================================
   14. FOOTER
   ===================================================== */
.footer {
    background: #1e293b;
    /* Dark Blue from Lurkaia */
    color: #e5e5e5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    color: #fff;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    color: #cbd5e1;
    /* Slate-300 */
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: #fff;
}

/* 2-Column Navigation Internal Grid */
.footer-nav-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    color: #cbd5e1;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: #fff;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #94a3b8;
    /* Slate-400 */
}

/* NEWSLETTER FORM */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    font-size: 0.9rem;
    font-family: inherit;
    color: #fff;
}

.footer-input::placeholder {
    color: #94a3b8;
}

.footer-input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.footer-privacy {
    font-size: 0.8rem;
    color: #cbd5e1;
    /* Slate-300 */
    margin: var(--space-xs) 0;
}

.footer-privacy label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    cursor: pointer;
}

.footer-privacy input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #fff;
}

.footer-privacy a {
    color: #fff;
    text-decoration: underline;
}

.footer-btn {
    width: 100%;
    border-radius: 0;
    padding: var(--space-sm);
    text-transform: none;
    font-weight: 500;
}

.footer-btn:disabled {
    background: #475569;
    /* Slate-600 */
    color: #cbd5e1;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}


/* --- BOTONES COMPARTIR LURKAIA (SOLO ICONOS) --- */
.share-buttons {
    margin: 2rem 0;
    padding: 1rem 0;
    /* Líneas separadoras opcionales, bórralas si no te gustan */
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    gap: 10px;
    /* Espacio entre botones */
    align-items: center;
    flex-wrap: wrap;
}

.share-label {
    font-weight: bold;
    color: #D4AF37;
    /* Dorado */
    margin-right: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Estilo base del botón redondo */
.btn-share {
    width: 42px;
    /* Ancho fijo */
    height: 42px;
    /* Alto fijo igual para que sea cuadrado/redondo */
    border-radius: 50%;
    /* 50% lo hace perfectamente redondo */
    display: inline-flex;
    justify-content: center;
    /* Centra horizontalmente el icono */
    align-items: center;
    /* Centra verticalmente el icono */
    text-decoration: none;
    color: white !important;
    /* El color del icono SVG */
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    padding: 0;
    /* Quitamos el padding que tenía antes para texto */
}

/* Tamaño del icono SVG dentro del botón */
.btn-share svg {
    width: 22px;
    height: 22px;
    /* El color se hereda del 'color' del botón padre */
}

/* Efecto Hover */
.btn-share:hover {
    transform: translateY(-3px);
    /* Se eleva un poco */
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra suave */
}

/* Colores de Marca */
.whatsapp {
    background-color: #25D366;
}

.facebook {
    background-color: #1877F2;
}

/* El de X lo pongo negro con un borde sutil para que se vea en fondos oscuros */
.twitter {
    background-color: #000000;
    border: 1px solid #333;
}

/* El nativo dorado, con el icono negro para contraste */
.native {
    background-color: #D4AF37;
    color: #1a1a1a !important;
}

/* Modificador para integrar con etiquetas (sin bordes/margenes en desktop) */
.share-buttons--inline {
    margin: 0;
    padding: 0;
    border: none;
}

@media (max-width: 768px) {
    .share-buttons--inline {
        width: 100%;
        /* Forzar salto de línea si no lo hace el flex */
    }
}

/* =====================================================
   CONTACT FORM
   ===================================================== */
.contact-form-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-soft);
}

/* Honeypot - hidden from users */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Form rows (2-column layout) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* Individual form group */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
}

.form-group .required {
    color: var(--color-error);
    font-weight: 700;
}

.form-group .optional {
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

/* Inputs, textareas, selects */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 2px solid var(--color-bg-alt);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group input.has-error,
.form-group textarea.has-error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.35 3.175 1.4 2.1 6 6.7l4.6-4.6 1.05 1.075z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Textarea footer (char count + error) */
.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xs);
}

.char-count {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-left: auto;
}

.char-count.near-limit {
    color: var(--color-warning);
    font-weight: 600;
}

/* Error messages */
.error-message {
    display: block;
    font-size: 0.8rem;
    color: var(--color-error);
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-base);
}

.error-message.visible {
    min-height: 1.2em;
    max-height: 3em;
    opacity: 1;
    margin-top: var(--space-xs);
}

/* Checkbox */
.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-checkbox a:hover {
    color: var(--color-accent-hover);
}

/* Submit button */
.form-actions {
    margin-top: var(--space-xl);
}

.form-submit {
    width: 100%;
    padding: 1rem var(--space-xl);
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Response messages */
.form-response {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form {
        padding: var(--space-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}