/* ===================================
   SWIFTCLICK 2026 - LANDING PAGE
   Sistema de colores y diseño extraído de swift-click-2
   =================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales - Paleta violeta/morado */
    --primary-purple: #6a5acd;
    --primary-light: #9d8df1;
    --primary-accent: #b8a9ff;
    --primary-dark: #4a3570;
    --primary-darker: #3a2a6a;
    
    /* Backgrounds oscuros */
    --bg-dark-1: #0a0a0f;
    --bg-dark-2: #13131f;
    --bg-dark-3: #1a1a2e;
    --bg-dark-4: #1d2545;
    --bg-dark-5: #2d3a70;
    
    /* Backgrounds con gradientes */
    --bg-gradient-1: linear-gradient(135deg, #0a0a0f 0%, #13131f 50%, #1a1a2e 100%);
    --bg-gradient-2: linear-gradient(135deg, #000000 0%, #0a0a0f 40%, #13131f 70%, #1a1a2e 100%);
    --bg-gradient-3: linear-gradient(to right, #0f0f1a 0%, #1d2545 30%, #2d3a70 60%, #3d4a85 100%);
    --bg-gradient-hero: radial-gradient(circle at top right, #9d8df1 0%, #6a5acd 8%, #3a3a5a 20%, #1a1a2e 35%, #0f0f1a 50%, #080810 100%);
    
    /* Gradientes para botones y elementos */
    --gradient-primary: linear-gradient(135deg, #6a5acd 0%, #9d8df1 100%);
    --gradient-hover: linear-gradient(135deg, #9d8df1 0%, #b8a9ff 100%);
    
    /* Colores de texto */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-medium: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);
    
    /* Efectos de sombra con glow */
    --shadow-glow: 0 0 20px rgba(184, 169, 255, 0.8), 0 0 40px rgba(184, 169, 255, 0.6), 0 0 60px rgba(184, 169, 255, 0.4);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.5);
    
    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 5rem;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark-1);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 169, 255, 0.1);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-medium);
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s, filter 0.3s;
}

.navbar .logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s, filter 0.3s;
}

.navbar .logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(184, 169, 255, 0.6));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-normal);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-gradient-hero);
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Efectos de luz en el hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse at top right, rgba(157, 141, 241, 0.3) 0%, rgba(106, 90, 205, 0.2) 40%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 40%;
    background: radial-gradient(ellipse at bottom left, rgba(106, 90, 205, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--primary-accent);
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 300;
}

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

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 0 30px rgba(157, 141, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 40px rgba(157, 141, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 169, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(184, 169, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title .highlight {
    color: var(--primary-accent);
    font-weight: 600;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-medium);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: linear-gradient(135deg, rgba(29, 40, 80, 0.4) 0%, rgba(26, 26, 46, 0.3) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 169, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(157, 141, 241, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(184, 169, 255, 0.5);
    box-shadow: 0 20px 40px rgba(106, 90, 205, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-accent);
}

.card-text {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== FORM STYLES ===== */
.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(29, 40, 80, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 169, 255, 0.3);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all var(--transition-normal);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: rgba(184, 169, 255, 0.6);
    background: rgba(29, 40, 80, 0.4);
    box-shadow: 0 0 20px rgba(184, 169, 255, 0.2);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #6a5acd 0%, #9d8df1 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(106, 90, 205, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(106, 90, 205, 0.5);
    background: linear-gradient(135deg, #7d6dd8 0%, #b8a9ff 100%);
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    transition: transform 0.3s;
}

.btn-submit:hover svg {
    transform: translateX(3px) rotate(-15deg);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.5);
    color: #2ed573;
}

.form-message.error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.5);
    color: #ff4757;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark-1);
    border-top: 1px solid rgba(184, 169, 255, 0.1);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--primary-accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--text-medium);
    line-height: 1.8;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section a:hover {
    color: var(--primary-accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

/* ===== CONTACT PILLS ===== */
.contact-info-section {
    max-width: 1100px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.contact-pills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(184, 169, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.contact-pill:hover {
    transform: scale(1.03);
    border-color: rgba(184, 169, 255, 0.5);
    box-shadow: 0 8px 32px rgba(106, 90, 205, 0.4), 0 0 20px rgba(184, 169, 255, 0.2);
}

.contact-pill:hover .contact-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(184, 169, 255, 0.6));
}

.contact-pill:hover .contact-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(184, 169, 255, 0.3);
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.3;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .contact-info-section {
        margin: 3rem auto 0;
    }
    
    .contact-pills {
        align-items: stretch;
        gap: 0.875rem;
        padding-right: 0;
        margin: 0 auto;
    }
    
    .contact-pill {
        padding: 0.625rem 1.25rem;
        gap: 0.625rem;
    }
    
    .contact-pill:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .contact-pill:hover .contact-icon {
        transform: scale(1.1) rotate(3deg);
    }
    
    .contact-icon {
        width: 16px;
        height: 16px;
    }
    
    .contact-text {
        font-size: 0.813rem;
    }
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 169, 255, 0.1);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 1rem;
    }

    .navbar .logo-img {
        height: 35px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-normal);
        backdrop-filter: blur(20px);
        padding: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section Mobile */
    .hero {
        padding: 8rem 1.25rem 4rem;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    /* Sections Mobile */
    .section {
        padding: 4rem 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
        line-height: 1.6;
    }

    /* Cards Grid Mobile */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card {
        padding: 1.75rem 1.5rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .card-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Form Mobile */
    .contact-form {
        padding: 0;
    }

    .form-input,
    .form-textarea {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Contact Pills Mobile */
    .contact-info-section {
        margin: 3rem auto 0;
        padding: 0 0.5rem;
    }
    
    .contact-pills {
        align-items: stretch;
        gap: 0.875rem;
        padding: 0;
        margin: 0 auto;
    }
    
    .contact-pill {
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
        font-size: 0.9rem;
    }
    
    .contact-pill:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
    
    .contact-text {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    /* Footer Mobile */
    .footer-content {
        padding: 3rem 1.25rem 2rem;
    }

    .footer-logo {
        margin-bottom: 2rem;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-bottom {
        padding: 1.5rem 1.25rem;
        font-size: 0.813rem;
    }

    /* Canvas animations - reduce particles on mobile */
    canvas {
        opacity: 0.7;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }

    .hero {
        padding: 7rem 1rem 3rem;
    }

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

    .section {
        padding: 3rem 1rem;
    }

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

    .card {
        padding: 1.5rem 1.25rem;
    }

    .contact-pill {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .contact-icon {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .contact-text {
        font-size: 0.813rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 6rem 1.25rem 3rem;
    }

    .section {
        padding: 3rem 1.25rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero {
        padding: 8rem 2rem 5rem;
    }

    .section {
        padding: 5rem 2rem;
    }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Smooth scroll con snap en desktop */
@media (min-width: 1024px) {
    html {
        scroll-snap-type: y proximity;
    }
    
    .section {
        scroll-snap-align: start;
    }
}
