/* ==========================================================================
   somosunaola-go -- Main Stylesheet
   Clone of somosunaola.org -- Ocean cleanup nonprofit, La Palma
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- Design Tokens ---------- */
:root {
    --color-primary: #3F88E3;
    --color-primary-hover: #5596E6;
    --color-primary-dark: #3D70B2;
    --color-dark-slate: #344258;
    --color-teal: #41D6C3;
    --color-text: #363636;
    --color-text-muted: #999999;
    --color-text-dark: #393A4F;
    --color-bg: #FFFFFF;
    --color-bg-light: #F7F7F7;
    --color-bg-surface: #F5F5F5;
    --color-border: #E8E8E8;
    --color-border-light: #DBDBDB;

    --font-primary: 'Roboto', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-subheading: 'Poppins', system-ui, sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --max-width: 1200px;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: #f6f6f6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

img { max-width: 100%; height: auto; }
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s ease; }
img[loading="lazy"].loaded { opacity: 1; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==========================================================================
   Navbar V2 -- pixel-perfect match of original somosunaola.org header
   ========================================================================== */

.navbar-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

/* ---------- Top Nav ---------- */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    width: 100%;
    background: #fff;
    padding: 0 1.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.top-nav-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.top-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Brand / Logo */
.brand .navbar-logo {
    display: block;
    border-right: 1px solid #e0e0e0;
}

.brand .navbar-logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 251px;
    margin-right: 1rem;
    object-fit: contain;
}

/* Search Widget */
.search-widget {
    margin-left: 1.75rem;
    flex: 1;
}

.search-control {
    position: relative;
    z-index: 30;
}

.search-input {
    position: relative;
    height: 38px;
    width: 100%;
    max-width: 450px;
    padding: 6px 85px 8px 38px;
    background: #f7f7f7;
    border: 1px solid #f7f7f7;
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: all 0.4s;
    outline: none;
}

.search-input:focus {
    background: #fff;
    border-color: #dedede;
    box-shadow: -1px 3px 10px 0 rgba(0,0,0,0.06);
}

.search-input::placeholder {
    color: #cecece;
}

/* Search dropdown results */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
}

.search-dropdown:empty { display: none; }

.search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s;
}

.search-result:last-child { border-bottom: none; }
.search-result:hover { background: #f7f7f7; color: var(--color-text); }

.search-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark-slate);
}

.search-meta {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.search-no-results {
    padding: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.search-icon-left {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
    width: 38px;
    z-index: 1;
}

.search-icon-left i,
.search-icon-left svg {
    width: 20px;
    height: 20px;
    stroke: #cecece;
    stroke-width: 2px;
    color: #cecece;
    transition: 0.3s;
}

.search-input:focus ~ .search-icon-left i,
.search-input:focus ~ .search-icon-left svg {
    color: var(--color-text-muted);
}

/* Stats Counters */
.somosunaola-achievments {
    display: flex;
    margin-right: 16px;
}

.page-counts {
    display: flex;
}

.count-item {
    margin: 0;
    padding: 0 20px;
    border-right: 1px solid #e8e8e8;
}

.count-item span {
    display: block;
    text-align: center;
}

.count-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #3d70b2;
    font-size: 1.4rem;
    line-height: 1.3;
}

.count-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
}

/* Icon labels for mobile -- hidden on desktop */
.count-icon {
    display: none;
}

/* Nav Icon Items (search, bell) */
.nav-icon-item {
    padding: 0 6px;
    position: relative;
}

/* Nav icon buttons (search, bell) */
.icon-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    transition: all 0.3s;
    color: var(--color-text-muted);
}

.icon-link:hover {
    background: #6BA4E9;
    box-shadow:
        0 14px 26px -12px rgba(85,150,230,0.42),
        0 4px 23px 0 rgba(0,0,0,0.12),
        0 8px 10px -5px rgba(85,150,230,0.2);
    color: #fff;
}

