/* ============================================================
   NATIVEPAL — STYLE SHEET
   Colors of Spain · Rural · Natural · Warm
   ============================================================ */

/* ---- CSS Custom Properties (Light Theme) ---- */
:root {
    /* Spain palette */
    --spain-red: #aa1e1e;
    --spain-red-light: #c93c3c;
    --spain-red-dark: #7a1515;
    --spain-yellow: #d4a017;
    --spain-yellow-light: #f0c040;
    --spain-yellow-pale: #fff4d2;

    /* Natural / rural palette */
    --olive: #556b2f;
    --olive-light: #6e8b3d;
    --olive-dark: #3e4f22;
    --terracotta: #c47a5a;
    --terracotta-light: #daa68e;
    --earth: #6b4f3a;
    --earth-light: #8b7058;
    --stone: #a89b8c;
    --stone-light: #c9bfb4;
    --sand: #e8dcc8;

    /* Neutrals */
    --cream: #fdf8f0;
    --cream-warm: #faf3e8;
    --white: #ffffff;
    --off-white: #f9f6f1;
    --gray-100: #f5f1ec;
    --gray-200: #e8e2da;
    --gray-300: #d4ccc2;
    --gray-400: #a89e94;
    --gray-500: #7a7068;
    --gray-600: #5c534b;
    --gray-700: #3e3830;
    --gray-800: #2c2520;
    --gray-900: #1a1510;

    /* Semantic */
    --bg-primary: var(--cream);
    --bg-secondary: var(--white);
    --bg-accent: var(--cream-warm);
    --bg-dark: var(--gray-900);
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-on-dark: var(--cream);
    --text-heading: var(--gray-900);
    --text-link: var(--spain-red);

    --border-color: var(--gray-200);
    --border-light: var(--gray-100);
    --shadow-sm: 0 1px 3px rgba(42, 32, 20, 0.06);
    --shadow-md: 0 4px 16px rgba(42, 32, 20, 0.08);
    --shadow-lg: 0 8px 32px rgba(42, 32, 20, 0.1);
    --shadow-xl: 0 16px 48px rgba(42, 32, 20, 0.12);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
    --duration-slow: 0.4s;

    /* Typography */
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body:
        "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;

    /* Spacing */
    --nav-height: 72px;
    --container-max: 1200px;
    --container-narrow: 800px;
    --section-pad-y: 5rem;
    --section-pad-x: 2rem;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
    --bg-primary: #1a1712;
    --bg-secondary: #231f19;
    --bg-accent: #2a2520;
    --bg-dark: #0f0d0a;
    --text-primary: #e8e0d4;
    --text-secondary: #b8afa4;
    --text-muted: #8a8078;
    --text-on-dark: #e8e0d4;
    --text-heading: #f0e8dc;
    --text-link: #e0926a;

    --border-color: #3a3530;
    --border-light: #2f2a24;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);

    --spain-red: #d05050;
    --spain-red-light: #e07070;
    --spain-yellow: #e0b840;
    --spain-yellow-light: #f0d060;
    --spain-yellow-pale: #3a3425;
    --olive: #7ea050;
    --olive-light: #98b868;
    --terracotta: #d08868;
    --terracotta-light: #e0a888;
    --stone: #706860;
    --stone-light: #8a827a;
    --sand: #3a3428;
    --cream-warm: #2a2520;
    --gray-100: #2a2520;
    --gray-200: #3a3530;
    --gray-300: #4a4540;
    --gray-700: #c8c0b8;
    --gray-800: #e0d8d0;
    --gray-900: #f0e8e0;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--spain-red-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 600;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    font-size: inherit;
    color: inherit;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--spain-yellow-light);
    color: var(--gray-900);
}

/* ---- Focus visible ---- */
:focus-visible {
    outline: 3px solid var(--spain-yellow);
    outline-offset: 2px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
}

.section {
    padding: var(--section-pad-y) 0;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--spain-red);
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--spain-red);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-subheading {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--spain-red);
    color: var(--white);
    border-color: var(--spain-red);
    box-shadow: 0 4px 14px rgba(170, 30, 30, 0.3);
}

