/*
Theme Name: Rutapsy
Theme URI: https://rutapsy.com
Author: Rutapsy
Author URI: https://rutapsy.com
Description: Festival-first travel theme with dark cosmic aesthetic. Features custom post types for Festivals and Routes, autocomplete country search, and full Elementor compatibility.
Version: 6.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rutapsy
Tags: dark, festivals, travel, custom-colors, custom-menu, featured-images, translation-ready, full-width-template
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --rutapsy-green: #4CAF50;
    --rutapsy-green-hover: #43A047;

    /* Primary Colors */
    --color-primary: #4CAF50;
    --color-primary-dark: #388E3C;
    --color-primary-glow: rgba(76, 175, 80, 0.3);

    /* Background Colors */
    --color-bg-dark: #0D0D1A;
    --color-bg-medium: #1A1A2E;
    --color-bg-light: #252542;
    --color-bg-card: #16213E;

    /* Accent Colors */
    --color-accent-purple: #8B5CF6;
    --color-accent-pink: #EC4899;
    --color-accent-blue: #3B82F6;

    /* Text Colors */
    --color-text-white: #FFFFFF;
    --color-text-gray: #A0A0A0;
    --color-text-muted: #6B7280;

    /* Vibe Colors */
    --color-vibe-party: #F59E0B;
    --color-vibe-chill: #10B981;
    --color-vibe-culture: #EC4899;

    /* Gradients */
    --gradient-cosmic: linear-gradient(135deg, #0D0D1A 0%, #1A1A2E 50%, #16213E 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-glow: 0 0 20px var(--color-primary-glow);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--rutapsy-green-hover);
}

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--color-text-gray);
    font-size: 1.1rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-left {
    flex: 1;
}

.header-center {
    flex: 0 0 auto;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Navigation */
.main-nav {
    position: relative;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
    position: relative;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > .current-menu-item > a,
.main-nav > ul > .current-menu-ancestor > a {
    color: var(--color-primary);
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > .current-menu-item > a::after,
.main-nav > ul > .current-menu-ancestor > a::after {
    width: 100%;
}

.main-nav .menu-item-has-children > a {
    padding-right: 1rem;
}

.main-nav .menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    transition: transform var(--transition-fast);
}

.main-nav .menu-item-has-children.is-open > a::before {
    transform: translateY(-20%) rotate(225deg);
}

.main-nav .sub-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1002;
}

.main-nav > ul > .menu-item-has-children > .sub-menu {
    left: 0;
    width: clamp(260px, 34vw, 560px);
    max-width: calc(100vw - 2rem);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 0.9rem;
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(13, 13, 26, 0.98) 0%, rgba(22, 33, 62, 0.97) 100%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(76, 175, 80, 0.12) inset;
    transform: translateY(10px);
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem;
}

.main-nav > ul > .menu-item-has-children.is-open > .sub-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.main-nav > ul > .menu-item-has-children > .sub-menu > li {
    width: 100%;
    min-height: 56px;
    padding: 0.7rem 0.75rem 0.75rem;
    border: 1px solid rgba(76, 175, 80, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.main-nav > ul > .menu-item-has-children > .sub-menu > li > a {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.45rem;
    padding: 0;
    color: #eefcf0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

.main-nav > ul > .menu-item-has-children > .sub-menu > li > a:only-child {
    margin-bottom: 0;
}

.main-nav .menu-country-flag {
    display: inline-flex;
    margin-right: 0.45rem;
    font-size: 0.95em;
    line-height: 1;
}

.main-nav > ul > .menu-item-has-children > .sub-menu > li > a::after,
.main-nav > ul > .menu-item-has-children > .sub-menu > li > a::before {
    display: none;
}

.main-nav > ul > .menu-item-has-children > .sub-menu > li > .sub-menu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.main-nav > ul > .menu-item-has-children > .sub-menu > li > .sub-menu li {
    width: auto;
}

.main-nav > ul > .menu-item-has-children > .sub-menu > li > .sub-menu a {
    display: inline-flex;
    width: auto;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(76, 175, 80, 0.45);
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.14);
    color: #d8f4dc;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
}

.main-nav > ul > .menu-item-has-children > .sub-menu > li > .sub-menu a:hover {
    background: rgba(76, 175, 80, 0.28);
    border-color: rgba(76, 175, 80, 0.7);
    color: #ffffff;
}

.main-nav .sub-menu a::after {
    display: none;
}

.main-nav .sub-menu .menu-item-has-children > a::before {
    display: none;
}

.main-nav .sub-menu a {
    text-transform: none;
    letter-spacing: 0.02em;
}

.main-nav .sub-menu .sub-menu {
    transform: none;
}

.main-nav .menu-item-has-children.is-open > a {
    color: var(--color-primary);
}

/* Logo */
.site-logo img {
    height: 60px;
    width: auto;
    transition: height var(--transition-base), transform 0.6s ease;
}

.site-logo img:hover {
    transform: scale(1.12);
}

.scrolled .site-logo img {
    height: 45px;
}

/* Social Icons */
.header-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--color-text-gray);
    transition: fill var(--transition-fast);
}

.social-icon:hover svg {
    fill: var(--color-primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.lang-switcher a {
    color: var(--color-text-muted);
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
}

.lang-switcher a.active {
    color: var(--color-primary);
    background: rgba(76, 175, 80, 0.15);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-white);
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 0.5rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(76, 175, 80, 0.5));
}

/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg-dark) 0%, rgba(13, 13, 26, 0.5) 50%, rgba(13, 13, 26, 0.6) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-xs);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   CARDS — FESTIVAL
   ========================================================================== */
.festivals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.festival-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.festival-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.festival-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.festival-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.festival-card:hover .festival-card-image img {
    transform: scale(1.05);
}

.festival-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.festival-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.25rem;
}

.festival-card-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
}

.festival-card-title a {
    color: var(--color-text-white);
}

.festival-card-title a:hover {
    color: var(--color-primary);
}

.festival-card-info {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.festival-card-info-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--color-text-gray);
    margin: 0;
}

.festival-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.festival-card-content .btn {
    margin-top: auto;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-vibe {
    background: rgba(76, 175, 80, 0.15);
    color: var(--color-primary);
}

/* ==========================================================================
   CARDS — ROUTE
   ========================================================================== */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.route-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform var(--transition-base);
}

.route-card:hover {
    transform: translateY(-4px);
}

.route-card-image {
    height: 180px;
    overflow: hidden;
    background: var(--gradient-cosmic);
}

.route-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-card-content {
    padding: 1.25rem;
}

