@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&display=swap');

/* ==========================================================================
   MUTACIÓN: ORGANIC EARTH | TIPOGRAFÍA: PLAYFAIR+LORA | LAYOUT: ZIG-ZAG
   ========================================================================== */

/* Variables CSS */
:root {
    /* Fondos - Dark Earth */
    --bg-primary: #1C1917;
    /* Slate Dark / Warm */
    --bg-secondary: #292524;
    --bg-tertiary: #44403C;

    /* Acentos - Deep Red (Amor/Esotérico) */
    --primary-400: #E11D48;
    --primary-500: #BE123C;
    --primary-600: #9F1239;
    --primary-700: #881337;

    /* Textos - Cálidos y Místicos */
    --text-primary: #FAFAF9;
    /* Off-white warm */
    --text-secondary: #D6D3D1;
    --text-tertiary: #A8A29E;

    /* Tipografía Randomizada (Opción B) */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lora', serif;

    /* Variables de estructura */
    --nav-height: 80px;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

/* 🌿 TEXTURA ORGANIC EARTH (Noise Overlay) */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    /* Generador de ruido SVG Base64 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.8;
}

/* 🌿 FORMAS ASIMÉTRICAS Y ORGÁNICAS */
.organic-shape {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    animation: morph 12s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    33% {
        border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    }

    66% {
        border-radius: 50% 50% 40% 60% / 60% 40% 50% 60%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

/* Tipografía */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 700;
}

p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.text-accent {
    color: var(--primary-400);
    font-style: italic;
}

/* Layout Core */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* 💫 Botones Místicos */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    border-radius: 100px;
    /* Pillow corners organic */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(190, 18, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(190, 18, 60, 0.5);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-400);
    border: 1px solid var(--primary-500);
    box-shadow: inset 0 0 10px rgba(190, 18, 60, 0.1);
}

.btn-secondary:hover {
    background: rgba(190, 18, 60, 0.1);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.15rem;
    width: 100%;
}

/* Glow Effects */
.shadow-glow {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(190, 18, 60, 0.15);
}

.glow-text {
    text-shadow: 0 0 20px rgba(190, 18, 60, 0.4);
}

/* Partículas orgánicas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-400);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.4;
    animation: drift linear infinite;
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
        transform: translateY(-300px) translateX(50px) scale(1.5);
    }

    100% {
        transform: translateY(-600px) translateX(-50px) scale(1);
        opacity: 0;
    }
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(28, 25, 23, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(190, 18, 60, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    height: 52px;
    width: auto;
    border-radius: 50%;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.brand-name {
    font-family: 'Cinzel Decorative', var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-400);
}

.hamburger {
    display: none;
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    background: radial-gradient(circle at 70% 50%, rgba(190, 18, 60, 0.08) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.label-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(190, 18, 60, 0.15);
    color: var(--primary-400);
    border: 1px solid rgba(190, 18, 60, 0.3);
    border-radius: 100px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border-radius: 20px 40px 30px 20px / 30px 20px 40px 30px;
    /* Earthy pill */
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    border: 2px solid rgba(190, 18, 60, 0.2);
    box-shadow: 0 0 60px rgba(190, 18, 60, 0.15);
    /* Float animation added to the organic morph */
    animation: morph 12s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

/* =========================================
   SOCIAL PROOF (Estilo Orgánico)
   ========================================= */
.social-proof {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.social-proof-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--primary-400);
    font-weight: 700;
}

.stat-plus {
    font-size: 2.5rem;
    color: var(--primary-500);
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   SERVICES: ZIG-ZAG STORYTELLING
   ========================================= */
.services {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.zigzag-row.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.zigzag-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.zigzag-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border: 1px solid rgba(190, 18, 60, 0.2);
}

.zigzag-content {
    flex: 1;
}

.service-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--primary-400);
}

.service-description {
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature-list li span {
    color: var(--primary-500);
    font-size: 1.4rem;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: 100px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(159, 18, 57, 0.1) 100%);
    padding: 80px 40px;
    text-align: center;
    border: 1px solid rgba(190, 18, 60, 0.2);
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-400);
}

.cta-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 18px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 15px rgba(190, 18, 60, 0.2);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 10px;
}

/* =========================================
   STEPS SECTION
   ========================================= */
.steps-section {
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-size: 4rem;
    font-family: var(--font-display);
    color: rgba(190, 18, 60, 0.15);
    font-weight: 800;
    line-height: 1;
    margin-bottom: -20px;
    z-index: 0;
    position: relative;
}

.step-title {
    font-size: 1.5rem;
    color: var(--primary-400);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(159, 18, 57, 0.05) 100%);
    padding: 40px;
    border: 1px solid rgba(190, 18, 60, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-600);
    line-height: 0.5;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-family: var(--font-display);
    color: var(--primary-400);
    font-weight: 600;
}

.author-stars {
    color: #F59E0B;
    letter-spacing: 2px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(190, 18, 60, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px;
    border-radius: 50%;
}

.footer-description {
    margin-top: 20px;
    color: var(--text-tertiary);
}

.footer-links h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .zigzag-row {
        gap: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-visual {
        max-width: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simplification for setup: logic handled in JS for active state if needed */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .zigzag-row,
    .zigzag-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand {
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}