.icon-link:hover svg { stroke: #fafafa; }
.icon-link:hover i { color: #fff; }

.icon-link svg {
    width: 17px;
    height: 17px;
    stroke: #999;
    stroke-width: 1.4px;
    transition: 0.3s;
}

.icon-link i {
    font-size: 16px;
    line-height: 1;
    text-align: center;
    transition: 0.3s;
}

/* Facebook / primary icon: always visible with background */
.icon-link.is-primary {
    background: #3D70B2;
    color: #fff;
    box-shadow:
        0 14px 26px -12px rgba(61,112,178,0.42),
        0 4px 23px 0 rgba(0,0,0,0.12),
        0 8px 10px -5px rgba(61,112,178,0.2);
}

.icon-link.is-primary:hover {
    background: #3D70B2;
    box-shadow:
        0 14px 26px -12px rgba(61,112,178,0.42),
        0 4px 23px 0 rgba(0,0,0,0.12),
        0 8px 10px -5px rgba(61,112,178,0.2);
}

.icon-link.is-primary:hover svg {
    stroke: #fff;
}

/* Bell: lighter blue background with layered shadow */
.icon-link.is-active {
    background: #6BA4E9;
    box-shadow:
        0 14px 26px -12px rgba(85,150,230,0.42),
        0 4px 23px 0 rgba(0,0,0,0.12),
        0 8px 10px -5px rgba(85,150,230,0.2);
    color: #fff;
}

.icon-link.is-active svg {
    stroke: #fafafa;
}

/* Green dot indicator on bell */
.icon-link .indicator { display: none; }

.icon-link.is-active .indicator {
    display: block;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #41d6c3;
}

/* Hide the standalone search icon on desktop -- only show on mobile */
#open-mobile-search { display: none; }

/* ---------- Notification Dropdown ---------- */
.nav-drop {
    position: absolute;
    top: 90%;
    right: 0;
    width: 420px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0.65rem;
    margin-top: 16px;
    box-shadow: 0 5px 43px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.2s;
    z-index: 100;
}

.nav-drop.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nav-drop::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 12px;
    border: 7px solid transparent;
    border-bottom-color: #fff;
}

.nav-drop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.nav-drop-header span {
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-drop-header a {
    color: var(--color-text-muted);
    font-size: 14px;
}

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

.nav-drop-body {
    max-height: 420px;
    padding: 8px 16px;
    overflow-y: auto;
}

.nav-drop-body::-webkit-scrollbar { width: 5px; }
.nav-drop-body::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
}

.notif-media {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.notif-media:last-child { border-bottom: none; }

.notif-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-content a {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-dark-slate);
    line-height: 1.3;
}

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

.notif-excerpt {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.notif-time {
    display: block;
    font-size: 0.65rem;
    color: #cecece;
    margin-top: 2px;
}

.notif-action {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.notif-action i {
    font-size: 14px;
    color: var(--color-text-muted);
}

.nav-drop-footer {
    display: flex;
    justify-content: center;
    padding: 12px 10px;
    border-top: 1px solid #e8e8e8;
    border-radius: 0 0 0.65rem 0.65rem;
    background: #fafafa;
}

.nav-drop-footer a {
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

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

/* ---------- Sub Navigation (tabs) ---------- */
.sub-nav {
    position: fixed;
    top: 80px;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 70px;
    width: 100%;
    background: #f2f2f2;
    box-shadow: 0 5px 25px 0 rgba(0,0,0,0.09);
    padding: 0 1.5rem;
    border-bottom: 1px solid #e8e8e8;
    z-index: 19;
}

/* Hide scrollbar on mobile nav */
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav { scrollbar-width: none; }

.sub-nav-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sub-nav-tabs ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    white-space: nowrap;
}

.sub-nav-tabs li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 16px;
    margin: 0 0 -1px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #A2A5B9;
    border-bottom: 4px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.sub-nav-tabs li a:hover {
    color: var(--color-primary);
}

.sub-nav-tabs li.is-active a {
    font-weight: 500;
    color: var(--color-primary-hover);
    border-bottom-color: var(--color-primary-hover);
}

/* ---------- Body offset for fixed navbar (JS overrides dynamically) ---------- */
body {
    padding-top: 150px;
}

/* Mobile search */
.mobile-search {
    display: none;
    height: 58px;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}

.mobile-search .search-input {
    width: 100%;
    height: 42px;
    border-radius: 100px;
}

.is-hidden { display: none !important; }

/* ---------- Hero Video ---------- */
.hero-video {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-vid-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -100;
    background-size: cover;
    overflow: hidden;
    opacity: 0;
    transition: 2s opacity;
}
.hero-vid-bg.is-playing { opacity: 1; }

/* Black backing behind fixed video — prevents white flash */
.hero-video::before,
.adopta-section::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #000;
    z-index: -101;
    pointer-events: none;
}

/* Dot pattern mask — exact production vidbacking overlay */
.hero-vid-mask {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    background: url('/static/images/videooverlay1.png');
    opacity: 0.4;
    z-index: -50;
}

.hero-vid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.1);
    z-index: -1;
}