.route-card-vibe {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.vibe-party { background: rgba(245, 158, 11, 0.15); color: var(--color-vibe-party); }
.vibe-chill { background: rgba(16, 185, 129, 0.15); color: var(--color-vibe-chill); }
.vibe-culture { background: rgba(236, 72, 153, 0.15); color: var(--color-vibe-culture); }

.route-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.route-card-title a {
    color: var(--color-text-white);
}

.route-card-title a:hover {
    color: var(--color-primary);
}

.route-card-description {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.route-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.route-card-days {
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

/* ==========================================================================
   CARDS — BLOG
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.25rem;
}

.blog-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.blog-card-category {
    color: var(--color-primary);
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: var(--color-text-white);
}

.blog-card h3 a:hover {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ==========================================================================
   FESTIVAL ARCHIVE — SIDEBAR LAYOUT (Booking-style)
   ========================================================================== */
.fest-archive-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fest-result-count {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

.fest-archive-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar Filters — Booking-style */
.fest-filters {
    position: sticky;
    top: 100px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
}

.fest-filter-group h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-gray);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fest-filter-search {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.fest-filter-search:focus {
    border-color: var(--color-primary);
}

.fest-filter-search::placeholder {
    color: var(--color-text-muted);
}

.fest-filter-options {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.fest-filter-options::-webkit-scrollbar {
    width: 4px;
}

.fest-filter-options::-webkit-scrollbar-track {
    background: transparent;
}

.fest-filter-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.fest-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.88rem;
    color: var(--color-text-white);
}

.fest-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fest-checkbox input[type="radio"],
.fest-checkbox input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.fest-checkbox-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fest-filter-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.fest-filter-clear {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.fest-filter-clear:hover {
    background: rgba(76, 175, 80, 0.1);
}

/* Festival Grid — 3 columns */
.fest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ==========================================================================
   INFO BOX — SINGLE FESTIVAL
   ========================================================================== */
.info-box {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-md);
}

.info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.info-value a {
    color: var(--color-primary);
}

/* ==========================================================================
   ENTRY CONTENT
   ========================================================================== */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-gray);
}

.entry-content h2, .entry-content h3 {
    color: var(--color-text-white);
    margin: 2rem 0 1rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.entry-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ==========================================================================
   NEARBY SPOTS
   ========================================================================== */
.nearby-spots-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-medium);
}

.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.spot-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.spot-card-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.spot-card-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.spot-card-content {
    padding: 1rem;
}

.spot-card-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.spot-card-distance {
    font-size: 0.8rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.spot-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

/* ==========================================================================
   VIDEO GRID
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--color-bg-card);
    transition: background var(--transition-base);
}

.video-placeholder:hover {
    background: var(--color-bg-light);
}

.video-placeholder svg {
    width: 60px;
    height: auto;
    transition: transform var(--transition-base);
}

.video-placeholder:hover svg {
    transform: scale(1.1);
}

.video-placeholder span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-it-works-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.how-step {
    position: relative;
    overflow: hidden;
}

.how-step-bg {
    height: 380px;
}

.how-step-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how-step-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
}

.how-step-content h3 {
    color: #fff;
    font-size: 1.4rem;
}

/* ==========================================================================
   FEATURED GUIDE
   ========================================================================== */
.guia-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.guia-featured-image {
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.guia-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guia-featured-content {
    padding: 2.5rem;
}

.guia-featured-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.guia-featured-content p {
    color: var(--color-text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.guia-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
}

.guia-featured-btn:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.post-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 58vh;
    padding: 8rem 0 3.5rem;
    overflow: hidden;
}

.post-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 16, 0.18) 0%, rgba(5, 8, 16, 0.66) 60%, rgba(5, 8, 16, 0.94) 100%),
        radial-gradient(circle at top right, rgba(57, 255, 20, 0.12), transparent 38%);
}

.post-hero-bg,
.post-hero-fallback {
    position: absolute;
    inset: 0;
}

.post-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-fallback {
    background: var(--gradient-cosmic);
}

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

.post-hero-content {
    max-width: 860px;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
}

.post-back-link:hover {
    color: var(--color-primary);
}

.post-back-link::before {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.post-hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-hero h1 {
    max-width: 13ch;
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 0.96;
    color: #fff;
}

.post-hero-excerpt {
    max-width: 58ch;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.75;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(7, 10, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.88rem;
    backdrop-filter: blur(12px);
}

.post-meta-bar svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.post-body {
    padding: 3rem 0 4.5rem;
}

.post-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 320px);
    gap: 2rem;
    align-items: start;
}

.post-article-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.post-article-inner {
    padding: 2.2rem;
}

.post-content {
    color: var(--color-text-gray);
}

.post-content > *:last-child {
    margin-bottom: 0;
}

.post-content a {
    color: var(--color-primary);
}

.post-content strong {
    color: var(--color-text-white);
}

.post-content h2,
.post-content h3 {
    line-height: 1.15;
}

.post-sidebar {
    position: sticky;
    top: 106px;
    display: grid;
    gap: 1rem;
}

.post-sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 1.35rem;
}

.post-sidebar-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.post-sidebar-card p {
    color: var(--color-text-gray);
    line-height: 1.7;
}

.post-sidebar-card--highlight {
    background: linear-gradient(180deg, rgba(57, 255, 20, 0.08), rgba(57, 255, 20, 0.03));
    border-color: rgba(57, 255, 20, 0.16);
}

.post-sidebar-eyebrow {
    margin-bottom: 0.55rem;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-sidebar-list,
.post-sidebar-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-sidebar-list li,
.post-sidebar-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-gray);
    line-height: 1.6;
}

.post-sidebar-list li:first-child,
.post-sidebar-links li:first-child {
    padding-top: 0;
}

.post-sidebar-list li:last-child,
.post-sidebar-links li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.post-sidebar-links a {
    color: var(--color-text-white);
}

.post-sidebar-links a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   SINGLE POST GALLERY
   ========================================================================== */
.post-gallery {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-gallery-header {
    margin-bottom: 1.25rem;
}

.post-gallery-header h2 {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}

.post-gallery-header p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.post-gallery-item {
    display: block;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        transform var(--transition-base),
        border-color var(--transition-fast);
}

.post-gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 255, 20, 0.35);
}

.post-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

/* ==========================================================================
   FLOATING SEARCH BAR
   ========================================================================== */
.festival-selector-floating {
    background: rgba(22, 33, 62, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-results li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.95rem;
}

.autocomplete-results li:hover,
.autocomplete-results li.highlighted {
    background: rgba(76, 175, 80, 0.1);
}

/* ==========================================================================
   EMAIL SIGNUP
   ========================================================================== */
.email-signup {
    display: flex;
    gap: 0.75rem;
}

.email-signup input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
}

.email-signup input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-bg-medium);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--color-text-white);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: background var(--transition-fast);
}

