/*
Theme Name: Cubanos Por Libertad Redesign
Theme URI: https://cubanosporlibertad.com
Author: Antigravity AI
Description: Tema premium, ultra moderno y responsivo para la plataforma Cubanos Por Libertad, optimizado para SiteGround y compatible con moviles.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cubanos-por-libertad
*/

/* ==========================================================================
   DESIGN SYSTEM - CUBANOS POR LIBERTAD REDESIGN
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #030712;         /* Deepest navy dark background */
    --bg-secondary: #0b1528;       /* Lighter navy container background */
    --bg-card: rgba(15, 23, 42, 0.45); /* Translucent glass card background */
    
    --color-blue: #1d4ed8;         /* Primary brand blue */
    --color-blue-glow: rgba(29, 78, 216, 0.15);
    
    --color-red: #e11d48;          /* Accent resistance red */
    --color-red-glow: rgba(225, 29, 72, 0.15);
    
    --color-gold: #eab308;         /* Accent gold */
    --color-gold-glow: rgba(234, 179, 8, 0.15);
    
    --color-text-main: #f8fafc;    /* High contrast slate/white */
    --color-text-muted: #94a3b8;   /* Muted grey/blue */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Variables */
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --max-width: 1200px;
}

/* ==========================================================================
   RESET & SYSTEM STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

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

.page-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue);
}

/* ==========================================================================
   GLOWING BACKGROUND AESTHETICS
   ========================================================================== */

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 50%;
    right: -10%;
    background: radial-gradient(circle, var(--color-red) 0%, transparent 70%);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--color-text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, var(--color-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--color-red);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.p-5 { padding: 2.5rem; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 3rem; }
.hidden { display: none !important; }

/* Grid Layouts */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(29, 78, 216, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(3, 7, 18, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    margin-right: 0.45rem;
    border: 2px solid var(--color-blue);
    object-fit: cover;
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.2);
}

.logo:hover .logo-img {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(29, 78, 216, 0.5);
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.15rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.4rem 0.1rem;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-red));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-main);
}

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

.nav-action-btn {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3), 0 4px 12px rgba(225, 29, 72, 0.3) !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

.nav-action-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.45), 0 6px 18px rgba(225, 29, 72, 0.45) !important;
    filter: brightness(1.1) !important;
}

.nav-link i {
    font-size: 0.85rem;
    margin-right: 0.4rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.content-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

.section {
    padding: 8rem 0 6rem 0;
    position: relative;
}

.bg-navy-shade {
    background-color: var(--bg-secondary);
}

.section-header {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
}

/* ==========================================================================
   HERO SECTION (WITH CINEMATIC LOCAL BG)
   ========================================================================== */

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 95vh;
    padding-top: 10rem;
    overflow: hidden;
    /* High fidelity background overlay */
    background: 
        linear-gradient(rgba(3, 7, 18, 0.85) 0%, rgba(3, 7, 18, 0.95) 100%), 
        url('assets/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    background-position: center 30%;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 0 2rem;
}

.tagline-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(29, 78, 216, 0.1);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #60a5fa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

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

.hero-cards-container {
    margin-top: 6rem;
    position: relative;
    z-index: 2;
}

.hero-feature-card {
    padding: 2.5rem;
    position: relative;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.blue-glow {
    background: var(--color-blue-glow);
    color: #60a5fa;
    border: 1px solid rgba(29, 78, 216, 0.3);
}

.red-glow {
    background: var(--color-red-glow);
    color: #f43f5e;
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.gold-glow {
    background: var(--color-gold-glow);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.hero-feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */

.about-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.visual-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) brightness(0.95);
    transition: var(--transition-smooth);
}

.visual-wrapper:hover .visual-img {
    transform: scale(1.05);
}

.visual-backdrop {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-blue);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    transition: var(--transition-smooth);
}

.about-visual:hover .visual-backdrop {
    top: 5%;
    left: 5%;
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
}

.floating-badge i {
    color: var(--color-red);
}

.card-header-with-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-icon {
    font-size: 1.5rem;
    color: var(--color-blue);
}

.border-left-blue {
    border-left: 4px solid var(--color-blue);
}

.border-left-red {
    border-left: 4px solid var(--color-red);
}

/* ==========================================================================
   STATS DASHBOARD SECTION
   ========================================================================== */

.stats-card {
    padding: 2rem;
}

.stats-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Custom Chart */
.custom-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.chart-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.chart-progress {
    height: 8px;
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-blue { background-color: var(--color-blue); box-shadow: 0 0 10px rgba(29, 78, 216, 0.4); }
.bg-red { background-color: var(--color-red); box-shadow: 0 0 10px rgba(225, 29, 72, 0.4); }
.bg-gold { background-color: var(--color-gold); box-shadow: 0 0 10px rgba(234, 179, 8, 0.4); }
.bg-slate { background-color: var(--color-text-muted); }

.chart-percent {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 35px;
    text-align: right;
}

.violation-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.violation-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.violation-bullet {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.violation-list li strong {
    display: block;
    color: var(--color-text-main);
    margin-bottom: 0.15rem;
}

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-blue) 0%, var(--color-red) 50%, var(--color-gold) 100%);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-left {
    align-self: flex-start;
    padding-right: 3rem;
}

.timeline-right {
    align-self: flex-end;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    top: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition-smooth);
}