/* Water wave text effect */
.slogan {
    position: relative;
    z-index: 2;
    min-height: 18.95vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.slogan-content {
    position: relative;
    width: 100%;
    text-align: center;
}

.slogan-content h2 {
    font-family: var(--font-heading);
    font-size: 6.15vw;
    font-weight: 700;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.slogan-content h2:nth-child(1) {
    color: rgba(0,0,0,0.2);
    mix-blend-mode: overlay;
}

.slogan-content h2:nth-child(2) {
    color: rgba(255,255,255,0.55);
    mix-blend-mode: overlay;
    animation: water-wave 8s ease-in-out infinite;
}

@keyframes water-wave {
    0%, 100% {
        clip-path: polygon(
            0% 45%, 16% 44%, 33% 50%, 54% 60%, 70% 61%,
            84% 59%, 100% 52%, 100% 100%, 0% 100%
        );
    }
    50% {
        clip-path: polygon(
            0% 60%, 15% 65%, 34% 66%, 51% 62%, 67% 50%,
            84% 45%, 100% 46%, 100% 100%, 0% 100%
        );
    }
}

/* Typing animation container */
.typing-container {
    position: relative;
    z-index: 2;
    min-height: 6.95vw;
    text-align: center;
    margin-bottom: 10.95vw;
}

.typing-word {
    font-family: var(--font-subheading);
    font-size: 2.95vw;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ---------- Page Hero Video (inner pages) ---------- */
.page-hero-video {
    position: relative;
    height: 50vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .page-hero-video { height: 60vh; min-height: 400px; }
}

.page-hero-vid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}
.page-hero-vid--top { object-position: center 81%; }

/* Arte Efímero: two images side by side on desktop, one on mobile */
.arte-hero-duo {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}
.arte-hero-duo img {
    flex: 1;
    width: 50%;
    height: 100%;
    object-fit: cover;
}
.arte-hero-duo img:last-child {
    display: none;
}
@media (min-width: 768px) {
    .arte-hero-duo img:last-child {
        display: block;
    }
}

.page-hero-vid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.page-hero-vid-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-hero-vid-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.page-hero-vid-content h2 {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.85;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* ---------- Sections ---------- */
.cleanups-section {
    padding: var(--space-2xl) 0;
    overflow: hidden;
}
.info-cards-section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-light);
}

/* --- Swiper Feed Carousel --- */
.cleanups-section .section-title {
    text-align: center !important;
    font-family: var(--font-heading) !important;
    font-size: 2.2rem !important;
    font-style: normal !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.85) !important;
    letter-spacing: 0.5px;
}
.cleanups-swiper {
    padding: 80px 0 60px;
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden !important;
}
.cleanups-swiper .swiper-slide {
    width: 280px !important;
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.6;
    margin: 60px 20px 20px;
}
.cleanups-swiper .swiper-slide-active {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.4);
    z-index: 9999;
}
.feed-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    font-size: 1.8rem;
    transition: color 0.3s;
}
.feed-nav:hover { color: rgba(255,255,255,0.9); }
.feed-nav-prev { left: 10px; }
.feed-nav-next { right: 10px; }

/* Feed card — social media post style */
.feed-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.feed-card-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
}
.swiper-slide-active .feed-card-header {
    opacity: 1;
    pointer-events: all;
}