.footer-social a:hover {
    background: rgba(76, 175, 80, 0.2);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--color-text-gray);
}

.footer-social a:hover svg {
    fill: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-affiliate-notice {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: bottom var(--transition-slow);
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner-content p {
    font-size: 0.9rem;
    color: var(--color-text-gray);
}

/* ==========================================================================
   COMING SOON (TIENDA)
   ========================================================================== */
.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
    padding-top: 120px;
}

.coming-soon-content {
    max-width: 500px;
}

.coming-soon h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.text-glow {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary-glow);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a {
    background: var(--color-bg-card);
    color: var(--color-text-gray);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination span.current {
    background: var(--color-primary);
    color: #fff;
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */
.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    grid-column: 1 / -1;
}

.no-results h3 {
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--color-text-gray);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.contact-form-card > p {
    color: var(--color-text-gray);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-gray);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group select {
    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='%23A0A0A0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        repeat-y,
        repeat-y,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--color-bg-card);
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-info-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-md);
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.contact-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.contact-info-value {
    font-weight: 500;
}

.contact-info-value a {
    color: var(--color-text-white);
}

.contact-info-value a:hover {
    color: var(--color-primary);
}

.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: background var(--transition-fast);
}

.contact-social a:hover {
    background: rgba(76, 175, 80, 0.2);
}

.contact-social svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text-gray);
}

.contact-social a:hover svg {
    fill: var(--color-primary);
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success.active {
    display: block;
}

.form-success h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .fest-archive-layout {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }

    .fest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .festivals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .guia-featured {
        grid-template-columns: 1fr;
    }

    .post-body-grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }

    .post-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-hero {
        min-height: 50vh;
        padding: 7rem 0 2.5rem;
    }

    .post-hero h1 {
        max-width: none;
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .post-hero-excerpt {
        font-size: 1rem;
    }

    .post-article-inner {
        padding: 1.5rem;
    }

    .post-sidebar-card {
        padding: 1.15rem;
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .header-inner {
        gap: 0.75rem;
    }

    .site-logo img,
    .site-logo .custom-logo {
        max-height: 56px;
        width: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg-dark);
        padding: 5rem 2rem 2rem;
        transition: left var(--transition-base);
        z-index: 999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .main-nav > ul > li {
        width: 100%;
    }

    .main-nav > ul > li > a {
        font-size: 1.1rem;
    }

    .main-nav .menu-item-has-children > a {
        width: 100%;
        justify-content: space-between;
        padding-right: 1.25rem;
    }

    .main-nav .sub-menu {
        position: static;
        top: auto;
        left: auto;
        min-width: 0;
        margin: 0.5rem 0 0 0.5rem;
        padding: 0;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .main-nav > ul > .menu-item-has-children > .sub-menu {
        width: auto;
        max-width: none;
        margin: 0.5rem 0 0 0.5rem;
        padding: 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .main-nav .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .main-nav > ul > .menu-item-has-children.is-open > .sub-menu {
        transform: none;
    }

    .main-nav > ul > .menu-item-has-children > .sub-menu > li {
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .main-nav > ul > .menu-item-has-children > .sub-menu > li > a {
        margin: 0;
        padding: 0.45rem 0.75rem;
        color: var(--color-text-white);
        font-size: 0.95rem;
        font-weight: 600;
    }

    .main-nav > ul > .menu-item-has-children > .sub-menu > li > .sub-menu {
        gap: 0.15rem;
        margin-left: 0.5rem;
    }

    .main-nav > ul > .menu-item-has-children > .sub-menu > li > .sub-menu a {
        padding: 0.35rem 0.75rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--color-text-gray);
        font-size: 0.9rem;
    }

    .main-nav .sub-menu a {
        padding: 0.45rem 0.75rem;
        font-size: 0.95rem;
    }

    .header-social {
        display: none;
    }

    .header-right {
        gap: 0.5rem;
    }

    .fest-archive-layout {
        grid-template-columns: 1fr;
    }

    .fest-filters {
        position: static;
    }

    .fest-grid {
        grid-template-columns: 1fr;
    }

    .festivals-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works-flow {
        grid-template-columns: 1fr;
    }

    .blog-grid,
    .spots-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .fest-archive-topbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .email-signup {
        flex-direction: column;
    }

    .festival-card-content {
        gap: 1rem;
        padding: 1.1rem;
    }

    .festival-card-title {
        font-size: 1.05rem;
    }

    .festival-card-info-row {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .post-meta-bar span {
        width: 100%;
        justify-content: flex-start;
    }

    .post-article-inner {
        padding: 1.25rem;
    }

    .container {
        padding: 0 1rem;
    }

    .page-hero {
        min-height: 25vh;
    }

    .festival-selector-floating {
        padding: 1rem;
    }

    .festival-card-image {
        height: 190px;
    }

    .festival-card-content {
        gap: 1.1rem;
        padding: 1rem;
    }

    .festival-card-info-row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .section-header p,
    .festival-card-title,
    .festival-card-info-row,
    .info-value,
    .entry-content,
    .page-hero-content p {
        overflow-wrap: anywhere;
    }
}
/* Make cards full height inside grid */
.fest-grid .fest-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make card body expand */
.fest-grid .fest-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Push button to bottom */
.fest-grid .fest-card-body .btn {
    margin-top: auto;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================
   COUNTRY INFO TEMPLATE — RUTAPSY DARK INTEGRATION
========================================================== */

.country-info {
    width: 100%;
}

/* ================= HERO ================= */

.country-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.country-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.country-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--color-bg-dark) 0%,
        rgba(13,13,26,0.6) 50%,
        rgba(13,13,26,0.4) 100%
    );
    z-index: 1;
}

.country-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 120px; /* accounts for fixed header */
}

.country-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
}

.country-tagline {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ================= NAV (DARK STICKY) ================= */

.country-nav {
    position: sticky;
    top: 100px; /* header height */
    background: rgba(13,13,26,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 500;
}

.country-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    overflow-x: auto;
}

.country-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-gray);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.country-nav a:hover {
    color: var(--color-primary);
}

/* ================= SECTIONS ================= */

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

.country-section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
}

/* ================= FACTS ================= */

.country-facts {
    background: var(--color-bg-medium);
    padding: var(--spacing-2xl) 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

.fact-item {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    transition: transform var(--transition-base);
}

.fact-item:hover {
    transform: translateY(-3px);
}

.fact-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.fact-item span {
    font-weight: 600;
    color: var(--color-text-white);
}

/* ================= CARDS ================= */

.country-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-xl);
}

.country-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

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

.country-card h3 {
    padding: 1.25rem;
    font-size: 1.1rem;
    color: var(--color-text-white);
}

.country-card h3:hover {
    color: var(--color-primary);
}

