/* 
   RECONSTRUCCIÓN TOTAL V9 - MOBILE FIRST
   CÉSAR LÓPEZ 2026 🥇 🗳️
*/

:root {
    --primary: #45811d;
    --primary-bright: #6aa84f;
    --accent: #45811d;
    --bg: #030303;
    --surface: rgba(255, 255, 255, 0.03);
    --glass: rgba(10, 10, 10, 0.9);
    --text: #ffffff;
    --text-muted: #aaa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* UI Elements */
.cursor-dot,
.cursor-outline {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transition: all 0.15s ease-out;
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(69, 129, 29, 0.1) 0%, transparent 40%);
    filter: blur(80px);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-premium);
    background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(69, 129, 29, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.5s ease-in-out;
    list-style: none;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-action {
    display: none;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
    border-radius: 50px;
}

/* Hero Section - MOBILE FIRST */
.hero {
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: relative;
    width: 100%;
    height: 55vh;
    background-image: url('cesar_lopez_oficial.jpg');
    background-size: cover;
    background-position: center top;
    border-radius: 20px;
    margin-bottom: 2rem;
    mask-image: linear-gradient(to bottom, black 85%, transparent);
}

.hero-content {
    text-align: center;
    max-width: 850px;
    position: relative;
    /* Crucial para que z-index funcione */
    z-index: 5;
    padding-top: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(69, 129, 29, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.hero h1 span {
    display: block;
}

.hero h1 b {
    background: linear-gradient(135deg, var(--accent) 0%, #f1d592 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition-premium);
}

.btn-primary {
    background: white;
    color: black;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-label {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    /* Tamaño dinámico y más controlado */
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

/* Profile Section Mobile */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.profile-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.profile-main-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.vota-10-badge-floating {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: white;
    padding: 0.4rem;
    border-radius: 15px;
    border: 3px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 100px;
    /* Tamaño base muy reducido */
    z-index: 10;
}

.logo-vota-badge {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.profile-lead {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
}

.profile-quote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* Cards Grid - MOBILE FIRST (1 col) */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
}

.card-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* QR Section Mobile */
.qr-section {
    background: #080808;
    padding: 3rem 2rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.qr-visual {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 320px;
    margin: 0 auto;
}

#whatsapp-qr {
    width: 100% !important;
    height: auto !important;
}

/* Desktop Extensions (Min-width: 992px) */
@media (min-width: 992px) {
    .container {
        padding: 0 4rem;
    }

    header {
        padding: 1.5rem 0;
    }

    .logo-img {
        height: 80px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        right: auto;
        gap: 3rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.7);
    }

    .nav-links a:hover {
        color: white;
    }

    .nav-btn {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
    }

    .hero {
        flex-direction: row;
        align-items: center;
        padding-top: 12rem;
        gap: 4rem;
    }

    .hero-bg {
        position: absolute;
        right: 0;
        top: 0;
        width: 60%;
        height: 100%;
        margin-bottom: 0;
        border-radius: 0;
        mask-image: none;
    }

    .hero-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, var(--bg) 0%, rgba(3, 3, 3, 0.4) 40%, transparent 100%);
    }

    .hero-content {
        text-align: left;
        max-width: 700px;
        z-index: 2;
    }

    .hero h1 {
        font-size: clamp(3rem, 10vw, 5rem);
        /* Ajuste dinámico para evitar colisión */
        letter-spacing: -2px;
    }

    .cta-group {
        flex-direction: row;
    }

    section {
        padding: 10rem 0;
    }

    .section-title {
        font-size: 4rem;
    }

    /* Component Styles */
    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .profile-grid {
        grid-template-columns: 1fr !important;
        /* Forzado a 1 col hasta 1200px */
        gap: 3rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .vota-10-badge-floating {
        width: 120px !important;
        bottom: -15px;
        right: -15px;
    }

    /* Solo aplicar 2 columnas en pantallas realmente grandes */
    @media (min-width: 1201px) {
        .profile-grid {
            grid-template-columns: 1fr 1fr !important;
            gap: 6rem;
            max-width: none;
        }

        .vota-10-badge-floating {
            width: 180px !important;
            bottom: -40px;
            right: -40px;
        }

        .section-title {
            font-size: 4rem;
        }
    }

    .card {
        padding: 4rem 3rem;
    }

    .qr-section {
        flex-direction: row;
        padding: 6rem;
        text-align: left;
        justify-content: space-between;
    }

    .qr-visual {
        margin: 0;
        transform: rotate(-5deg);
        transition: 0.4s;
    }

    .qr-visual:hover {
        transform: rotate(0) scale(1.05);
    }
}

/* Hamburger UI */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

footer {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.social-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.social-nav a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-nav a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 2px;
}