.feed-card-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.2px solid #ddd;
}
.feed-card-meta {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.feed-card-title {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--color-dark-slate);
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-card-date {
    display: block;
    font-size: 0.5rem;
    color: var(--color-text-muted);
}
.feed-card-kg {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.6rem;
    color: var(--color-dark-slate);
    margin-right: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.feed-card-actions {
    display: flex;
    gap: 4px;
}
.feed-card-actions {
    flex-shrink: 0;
}
.feed-card-actions i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.5rem;
    color: var(--color-text-muted);
    border-radius: 50%;
}
.feed-card-actions .feed-heart { color: #e74c3c; }

.feed-card-image {
    display: block;
}
.feed-card-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.feed-card-footer {
    display: flex;
    align-items: center;
    padding: 6px 12px 10px;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.6rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}
.swiper-slide-active .feed-card-footer {
    opacity: 1;
    pointer-events: all;
}

.feed-footer-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}
.feed-card-footer strong { color: var(--color-dark-slate); font-weight: 500; }
.feed-card-footer a { color: var(--color-primary); text-decoration: none; }

.section-title {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

/* ---------- Beach Grid ---------- */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.location-card {
    display: block;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

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

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

.location-card .fallback-img {
    object-fit: contain;
    background: var(--color-bg-light);
    padding: var(--space-lg);
}

.location-card-body {
    padding: var(--space-md);
}

.location-name {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.location-stats {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.location-stats i { margin-right: 4px; }

/* ---------- Info Cards ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.info-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: inherit;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.info-card h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.info-card--cta {
    background: var(--color-primary);
    color: white;
}

.info-card--cta h4,
.info-card--cta p { color: white; }

/* ---------- Quienes Somos ---------- */
.profile-section {
    padding: var(--space-lg) 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--color-bg);
    box-shadow: var(--shadow-lg);
    margin-top: -60px;
    background: white;
}

.profile-info {
    flex: 1;
}

.profile-hashtag {
    height: 30px;
    width: auto;
    margin-bottom: var(--space-sm);
}

.profile-stats {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.profile-stats strong {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.profile-action {
    flex-shrink: 0;
}

.about-video-section {
    padding: var(--space-xl) 0;
    background: var(--color-bg);
}

.about-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-intro {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: var(--space-xl);
}

.about-gallery {
    padding: var(--space-xl) 0;
    background: var(--color-bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-item { cursor: pointer; overflow: hidden; border-radius: var(--radius); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.is-open { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 1 !important;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 16px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 1001;
}

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

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .profile-header { flex-direction: column; text-align: center; }
    .profile-stats { flex-direction: column; gap: var(--space-sm); }
    .profile-avatar img { margin-top: -30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox-prev { left: 8px; padding: 12px 8px; }
    .lightbox-next { right: 8px; padding: 12px 8px; }
}

/* ---------- Page Toolbar ---------- */
.page-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.toolbar-right { display: flex; gap: var(--space-sm); margin-left: auto; }

.page-toolbar .search-input {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

/* ---------- Page Content ---------- */
.page-content {
    padding: var(--space-2xl) 0;
}

.page-hero {
    height: 300px;
    background-color: var(--color-dark-slate);
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.page-title-blue {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.page-title-dark {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    padding: var(--space-md) 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

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

/* ---------- About ---------- */
.about-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--color-bg-light);
    box-shadow: var(--shadow-lg);
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark-slate);
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

.about-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin: var(--space-xl) 0 var(--space-md);
}

.about-body p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* ---------- Stats Layout ---------- */
.stats-layout,
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
}

.stats-sidebar { position: sticky; top: var(--space-lg); }

.totals-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.total-row:last-child { border-bottom: none; }

.total-row--highlight {
    font-size: 1rem;
    font-weight: 600;
}

/* --- Limpieza Location Overview --- */

.limpieza-hero {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #445;
}
.limpieza-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}
.limpieza-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem var(--space-xl);
    color: white;
    z-index: 1;
}
.limpieza-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.limpieza-hero-content .breadcrumbs {
    margin-bottom: 0.5rem;
}
.limpieza-hero-content .breadcrumbs a,
.limpieza-hero-content .breadcrumbs span {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}
.limpieza-hero-content .breadcrumbs a:hover {
    color: white;
}

.limpieza-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.year-group {
    margin-bottom: var(--space-xl);
}
.year-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark-slate);
    margin-bottom: var(--space-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.year-heading i {
    color: var(--color-primary);
    font-size: 1rem;
}

.cleanup-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
}
.cleanup-card {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cleanup-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.cleanup-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.cleanup-card-header i {
    color: var(--color-primary);
    font-size: 0.85rem;
}
.cleanup-card-header h3 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark-slate);
    margin: 0;
}
.cleanup-card-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.cleanup-card-stats i {
    margin-right: 4px;
    font-size: 0.7rem;
}
.cleanup-card-kg {
    font-weight: 600;
    color: var(--color-primary);
}

.limpieza-sidebar {
    position: sticky;
    top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.limpieza-sidebar .totals-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-slate);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}
.limpieza-sidebar .totals-card h3 i {
    color: var(--color-primary);
}

.location-map-widget h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-slate);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}
.location-map-widget h3 i {
    color: var(--color-primary);
}
.location-map-img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.location-map-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-top: 6px;
}

.back-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* --- Cleanup Navigation --- */
.cleanup-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-sm);
}
.cleanup-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.cleanup-nav-link:hover { color: var(--color-primary-hover); }
.cleanup-nav-center {
    font-weight: 600;
    color: var(--color-dark-slate);
    background: var(--color-bg);
    padding: 6px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.cleanup-nav-center:hover { border-color: var(--color-primary); color: var(--color-primary); }

.limpieza-hero-sub {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* --- Detail Sections --- */
.detail-section {
    margin-bottom: var(--space-xl);
}
.detail-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark-slate);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-section-title i {
    color: var(--color-primary);
}

.materials-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.material-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    transition: background 0.15s;
}
.material-row:last-child { border-bottom: none; }
.material-row:hover { background: #f8fafc; }
.material-row--total {
    background: var(--color-bg);
    font-weight: 700;
}
.material-row--total .material-kg {
    color: var(--color-primary);
    font-size: 1rem;
}
.material-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-dark-slate);
}
.material-name i {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}
.material-kg {
    font-weight: 600;
    color: var(--color-dark-slate);
    white-space: nowrap;
}

