/* ============================================
   Politik APP - Landing Page Styles
   Línea gráfica: Bandera Dominicana
   ============================================ */

/* CSS Variables - Colores Bandera RD */
:root {
    --rd-blue: #002D62;
    --rd-red: #CE1126;
    --rd-white: #FFFFFF;
    --rd-ink: #0B1220;
    --rd-muted: #F4F6FA;
    --rd-blue-light: #003d82;
    --rd-blue-dark: #001d42;
    --rd-red-dark: #a80d1e;
    --rd-gray: #6c757d;
    --rd-border: #dee2e6;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Reset & Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--rd-ink);
    background-color: var(--rd-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--rd-ink);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--rd-ink);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--rd-gray);
}

/* Links */
a {
    color: var(--rd-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--rd-blue-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--rd-red);
    border-color: var(--rd-red);
    color: var(--rd-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--rd-red-dark);
    border-color: var(--rd-red-dark);
    color: var(--rd-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--rd-blue);
    color: var(--rd-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--rd-blue);
    border-color: var(--rd-blue);
    color: var(--rd-white);
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--rd-white);
    color: var(--rd-white);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: var(--rd-white);
    border-color: var(--rd-white);
    color: var(--rd-blue);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Focus states for accessibility */
.btn:focus,
.btn:active:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 45, 98, 0.25);
    outline: none;
}

/* ============================================
   Navbar
   ============================================ */
.navbar-politik {
    background-color: var(--rd-white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all var(--transition-normal);
}

.navbar-politik .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--rd-blue);
    letter-spacing: -0.5px;
}

.navbar-politik .navbar-brand span {
    color: var(--rd-red);
}

.navbar-politik .nav-link {
    color: var(--rd-ink);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-politik .nav-link:hover,
.navbar-politik .nav-link:focus {
    color: var(--rd-blue);
}

.navbar-politik .navbar-toggler {
    border-color: var(--rd-blue);
}

.navbar-politik .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23002D62' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--rd-blue) 0%, var(--rd-blue-dark) 100%);
    color: var(--rd-white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(206, 17, 38, 0.1) 100%);
    pointer-events: none;
}

.hero-section h1 {
    color: var(--rd-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-bullets li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--rd-red);
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.hero-illustration {
    position: relative;
    z-index: 1;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-muted {
    background-color: var(--rd-muted);
}

.section-blue {
    background-color: var(--rd-blue);
    color: var(--rd-white);
}

.section-blue h2,
.section-blue h3,
.section-blue p {
    color: var(--rd-white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--rd-red);
    border-radius: 2px;
}

.section-title p {
    color: var(--rd-gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ============================================
   How It Works - Steps
   ============================================ */
.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--rd-blue);
    color: var(--rd-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--rd-gray);
    margin-bottom: 0;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--rd-blue);
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    background-color: var(--rd-white);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--rd-border);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--rd-blue);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--rd-muted);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--rd-blue);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--rd-gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============================================
   Stat Cards (Transparency Section)
   ============================================ */
.stat-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--rd-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--rd-red);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rd-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--rd-gray);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   MVP Scope Section
   ============================================ */
.scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scope-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rd-border);
}

.scope-list li:last-child {
    border-bottom: none;
}

.scope-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.scope-icon.included {
    background-color: #d4edda;
    color: #155724;
}

.scope-icon.pending {
    background-color: #fff3cd;
    color: #856404;
}

.scope-card {
    background-color: var(--rd-white);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.scope-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--rd-muted);
}

.scope-card.included h3 {
    color: #155724;
}

.scope-card.pending h3 {
    color: #856404;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-section .accordion-item {
    border: 1px solid var(--rd-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-section .accordion-button {
    font-weight: 600;
    color: var(--rd-ink);
    background-color: var(--rd-white);
    padding: 1.25rem;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--rd-muted);
    color: var(--rd-blue);
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 45, 98, 0.15);
    border-color: var(--rd-blue);
}

.faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23002D62'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
    padding: 1.25rem;
    color: var(--rd-gray);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--rd-blue) 0%, var(--rd-blue-dark) 100%);
    color: var(--rd-white);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--rd-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background-color: var(--rd-red);
    border-color: var(--rd-red);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-section .btn-primary:hover {
    background-color: var(--rd-red-dark);
    border-color: var(--rd-red-dark);
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Footer
   ============================================ */
.footer-politik {
    background-color: var(--rd-blue-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

.footer-politik a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-politik a:hover {
    color: var(--rd-white);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rd-white);
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--rd-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-legal {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-disclaimer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
    padding: 4rem 0;
}

.legal-page h1 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--rd-red);
    display: inline-block;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--rd-blue);
}

.legal-page p,
.legal-page li {
    color: var(--rd-gray);
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 1.5rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
    background-color: var(--rd-blue);
    color: var(--rd-white);
    padding: 4rem 0;
    text-align: center;
}

.about-hero h1 {
    color: var(--rd-white);
}

.about-section {
    padding: 4rem 0;
}

.principle-card {
    text-align: center;
    padding: 2rem;
}

.principle-icon {
    width: 80px;
    height: 80px;
    background-color: var(--rd-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--rd-blue);
}

/* ============================================
   Map Container - Hero Section
   ============================================ */
.map-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.map-glow {
    position: absolute;
    width: 85%;
    height: 85%;
    background: radial-gradient(ellipse at center, rgba(206, 17, 38, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.map-frame {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    overflow: visible;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.map-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rd-blue) 0%, var(--rd-red) 50%, var(--rd-blue) 100%);
    border-radius: 20px 20px 0 0;
}

.map-frame::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: rotate(45deg);
    animation: shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.map-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.map-frame img {
    display: block;
    width: 130%;
    height: auto;
    margin-left: -15%;
    margin-top: -10%;
    margin-bottom: -10%;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* Floating dots decoration */
.map-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-dots .dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--rd-red);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(206, 17, 38, 0.6);
}

.map-dots .dot-1 {
    top: 15%;
    right: 10%;
    animation: float-dot 3s ease-in-out infinite;
}

.map-dots .dot-2 {
    bottom: 20%;
    left: 5%;
    width: 8px;
    height: 8px;
    animation: float-dot 3.5s ease-in-out infinite 0.5s;
}

.map-dots .dot-3 {
    top: 60%;
    right: 5%;
    width: 6px;
    height: 6px;
    animation: float-dot 4s ease-in-out infinite 1s;
}

@keyframes float-dot {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

/* SVG Map Illustration (legacy) */
.map-illustration {
    max-width: 100%;
    height: auto;
}

.map-illustration .map-outline {
    fill: none;
    stroke: var(--rd-white);
    stroke-width: 2;
}

.map-illustration .map-node {
    fill: var(--rd-red);
}

.map-illustration .map-line {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1;
}

/* ============================================
   Utilities
   ============================================ */
.text-rd-blue { color: var(--rd-blue); }
.text-rd-red { color: var(--rd-red); }
.text-rd-muted { color: var(--rd-gray); }
.bg-rd-blue { background-color: var(--rd-blue); }
.bg-rd-red { background-color: var(--rd-red); }
.bg-rd-muted { background-color: var(--rd-muted); }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-bullets {
        display: inline-block;
        text-align: left;
    }

    .hero-illustration {
        margin-top: 3rem;
    }

    .map-container {
        padding: 1.5rem;
    }

    .map-frame {
        padding: 1rem;
        border-radius: 16px;
    }

    .map-frame img {
        width: 120%;
        margin-left: -10%;
        margin-top: -7%;
        margin-bottom: -7%;
    }

    .map-dots .dot-1,
    .map-dots .dot-2,
    .map-dots .dot-3 {
        display: none;
    }

    .section {
        padding: 3.5rem 0;
    }

    h2 {
        font-size: 1.875rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.875rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-section h2 {
        font-size: 1.875rem;
    }

    .navbar-politik .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-politik .nav-link {
        padding: 0.75rem 0;
    }

    .navbar-politik .btn {
        margin-top: 0.5rem;
        width: 100%;
    }

    .map-container {
        padding: 1rem;
    }

    .map-frame {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .map-frame img {
        width: 115%;
        margin-left: -7.5%;
        margin-top: -5%;
        margin-bottom: -5%;
    }

    .map-glow {
        display: none;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

:focus-visible {
    outline: 3px solid var(--rd-blue);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--rd-blue);
    color: var(--rd-white);
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--rd-white);
    }

    .feature-card {
        border: 2px solid var(--rd-ink);
    }
}