.btn-primary:hover {
    background: var(--spain-red-light);
    border-color: var(--spain-red-light);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(170, 30, 30, 0.35);
}

.btn-secondary {
    background: var(--olive);
    color: var(--white);
    border-color: var(--olive);
    box-shadow: 0 4px 14px rgba(85, 107, 47, 0.25);
}

.btn-secondary:hover {
    background: var(--olive-light);
    border-color: var(--olive-light);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(85, 107, 47, 0.3);
}

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

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--spain-red);
    color: var(--spain-red);
}

.btn-lg {
    padding: 0.95rem 2.25rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* Spinner inside submit button */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   TAGS
   ============================================================ */
.tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    background: var(--spain-yellow-pale);
    color: var(--earth);
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .tag {
    background: rgba(224, 184, 64, 0.15);
    color: var(--spain-yellow-light);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition:
        background var(--duration-slow) var(--ease),
        box-shadow var(--duration-slow) var(--ease);
}

.navbar.scrolled {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Transparent on hero pages */
.navbar:not(.scrolled) {
    background: transparent;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Invert SVG icon on transparent navbar so it shows on dark hero */
.navbar:not(.scrolled) .logo-icon {
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--spain-red);
    transition: color var(--duration) var(--ease);
}

.navbar:not(.scrolled) .logo-text {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--spain-red);
    transition: all var(--duration) var(--ease);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--spain-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--spain-red);
    font-weight: 600;
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: var(--spain-yellow-light);
}

.navbar:not(.scrolled) .nav-link::after {
    background: var(--spain-yellow-light);
}

/* ---- Dark mode toggle ---- */
.dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.3rem;
}

.toggle-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.navbar:not(.scrolled) .toggle-icon {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--gray-300);
    border-radius: 10px;
    transition: background var(--duration) var(--ease);
}

[data-theme="dark"] .toggle-track {
    background: var(--spain-yellow);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--duration) var(--ease);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(16px);
}

/* ---- Language toggle ---- */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.lang-toggle:hover {
    border-color: var(--spain-red);
}

.lang-label {
    transition: color var(--duration) var(--ease);
}

.lang-label.active-lang {
    color: var(--spain-red);
}

.lang-separator {
    opacity: 0.4;
}

.navbar:not(.scrolled) .lang-toggle {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
    transform-origin: center;
}

.navbar:not(.scrolled) .hamburger-line {
    background: var(--white);
}

.hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-divider-mobile,
.nav-toggle-item {
    display: flex;
    align-items: center;
}

/* ============================================================
   HERO (Home)
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    image-rendering: auto;
}

/* Responsive hero image sizing for the massive source file */
@media (max-width: 768px) {
    .hero-img {
        object-position: center 35%;
    }
}

@media (max-width: 480px) {
    .hero-img {
        object-position: center 30%;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 21, 16, 0.3) 0%,
        rgba(26, 21, 16, 0.15) 35%,
        rgba(26, 21, 16, 0.25) 70%,
        rgba(26, 21, 16, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    width: 100%;
    padding: 2rem;
    padding-top: calc(var(--nav-height) + 1.5rem);
    flex-shrink: 0;
}

.hero-preheading {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

.hero-actions {
    position: absolute;
    z-index: 1;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: max-content;
    max-width: 90%;
}

.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
    z-index: 1;
}

.scroll-arrow-icon {
    display: block;
    width: 28px;
    height: 28px;
    opacity: 0.6;
    filter: brightness(0) invert(1);
}

@keyframes float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ============================================================
   PAGE HERO (Sub-pages)
   ============================================================ */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 50vh;
}

.page-hero-short {
    min-height: 40vh;
}

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

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

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 21, 16, 0.48);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    padding-top: calc(var(--nav-height) + 2rem);
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   INTRO SECTION (Home)
   ============================================================ */
.intro-section {
    background: var(--bg-secondary);
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.9;
}

.intro-text strong {
    color: var(--spain-red);
    font-weight: 700;
}

/* ============================================================
   PLACES SECTION (Home)
   ============================================================ */
.places-section {
    background: var(--bg-primary);
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.place-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition:
        transform var(--duration-slow) var(--ease),
        box-shadow var(--duration-slow) var(--ease);
}