/* ================= CONTENT ================= */

.country-content,
.itinerary-content,
.tips-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-gray);
}

.country-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-white);
}

/* ================= RELATED SECTION ================= */

.country-related {
    background: var(--color-bg-medium);
    padding: var(--spacing-2xl) 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .country-hero {
        min-height: 55vh;
    }

    .country-nav {
        top: 80px;
    }

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

    .country-cards-grid {
        grid-template-columns: 1fr;
    }

}
/* ==========================================================
   COUNTRY TEMPLATE (MODERN) — RUTAPSY
========================================================== */

.country-template-modern .country-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.country-template-modern .country-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.country-template-modern .country-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-template-modern .country-hero-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 4rem;
    background: var(--gradient-cosmic);
}

.country-template-modern .country-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        var(--color-bg-dark) 0%,
        rgba(13,13,26,0.65) 55%,
        rgba(13,13,26,0.35) 100%
    );
}

.country-template-modern .country-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px; /* fixed header offset */
    padding-bottom: 2rem;
    text-align: center;
}

.country-template-modern .country-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: var(--spacing-sm);
}

.country-template-modern .country-tagline {
    color: var(--color-text-gray);
    max-width: 780px;
    margin: 0 auto var(--spacing-sm);
    font-size: 1.15rem;
}

.country-template-modern .country-intro {
    color: var(--color-text-gray);
    max-width: 820px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

.country-template-modern.is-brasil-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    --brasil-rail-width: clamp(220px, 23vw, 420px);
    --brasil-icon-alien: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath d='M48 10 84 74H12z' fill='none' stroke='%2366FF91' stroke-width='4'/%3E%3Cellipse cx='48' cy='49' rx='13' ry='10' fill='%2366FF91'/%3E%3Ccircle cx='43' cy='48' r='2' fill='%230D0D1A'/%3E%3Ccircle cx='53' cy='48' r='2' fill='%230D0D1A'/%3E%3Cpath d='M40 55c2 2.2 14 2.2 16 0' fill='none' stroke='%23EC4899' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    --brasil-icon-spiral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%2366FF91' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M48 13c-19 0-34 15-34 34s15 34 34 34c14 0 25-11 25-25S62 31 48 31c-8 0-14 6-14 14s6 14 14 14c4 0 7-3 7-7'/%3E%3C/g%3E%3Ccircle cx='55' cy='52' r='3.5' fill='%23EC4899'/%3E%3C/svg%3E");
    --brasil-icon-route: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Crect x='12' y='12' width='72' height='72' rx='13' fill='none' stroke='%2366FF91' stroke-width='4'/%3E%3Cpath d='M26 69c8-2 11-13 20-13s12 10 21 10 12-8 12-20' fill='none' stroke='%2366FF91' stroke-width='4' stroke-linecap='round' stroke-dasharray='4 6'/%3E%3Ccircle cx='26' cy='69' r='4' fill='%23EC4899'/%3E%3Cpath d='M62 31a8 8 0 1 1 16 0c0 5-8 15-8 15s-8-10-8-15z' fill='%2366FF91'/%3E%3Ccircle cx='70' cy='31' r='2.4' fill='%230D0D1A'/%3E%3C/svg%3E");
    --brasil-icon-mushroom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath d='M16 47c0-17 14-31 32-31s32 14 32 31z' fill='none' stroke='%2366FF91' stroke-width='4'/%3E%3Cpath d='M40 48h16v24a8 8 0 1 1-16 0z' fill='none' stroke='%2366FF91' stroke-width='4'/%3E%3Ccircle cx='33' cy='36' r='4' fill='%23EC4899'/%3E%3Ccircle cx='48' cy='30' r='5' fill='%23EC4899'/%3E%3Ccircle cx='63' cy='37' r='4' fill='%23EC4899'/%3E%3C/svg%3E");
}

.country-template-modern.is-brasil-page::before,
.country-template-modern.is-brasil-page::after {
    content: "";
    position: absolute;
    top: -4%;
    bottom: -4%;
    width: var(--brasil-rail-width);
    z-index: 0;
    pointer-events: none;
    border-radius: 42px;
    filter: saturate(1.2);
}

.country-template-modern.is-brasil-page::before {
    left: -64px;
    opacity: 0.96;
    background-image:
        linear-gradient(to right, rgba(8, 14, 11, 0.97) 0%, rgba(8, 18, 13, 0.9) 42%, rgba(8, 18, 13, 0.08) 95%),
        conic-gradient(from 24deg at 20% 12%, rgba(102, 255, 145, 0.34), rgba(59, 130, 246, 0.28), rgba(236, 72, 153, 0.36), rgba(102, 255, 145, 0.34)),
        radial-gradient(circle at 14% 24%, rgba(102, 255, 145, 0.32) 0, transparent 56%),
        radial-gradient(circle at 35% 58%, rgba(59, 130, 246, 0.26) 0, transparent 52%),
        radial-gradient(circle at 12% 88%, rgba(236, 72, 153, 0.31) 0, transparent 48%),
        repeating-linear-gradient(156deg, rgba(102, 255, 145, 0.16) 0 2px, transparent 2px 16px),
        repeating-linear-gradient(12deg, rgba(236, 72, 153, 0.12) 0 1px, transparent 1px 12px),
        var(--brasil-icon-alien),
        var(--brasil-icon-spiral),
        var(--brasil-icon-route),
        var(--brasil-icon-mushroom),
        var(--brasil-icon-alien),
        var(--brasil-icon-spiral),
        var(--brasil-icon-route);
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        repeat-y,
        repeat-y,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat;
    background-size:
        100% 100%,
        360px 360px,
        270px 270px,
        260px 260px,
        230px 230px,
        220px 980px,
        200px 1280px,
        92px 92px,
        94px 94px,
        92px 92px,
        84px 84px,
        90px 90px,
        88px 88px;
    background-position:
        left top,
        left -120px top -30px,
        left -30px top 140px,
        left -48px top 560px,
        left -80px top 1000px,
        left 42px top 320px,
        left 26px top 180px,
        left 26px top 190px,
        left 22px top 600px,
        left 34px top 1030px,
        left 18px top 1420px,
        left 30px top 1870px,
        left 16px top 2320px;
    animation: rutapsy-psy-rail-left 24s ease-in-out infinite alternate;
    box-shadow: inset -10px 0 45px rgba(102, 255, 145, 0.18);
}

