@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;900&display=swap');

/* ============================================
   DESIGN SYSTEM — Carasoft Neo-Editorial v2
   Profesional · Elegante · Minimalista · Dinámico
   ============================================ */

:root {
    /* Palette — Violeta + Dorado Premium */
    --bg-deep: #0c0a1a;
    --bg-surface: #13111f;
    --bg-card: #1c1930;
    --bg-card-hover: #252240;

    --text-white: #ffffff;
    --text-primary: #e4e0f0;
    --text-muted: #a8a0c0;

    --accent-teal: #a78bfa;
    --accent-teal-dim: rgba(167, 139, 250, 0.15);
    --accent-orange: #fbbf24;
    --accent-orange-dim: rgba(251, 191, 36, 0.12);

    --border-subtle: rgba(167, 139, 250, 0.06);
    --border-hover: rgba(167, 139, 250, 0.25);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 50px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.3s var(--ease-out);
}

/* ============================================
   BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--accent-teal);
    color: var(--bg-deep);
}

/* ============================================
   TYPOGRAPHY — Proportional Scale
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-weight: 600; font-size: 1.375rem; }
h4 { font-weight: 600; font-size: 1.125rem; }

p {
    color: var(--text-primary);
    max-width: 65ch;
}

.text-teal   { color: var(--accent-teal) !important; }
.text-orange { color: var(--accent-orange) !important; }
.text-muted-custom { color: var(--text-muted); }

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: 0.75rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.neo-section {
    padding: 5rem 0;
    position: relative;
}

.neo-section + .neo-section {
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary-cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--bg-deep);
    background: var(--accent-teal);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-cs:hover {
    background: #c4b5fd;
    color: var(--bg-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.25);
}

.btn-outline-cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-outline-cs:hover {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
    background: var(--accent-teal-dim);
    transform: translateY(-2px);
}

.btn-cta-nav {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar-cs {
    background: rgba(12, 10, 26, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    transition: all var(--transition-base);
}

.navbar-cs .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 1px;
    color: var(--text-white);
    text-decoration: none;
}

.navbar-cs .navbar-brand span {
    color: var(--accent-teal);
}

.navbar-cs .nav-link {
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    margin: 0 0.85rem;
    position: relative;
    transition: color var(--transition-base);
    text-decoration: none;
}

.navbar-cs .nav-link:hover,
.navbar-cs .nav-link.active {
    color: var(--text-white);
}

.navbar-cs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.navbar-cs .nav-link:hover::after,
.navbar-cs .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: none;
}

/* ============================================
   HERO
   ============================================ */

.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all var(--transition-base);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-teal-dim);
    color: var(--accent-teal);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
}

.service-card h4 {
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin-bottom: 0;
}

/* ============================================
   METHODOLOGY STEPS
   ============================================ */

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

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

.step-row:hover {
    padding-left: 0.5rem;
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(167, 139, 250, 0.12);
    flex-shrink: 0;
    width: 3.5rem;
    transition: color var(--transition-base);
}

.step-row:hover .step-num {
    color: rgba(167, 139, 250, 0.3);
}

.step-body h4 {
    margin-bottom: 0.35rem;
}

.step-body p {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin-bottom: 0;
}

/* ============================================
   TRUST PILLARS
   ============================================ */

.trust-section {
    background: var(--bg-surface);
}

.trust-item {
    text-align: center;
    padding: 2rem 1rem;
}