.place-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.place-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.place-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--spain-yellow);
    color: var(--gray-800);
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .place-card-badge {
    color: var(--gray-900);
}

.place-card-body {
    padding: 1.5rem;
}

.place-card-title {
    font-size: 1.35rem;
    color: var(--spain-red);
    margin-bottom: 0.5rem;
}

.place-card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.place-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* ============================================================
   ACTIVITIES SECTION (Home)
   ============================================================ */
.activities-section {
    background: var(--olive-dark);
    color: var(--white);
    position: relative;
}

.activities-section .section-heading {
    color: var(--spain-yellow-light);
}

.activities-section .section-subheading {
    color: rgba(255, 255, 255, 0.75);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.activity-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--duration) var(--ease);
    backdrop-filter: blur(6px);
}

.activity-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.activity-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.activity-icon img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.activity-title {
    font-family: var(--font-heading);
    color: var(--spain-yellow-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.activity-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--bg-accent);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.cta-content {
    text-align: center;
}

.cta-heading {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--spain-red);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
    background: var(--bg-primary);
}

/* Filter buttons */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
    background: var(--bg-secondary);
}

.gallery-filter-btn:hover {
    border-color: var(--spain-red);
    color: var(--spain-red);
}

.gallery-filter-btn.active {
    background: var(--spain-red);
    border-color: var(--spain-red);
    color: var(--white);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.gallery-item {
    transition:
        opacity var(--duration-slow) var(--ease),
        transform var(--duration-slow) var(--ease);
}

.gallery-item-hidden {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-item-visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition:
        transform var(--duration-slow) var(--ease),
        box-shadow var(--duration-slow) var(--ease);
}

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

.gallery-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

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

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

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 21, 16, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration) var(--ease);
}

.gallery-card:hover .gallery-card-overlay {
    background: rgba(26, 21, 16, 0.35);
}

.gallery-expand-btn {
    opacity: 0;
    transform: scale(0.8);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-expand-btn img {
    width: 20px;
    height: 20px;
}

.gallery-card:hover .gallery-expand-btn {
    opacity: 1;
    transform: scale(1);
}

.expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card-body {
    padding: 1.5rem;
}

.gallery-card-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.location-pin {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.location-pin img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.gallery-card-title {
    font-size: 1.25rem;
    color: var(--spain-red);
    margin-bottom: 0.5rem;
}

.gallery-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.gallery-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Gallery story */
.gallery-story-section {
    background: var(--bg-secondary);
}

.story-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: center;
}

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

.story-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration) var(--ease);
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-image-wrap {
    max-width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-info {
    margin-top: 1rem;
    text-align: center;
    max-width: 600px;
}

.lightbox-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.lightbox-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   PLAN A TRIP — TABS
   ============================================================ */
.plan-section {
    background: var(--bg-primary);
}

.plan-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.plan-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--duration) var(--ease);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: transparent;
}

.plan-tab:hover {
    color: var(--spain-red);
    background: var(--bg-accent);
}

.plan-tab.active {
    color: var(--spain-red);
    border-bottom-color: var(--spain-red);
    background: var(--bg-secondary);
}

.plan-tab-icon {
    display: flex;
    align-items: center;
}

.plan-tab-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.plan-tab.active .plan-tab-icon img {
    opacity: 1;
}

.plan-panel {
    display: none;
}

.plan-panel.active {
    display: block;
    animation: fadeIn 0.3s var(--ease);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-card-title {
    font-size: 1.8rem;
    color: var(--spain-red);
    margin-bottom: 0.5rem;
}

.form-card-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.required {
    color: var(--spain-red);
    font-weight: 700;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition:
        border-color var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
    line-height: 1.5;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:focus {
    outline: none;
    border-color: var(--spain-red);
    box-shadow: 0 0 0 3px rgba(170, 30, 30, 0.12);
}

.form-input-error {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12) !important;
}

[data-theme="dark"] .form-input-error {
    border-color: #ef5350 !important;
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.15) !important;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A7068' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.form-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.form-error {
    display: block;
    font-size: 0.85rem;
    color: #c62828;
    margin-top: 0.3rem;
    min-height: 1.2em;
}

