/* ==========================================================================
   KIKE MOREANO - ESTILOS PRINCIPALES (CAMPAÑA ELECTORAL 2026)
   Estética Moderna: Identidad Perú Primero (Rojo, Blanco, Gris) e Interactividad.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES GLOBALES
   -------------------------------------------------------------------------- */
:root {
    /* Paleta de Colores de Campaña */
    --primary-red: #d61919;
    --primary-red-hover: #b31212;
    --primary-red-dim: rgba(214, 25, 25, 0.08);
    --primary-red-light: #fef2f2;

    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark-hover: #1e293b;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border-color: #e2e8f0;
    --border-accent: rgba(214, 25, 25, 0.15);

    /* Tipografías */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Sombras y Efectos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-red: 0 8px 24px rgba(214, 25, 25, 0.25);

    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1200px;
}

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

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

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

/* Tipografía Principal */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

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

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

ul {
    list-style: none;
}

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

/* --------------------------------------------------------------------------
   2. CLASES COMUNES Y CONTENEDORES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Etiquetas de Sección */
.section-tag-red {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    background: var(--primary-red-dim);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(214, 25, 25, 0.2);
}

.section-header {
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 10;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Botones con Estilo Electoral */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(214, 25, 25, 0.35);
}

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

.btn-outline:hover {
    background-color: var(--primary-red-dim);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   3. HEADER Y LOGO DE PERÚ PRIMERO
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid #ddd;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.candidate-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-red);
    letter-spacing: 0.5px;
}

.campaign-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* Menú de Navegación */
.nav-menu ul {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-smooth);
}

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

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: var(--transition-smooth);
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 38px;
    align-items: center;
    z-index: 1001;
}

