/* ==========================================
    PRESUPUESTO PARTICIPATIVO 2027 - ESTILOS
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary: #13458C;
    --primary-light: #1379C9;
    --secondary: #1379C9;
    --secondary-light: #1e90ff;
    --accent: #feb407;
    --accent-light: #FFBE28;
    --dark: #1f2937;
    --light: #f9fafb;
    --success: #10b981;
    --warning: #f59e0b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #13458C 0%, #1379C9 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--dark);
}

/* ==========================================
    ANIMACIONES GLOBALES
   ========================================== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(234, 88, 12, 0.8);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
    LAYOUT GENERAL
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ==========================================
    HEADER/NAVBAR
   ========================================== */

header {
    /*background-image: radial-gradient(circle 248px at center, #16d9e3 0%, #30c7ec 47%, #46aef7 100%);*/
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.95) 0%, rgba(30, 58, 138, 0.95) 100%);
    background: linear-gradient(135deg, rgba(19, 69, 140, 0.95) 0%, rgba(19, 121, 201, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideInDown 0.6s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInScale 0.6s ease-out;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo-text {
    color: white;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

.header-title {
    text-align: center;
    color: white;
    flex: 1;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.header-title h2 {
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-title p {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 900;
    color: var(--accent-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================
    SECCIÓN HERO
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #13458C 0%, #1379C9 50%, #2494e9 100%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    animation: fadeInScale 0.6s ease-out 0.2s both;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge i {
    margin-right: 8px;
}

.hero h1 {
    font-size: clamp(32px, 8vw, 64px);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out 0.3s both;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out 0.4s both;
    opacity: 0.95;
    font-weight: 300;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 50px 0;
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
}

.info-card i {
    font-size: 45px;
    margin-bottom: 15px;
    color: var(--accent-light);
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.info-card p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ==========================================
    SECCIÓN DE INFORMACIÓN
   ========================================== */

.info-section {
    background: white;
    padding: 80px 20px;
    animation: slideInUp 0.8s ease-out;
}

.info-section h2 {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 50px;
    font-weight: 300;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--success);
    position: relative;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out;
}

.info-box:nth-child(2) {
    animation-delay: 0.1s;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: var(--secondary-light);
}

.info-box:nth-child(3) {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: var(--warning);
}

.info-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.info-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.08);
}

.info-box h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.info-box p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.8;
}

/* ==========================================
    SECCIÓN DE DETALLES
   ========================================== */

.details-section {
    background: white;
    padding: 80px 20px;
    animation: slideInUp 0.8s ease-out;
}

.details-section h2 {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--secondary);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 800;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
}

.detail-card {
    background: linear-gradient(135deg, var(--light) 0%, #f3f4f6 100%);
    padding: 40px 30px;
    border-radius: 20px;
    border-top: 5px solid var(--primary);
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out;
    text-align: center;
}

.detail-card:nth-child(2) {
    animation-delay: 0.1s;
    border-top-color: var(--secondary-light);
}

.detail-card:nth-child(3) {
    animation-delay: 0.2s;
    border-top-color: var(--success);
}

.detail-card:nth-child(4) {
    animation-delay: 0.3s;
    border-top-color: var(--accent);
}

.detail-card:nth-child(5) {
    animation-delay: 0.4s;
    border-top-color: var(--warning);
}

.detail-card:nth-child(6) {
    animation-delay: 0.5s;
    border-top-color: #8b5cf6;
}

.detail-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.detail-card i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.detail-card:nth-child(2) i {
    color: var(--secondary-light);
}

.detail-card:nth-child(3) i {
    color: var(--success);
}

.detail-card:nth-child(4) i {
    color: var(--accent);
}

.detail-card:nth-child(5) i {
    color: var(--warning);
}

.detail-card:nth-child(6) i {
    color: #8b5cf6;
}

.detail-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.detail-card h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.detail-card p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.8;
}

/* ==========================================
    SECCIÓN QR
   ========================================== */

.qr-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 80px 20px;
    animation: slideInUp 0.8s ease-out;
}

.qr-section h2 {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 800;
}

.qr-container {
    max-width: 1200px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.qr-box {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out;
    text-align: center;
}

.qr-placeholder {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 40px;
    border-radius: 15px;
    border: 3px dashed var(--secondary-light);
    margin-bottom: 30px;
}

.qr-image {
    background: white;
    padding: 30px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

.qr-image i {
    font-size: 60px;
    color: var(--secondary-light);
    display: block;
}

.qr-image p {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 10px;
}

.small-text {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.qr-description {
    color: var(--dark);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 20px;
}

.qr-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.info-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    border-left: 5px solid var(--primary);
    animation: slideInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.info-item:nth-child(2) {
    animation-delay: 0.1s;
    border-left-color: var(--secondary-light);
}

.info-item:nth-child(3) {
    animation-delay: 0.2s;
    border-left-color: var(--accent);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 35px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.info-item:nth-child(2) i {
    color: var(--secondary-light);
}

.info-item:nth-child(3) i {
    color: var(--accent);
}

.info-item h4 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.info-item p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
    SECCIÓN CRONOGRAMA
   ========================================== */

.timeline-section {
    background: white;
    padding: 80px 20px;
    animation: slideInUp 0.8s ease-out;
}

.timeline-section h2 {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--secondary);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 800;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary-light) 50%, var(--accent) 100%);
}

.timeline-item {
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out;
}

.timeline-item:nth-child(1) {
    animation-delay: 0s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 50px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 50px);
    text-align: left;
}

.timeline-time {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-content {
    background: linear-gradient(135deg, var(--light) 0%, #f3f4f6 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.timeline-content h4 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.timeline-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
    SECCIÓN FAQ
   ========================================== */

.faq-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 80px 20px;
    animation: slideInUp 0.8s ease-out;
}

.faq-section h2 {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--primary);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 800;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.faq-item:nth-child(1) {
    animation-delay: 0s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.3s;
}

.faq-item:nth-child(5) {
    animation-delay: 0.4s;
}

.faq-item:nth-child(6) {
    animation-delay: 0.5s;
}

.faq-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.faq-item h4 {
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item i {
    color: var(--primary);
    font-size: 20px;
}

.faq-item p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================
    SECCIÓN CALL TO ACTION FINAL
   ========================================== */

.final-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    animation: slideInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.final-cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.final-cta h2 {
    font-size: clamp(36px, 7vw, 56px);
    margin-bottom: 20px;
    font-weight: 800;
    z-index: 2;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    z-index: 2;
    position: relative;
}

.cta-button-large {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 18px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out 0.2s both, pulse-glow 2s ease-in-out 1s infinite;
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.4);
    z-index: 2;
    position: relative;
}

.cta-button-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.6);
}

.cta-button-large:active {
    transform: translateY(-2px);
}

.cta-button-large i {
    margin-right: 10px;
}

.cta-subtitle {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
    z-index: 2;
    position: relative;
}

/* ==========================================
    BOTÓN CTA GENERAL
   ========================================== */

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: slideInUp 0.8s ease-out 0.6s both, pulse-glow 2s ease-in-out 1s infinite;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ==========================================
    FOOTER
   ========================================== */

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-top: 3px solid var(--accent);
}