[data-theme="dark"] .form-error {
    color: #ef5350;
}

.form-actions {
    margin-top: 2rem;
}

/* Honeypot — invisible to real users */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   TRIP CARD SELECTOR (Join form)
   ============================================================ */
.trip-cards-select {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.trip-option {
    cursor: pointer;
    display: block;
}

.trip-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.trip-option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all var(--duration) var(--ease);
    background: var(--bg-primary);
}

.trip-option-card:hover {
    border-color: var(--spain-yellow);
    box-shadow: var(--shadow-sm);
}

.trip-option-card.selected,
.trip-radio:checked + .trip-option-card {
    border-color: var(--spain-red);
    background: var(--spain-yellow-pale);
    box-shadow: 0 0 0 3px rgba(170, 30, 30, 0.1);
}

.trip-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trip-option-org {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.trip-option-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.trip-status-pending {
    background: var(--spain-yellow-pale);
    color: var(--earth);
}

.trip-status-confirmed {
    background: rgba(85, 107, 47, 0.15);
    color: var(--olive);
}

.trip-option-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.trip-detail {
    display: flex;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trip-detail-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.trip-detail-icon img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.trip-option-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.empty-state-icon img {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.empty-state-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================================
   HOW IT WORKS (Steps)
   ============================================================ */
.plan-info-section {
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--spain-red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(170, 30, 30, 0.25);
}

.step-title {
    font-size: 1.15rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.step-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   ABOUT — MISSION
   ============================================================ */
.mission-section {
    background: var(--bg-primary);
}

.mission-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.mission-icon-block {
    flex-shrink: 0;
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--spain-yellow-pale);
    border-radius: var(--radius-lg);
}

.mission-text {
    flex: 1;
}

.mission-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.mission-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Values */
.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition:
        transform var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
}

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

.value-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.value-icon img {
    width: 32px;
    height: 32px;
    opacity: 0.85;
}

.value-title {
    font-size: 1.1rem;
    color: var(--spain-red);
    margin-bottom: 0.5rem;
}

.value-text {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ============================================================
   ABOUT — TEAM
   ============================================================ */
.team-section {
    background: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
}

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

.team-avatar {
    margin-bottom: 1.25rem;
}

.team-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--spain-yellow-pale);
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.team-name {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--spain-red);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ============================================================
   ABOUT — APPROACH
   ============================================================ */
.approach-section {
    background: var(--bg-primary);
}

.approach-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.approach-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.approach-number {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--spain-yellow);
    line-height: 1;
    min-width: 60px;
    text-align: center;
    opacity: 0.5;
}

.approach-body h3 {
    font-size: 1.15rem;
    color: var(--text-heading);
    margin-bottom: 0.3rem;
}

.approach-body p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 0.75rem);
    right: 1.5rem;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 420px;
    width: calc(100% - 3rem);
}

.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s var(--ease);
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.flash-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #ef5350;
}

[data-theme="dark"] .flash-success {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border-left-color: #66bb6a;
}

[data-theme="dark"] .flash-error {
    background: rgba(239, 83, 80, 0.15);
    color: #ef9a9a;
    border-left-color: #ef5350;
}

.flash-text {
    flex: 1;
}

.flash-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.6;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity var(--duration) var(--ease);
    background: none;
    border: none;
    color: inherit;
}