.mobile-nav-toggle:hover {
    background-color: var(--primary-red-dim);
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-nav-toggle:hover span {
    background-color: var(--primary-red);
}

/* Transform to 'X' when active */
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. SLIDER PRINCIPAL (HERO SLIDER)
   -------------------------------------------------------------------------- */
.hero-slider-section {
    position: relative;
    margin-top: 66px;
    height: 900px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active-slide {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.slide-content-wrapper {
    position: relative;
    z-index: 10;
}

.card-overlay {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 16px;
    max-width: 580px;
    box-shadow: var(--shadow-lg);
    animation: slide-up-anim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.75rem;
}

.slide-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.slide-desc {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.slide-actions {
    display: flex;
    gap: 1rem;
}

.slide-actions .btn-outline {
    color: white;
    border-color: white;
}

.slide-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Flechas de Navegación */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: var(--shadow-red);
}

.prev-arrow {
    left: 2rem;
}

.next-arrow {
    right: 2rem;
}

/* Dotted Indicators */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dots .dot.active {
    background: var(--primary-red);
    width: 25px;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   5. SECCIÓN SOBRE KIKE
   -------------------------------------------------------------------------- */
.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

/* Tarjeta con Marco de Masonería del Cusco */
.about-visual {
    display: flex;
    justify-content: center;
}

.photo-card {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.candidate-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    position: relative;
    border: 4px solid var(--bg-white);
}

.photo-accent {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-red);
    border-radius: 12px;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 1;
}

.photo-info-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--bg-dark);
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    color: white;
    z-index: 10;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.photo-info-badge strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.photo-info-badge span {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 700;
}

/* Texto Informativo */
.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.lead-para {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary-red-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
}

.value-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   6. PLAN DE GOBIERNO (TABS & EJE CARDS)
   -------------------------------------------------------------------------- */
.plan-section {
    padding: 6rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Tabs */
.plan-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.tab-btn {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 1.2rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.tab-btn i {
    width: 22px;
    height: 22px;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    border-color: rgba(214, 25, 25, 0.3);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: var(--primary-red-dim);
    border-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(214, 25, 25, 0.08);
}

/* Tab Panes */
.tab-content-container {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fade-in-anim 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

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

.eje-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2.2rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.eje-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

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

.eje-card:hover::before {
    transform: scaleX(1);
}

.eje-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary-red-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.eje-icon i {
    width: 20px;
    height: 20px;
    color: var(--primary-red);
}

.eje-card h3 {
    font-size: 1.25rem;
}

.eje-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.expand-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.5rem;
}

.expand-btn i {
    width: 14px;
    height: 14px;
}

/* Panel Dinámico Detalle Propuesta */
.proposal-detail-panel {
    display: none;
    margin-top: 3rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-red);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    animation: slide-up-anim 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.proposal-detail-panel.active {
    display: block;
}

.close-panel-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.close-panel-btn:hover {
    color: var(--primary-red);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--text-muted);
}

.pulse-icon {
    width: 32px;
    height: 32px;
    animation: status-pulse-red 2s infinite;
}

/* Contenido Interno Panel */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.problematic-box,
.solution-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    grid-column: span 2;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.box-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.problematic-box .box-title {
    color: #b91c1c;
}

.solution-box .box-title {
    color: #15803d;
}

.problematic-box p,
.solution-box p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.solution-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.sol-check {
    width: 18px;
    height: 18px;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 3px;
}

.diagrama-flujo-propuesta {
    grid-column: span 2;
    margin-top: 1.5rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.diagrama-header {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diagrama-steps {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
}

.d-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    flex: 1;
}

.d-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.d-num.d-active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-red);
}

.d-step span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.d-arrow {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.d-arrow i {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   7. GOBIERNO ABIERTO (DIAGRAMA RADIAL)
   -------------------------------------------------------------------------- */
.open-gov-section {
    padding: 6.5rem 0;
}

.open-gov-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.gov-features {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 2rem;
}

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

.num-bullet {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-red-dim);
    color: var(--primary-red);
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gov-feature-item strong {
    font-size: 1.05rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.gov-feature-item p {
    font-size: 0.9rem;
}

/* Diagrama Radial */
.schematic-wheel-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--primary-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 10px;
    box-shadow: var(--shadow-md);
}

.wheel-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 4px;
}

.wheel-center span {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Nodos Radiales */
.wheel-node {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 5;
    text-align: center;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

.wheel-node i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.wheel-node span {
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 4px;
    color: var(--text-secondary);
}

/* Distribución de Nodos */
.w-node-1 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.w-node-2 {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.w-node-3 {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.w-node-4 {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

/* Hover y Activos */
.wheel-node:hover,
.wheel-node.active-node {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(214, 25, 25, 0.2);
    transform: scale(1.08);
}

.wheel-node:hover i,
.wheel-node.active-node i {
    color: var(--primary-red);
}

.wheel-node:hover span,
.wheel-node.active-node span {
    color: var(--text-primary);
}

/* Línea de descripción */
.wheel-node-desc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    font-size: 0.75rem;
    text-align: center;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.wheel-node-desc.show {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   8. GALERÍA DE DESCARGAS (AFICHES)
   -------------------------------------------------------------------------- */
.downloads-section {
    padding: 6rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-body);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-preview {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.download-card:hover .card-preview img {
    transform: scale(1.05);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.download-card:hover .preview-overlay {
    opacity: 1;
}

.zoom-btn {
    background: white;
    color: var(--text-primary);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.card-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-info h3 {
    font-size: 1.3rem;
}

.card-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   9. BUZÓN VECINAL Y FORMULARIO
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 6.5rem 0;
}

.contact-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-info-panel {
    padding: 3.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.form-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid white;
    margin-bottom: 1.25rem;
}

.contact-info-panel h3 {
    font-size: 2rem;
    color: white;
}

.form-intro-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.info-bullets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.bullet-item i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.bullet-item span {
    font-size: 0.9rem;
    line-height: 1.4;
}

.campaign-hashtag {
    display: flex;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

.campaign-hashtag span {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
}

/* Formulario */
.contact-form-panel {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.contact-form-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.citizen-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-red);
    background: var(--bg-white);
    box-shadow: 0 0 10px rgba(214, 25, 25, 0.1);
}

/* Floating labels */
.form-group label {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group textarea~label {
    top: 1.5rem;
}

.form-group select~.select-label {
    top: 50%;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group select:focus~.select-label,
.form-group select:valid~.select-label {
    top: 0;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--primary-red);
    background: var(--bg-white);
    padding: 0 0.35rem;
}

/* Validación */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--primary-red);
}

.form-group.error label,
.form-group.error .select-label {
    color: var(--primary-red);
}

.error-text {
    display: none;
    font-size: 0.75rem;
    color: var(--primary-red);
    position: absolute;
    bottom: -1.2rem;
    left: 0.2rem;
}

.form-group.error .error-text {
    display: block;
}

/* Success State */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fade-in-anim 0.5s ease forwards;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 2px solid #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #16a34a;
}

.success-icon i {
    width: 32px;
    height: 32px;
}

.form-success h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.form-success p {
    font-size: 0.95rem;
    max-width: 340px;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   10. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    padding: 5rem 0 1.5rem;
    border-top: 3px solid var(--primary-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.brand-col .logo {
    margin-bottom: 1.25rem;
}

.brand-col .logo-img {
    border-color: rgba(255, 255, 255, 0.15);
}

.brand-col p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.brand-col .candidate-name {
    color: white;
}

.brand-col .campaign-tag {
    color: #cbd5e1;
}

.footer-col h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-col a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary-red);
    padding-left: 4px;
}

.social-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 0.85rem;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.social-icons a:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}

.campaign-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campaign-date span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.campaign-date strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

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

/* --------------------------------------------------------------------------
   11. ANIMACIONES Y EFECTOS
   -------------------------------------------------------------------------- */
@keyframes fade-in-anim {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-up-anim {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes status-pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(214, 25, 25, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(214, 25, 25, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(214, 25, 25, 0);
    }
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --------------------------------------------------------------------------
   12. MEDIA QUERIES (DISEÑO RESPONSIVO)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .about-visual {
        order: -1;
    }

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

    .open-gov-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

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

    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

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

    .about-section,
    .plan-section,
    .open-gov-section,
    .downloads-section,
    .contact-section {
        padding: 4.5rem 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-md);
        padding: 2.5rem 2rem;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        z-index: -1;
        border-bottom: 2px solid var(--primary-red);
        max-height: calc(100vh - 100%);
        overflow-y: auto;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .hero-slider-section {
        height: 480px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .card-overlay {
        padding: 1.75rem;
    }

    .about-section,
    .plan-section,
    .open-gov-section,
    .downloads-section,
    .contact-section {
        padding: 3.5rem 0;
    }

    .photo-accent {
        top: 0.8rem;
        left: 0.8rem;
    }

    .photo-card {
        margin-bottom: 0.8rem;
    }

    .plan-tabs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .tab-btn {
        flex-direction: row;
        justify-content: center;
        padding: 0.8rem 1rem;
    }

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

    .eje-card {
        padding: 1.5rem;
        gap: 0.6rem;
    }

    .proposal-detail-panel {
        padding: 1.5rem;
    }

    .panel-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .panel-title {
        grid-column: 1;
        font-size: 1.35rem;
    }

    .diagrama-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .d-arrow {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }

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

    .card-preview {
        height: 240px;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }

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

    .main-footer {
        padding: 3.5rem 0 1.5rem;
    }
}

@media (max-width: 576px) {
    .slide-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .slide-actions .btn {
        width: 100%;
    }

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

    .schematic-wheel-container {
        transform: scale(0.8);
        transform-origin: center center;
        margin: -35px auto;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .slider-arrow {
        display: none;
    }
}

@media (max-width: 375px) {
    .slide-title {
        font-size: 1.7rem;
    }

    .section-tag-red {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .schematic-wheel-container {
        transform: scale(0.68);
        transform-origin: center center;
        margin: -55px auto;
    }

    .logo-text {
        max-width: 150px;
    }

    .candidate-name {
        font-size: 1rem;
    }

    .campaign-tag {
        font-size: 0.6rem;
    }
}