/* ========================================
   CHIQUEFRESH V2 - CREATIVE DIRECTOR DESIGN
   Premium, Bold, Memorable
   ======================================== */

:root {
    /* Colors - Estratégicos, no al azar */
    --primary: #1a5f3f;
    --primary-light: #22c55e;
    --accent: #fbbf24;
    --bg-dark: #0f1419;
    --bg-light: #f8f8f6;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;

    /* Typography Scale - Editorial */
    --size-xs: 12px;
    --size-sm: 14px;
    --size-md: 16px;
    --size-lg: 18px;
    --size-xl: 20px;
    --size-2xl: 32px;
    --size-3xl: 48px;
    --size-4xl: 64px;
    --size-5xl: 80px;

    /* Spacing - Generoso */
    --space-2: 8px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Transitions */
    --ease-slow: 400ms cubic-bezier(0.2, 0, 0.2, 1);
    --ease-fast: 200ms cubic-bezier(0.4, 0, 0.6, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: var(--size-md);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* ========================================
   PRELOADER - PREMIUM LOADING EXPERIENCE
   ======================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f8f8f6 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeOutPreloader 0.8s ease-out 2.2s forwards;
}

.preloader.hidden {
    animation: fadeOutPreloader 0.8s ease-out forwards;
}

@keyframes fadeOutPreloader {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.preloader-logo {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(26, 95, 63, 0.15);
    position: relative;
    z-index: 2;
    animation: logoZoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoZoomIn {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preloader-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    animation: spinRing 3s linear infinite;
}

.preloader-ring-2 {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(26, 95, 63, 0.1);
    border-radius: 50%;
    animation: spinRing2 3s linear infinite reverse;
}

@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinRing2 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.preloader-text {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #1a5f3f 0%, #22c55e 100%);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* ========================================
   CONTAINERS & LAYOUT
   ======================================== */

.container-editorial {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

section {
    padding: var(--space-20) 0;
}

/* ========================================
   TYPOGRAPHY - EL PROTAGONISTA
   ======================================== */

.title-massive {
    font-family: 'Space Mono', monospace;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: var(--space-6);
}

.title-bold {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: var(--space-8);
}

.subtitle-large {
    font-size: var(--size-2xl);
    line-height: 1.5;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: var(--space-8);
}

.body-large {
    font-size: var(--size-xl);
    line-height: 1.8;
    color: var(--text-light);
}

.label {
    font-size: var(--size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: var(--space-4);
}

.word-break {
    display: block;
}

.word-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NAV - MINIMAL
   ======================================== */

.nav-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-8) 0;
    margin-bottom: var(--space-12);
}

.logo-mark {
    font-family: 'Space Mono', monospace;
    font-size: var(--size-lg);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: 2px;
    font-size: var(--size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ease-fast);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 95, 63, 0.2);
}

/* ========================================
   HERO - EDITORIAL AUDAZ
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--space-4);
}

.hero-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-media {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-hero-main {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.img-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 3s ease;
}

.image-hero-main:hover .img-hero {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: var(--space-6);
    right: var(--space-6);
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: var(--space-2) var(--space-4);
    font-size: var(--size-sm);
    font-weight: 600;
    border-radius: 2px;
    backdrop-filter: blur(10px);
}

.hero-cta {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.btn-primary,
.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: var(--size-lg);
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--ease-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-primary:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(26, 95, 63, 0.3);
}

.btn-primary:active,
.btn-submit:active {
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 1.8rem;
    font-size: var(--size-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--ease-fast);
    display: inline-flex;
    align-items: center;
}

.btn-ghost:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.arrow {
    display: inline-block;
    transition: transform var(--ease-fast);
}

.btn-primary:hover .arrow,
.btn-submit:hover .arrow {
    transform: translateX(4px);
}

.hero-scroll {
    text-align: center;
    margin-top: var(--space-12);
    opacity: 0.5;
    animation: bounce 2s infinite;
}

.scroll-indicator {
    font-size: var(--size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========================================
   PROBLEMA - ASIMETRÍA
   ======================================== */

.section-problem {
    background: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.problem-text {
    z-index: 2;
}

.problem-image {
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
}

.img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   TESTIMONIO - BLOQUE PURO
   ======================================== */

.section-testimony {
    background: var(--primary);
    color: white;
    padding: var(--space-20) 0;
}

.testimony-large {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.4;
    font-weight: 300;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.testimony-large p {
    margin-bottom: var(--space-8);
}

.testimony-large footer {
    font-size: var(--size-lg);
    opacity: 0.9;
    margin-top: var(--space-8);
}

/* ========================================
   SOLUCIÓN - LAYOUT PREMIUM
   ======================================== */

.section-solution {
    background: var(--bg-light);
}

.solution-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.solution-hero-image {
    height: 600px;
    border-radius: 4px;
    overflow: hidden;
}

.img-hero-solution {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-text h2 {
    margin-top: 0;
}

.feature-list {
    list-style: none;
    margin-top: var(--space-8);
}

.feature-list li {
    font-size: var(--size-xl);
    line-height: 1.8;
    margin-bottom: var(--space-6);
    padding-left: var(--space-8);
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

/* ========================================
   GALERÍA - ASIMÉTRICA INTENCIONAL
   ======================================== */

.section-gallery {
    background: white;
}

.gallery-title {
    margin-bottom: var(--space-12);
}

.gallery-asymmetric {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-8);
}

.gallery-item-large {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 600px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.gallery-item-small {
    height: 290px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item-medium {
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
}

/* ========================================
   PILLARS - MINIMALISTA
   ======================================== */

.section-pillars {
    background: white;
}

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

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-12);
    margin-top: var(--space-12);
}

.pillar {
    padding: var(--space-8);
}

.pillar-number {
    font-family: 'Space Mono', monospace;
    font-size: var(--size-3xl);
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-4);
}

.pillar h3 {
    font-size: var(--size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.pillar p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   STATS - CREDIBILIDAD LIMPIA
   ======================================== */

.section-stats {
    background: var(--bg-light);
    padding: var(--space-16) 0;
}

.stats-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-16);
    text-align: center;
}

.stat-block {
    flex: 1;
    max-width: 300px;
}

.stat-number {
    font-family: 'Space Mono', monospace;
    font-size: var(--size-4xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.stat-block p {
    color: var(--text-light);
    font-size: var(--size-lg);
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: rgba(26, 95, 63, 0.2);
}

/* ========================================
   PROCESO - TIMELINE LINEAL
   ======================================== */

.section-process {
    background: white;
}

.section-process h2 {
    margin-bottom: var(--space-16);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: var(--space-8);
}

.process-step {
    flex: 1;
    padding: var(--space-8);
    text-align: center;
}

.step-number {
    font-family: 'Space Mono', monospace;
    font-size: var(--size-3xl);
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-4);
}

.process-step h3 {
    font-size: var(--size-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.process-step p {
    color: var(--text-light);
    font-size: var(--size-md);
    line-height: 1.6;
}

.process-arrow {
    font-size: var(--size-2xl);
    color: var(--primary-light);
    opacity: 0.5;
    flex-shrink: 0;
    margin-top: var(--space-4);
}

/* ========================================
   COMPARATIVA - TABLA LIMPIA
   ======================================== */

.section-comparison {
    background: var(--bg-light);
}

.section-comparison h2 {
    margin-bottom: var(--space-12);
}

.comparison-table {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comp-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    padding: var(--space-6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-header {
    background: var(--bg-light);
    font-weight: 700;
}

.comp-label {
    font-weight: 600;
    color: var(--text-dark);
}

.comp-us {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
    font-weight: 600;
    border-radius: 2px;
    padding: var(--space-2) var(--space-4);
}

.comp-cell {
    font-size: var(--size-md);
    color: var(--text-light);
}

/* ========================================
   FORM - PREMIUM CONVERSION
   ======================================== */

.section-contact {
    background: white;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text h2 {
    margin-bottom: var(--space-4);
}

.contact-text p {
    margin-bottom: var(--space-12);
}

.form-premium {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-light);
    border-radius: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: var(--size-md);
    transition: border var(--ease-fast);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    margin-top: var(--space-4);
}

.form-note {
    font-size: var(--size-sm);
    color: var(--text-light);
}

/* ========================================
   FAQ - INTERACTIVO MINIMALISTA
   ======================================== */

.section-faq {
    background: var(--bg-light);
}

.section-faq h2 {
    margin-bottom: var(--space-12);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--space-8) 0;
}

.faq-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: var(--space-6) 0;
    font-size: var(--size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ease-fast);
    text-align: left;
    color: var(--text-dark);
}

.faq-toggle:hover {
    color: var(--primary);
}

.faq-question {
    flex: 1;
}

.faq-icon {
    display: block;
    font-size: var(--size-2xl);
    transition: transform var(--ease-fast);
    color: var(--primary-light);
}

.faq-toggle.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ease-slow);
    padding: 0;
}

.faq-answer.active {
    max-height: 300px;
    padding: var(--space-6) 0;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   FOOTER - LIMPIO
   ======================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-family: 'Space Mono', monospace;
    font-size: var(--size-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    margin-bottom: var(--space-2);
    font-size: var(--size-md);
}

.footer-social {
    display: flex;
    gap: var(--space-6);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--ease-fast);
}

.footer-social a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    font-size: var(--size-sm);
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-content,
    .problem-grid,
    .solution-layout {
        grid-template-columns: 1fr;
    }

    .hero-media,
    .problem-image,
    .solution-hero-image {
        height: 400px;
    }

    .gallery-asymmetric {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item-large {
        grid-column: 1;
        grid-row: auto;
        height: 300px;
    }

    .process-timeline {
        flex-wrap: wrap;
    }

    .process-arrow {
        display: none;
    }

    .comp-row {
        grid-template-columns: 1fr;
    }

    .stats-layout {
        flex-direction: column;
        gap: var(--space-8);
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-16: 48px;
        --space-12: 32px;
    }

    .title-massive {
        font-size: 2.5rem;
    }

    .title-bold {
        font-size: 1.8rem;
    }

    .subtitle-large,
    .body-large {
        font-size: var(--size-lg);
    }

    .nav-minimal {
        margin-bottom: var(--space-8);
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-submit,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .faq-toggle {
        font-size: var(--size-md);
    }
}

@media (max-width: 480px) {
    section {
        padding: var(--space-12) 0;
    }

    .container-editorial {
        padding: 0 var(--space-4);
    }

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

    .title-bold {
        font-size: 1.5rem;
    }

    .hero-media {
        height: 300px;
    }

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

    .pillar {
        padding: 0;
    }
}