.timeline-left .timeline-marker {
    right: -20px;
}

.timeline-right .timeline-marker {
    left: -20px;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--color-blue);
    box-shadow: 0 0 15px var(--color-blue);
    transform: scale(1.1);
}

.timeline-card {
    padding: 2rem;
    position: relative;
}

.timeline-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.timeline-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.timeline-badge-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 1rem;
}

.tag-red { background: rgba(225, 29, 72, 0.1); border: 1px solid rgba(225, 29, 72, 0.2); color: #f43f5e; }
.tag-blue { background: rgba(29, 78, 216, 0.1); border: 1px solid rgba(29, 78, 216, 0.2); color: #60a5fa; }
.tag-gold { background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.2); color: #facc15; }
.tag-teal { background: rgba(13, 148, 136, 0.1); border: 1px solid rgba(13, 148, 136, 0.2); color: #2dd4bf; }

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */

.blog-filters {
    display: flex;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border-color: var(--border-hover);
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

#blogSearch {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

#blogSearch:focus {
    outline: none;
    border-color: var(--color-blue);
    background: rgba(255, 255, 255, 0.05);
}

.blog-post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-post-card:hover .blog-post-img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
}

.blog-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.blog-post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-post-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.read-more-link {
    text-decoration: none;
    color: var(--color-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.read-more-link:hover {
    color: #60a5fa;
    gap: 0.75rem;
}

/* ==========================================================================
   ACTION & CONTACT SECTION
   ========================================================================== */

.action-options-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-item {
    display: flex;
    gap: 1.25rem;
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.font-sm {
    font-size: 0.85rem;
}

.social-share-panel {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.share-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: #fff;
    transform: scale(1.08);
}

.instagram-link:hover { background: #e1306c; border-color: #e1306c; box-shadow: 0 0 15px rgba(225, 48, 108, 0.4); }
.tiktok-link:hover { background: #010101; border-color: #00f2fe; box-shadow: 0 0 15px rgba(0, 242, 254, 0.3); }
.twitter-link:hover { background: #000000; border-color: #333333; box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
.youtube-link:hover { background: #ff0000; border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
.threads-link:hover { background: #000000; border-color: #ffffff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); }

/* Custom Forms */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.textarea-icon {
    top: 1.25rem;
}

.custom-form input, .custom-form textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.custom-form input:focus, .custom-form textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    background: rgba(255, 255, 255, 0.04);
}

.custom-form textarea {
    resize: none;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-blue);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success { border-color: #22c55e; }
.toast.success i { color: #22c55e; }

.toast i {
    font-size: 1.2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background-color: #020617;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 0 0;
}

.footer-content-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 4rem;
    gap: 4rem;
}

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

.max-w-xs {
    max-width: 250px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 180px);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: #fff;
    padding-left: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-up-delayed { opacity: 0; animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.animate-slide-up-further { opacity: 0; animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; }

.animate-card-1 { opacity: 0; animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }
.animate-card-2 { opacity: 0; animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards; }
.animate-card-3 { opacity: 0; animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Scroll Reveal Classes (Driven by JS IntersectionObserver) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed .animate-left,
.scroll-reveal.revealed .animate-right {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        align-self: flex-start !important;
        padding-left: 5rem !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
    }
    
    .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .main-header {
        height: var(--header-height);
    }
    
    .logo-text {
        display: none; /* Ocultar el texto de marca en tablets y móviles para evitar que colisione con el menú e iconos */
    }
    
    .header-container, 
    .container, 
    .hero-content {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .section {
        padding: 4rem 0; /* Espaciado más compacto y natural en pantallas táctiles */
    }
    
    .hero-section {
        min-height: auto; /* Evita saltos de altura por la barra de dirección dinámica en navegadores de celular */
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        width: 34px;
        height: 34px;
        padding: 0;
        z-index: 101;
    }
    
    .mobile-toggle .bar {
        display: block;
        width: 24px;
        height: 2px;
        margin: 3px 0;
        background-color: var(--color-text-main);
        transition: var(--transition-smooth);
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        padding: 2.5rem 1.5rem;
        transition: var(--transition-smooth);
        z-index: 99;
        overflow-y: auto; /* Permite scroll vertical dentro de la barra si el contenido es largo */
    }
    
    .nav-menu.active {
        right: 0;
        box-shadow: -15px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch; /* Estirar los elementos al 100% de la barra lateral */
        width: 100%;
        gap: 1.25rem;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.05rem;
        display: block;
        width: 100%;
        padding: 0.8rem 1.25rem;
        border-radius: var(--border-radius-md);
        border-left: 3px solid transparent;
        background: rgba(255, 255, 255, 0.01);
        border: 1px solid rgba(255, 255, 255, 0.02);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover, .nav-link.active {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.06);
        border-left: 3px solid var(--color-blue);
        padding-left: 1.5rem;
    }
    
    .nav-action-btn {
        display: block;
        width: 100%;
        margin-top: 0.75rem;
        text-align: center;
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .header-controls {
        margin-left: auto;
        margin-right: 1rem;
        z-index: 100;
        gap: 0.75rem;
    }
    
    body.light-theme .nav-menu {
        background: #f8fafc;
        border-left: 1px solid rgba(15, 23, 42, 0.08);
    }
    
    .footer-content-wrap {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .p-5 {
        padding: 1.25rem !important; /* Reducido para maximizar espacio útil dentro de tarjetas en teléfonos pequeños */
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .stats-number {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   HEADER CONTROLS (THEME & LANGUAGE)
   ========================================================================== */

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: 1.5rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

/* Theme toggle visibility in dark/light */
.dark-theme .icon-light { display: none; }
.dark-theme .icon-dark { display: block; }

.light-theme .icon-light { display: block; }
.light-theme .icon-dark { display: none; }

/* Language Selector */
.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--color-text-main);
}

.lang-btn.active {
    background: var(--color-blue);
    color: #fff;
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.35);
}

/* ==========================================================================
   LIGHT THEME VARIABLES & OVERRIDES
   ========================================================================== */

body.light-theme {
    --bg-primary: #f8fafc;          /* Pure white/light grey */
    --bg-secondary: #f1f5f9;        /* Light grey containers */
    --bg-card: rgba(255, 255, 255, 0.75); /* Translucent white card */
    
    --color-text-main: #0f172a;     /* Deep slate black */
    --color-text-muted: #475569;    /* Medium slate grey */
    
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.18);
    
    --color-blue-glow: rgba(59, 130, 246, 0.06);
    --color-red-glow: rgba(239, 68, 68, 0.06);
    --color-gold-glow: rgba(234, 179, 8, 0.06);
}

body.light-theme .grid-overlay {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
}

body.light-theme .bg-glow {
    opacity: 0.06;
}

body.light-theme .glass-card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

body.light-theme .glass-card:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

body.light-theme .section-title {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .custom-form input, 
body.light-theme .custom-form textarea,
body.light-theme #blogSearch {
    background: rgba(15, 23, 42, 0.02);
    color: #0f172a;
}

body.light-theme .custom-form input:focus, 
body.light-theme .custom-form textarea:focus,
body.light-theme #blogSearch:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-blue);
}

body.light-theme .toast {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

body.light-theme .main-header {
    background: rgba(248, 250, 252, 0.7);
}

body.light-theme .main-header.scrolled {
    background: rgba(248, 250, 252, 0.95);
}

body.light-theme .control-btn {
    background: rgba(15, 23, 42, 0.02);
}

body.light-theme .control-btn:hover {
    background: rgba(15, 23, 42, 0.06);
}

body.light-theme .lang-selector {
    background: rgba(15, 23, 42, 0.02);
}

body.light-theme .main-footer {
    background-color: #f1f5f9;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

body.light-theme .footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

body.light-theme .nav-link:hover, 
body.light-theme .nav-link.active {
    color: #0f172a;
}

body.light-theme .hero-section {
    background: 
        linear-gradient(rgba(248, 250, 252, 0.85) 0%, rgba(248, 250, 252, 0.95) 100%), 
        url('assets/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    background-position: center 30%;
}

/* ==========================================================================
   FLOATING BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--color-text-main);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.back-to-top-btn:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(29, 78, 216, 0.45);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.light-theme .back-to-top-btn {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

body.light-theme .back-to-top-btn:hover {
    box-shadow: 0 12px 25px rgba(29, 78, 216, 0.25);
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   CONSTRUCTION BANNER WARNING CAPSULE
   ========================================================================== */

.construction-banner {
    position: fixed;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.85); /* Deep slate warning background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(234, 179, 8, 0.4); /* Golden border */
    border-radius: var(--border-radius-md);
    color: var(--color-text-main);
    padding: 0.65rem 2.75rem 0.65rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 98; /* Under header dropdown but above rest of content */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(234, 179, 8, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: calc(100% - 2.5rem);
    max-width: 600px;
    box-sizing: border-box;
}

.construction-banner span {
    flex: 1;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}

.construction-banner.hidden {
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
    pointer-events: none;
}

.banner-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.banner-close:hover {
    color: var(--color-text-main);
    transform: translateY(-50%) scale(1.1);
}

.text-gold {
    color: #eab308;
}

/* Light mode support for the construction banner */
body.light-theme .construction-banner {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(234, 179, 8, 0.5);
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
    .construction-banner {
        top: 85px; /* sit cleanly under mobile header */
        left: 1rem;
        right: 1rem;
        width: auto;
        transform: none;
        font-size: 0.8rem;
        padding: 0.6rem 2.5rem 0.6rem 1.25rem;
    }
}

/* Light mode overrides for help options cards */
body.light-theme .action-card-item {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .action-card-item:hover {
    background: rgba(15, 23, 42, 0.04);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

