/* ==========================================================================
   WAKEUP SPA - STYLESHEET
   Design System: Ultra-Minimalist Black & Red Tech Aesthetic
   ========================================================================== */

/* 1. CONFIGURACIÓN DE VARIABLES Y RESET */
:root {
    --bg-primary: #09090b;
    --bg-secondary: #0e0e11;
    --bg-tertiary: #141419;
    --accent-red: #ff3e3e;
    --accent-red-hover: #e02a2a;
    --accent-red-glow: rgba(255, 62, 62, 0.15);
    --accent-red-glow-strong: rgba(255, 62, 62, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    
    --max-width: 1200px;
    --navbar-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
    transition: var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* 2. CANVAS DE FONDO INTERACTIVO */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #120505 0%, var(--bg-primary) 70%);
}

/* 3. ELEMENTOS GLOBALES / UTILIDADES */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Títulos y Secciones */
.section-number {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 3rem;
}

.accent-red {
    color: var(--accent-red);
}

.text-glow-red {
    text-shadow: 0 0 20px var(--accent-red-glow-strong);
    color: var(--text-primary);
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(255, 62, 62, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 62, 62, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--accent-red);
    background-color: rgba(255, 62, 62, 0.05);
    transform: translateY(-2px);
}

/* 4. NAVBAR (NAVEGACIÓN GLASSMORPHIC) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    height: 70px;
    background-color: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 62, 62, 0.08);
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-red);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    background-color: transparent;
    border: 1px solid var(--accent-red);
    color: var(--text-primary);
}

.btn-nav:hover {
    background-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.4);
}

/* Menú Móvil - Hamburguesa */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* 5. HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--navbar-height);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 62, 62, 0.08) 0%, transparent 70%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 5;
    position: relative;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-red);
    margin-bottom: 2rem;
    background-color: rgba(255, 62, 62, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 62, 62, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-red);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 62, 62, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 62, 62, 0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Indicador de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    pointer-events: none;
}

.scroll-mouse {
    width: 22px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 18px;
        opacity: 0;
    }
    100% {
        top: 6px;
        opacity: 0;
    }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* 6. ABOUT SECTION */
.about-section {
    padding: 10rem 0;
    border-top: 1px solid rgba(255, 62, 62, 0.05);
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.about-tag .section-title {
    font-size: 2.6rem;
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.body-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* 7. SERVICES SECTION */
.services-section {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.section-header .section-title {
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 62, 62, 0.03);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 62, 62, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    border-color: rgba(255, 62, 62, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-icon {
    width: 54px;
    height: 54px;
    background-color: rgba(255, 62, 62, 0.04);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 62, 62, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    background-color: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 62, 62, 0.4);
    transform: scale(1.05);
}

.icon-svg {
    width: 26px;
    height: 26px;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.service-card .service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* 8. METODOLOGÍA (PROCESO) */
.process-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step-card {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid var(--text-muted);
    transition: var(--transition-smooth);
}

.step-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition-smooth);
}

.step-card:hover::after {
    width: 100%;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.step-card:hover .step-num {
    opacity: 1;
    text-shadow: 0 0 15px var(--accent-red-glow-strong);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 9. CONTACT SECTION & MINIMAL FORM */
.contact-section {
    padding: 10rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 62, 62, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info .section-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.contact-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 480px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.text-glow-red-hover:hover {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red-glow-strong);
}

/* Formulario Moderno Minimalista con Floating Labels */
.contact-form-container {
    background-color: var(--bg-secondary);
    padding: 4rem 3.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 62, 62, 0.03);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-red);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-textarea {
    min-height: 100px;
    resize: none;
}

.form-label {
    position: absolute;
    top: 0.6rem;
    left: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition-fast);
}

/* Efecto Floating Labels */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 600;
}

.form-input:focus ~ .form-bar {
    width: 100%;
}

.form-input:focus {
    border-bottom-color: transparent;
}

.btn-submit {
    width: 100%;
    margin-top: 1.5rem;
    background-color: var(--accent-red);
    color: var(--text-primary);
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.2);
}

.btn-submit:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 8px 25px rgba(255, 62, 62, 0.4);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* Mensajes de Validación */
.form-response {
    font-size: 0.95rem;
    margin-top: 1rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-response.show {
    opacity: 1;
    height: auto;
    padding: 0.8rem;
}

.form-response.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.form-response.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

/* 10. FOOTER SECTION */
.footer {
    padding: 5rem 0 3rem 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 62, 62, 0.05);
    z-index: 10;
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--text-muted);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-tech {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tech-badge {
    background-color: rgba(255, 62, 62, 0.08);
    color: var(--accent-red);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* 11. SISTEMA DE REVELADO (SCROLL REVEAL) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para grillas */
.services-grid .service-card:nth-child(2) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }

.process-steps .step-card:nth-child(2) { transition-delay: 0.15s; }
.process-steps .step-card:nth-child(3) { transition-delay: 0.3s; }

/* 12. RESPONSIVENESS (MEDIA QUERIES) */

/* Pantallas grandes y medianas (Desktops/Laptops) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* Pantallas de tablets y móviles grandes */
@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info .section-title {
        font-size: 2.2rem;
    }
    
    .contact-form-container {
        padding: 3rem 2rem;
    }

    /* Menú hamburguesa mobile */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-secondary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid rgba(255, 62, 62, 0.08);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-cta {
        display: none; /* CTA dentro de menú o desactivado en mobile */
    }
    
    /* Efecto de cruz en hamburguesa */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Pantallas móviles pequeñas */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.0rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .about-tag .section-title {
        font-size: 2.0rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}