.country-template-modern.is-brasil-page::after {
    right: -64px;
    opacity: 0.96;
    background-image:
        linear-gradient(to left, rgba(8, 14, 11, 0.97) 0%, rgba(8, 18, 13, 0.9) 42%, rgba(8, 18, 13, 0.08) 95%),
        conic-gradient(from 208deg at 86% 10%, rgba(236, 72, 153, 0.34), rgba(59, 130, 246, 0.3), rgba(102, 255, 145, 0.34), rgba(236, 72, 153, 0.34)),
        radial-gradient(circle at 88% 22%, rgba(236, 72, 153, 0.3) 0, transparent 54%),
        radial-gradient(circle at 68% 56%, rgba(59, 130, 246, 0.26) 0, transparent 50%),
        radial-gradient(circle at 86% 86%, rgba(102, 255, 145, 0.28) 0, transparent 48%),
        repeating-linear-gradient(18deg, rgba(102, 255, 145, 0.14) 0 2px, transparent 2px 16px),
        repeating-linear-gradient(168deg, rgba(236, 72, 153, 0.12) 0 1px, transparent 1px 12px),
        var(--brasil-icon-route),
        var(--brasil-icon-alien),
        var(--brasil-icon-spiral),
        var(--brasil-icon-mushroom),
        var(--brasil-icon-route),
        var(--brasil-icon-alien),
        var(--brasil-icon-spiral);
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        repeat-y,
        repeat-y,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat;
    background-size:
        100% 100%,
        360px 360px,
        270px 270px,
        260px 260px,
        220px 220px,
        220px 980px,
        200px 1280px,
        94px 94px,
        90px 90px,
        84px 84px,
        88px 88px,
        88px 88px,
        90px 90px,
        86px 86px;
    background-position:
        right top,
        right -120px top -20px,
        right -36px top 160px,
        right -50px top 600px,
        right -64px top 1080px,
        right 42px top 300px,
        right 26px top 210px,
        right 26px top 190px,
        right 24px top 220px,
        right 16px top 650px,
        right 32px top 1100px,
        right 18px top 1520px,
        right 30px top 1980px,
        right 18px top 2400px;
    animation: rutapsy-psy-rail-right 26s ease-in-out infinite alternate;
    box-shadow: inset 10px 0 45px rgba(236, 72, 153, 0.14);
}

.country-template-modern.is-brasil-page > * {
    position: relative;
    z-index: 1;
}

@keyframes rutapsy-psy-rail-left {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-48px) scale(1.05); }
}

@keyframes rutapsy-psy-rail-right {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-56px) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
    .country-template-modern.is-brasil-page::before,
    .country-template-modern.is-brasil-page::after {
        animation: none;
    }
}

.country-template-modern .country-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.country-template-modern .country-hero-meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.country-template-modern .chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
    color: var(--color-text-gray);
    font-size: 0.85rem;
}