.detail-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

/* --- Tabs --- */
.detail-tabs {
    margin: var(--space-lg) 0;
}
.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: none;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--color-dark-slate); }
.tab-btn.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.tab-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.6;
}
.tab-btn.is-active img { opacity: 1; }

/* --- Material Icons --- */
.material-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.material-icon--round {
    border-radius: 50%;
    object-fit: cover;
}
.material-row--link {
    text-decoration: none;
    color: inherit;
    display: flex;
}
.material-row--link:hover {
    background: #f0f4ff;
}
.material-row--link .material-kg {
    color: var(--color-primary);
}

/* --- Gallery --- */
.cleanup-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.gallery-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Arte Efímero Gallery --- */
.arte-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.arte-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.arte-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.arte-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.arte-image.gallery-item {
    aspect-ratio: 1;
    border: none;
    border-radius: 0;
}
.arte-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.arte-link {
    display: block;
    padding: 10px 14px 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.arte-link:hover { background: #f0f4ff; }
.arte-meta-loc {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-dark-slate);
}
.arte-meta-date {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}
.arte-link i {
    font-size: 0.6rem;
    margin-right: 3px;
}

/* --- Videos --- */
.cleanup-videos {
    display: grid;
    gap: var(--space-md);
}
.video-item video {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.video-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
}
.video-download:hover { text-decoration: underline; }

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
}
.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: var(--radius);
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}
.cleanup-nav--bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.stats-sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* ---------- Tables ---------- */
.stats-table,
.links-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stats-table th,
.links-table th {
    text-align: left;
    padding: var(--space-md);
    border-bottom: 2px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text-dark);
}

.stats-table td,
.links-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.stats-table a { color: var(--color-primary); }

.link-icon { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.link-date { white-space: nowrap; font-size: 0.8rem; color: var(--color-text-muted); }
.link-desc { font-size: 0.85rem; color: var(--color-text-muted); max-width: 400px; }

.links-table-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.links-table { border-collapse: separate; border-spacing: 0; }

.links-table th {
    background: #fafafa;
    border-bottom: 2px solid var(--color-border);
    font-size: 0.85rem;
}

.links-table td { border-bottom: 1px solid #f0f0f0; }

.links-table tbody tr { transition: background 0.15s; }
.links-table tbody tr:hover { background: #f8f9fc; }
.links-table tbody tr:last-child td { border-bottom: none; }

/* Links toolbar */
.links-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.links-search { flex: 1; }
.links-search .search-input { border: 1px solid var(--color-border); background: var(--color-bg); }

.links-view-toggle { display: flex; gap: 4px; }

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.view-btn.is-active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* Links card grid */
.links-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-md);
}

.link-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.link-card-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.link-card-preview.is-facebook { background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%); }
.link-card-preview.is-web { background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-teal) 100%); }