footer p {
    margin: 12px 0;
    opacity: 0.9;
    font-size: 15px;
}

footer strong {
    color: var(--accent-light);
}

/* ==========================================
    RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .header-content {
        gap: 20px;
    }

    .qr-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 100px;
        padding-right: 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        font-size: 11px;
    }

    .header-title h2 {
        font-size: 20px;
    }

    .header-title p {
        font-size: 32px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .qr-box {
        padding: 30px;
    }

    .qr-info {
        grid-template-columns: 1fr;
    }

    .cta-button,
    .cta-button-large {
        padding: 12px 35px;
        font-size: 15px;
    }

    .final-cta {
        padding: 60px 20px;
    }

    .final-cta h2 {
        font-size: 32px;
    }

    .final-cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 15px;
        padding: 0 10px;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 10px;
    }

    .header-title h2 {
        font-size: 16px;
    }

    .header-title p {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .info-box,
    .detail-card,
    .faq-item,
    .info-item {
        padding: 25px 20px;
    }

    .qr-box {
        padding: 20px;
    }

    .qr-image i {
        font-size: 45px;
    }

    .cta-button,
    .cta-button-large {
        padding: 12px 30px;
        font-size: 14px;
    }

    .final-cta {
        padding: 40px 15px;
    }

    .final-cta h2 {
        font-size: 24px;
    }

    .final-cta p {
        font-size: 14px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 70px;
    }
}

/* Animación de entrada */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