/* Sticky TOC */
.country-template-modern .country-nav {
    position: sticky;
    top: 100px;
    z-index: 500;
    background: rgba(13,13,26,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.country-template-modern .country-nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0.9rem 0;
    overflow-x: auto;
}

.country-template-modern .country-nav-list a {
    color: var(--color-text-gray);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.country-template-modern .country-nav-list a:hover {
    color: var(--color-primary);
}

/* Sections */
.country-template-modern .country-section {
    padding: var(--spacing-2xl) 0;
}

.country-template-modern .country-section-alt {
    background: var(--color-bg-medium);
}

.country-template-modern .section-header-lite {
    margin-bottom: var(--spacing-lg);
}

.country-template-modern .section-header-lite h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.country-template-modern .section-header-lite p {
    color: var(--color-text-gray);
}

/* Grid layout: main + aside */
.country-template-modern .country-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.country-template-modern .country-cardbox {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1rem;
}

.country-template-modern .country-cardbox h3 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
}

.country-template-modern .country-actions {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.country-template-modern .muted-text,
.country-template-modern .muted-note {
    color: var(--color-text-gray);
}

.country-template-modern .muted-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Facts */
.country-template-modern .facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: var(--spacing-lg);
}

.country-template-modern .fact-item {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: transform var(--transition-base);
}

.country-template-modern .fact-item:hover {
    transform: translateY(-3px);
}

.country-template-modern .fact-item strong {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.country-template-modern .fact-item span {
    color: var(--color-text-white);
    font-weight: 700;
}

/* Cards */
.country-template-modern .country-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: var(--spacing-lg);
}

.country-template-modern .country-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.country-template-modern .country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.country-template-modern .country-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.country-template-modern .card-img-placeholder {
    height: 220px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: var(--gradient-cosmic);
}

.country-template-modern .country-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.country-template-modern .country-card-body h3 {
    color: var(--color-text-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.country-template-modern .card-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Center CTA */
.country-template-modern .country-center-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

/* Modules */
.country-template-modern .country-modules {
    display: grid;
    gap: 1rem;
    margin-top: var(--spacing-lg);
}

.country-template-modern .country-module {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.country-template-modern .country-module h3 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
}

/* Carousel (no libs) */
.country-template-modern .rutapsy-carousel {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.country-template-modern .carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.country-template-modern .carousel-track {
    display: flex;
}

.country-template-modern .carousel-slide {
    scroll-snap-align: center;
    min-width: 100%;
    margin: 0;
}

.country-template-modern .carousel-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.country-template-modern .carousel-placeholder {
    height: 420px;
    display: grid;
    place-items: center;
    color: var(--color-text-gray);
    background: var(--gradient-cosmic);
}

.country-template-modern .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.country-template-modern .carousel-btn.prev { left: 12px; }
.country-template-modern .carousel-btn.next { right: 12px; }

.country-template-modern .carousel-btn:hover {
    border-color: rgba(255,255,255,0.25);
}

@media (max-width: 1220px) {
    .country-template-modern.is-brasil-page::before,
    .country-template-modern.is-brasil-page::after {
        width: clamp(170px, 20vw, 320px);
        opacity: 0.88;
    }

    .country-template-modern.is-brasil-page::before {
        left: -52px;
    }

    .country-template-modern.is-brasil-page::after {
        right: -52px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .country-template-modern .country-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .country-template-modern.is-brasil-page::before,
    .country-template-modern.is-brasil-page::after {
        width: 130px;
        opacity: 0.72;
    }

    .country-template-modern.is-brasil-page::before {
        left: -40px;
        animation-duration: 28s;
    }

    .country-template-modern.is-brasil-page::after {
        right: -40px;
        animation-duration: 30s;
    }

    .country-template-modern .country-nav { top: 80px; }
    .country-template-modern .carousel-slide img,
    .country-template-modern .carousel-placeholder { height: 280px; }
}

@media (max-width: 560px) {
    .country-template-modern.is-brasil-page::before,
    .country-template-modern.is-brasil-page::after {
        width: 88px;
        opacity: 0.62;
    }

    .country-template-modern.is-brasil-page::before {
        left: -32px;
    }

    .country-template-modern.is-brasil-page::after {
        right: -32px;
    }
}

/* ==========================================================================
   WOOCOMMERCE - SINGLE PRODUCT (SHOPIFY-INSPIRED)
   ========================================================================== */
.rutapsy-shopify-product {
    min-height: 100vh;
    padding-top: 96px;
    background:
        radial-gradient(circle at 8% 10%, rgba(76, 175, 80, 0.1), transparent 35%),
        radial-gradient(circle at 88% 5%, rgba(59, 130, 246, 0.12), transparent 32%),
        linear-gradient(180deg, #0f1020 0%, #0a0b16 100%);
}

.rutapsy-shopify-product .rutapsy-product-section {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
}

.rutapsy-shopify-product .woocommerce-notices-wrapper {
    margin-bottom: 1rem;
}

.rutapsy-shopify-product .woocommerce-notices-wrapper .woocommerce-message,
.rutapsy-shopify-product .woocommerce-notices-wrapper .woocommerce-error,
.rutapsy-shopify-product .woocommerce-notices-wrapper .woocommerce-info {
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 14, 24, 0.92);
    color: #fff;
}

.rutapsy-shopify-product .woocommerce-notices-wrapper a {
    color: #9bd4ff;
}

.rutapsy-shopify-product .single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 1.75rem;
}

.rutapsy-shopify-product .single-product div.product .onsale {
    top: 1rem;
    left: 1rem;
    right: auto;
    margin: 0;
    min-height: auto;
    min-width: auto;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.rutapsy-shopify-product .single-product .woocommerce-product-gallery {
    position: sticky;
    top: 104px;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.22);
    padding: 0.95rem;
}

.rutapsy-shopify-product .single-product .woocommerce-product-gallery__wrapper {
    border-radius: 0.78rem;
    overflow: hidden;
}

.rutapsy-shopify-product .single-product .woocommerce-product-gallery__wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.rutapsy-shopify-product .single-product .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
}

.rutapsy-shopify-product .single-product .flex-control-thumbs li {
    margin: 0;
}

.rutapsy-shopify-product .single-product .flex-control-thumbs img {
    border-radius: 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.18);
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.rutapsy-shopify-product .single-product .flex-control-thumbs img.flex-active,
.rutapsy-shopify-product .single-product .flex-control-thumbs img:hover {
    border-color: #0f172a;
    opacity: 1;
}

.rutapsy-shopify-product .single-product .summary {
    background: rgba(9, 13, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.25);
}

.rutapsy-shopify-product .single-product .summary h1.product_title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.15;
    color: #fff;
}

.rutapsy-shopify-product .single-product .summary .price {
    margin: 0 0 0.95rem;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.rutapsy-shopify-product .single-product .summary .price del {
    opacity: 0.55;
}

.rutapsy-shopify-product .single-product .summary .price ins {
    text-decoration: none;
    margin-left: 0.4rem;
}

.rutapsy-shopify-product .single-product .woocommerce-product-details__short-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rutapsy-shopify-product .single-product .cart {
    margin-top: 0.5rem;
}

.rutapsy-shopify-product .single-product .variations {
    width: 100%;
    margin: 0 0 0.95rem;
}

.rutapsy-shopify-product .single-product .variations th,
.rutapsy-shopify-product .single-product .variations td {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
}

.rutapsy-shopify-product .single-product .variations th.label {
    margin: 0 0 0.35rem;
}

.rutapsy-shopify-product .single-product .variations th.label label {
    display: inline-flex;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.rutapsy-shopify-product .single-product .variations select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.68rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0.72rem 0.9rem;
    font-weight: 600;
}

.rutapsy-shopify-product .single-product .variations select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.rutapsy-shopify-product .single-product .variations .reset_variations {
    display: inline-flex;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: #9bd4ff;
}

.rutapsy-shopify-product .single-product .single_variation_wrap > a {
    display: inline-flex;
    margin-bottom: 0.75rem;
    font-size: 0.84rem;
    color: #9bd4ff;
}

.rutapsy-shopify-product .single-product .woocommerce-variation-price,
.rutapsy-shopify-product .single-product .woocommerce-variation-availability {
    margin-bottom: 0.65rem;
    color: #fff;
}

.rutapsy-shopify-product .single-product .variations_button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rutapsy-shopify-product .single-product .quantity {
    margin: 0;
}

.rutapsy-shopify-product .single-product .quantity .qty {
    width: 88px;
    height: 48px;
    border-radius: 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.rutapsy-shopify-product .single-product .single_add_to_cart_button {
    height: 48px;
    border: 0;
    border-radius: 0.68rem;
    padding: 0 1.2rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.rutapsy-shopify-product .single-product .single_add_to_cart_button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(76, 175, 80, 0.32);
}

.rutapsy-shopify-product .single-product .product_meta {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.rutapsy-shopify-product .single-product .product_meta a {
    color: #c2e6ff;
}

.rutapsy-shopify-product .single-product .woocommerce-tabs {
    margin-top: 1.5rem;
}

.rutapsy-shopify-product .single-product .wc-tabs-wrapper {
    grid-column: 1 / -1;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 13, 24, 0.84);
    padding: 1rem;
}

.rutapsy-shopify-product .single-product ul.tabs.wc-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    border: 0;
}

.rutapsy-shopify-product .single-product ul.tabs.wc-tabs::before,
.rutapsy-shopify-product .single-product ul.tabs.wc-tabs::after {
    display: none;
}

.rutapsy-shopify-product .single-product ul.tabs.wc-tabs li {
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
}

.rutapsy-shopify-product .single-product ul.tabs.wc-tabs li::before,
.rutapsy-shopify-product .single-product ul.tabs.wc-tabs li::after {
    display: none;
}

.rutapsy-shopify-product .single-product ul.tabs.wc-tabs li a {
    display: inline-flex;
    padding: 0.52rem 0.88rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
}

.rutapsy-shopify-product .single-product ul.tabs.wc-tabs li.active a,
.rutapsy-shopify-product .single-product ul.tabs.wc-tabs li a:hover {
    border-color: var(--color-primary);
    background: rgba(76, 175, 80, 0.18);
    color: #fff;
}

.rutapsy-shopify-product .single-product .woocommerce-Tabs-panel {
    margin: 0.95rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.rutapsy-shopify-product .single-product .woocommerce-Tabs-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.rutapsy-shopify-product .single-product table.shop_attributes {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    overflow: hidden;
}

.rutapsy-shopify-product .single-product table.shop_attributes th,
.rutapsy-shopify-product .single-product table.shop_attributes td {
    border: 0;
    background: transparent;
    padding: 0.55rem 0.7rem;
}

.rutapsy-shopify-product .single-product .related.products {
    grid-column: 1 / -1;
    margin-top: 1.7rem;
}

.rutapsy-shopify-product .single-product .related.products > h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    margin-bottom: 0.8rem;
}

.rutapsy-shopify-product .single-product .related.products ul.products {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.rutapsy-shopify-product .single-product .related.products ul.products::before,
.rutapsy-shopify-product .single-product .related.products ul.products::after {
    display: none;
}

.rutapsy-shopify-product .single-product .related.products ul.products li.product {
    width: auto;
    float: none;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.85rem;
    background: rgba(9, 13, 24, 0.9);
    padding: 0.78rem;
    display: flex;
    flex-direction: column;
}

.rutapsy-shopify-product .single-product .related.products ul.products li.product a img {
    border-radius: 0.58rem;
    margin-bottom: 0.7rem;
}

.rutapsy-shopify-product .single-product .related.products ul.products li.product h2 {
    font-size: 0.96rem;
    color: #fff;
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.rutapsy-shopify-product .single-product .related.products ul.products li.product .price {
    color: #fff;
    margin-bottom: 0.68rem;
    font-size: 0.92rem;
}

.rutapsy-shopify-product .single-product .related.products ul.products li.product .button {
    margin-top: auto;
    border-radius: 0.58rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.rutapsy-shopify-product .single-product .related.products ul.products li.product .button:hover {
    border-color: var(--color-primary);
    background: rgba(76, 175, 80, 0.15);
}

@media (max-width: 1080px) {
    .rutapsy-shopify-product .single-product div.product {
        grid-template-columns: 1fr;
    }

    .rutapsy-shopify-product .single-product .woocommerce-product-gallery {
        position: static;
    }

    .rutapsy-shopify-product .single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rutapsy-shopify-product {
        padding-top: 84px;
    }

    .rutapsy-shopify-product .single-product .summary {
        padding: 1rem;
    }

    .rutapsy-shopify-product .single-product .variations_button {
        flex-wrap: wrap;
    }

    .rutapsy-shopify-product .single-product .quantity,
    .rutapsy-shopify-product .single-product .single_add_to_cart_button {
        width: 100%;
    }

    .rutapsy-shopify-product .single-product .quantity .qty,
    .rutapsy-shopify-product .single-product .single_add_to_cart_button {
        width: 100%;
    }

    .rutapsy-shopify-product .single-product .related.products ul.products {
        grid-template-columns: 1fr;
    }
}

/* ======================================================================
   GUIAS HUB - EDITORIAL BLOG PAGE
   ====================================================================== */
.guias-hub {
    background: radial-gradient(circle at 12% 18%, rgba(76, 175, 80, 0.12) 0%, rgba(13, 13, 26, 0) 36%),
        linear-gradient(180deg, #0c0f1d 0%, #0d0d1a 22%, #0d0d1a 100%);
    color: var(--color-text-white);
    padding-bottom: 4rem;
}

.guias-hub a {
    text-decoration: none;
}

.guias-hub-hero {
    position: relative;
    min-height: 72vh;
    padding-top: 110px;
    overflow: hidden;
}

.guias-hub-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.guias-hub-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 18, 0.48) 0%, rgba(8, 11, 22, 0.86) 60%, #0d0d1a 100%);
}

.guias-hub-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 3.4rem;
    padding-bottom: 4.2rem;
}

.guias-hub-kicker,
.guias-hub-section-kicker,
.guias-hub-nav-title {
    margin: 0;
    color: #c6ffd8;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.guias-hub-hero h1 {
    margin: 0.72rem 0 1rem;
    max-width: 820px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: 0.015em;
    text-wrap: balance;
}

.guias-hub-lead {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.04rem, 2.05vw, 1.36rem);
    line-height: 1.58;
    color: rgba(234, 243, 255, 0.9);
}

.guias-hub-metrics {
    margin-top: 1.65rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.guias-hub-metric {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 13, 27, 0.74);
    backdrop-filter: blur(3px);
    padding: 0.95rem 1rem 0.88rem;
}

.guias-hub-metric-label {
    margin: 0;
    color: rgba(210, 226, 242, 0.9);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.guias-hub-metric-value {
    margin: 0.26rem 0 0.22rem;
    font-size: 1.85rem;
    line-height: 1;
    color: #ffffff;
    font-weight: 700;
}

.guias-hub-metric-copy {
    margin: 0;
    color: rgba(202, 220, 242, 0.82);
    font-size: 0.83rem;
    line-height: 1.44;
}

.guias-hub-nav-section {
    padding-top: 0.65rem;
    padding-bottom: 0.4rem;
}

.guias-hub-nav-wrap {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(17, 25, 42, 0.72);
    padding: 1rem 1.15rem;
}

.guias-hub-lanes {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.58rem;
    flex-wrap: wrap;
}

.guias-hub-lane {
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(76, 175, 80, 0.35);
    background: rgba(76, 175, 80, 0.14);
    color: #d8ffe5;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.guias-hub-featured-section {
    padding-top: 1.25rem;
    padding-bottom: 0.9rem;
}

.guias-hub-featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.56fr) minmax(300px, 1fr);
    gap: 1.35rem;
    align-items: stretch;
}

.guias-hub-featured-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(150deg, rgba(13, 18, 33, 0.94) 0%, rgba(19, 27, 48, 0.96) 100%);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.guias-hub-featured-image-wrap {
    position: relative;
    height: 430px;
    overflow: hidden;
}

.guias-hub-featured-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.guias-hub-featured-card:hover .guias-hub-featured-image-wrap img {
    transform: scale(1.03);
}

.guias-hub-status {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(8, 11, 22, 0.72);
    color: #fff;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.guias-hub-featured-content {
    padding: 1.15rem 1.2rem 1.22rem;
}

.guias-hub-featured-kicker {
    margin: 0;
    color: #a4e4b6;
    font-size: 0.69rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.guias-hub-featured-content h2 {
    margin: 0.55rem 0 0.62rem;
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    line-height: 1.18;
    text-wrap: balance;
}

.guias-hub-featured-content h2 a {
    color: #ffffff;
}

.guias-hub-featured-content h2 a:hover {
    color: #d7ffe6;
}

.guias-hub-featured-excerpt {
    margin: 0;
    color: rgba(214, 227, 244, 0.9);
    font-size: 1rem;
    line-height: 1.62;
}

.guias-hub-featured-meta,
.guias-hub-feed-meta {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.66rem;
    color: rgba(168, 187, 213, 0.95);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.guias-hub-featured-cta {
    margin-top: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.45);
    background: rgba(76, 175, 80, 0.16);
    color: #dcffe8;
    font-size: 0.79rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.55rem 0.85rem;
}

.guias-hub-featured-cta:hover {
    background: rgba(76, 175, 80, 0.28);
    border-color: rgba(76, 175, 80, 0.7);
}

.guias-hub-radar {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(16, 24, 42, 0.95) 0%, rgba(8, 14, 28, 0.97) 100%);
    padding: 1rem;
    display: grid;
    gap: 0.82rem;
}

.guias-hub-radar h3 {
    margin: 0;
    font-size: 1.14rem;
    color: #ffffff;
}

.guias-hub-radar-item {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.72rem 0.75rem 0.7rem;
}

.guias-hub-radar-kicker {
    margin: 0;
    color: #a5e5b6;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.guias-hub-radar-value {
    margin: 0.24rem 0 0.15rem;
    color: #fff;
    font-size: 1.42rem;
    line-height: 1;
    font-weight: 700;
}

.guias-hub-radar-copy {
    margin: 0;
    color: rgba(205, 220, 240, 0.88);
    font-size: 0.83rem;
    line-height: 1.45;
}

.guias-hub-source-link {
    margin-top: 0.42rem;
    display: inline-flex;
    align-items: center;
    color: #9ee4b3;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.guias-hub-source-link:hover {
    color: #d9ffea;
}

.guias-hub-source-link.is-muted {
    color: rgba(168, 188, 214, 0.86);
}

.guias-hub-playbooks,
.guias-hub-feed,
.guias-hub-pipeline,
.guias-hub-newsletter {
    padding-top: 1.35rem;
}

.guias-hub-section-head {
    max-width: 840px;
    margin-bottom: 1.1rem;
}

.guias-hub-section-head h2 {
    margin: 0.55rem 0 0.52rem;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.guias-hub-section-head p {
    margin: 0;
    color: rgba(196, 214, 238, 0.88);
    font-size: 0.96rem;
    line-height: 1.58;
}

.guias-hub-playbook-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.guias-hub-playbook-card,
.guias-hub-pipeline-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(155deg, rgba(14, 21, 39, 0.95) 0%, rgba(18, 26, 45, 0.95) 100%);
}

.guias-hub-playbook-card img,
.guias-hub-pipeline-card img {
    width: 100%;
    height: 215px;
    object-fit: cover;
    display: block;
}

.guias-hub-playbook-content,
.guias-hub-pipeline-content {
    padding: 0.92rem 1rem 1rem;
}

.guias-hub-playbook-meta,
.guias-hub-feed-label {
    margin: 0;
    color: #adebbf;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.guias-hub-playbook-content h3,
.guias-hub-pipeline-content h3 {
    margin: 0.46rem 0 0.5rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.guias-hub-playbook-content p,
.guias-hub-pipeline-content p {
    margin: 0;
    color: rgba(203, 219, 239, 0.9);
    font-size: 0.9rem;
    line-height: 1.55;
}

.guias-hub-feed {
    padding-bottom: 0.4rem;
}

.guias-hub-feed-list {
    display: grid;
    gap: 1rem;
}

.guias-hub-feed-item {
    display: grid;
    grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: linear-gradient(145deg, rgba(16, 24, 43, 0.96) 0%, rgba(9, 15, 30, 0.98) 100%);
    overflow: hidden;
}

.guias-hub-feed-media {
    display: block;
    min-height: 220px;
}

.guias-hub-feed-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}

.guias-hub-feed-item:hover .guias-hub-feed-media img {
    transform: scale(1.03);
}

.guias-hub-feed-body {
    padding: 1rem 1rem 1rem 0;
}

.guias-hub-feed-body h3 {
    margin: 0.55rem 0 0.46rem;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    line-height: 1.25;
}

.guias-hub-feed-body h3 a {
    color: #ffffff;
}

.guias-hub-feed-body h3 a:hover {
    color: #d7ffe6;
}

.guias-hub-feed-excerpt {
    margin: 0;
    color: rgba(206, 222, 242, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.guias-hub-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 1rem;
}

.guias-hub-newsletter {
    padding-top: 1.85rem;
}

.guias-hub-newsletter-card {
    border-radius: 18px;
    border: 1px solid rgba(76, 175, 80, 0.42);
    background: linear-gradient(145deg, rgba(16, 43, 27, 0.84) 0%, rgba(16, 24, 44, 0.94) 100%);
    padding: 1.5rem;
}

.guias-hub-newsletter-card h2 {
    margin: 0.55rem 0 0.55rem;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
}

.guias-hub-newsletter-card p {
    margin: 0;
    max-width: 760px;
    color: rgba(212, 231, 255, 0.9);
    font-size: 0.96rem;
    line-height: 1.56;
}

.guias-hub-newsletter-card .btn {
    margin-top: 1rem;
}

@media (max-width: 1180px) {
    .guias-hub-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guias-hub-featured-layout {
        grid-template-columns: 1fr;
    }

    .guias-hub-playbook-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .guias-hub-hero {
        min-height: 64vh;
    }

    .guias-hub-hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .guias-hub-featured-image-wrap {
        height: 340px;
    }

    .guias-hub-feed-item {
        grid-template-columns: 1fr;
    }

    .guias-hub-feed-body {
        padding: 1rem;
    }

    .guias-hub-playbook-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .guias-hub {
        padding-bottom: 2.8rem;
    }

    .guias-hub-hero {
        min-height: 56vh;
        padding-top: 86px;
    }

    .guias-hub-metrics {
        grid-template-columns: 1fr;
    }

    .guias-hub-featured-image-wrap {
        height: 270px;
    }

    .guias-hub-section-head h2 {
        line-height: 1.16;
    }

    .guias-hub-newsletter-card {
        padding: 1.2rem;
    }
}

.guias-hub-feed-item.is-placeholder {
    border-style: dashed;
    border-color: rgba(76, 175, 80, 0.44);
}

.guias-hub-feed-item.is-placeholder .guias-hub-feed-label {
    color: #d8ffe7;
}

/* ==========================================================================
   Nosotros Photo Collage
   ========================================================================== */
.nosotros-collage-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.nosotros-collage {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.nosotros-collage-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
}

.nosotros-collage-row--centered {
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    margin: 0;
}

.nosotros-collage-item {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0;
}

.nosotros-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.nosotros-collage-item:hover img {
    transform: scale(1.07);
}

@media (max-width: 900px) {
    .nosotros-collage-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .nosotros-collage-row--centered {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .nosotros-collage-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .nosotros-collage-row--centered {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

/* ==========================================================================
   Homepage hero-logo / header logo visibility
   ========================================================================== */

/* On the homepage, hide the header logo by default */
body.home .site-logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Show it once the hero logo has scrolled out of view */
body.home .site-header.logo-visible .site-logo {
    opacity: 1;
    pointer-events: auto;
}