.link-card-preview img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.2);
    padding: 8px;
}

.link-card-preview img.link-card-cover {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    padding: 0;
    background: none;
    position: absolute;
    inset: 0;
}

.link-card-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
}

.link-card-icon { display: none; }

.link-card-body { flex: 1; min-width: 0; }

.link-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark-slate);
    margin-bottom: 4px;
    line-height: 1.3;
}

.link-card-excerpt {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-card-date {
    font-size: 0.7rem;
    color: #cecece;
    margin-top: 6px;
    display: block;
}

.link-card-arrow {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--color-primary); }
.sortable i { font-size: 0.7rem; margin-left: 4px; opacity: 0.5; }

.links-table-wrap { overflow-x: auto; }

@media (max-width: 767px) {
    .links-card-grid { grid-template-columns: 1fr; }
    .links-toolbar { flex-wrap: wrap; }
}

/* ---------- Map ---------- */
.map-page {
    display: grid;
    grid-template-columns: 1fr 380px;
    min-height: calc(100vh - 150px);
}

.map-container {
    min-height: 500px;
    position: relative;
}
.map-style-select {
    position: absolute;
    bottom: 30px;
    left: 10px;
    z-index: 5;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.map-style-select:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.map-style-select option {
    background: #1a1a1a;
    color: #fff;
}

.map-marker img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    opacity: 1 !important;
}

.map-marker:hover img { transform: scale(1.2); }

