/* ==========================================================================
   MeKatrons - Convocatoria EDUTEKA 2026 Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Color Palette - Light Mode (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f0f7ff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fbff;
    --border-color: rgba(59, 130, 246, 0.15);
    --text-primary: #0d1b3e;
    --text-secondary: #334d7a;
    --text-muted: #6b8ab5;
    --accent-primary: #0ea5e9; /* Sky Blue */
    --accent-secondary: #2563eb; /* Indigo Blue */
    --accent-tertiary: #06b6d4; /* Cyan */
    --gradient-primary: linear-gradient(135deg, #2563eb, #0ea5e9);
    --gradient-glow: rgba(14, 165, 233, 0.15);
    
    /* Global Styles */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.06);
    --shadow-md: 0 4px 20px -2px rgba(37, 99, 235, 0.1), 0 2px 8px -1px rgba(37, 99, 235, 0.06);
    --shadow-lg: 0 20px 40px -15px rgba(37, 99, 235, 0.18);
    --shadow-glass: 0 8px 32px 0 rgba(37, 99, 235, 0.08);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(12px);
    
    --header-height: 80px;
}

[data-theme="dark"] {
    /* Color Palette - Dark Mode */
    --bg-primary: #070d1a;
    --bg-secondary: #0d1b33;
    --bg-card: rgba(13, 27, 51, 0.8);
    --bg-card-hover: rgba(20, 40, 75, 0.9);
    --border-color: rgba(14, 165, 233, 0.15);
    --text-primary: #e8f4fd;
    --text-secondary: #a8c8e8;
    --text-muted: #6b8ab5;
    --gradient-glow: rgba(14, 165, 233, 0.3);
    --shadow-md: 0 4px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

button, input {
    font-family: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sections Common Header */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

/* Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .main-header {
    background: rgba(7, 13, 26, 0.92);
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 58px;
    width: auto;
    max-width: 68px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.18));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(-3deg);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--text-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.theme-btn:hover {
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

/* Toggle Switch Icon Visibility */
.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.cta-header-btn {
    background: var(--gradient-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.cta-header-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 80px;
    background-image: url('assets/images/hero_bg.png');
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 85vh;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(240,247,255,0.35) 50%, rgba(255,255,255,0.05) 100%);
    z-index: 1;
}

[data-theme="dark"] .hero-bg-overlay {
    background: radial-gradient(circle at 30% 50%, rgba(7, 13, 26, 0.85) 0%, rgba(7, 13, 26, 0.4) 70%);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 580px;
    margin-left: 5%;
    margin-right: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hero-content {
    width: 100%;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.88);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--accent-primary);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .hero-description {
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-motto-quote {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.85);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero-motto-quote {
    background: rgba(15, 23, 42, 0.85);
}

.hero-motto-quote .quote-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.hero-motto-text {
    margin: 0;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.hero-motto-text strong {
    color: var(--accent-primary);
    font-style: normal;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

/* Ficha Resumen Card */
.hero-interactive-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg), var(--shadow-glass);
    position: relative;
    z-index: 2;
    width: 100%;
}

[data-theme="dark"] .hero-interactive-card {
    background: rgba(15, 23, 42, 0.88);
}

.interactive-card-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.timeline-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.timeline-list li {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timeline-date {
    background: var(--gradient-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    min-width: 75px;
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.timeline-desc {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Section I: Datos del Proyecto */
.impact-section {
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 3;
}

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

.metric-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 36px 26px;
    text-align: center;
    box-shadow: var(--shadow-md), var(--shadow-glass);
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.metric-icon svg {
    width: 28px;
    height: 28px;
}

.info-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Section II: Problemática & Objetivos Layout */
.proposal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.proposal-box {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md), var(--shadow-glass);
    position: relative;
    transition: var(--transition-smooth);
}

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

.box-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.box-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.box-badge.primary {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.box-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.box-icon svg {
    width: 26px;
    height: 26px;
}

.proposal-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.proposal-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.general-goal {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-primary);
}

.general-goal strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.general-goal p {
    font-size: 0.95rem;
    margin: 0;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.goals-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.check-bullet {
    background: var(--gradient-primary);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Metodologías Activas Section */
.methodology-section {
    background-color: var(--bg-secondary);
}

.methodology-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.methodology-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 36px;
    box-shadow: var(--shadow-md), var(--shadow-glass);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.methodology-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.meth-icon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.meth-icon-header svg {
    width: 38px;
    height: 38px;
    color: var(--accent-primary);
}

.meth-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.methodology-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.methodology-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.meth-features {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meth-features li {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meth-features li::before {
    content: "•";
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* Resource Section (PDFs) */
.resources-section {
    background-color: var(--bg-primary);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

.resource-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md), var(--shadow-glass);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.resource-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.resource-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.resource-icon-wrapper.pdf {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.resource-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.file-type-tag {
    font-size: 0.65rem;
    font-weight: 800;
    position: absolute;
    bottom: 4px;
}

.resource-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.5;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-bottom: 18px;
}

.resource-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-preview {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.btn-download {
    background: var(--gradient-primary);
    color: #ffffff;
}

.btn-download:hover {
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
    opacity: 0.9;
}

.btn-action svg {
    width: 14px;
    height: 14px;
}

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

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.gallery-filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

/* Resource Category Filters */
.resource-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.resource-filter-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.resource-filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.resource-filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.4) 50%, rgba(9, 13, 22, 0) 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.item-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .item-title,
.gallery-item:hover .item-desc {
    transform: translateY(0);
}

.zoom-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--glass-blur);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.zoom-icon svg {
    width: 18px;
    height: 18px;
}

/* Footer Section */
.main-footer {
    background-color: #090d16;
    color: #f8fafc;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-footer .logo-text {
    color: #ffffff;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-contact p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact strong {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

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

.social-links a:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-links svg {
    width: 16px;
    height: 16px;
}

/* MODAL: Image Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(9, 13, 22, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: transparent;
    border: none;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: var(--transition-smooth);
}

.lightbox-nav:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

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

.lightbox-content {
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    width: 100%;
    padding-top: 20px;
    text-align: center;
}

.lightbox-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: inline-block;
    margin-bottom: 4px;
}

.lightbox-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.lightbox-caption p {
    color: #cbd5e1;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* MODAL: PDF Viewer */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pdf-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.pdf-modal-container {
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg), var(--shadow-glass);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-modal.show .pdf-modal-container {
    transform: translateY(0);
}

.pdf-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.pdf-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pdf-close:hover {
    color: #ef4444;
}

.pdf-modal-body {
    flex-grow: 1;
    background-color: #525659;
    position: relative;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

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

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-up-delay {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.animate-slide-up-delay-2 {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Scroll reveal helper class */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: left;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-interactive-card {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .proposal-details-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 20px;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-menu.show {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .header-actions .cta-header-btn {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Investment Section & Cronograma Styles
   ========================================================================== */
.investment-banner {
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: var(--border-radius-md);
    padding: 30px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.investment-total-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.investment-total-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin: 8px 0;
    letter-spacing: -1px;
}

.investment-total-desc {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.investment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.investment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.inv-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 16px;
    gap: 12px;
}

.inv-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.inv-cost {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.investment-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.investment-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}

.investment-card li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Cronograma Grid */
.cronograma-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.cronograma-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.schedule-step {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    border-left: 4px solid var(--accent-primary);
    transition: var(--transition-smooth);
}

.schedule-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.step-month {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Media & Impact Section */
.media-section {
    padding: 90px 0;
    background-color: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.media-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.media-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .media-card-header {
    background: rgba(255, 255, 255, 0.03);
}

.media-platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.media-card-header.facebook .media-platform-badge svg {
    fill: #1877F2;
}

.media-card-header.instagram .media-platform-badge svg {
    fill: #E4405F;
}

.media-type-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-type-tag.video {
    background-color: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.media-type-tag.post {
    background-color: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.media-type-tag.reel {
    background-color: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.media-card-body {
    padding: 24px 20px;
    flex-grow: 1;
}

.media-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.media-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.media-card-body p strong {
    color: var(--accent-primary);
}

.media-card-footer {
    padding: 16px 20px 20px 20px;
}

.btn-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.facebook-btn {
    background-color: rgba(24, 119, 242, 0.1);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.25);
}

.facebook-btn:hover {
    background-color: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.instagram-btn {
    background-color: rgba(228, 64, 95, 0.1);
    color: #E4405F;
    border: 1px solid rgba(228, 64, 95, 0.25);
}

.instagram-btn:hover {
    background-color: #E4405F;
    color: #ffffff;
    border-color: #E4405F;
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}