.flash-close:hover {
    opacity: 1;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    color: var(--spain-red);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-msg {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-top: 3rem;
}

[data-theme="dark"] .site-footer {
    background: #0f0d0a;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand-heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-logo-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1) opacity(0.8);
}

.footer-brand .logo-text {
    color: var(--spain-yellow);
}

.footer-tagline {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-company {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.footer-company strong {
    color: rgba(255, 255, 255, 0.65);
}

.footer-links-grid {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.93rem;
    transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
    color: var(--spain-yellow-light);
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-powered a {
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.footer-powered a:hover {
    opacity: 0.9;
}

.footer-tensorwork-logo {
    height: 20px;
    width: auto;
    opacity: 0.55;
    transition: opacity var(--duration) var(--ease);
    filter: brightness(0) invert(1);
}

.footer-tensorwork-logo:hover {
    opacity: 0.85;
}

/* ============================================================
   RESPONSIVE — Tablet (max 960px)
   ============================================================ */
@media (max-width: 960px) {
    :root {
        --section-pad-y: 3.5rem;
    }

    .places-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .mission-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links-grid {
        gap: 2rem;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --nav-height: 62px;
        --section-pad-x: 1.25rem;
        --section-pad-y: 3rem;
    }

    /* ---- Hamburger visible ---- */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        padding: 0.85rem 0.5rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
    }

    /* Always use opaque colors in mobile menu */
    .navbar:not(.scrolled) .nav-link {
        color: var(--text-primary);
        text-shadow: none;
    }

    .navbar:not(.scrolled) .nav-link:hover,
    .navbar:not(.scrolled) .nav-link.active {
        color: var(--spain-red);
    }

    .navbar:not(.scrolled) .nav-link::after {
        background: var(--spain-red);
    }

    .nav-link::after {
        display: none;
    }

    .nav-divider-mobile {
        width: 100%;
        height: 1px;
        background: var(--border-color);
        margin: 0.75rem 0;
    }

    .nav-toggle-item {
        padding: 0.6rem 0.5rem;
    }

    .navbar:not(.scrolled) .lang-toggle {
        color: var(--text-secondary);
        border-color: var(--border-color);
    }

    /* ---- Hero ---- */
    .hero-content {
        padding: 1.5rem;
        padding-top: calc(var(--nav-height) + 1rem);
    }

    .hero-actions {
        bottom: 4rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* ---- Gallery grid ---- */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card-image {
        height: 200px;
    }

    /* ---- Lightbox ---- */
    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-close {
        top: -36px;
    }

    /* ---- Plan tabs ---- */
    .plan-tab-label {
        font-size: 0.85rem;
    }

    .plan-tab-icon {
        font-size: 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    /* ---- Steps ---- */
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* ---- Team ---- */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Footer ---- */
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links-grid {
        gap: 2rem;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* ---- CTA actions ---- */
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================================
   RESPONSIVE — Small phone (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .places-grid {
        grid-template-columns: 1fr;
    }

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

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

    .mission-values {
        grid-template-columns: 1fr;
    }

    .plan-tabs {
        flex-direction: column;
        gap: 0.25rem;
        border-bottom: none;
    }

    .plan-tab {
        border-bottom: none;
        border: 2px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 0;
    }

    .plan-tab.active {
        border-color: var(--spain-red);
    }

    .approach-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .approach-number {
        min-width: auto;
    }

    .gallery-filter {
        gap: 0.3rem;
    }

    .gallery-filter-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .navbar,
    .hamburger,
    .dark-mode-toggle,
    .lang-toggle,
    .hero-scroll-hint,
    .flash-container,
    .lightbox,
    .site-footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero,
    .page-hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   ABOUT — FOUNDER
   ============================================================ */
.founder-section {
    background: var(--bg-secondary);
}

.founder-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.founder-photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.founder-info {
    flex: 1;
    padding-top: 0.5rem;
}

.founder-name {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.founder-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--spain-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.founder-bio {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.founder-bio strong {
    color: var(--text-heading);
}

@media (max-width: 960px) {
    .founder-card {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .founder-bio {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .founder-photo-wrap {
        width: 200px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
        position: static;
    }

    .founder-name {
        font-size: 1.5rem;
    }
}

/* ============================================================
   ABOUT — MISSION STATEMENT
   ============================================================ */
.mission-statement {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

/* ============================================================
   ABOUT — TENSORWORK
   ============================================================ */
.tensorwork-section {
    background: var(--bg-secondary);
}

.tensorwork-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.tensorwork-logo-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tensorwork-logo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.tensorwork-info {
    flex: 1;
}

.tensorwork-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.tensorwork-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b5998;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

[data-theme="dark"] .tensorwork-role {
    color: #7ba3d8;
}

.tensorwork-bio {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 0.75rem;
}

.tensorwork-bio strong {
    color: var(--text-heading);
}

@media (max-width: 768px) {
    .tensorwork-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .tensorwork-logo-wrap {
        width: 180px;
        margin: 0 auto;
    }

    .tensorwork-bio {
        font-size: 1rem;
    }
}