.map-cluster-marker {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.map-cluster-marker img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.9;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.map-cluster-marker:hover { transform: scale(1.15); }
.map-cluster-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    line-height: 1.1;
}
.map-cluster-count {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.map-cluster-kg {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
}

.mapboxgl-popup-content {
    border: 1px solid var(--color-border) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    padding: 1.25rem !important;
    border-radius: 0.5rem !important;
}
.mapboxgl-popup-close-button {
    font-size: 1.2rem;
    padding: 4px 8px;
    right: 4px;
    top: 4px;
    color: var(--color-text-muted);
    background: none;
    border: none;
}
.mapboxgl-popup-content *:focus,
.mapboxgl-popup-close-button:focus {
    outline: none;
}
.map-popup-brand {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.map-popup {
    font-family: var(--font-primary);
    max-height: 400px;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.map-popup-header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.map-popup-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.map-popup-header div { min-width: 0; }
.map-popup-header strong { font-size: 0.95rem; color: var(--color-dark-slate); display: block; line-height: 1.3; }
.map-popup-count { font-size: 0.75rem; color: var(--color-text-muted); display: block; }
.map-popup-brand { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; text-align: center; margin: 10px 0; color: var(--color-primary); letter-spacing: 0.5px; }
.map-popup-year { font-weight: 700; font-size: 0.8rem; margin-top: 10px; color: var(--color-dark-slate); }
.map-popup-cleanup { font-size: 0.8rem; color: var(--color-dark-slate); padding: 3px 0 3px 8px; line-height: 1.5; }
.map-popup-cleanup i { color: var(--color-text-muted); font-size: 0.7rem; margin-right: 4px; }
.map-popup-cleanup strong { color: var(--color-primary); }
.map-popup-total { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--color-border); font-size: 0.85rem; color: var(--color-dark-slate); display: flex; justify-content: space-between; align-items: center; }
.map-popup-total strong { color: var(--color-primary); }
.map-popup-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.map-popup-link:hover { background: var(--color-primary-hover); }

.map-region-btns {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.map-region-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.map-region-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.map-region-btn.is-active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.map-loc-card {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.map-loc-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.map-loc-top {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 10px;
}
.map-loc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.map-loc-info {
    flex: 1;
    min-width: 0;
}
.map-loc-info h3 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark-slate);
    margin: 0 0 4px;
}
.map-loc-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.map-loc-meta i {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}
.map-loc-expand {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.map-loc-expand:hover { color: var(--color-primary); }
.map-loc-expand.is-open { transform: rotate(180deg); }
.map-loc-info { cursor: pointer; }
.map-loc-avatar { cursor: pointer; }

/* Sidebar toggle for mobile */
.map-sidebar-toggle {
    display: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark-slate);
    cursor: pointer;
    gap: 6px;
}
.map-sidebar-toggle i { color: var(--color-primary); }
.map-sidebar-toggle.is-open { display: none !important; }
.map-sidebar-close {
    display: none;
    padding: 10px 16px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
}
.map-sidebar-close:hover { color: var(--color-primary); }
@media (max-width: 767px) {
    .map-sidebar-close { display: block; }
}
.map-loc-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.15s;
}
.map-loc-link:hover {
    background: #f0f4ff;
}
.map-loc-link i {
    font-size: 0.75rem;
}

.map-loc-cleanups {
    border-top: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.map-loc-cleanups.is-open {
    max-height: 300px;
    overflow-y: auto;
}
.map-loc-cleanup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 1rem;
    font-size: 0.78rem;
    color: var(--color-dark-slate);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.map-loc-cleanup-item:last-child { border-bottom: none; }
.map-loc-cleanup-item:hover { background: #f0f4ff; }
.map-loc-cleanup-kg {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    margin-left: 8px;
}

/* Fix popup cleanup links */
a.map-popup-cleanup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-dark-slate);
    padding: 3px 0 3px 8px;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s;
}
a.map-popup-cleanup:hover { background: #f0f4ff; }
a.map-popup-cleanup i { color: var(--color-text-muted); font-size: 0.7rem; margin-right: 4px; }
a.map-popup-cleanup strong { color: var(--color-primary); }

.map-search { height: 36px; font-size: 0.85rem; border: 1px solid var(--color-border) !important; background: var(--color-bg) !important; }

.map-placeholder i { font-size: 3rem; margin-bottom: var(--space-md); }
.map-note { font-size: 0.8rem; margin-top: var(--space-sm); opacity: 0.5; }

.map-sidebar {
    padding: 0 2rem 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    background: white;
}
.sidebar-title {
    font-family: var(--font-subheading);
    font-size: 1.15rem;
    color: var(--color-dark-slate);
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    margin: 0;
    padding-top: 1rem;
}

.sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.location-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.location-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.location-stats {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ---------- Adopta ---------- */
.adopta-section {
    position: relative;
    color: white;
    padding: var(--space-2xl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.adopta-inner {
    position: relative;
    z-index: 2;
}

.adopta-section h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.adopta-form {
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: var(--space-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.adopta-info {
    max-width: 700px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.15);
}

.adopta-info-block {
    margin-bottom: var(--space-xl);
}

.adopta-info-block h3 {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: rgba(255,255,255,0.9);
}

.adopta-info-block h3 i {
    margin-right: 8px;
    color: var(--color-teal);
}

.adopta-info-block p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-sm);
}

.adopta-info-block ul {
    list-style: none;
    padding: 0;
}

.adopta-info-block li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.adopta-info-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-teal);
}

.adopta-info-block li strong {
    color: rgba(255,255,255,0.85);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: rgba(255,255,255,0.8);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 0.9rem;
}

.form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus { outline: none; border-color: var(--color-primary); }

/* ---------- Contact ---------- */
.contact-info { max-width: 600px; }
.contact-info p { margin-bottom: var(--space-lg); }
.contact-social { display: flex; gap: var(--space-md); }

/* ---------- Article ---------- */
.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: var(--space-lg);
}

.article-body p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--color-bg-light);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.cta-section h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.footer-logo { width: 80px; height: 80px; border-radius: 50%; }

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    transition: background 0.2s;
}

.footer-social a:hover { background: var(--color-primary-hover); color: white; }

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

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

.footer-links li { margin-bottom: var(--space-xs); }

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

.footer-bottom {
    max-width: var(--max-width);
    margin: var(--space-lg) auto 0;
    padding: var(--space-md) var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

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

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

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

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

.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; width: 100%; justify-content: center; }

/* ---------- Go to Top ---------- */
.go-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    font-size: 1rem;
}

.go-to-top.visible { opacity: 0.8; visibility: visible; }
.go-to-top:hover { opacity: 1; }

/* ---------- Responsive ---------- */