.trust-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.trust-item h4 {
    margin-bottom: 0.4rem;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 auto;
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee-section {
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.marquee-track {
    display: inline-flex;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.marquee-tag i {
    color: var(--accent-teal);
    font-size: 1.1rem;
}

.marquee-dot {
    color: rgba(255, 255, 255, 0.12);
    padding: 0 0.5rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.neo-form .form-control,
.neo-form .form-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.925rem;
    transition: all var(--transition-base);
}

.neo-form .form-control:focus,
.neo-form .form-select:focus {
    box-shadow: 0 0 0 3px var(--accent-teal-dim);
    border-color: var(--accent-teal);
    background: var(--bg-surface);
    outline: none;
}

.neo-form .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.neo-form label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-cs {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 0 1.5rem;
}

.footer-cs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-cs a:hover {
    color: var(--accent-teal);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 991.98px) {
    .neo-section {
        padding: 3.5rem 0;
    }

    .hero-section {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

    .navbar-cs .nav-link {
        margin: 0;
        padding: 0.6rem 0;
    }

    .contact-form-wrapper {
        padding: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }

    .neo-section {
        padding: 3rem 0;
    }

    .hero-section {
        padding: 3rem 0 2rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .step-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-num {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .trust-item {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   LOGO THEME SWITCHING
   ============================================ */

.logo-light {
    display: none !important;
}

.logo-dark {
    display: inline-block !important;
}

[data-theme="light"] .logo-light {
    display: inline-block !important;
}

[data-theme="light"] .logo-dark {
    display: none !important;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
    background: var(--accent-teal-dim);
    transform: translateY(-2px);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all 0.4s var(--ease-out);
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* ============================================
   LIGHT THEME
   ============================================ */

[data-theme="light"] {
    --bg-deep: #f5f3ff;
    --bg-surface: #ede9fe;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f3ff;

    --text-white: #1e1b4b;
    --text-primary: #3b3566;
    --text-muted: #6b6194;

    --accent-teal: #7c3aed;
    --accent-teal-dim: rgba(124, 58, 237, 0.1);
    --accent-orange: #d97706;
    --accent-orange-dim: rgba(217, 119, 6, 0.1);

    --border-subtle: rgba(124, 58, 237, 0.1);
    --border-hover: rgba(124, 58, 237, 0.3);
}

[data-theme="light"] body {
    -webkit-font-smoothing: auto;
}

[data-theme="light"] ::selection {
    background-color: var(--accent-teal);
    color: #ffffff;
}

/* Navbar light overrides */
[data-theme="light"] .navbar-cs {
    background: rgba(245, 243, 255, 0.9) !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .navbar-cs .nav-link {
    color: #3b3566;
}

[data-theme="light"] .navbar-cs .nav-link:hover,
[data-theme="light"] .navbar-cs .nav-link.active {
    color: #1e1b4b;
}

[data-theme="light"] .navbar-toggler {
    border-color: rgba(59, 53, 102, 0.3);
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233b3566' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Button light overrides */
[data-theme="light"] .btn-primary-cs {
    color: #ffffff;
}

[data-theme="light"] .btn-primary-cs:hover {
    background: #6d28d9;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .btn-outline-cs {
    color: #3b3566;
    border-color: rgba(124, 58, 237, 0.2);
}

/* Hero light overrides */
[data-theme="light"] .hero-section::before {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

/* Service cards light */
[data-theme="light"] .service-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.08);
}

/* Step numbers light */
[data-theme="light"] .step-num {
    color: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .step-row:hover .step-num {
    color: rgba(124, 58, 237, 0.35);
}

/* Contact form light */
[data-theme="light"] .neo-form .form-control,
[data-theme="light"] .neo-form .form-select {
    background: #f5f3ff;
    color: #1e1b4b;
}

[data-theme="light"] .neo-form .form-control::placeholder {
    color: #6b6194;
}

/* Alerts light */
[data-theme="light"] .alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

[data-theme="light"] .alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Footer light */
[data-theme="light"] .footer-cs {
    background: #ede9fe;
}

[data-theme="light"] .footer-cs .text-white {
    color: #1e1b4b !important;
}

/* Marquee light */
[data-theme="light"] .marquee-section {
    background: #ede9fe;
}

[data-theme="light"] .marquee-dot {
    color: rgba(124, 58, 237, 0.15);
}