/* Mobile: hide desktop search, stats; show mobile search icon */
@media (max-width: 767px) {
    /* body padding-top set dynamically by JS */
    .top-nav { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 50px auto; padding: 0 10px; height: auto; align-items: center; }
    .top-nav-left { grid-column: 1; grid-row: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
    .top-nav-right { grid-column: 2; grid-row: 1; padding: 0; display: flex; align-items: center; }
    .brand .navbar-logo { border: none; }
    .brand .navbar-logo img { height: 36px; width: auto; max-width: 100%; min-width: 0; margin-right: 0; object-fit: contain; }
    .search-widget { margin-left: 8px; flex: 1; }
    .search-input { width: 100%; max-width: none; height: 32px; padding: 4px 12px 4px 32px; font-size: 0.75rem; }
    .search-icon-left { height: 32px; width: 32px; }
    .search-icon-left svg { width: 14px; height: 14px; }
    .somosunaola-achievments { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; border-top: 1px solid var(--color-border); padding: 4px 0; }
    .somosunaola-achievments .page-counts { width: 100%; justify-content: space-around; }
    .count-item { padding: 0; border-right: none; flex: 1; }
    .count-number { font-size: 0.85rem; }
    .count-label { font-size: 0.5rem; }
    .count-icon { display: none; }
    .icon-link { width: 32px; height: 32px; }
    .icon-link.is-active, .icon-link.is-primary { box-shadow: none; }
    .nav-icon-item { padding: 0 4px; }
    .sub-nav { height: 50px; padding: 0; overflow-x: auto; align-items: stretch; -webkit-overflow-scrolling: touch; }
    .sub-nav-tabs { display: flex; align-items: stretch; }
    .sub-nav-tabs ul { justify-content: flex-start; padding: 0 8px; align-items: stretch; }
    .sub-nav-tabs li { display: flex; }
    .sub-nav-tabs li a { height: auto; font-size: 0.8rem; padding: 0 0.5rem; display: flex; align-items: center; }
    #open-mobile-search { display: block; }
    .nav-drop { position: fixed !important; top: 60px !important; left: 10px !important; right: 10px !important; width: auto !important; }
    .slogan { margin-top: 60px; min-height: 25vw; }
    .slogan-content h2 { font-size: 10vw; }
    .typing-word { font-size: 4.5vw; }
    .typing-container { margin-bottom: 15vw; }
    .location-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .stats-layout,
    .detail-layout,
    .limpieza-layout { grid-template-columns: 1fr; }
    .map-page { grid-template-columns: 1fr; position: relative; }
    .map-sidebar {
        display: none;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        max-height: 60vh;
        background: white;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    }
    .map-sidebar.is-open { display: block; }
    .map-sidebar-toggle { display: flex; align-items: center; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .about-header { flex-direction: column; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .form-row { grid-template-columns: 1fr; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .search-input { width: 100%; max-width: 200px; }
    .count-item { padding: 0 12px; }
    .count-number { font-size: 1.1rem; }
    .sub-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sub-nav::-webkit-scrollbar { display: none; }
    .sub-nav-tabs li a { padding: 0 10px; font-size: 0.9rem; }
}


/* Desktop: show stats, hide mobile search trigger */
@media (min-width: 1025px) {
    .somosunaola-achievments { display: flex; }
    #open-mobile-search { display: none; }
}

/* ==========================================================================
   Extracted Inline Styles (v90)
   ========================================================================== */

/* -- Utility: hidden tab content -- */
.is-hidden { display: none; }

/* -- Toolbar spacing -- */
.page-toolbar--spaced { margin-bottom: var(--space-lg); }

/* -- Search input variants -- */
.search-input--flex { flex: 1; max-width: 400px; }
.search-input--full { width: 100%; max-width: 100%; }
.search-input--map { width: 100%; margin-bottom: 1rem; }

/* -- Chart containers -- */
.chart-container--md { min-height: 600px; }
.chart-container--lg { min-height: 800px; }

/* -- Materials table spacing -- */
.materials-table--spaced { margin-bottom: 1.5rem; }

/* -- Section title variants -- */
.section-title--light { color: rgba(255, 255, 255, 0.9); }
.section-title--spaced { margin-bottom: var(--space-lg); }

/* -- Swiper fade-in -- */
.swiper--fade-in { opacity: 0; transition: opacity 0.5s; }

/* -- Event detail meta spacing -- */
.location-stats--spaced { margin-bottom: 2rem; }

/* -- Honeypot (spam trap) -- */
.honeypot-field { position: absolute; left: -9999px; }

/* -- Links card grid initial state -- */
.links-cards--hidden { display: none; }
