/* 
   Logos Digital — Premium Indigo / Cyan Theme
   Modern, clean, and conversion-focused.
*/

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

/* ─── Design Tokens ───────────────────────────────────────── */
:root {
    --color-primary:       #4f46e5;
    --color-primary-dark:  #3730a3;
    --color-primary-hover: #4338ca;
    --color-primary-soft:  rgba(79, 70, 229, 0.08);

    --color-accent:        #06b6d4;
    --color-accent-hover:  #0891b2;
    --color-accent-soft:   rgba(6, 182, 212, 0.10);

    --color-dark:          #0f172a;
    --color-dark-2:        #1e293b;
    --color-dark-soft:     rgba(15, 23, 42, 0.05);

    --color-secondary:     #64748b;
    --color-light-bg:      #0f172a;
    --color-border:        #1e293b;
    --color-surface:       #1e293b;
    --color-surface-2:     #263148;
    --color-body-text:     #e2e8f0;
    --color-danger-soft:   rgba(239, 68, 68, 0.15);

    --glass-bg:     rgba(255,255,255,0.70);
    --glass-border: rgba(255,255,255,0.30);

    --radius-sm:    0.625rem;
    --radius-md:    1rem;
    --radius-lg:    1.5rem;
    --radius-xl:    2rem;

    --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md:  0 4px 16px rgba(15,23,42,0.08), 0 1px 3px rgba(15,23,42,0.05);
    --shadow-lg:  0 12px 32px rgba(15,23,42,0.10), 0 4px 8px rgba(15,23,42,0.06);
    --shadow-xl:  0 24px 48px rgba(15,23,42,0.12), 0 8px 16px rgba(15,23,42,0.08);

    --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-body-text);
    background-color: var(--color-light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* ─── Utility ─────────────────────────────────────────────── */
.color-primary  { color: var(--color-primary)  !important; }
.text-accent    { color: var(--color-accent)   !important; }
.color-white    { color: #fff !important; }
.tracking-wide  { letter-spacing: 0.08em; }
.z-index-1      { position: relative; z-index: 1; }
.shadow-2xl     { box-shadow: var(--shadow-xl); }

/* ─── Backgrounds ─────────────────────────────────────────── */
.bg-primary-brand { background-color: var(--color-primary) !important; }
.bg-accent        { background-color: var(--color-accent)  !important; }
.bg-accent-soft   { background-color: var(--color-accent-soft) !important; }
.bg-dark-soft     { background-color: var(--color-dark-soft)   !important; }
.bg-danger-soft   { background-color: var(--color-danger-soft) !important; }
.bg-light-soft    { background-color: var(--color-light-bg)    !important; }

/* ─── Hero Mesh ───────────────────────────────────────────── */
.bg-mesh-dark {
    background-color: var(--color-dark);
    background-image:
        radial-gradient(ellipse at 0% 0%,   rgba(79, 70, 229, 0.50) 0px, transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.35) 0px, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(79, 70, 229, 0.20) 0px, transparent 50%);
    color: white;
}
.bg-mesh-dark h1        { color: white !important; }
.bg-mesh-dark p.lead    { color: #cbd5e1 !important; }

/* ─── Glassmorphism ───────────────────────────────────────── */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}
.glass-nav {
    background: rgba(15,23,42,0.90) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.glass-nav .nav-link { color: #cbd5e1 !important; }
.glass-nav .nav-link:hover { background: rgba(255,255,255,0.08); color: #fff !important; }
.glass-nav .navbar-brand span { color: #e2e8f0 !important; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #fff;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.3s ease;
}
.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.35) !important;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    transition: var(--transition);
}
.btn-primary-gradient:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35) !important;
}

/* ─── Hover Lifts ─────────────────────────────────────────── */
.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-3px);
}

.hover-lift-sm { transition: var(--transition); }
.hover-lift-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

/* ─── Cards ───────────────────────────────────────────────── */
.hover-lift-card {
    transition: var(--transition);
}
.hover-lift-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.rounded-4  { border-radius: var(--radius-lg) !important; }
.rounded-5  { border-radius: var(--radius-xl) !important; }

/* Solution card gradient border effect */
.solution-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.solution-card:hover::before { opacity: 1; }
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Icon wrap modern */
.icon-wrap-modern {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Feature card */
.feature-card {
    border: 1px solid var(--color-border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Contact section */
.contact-section {
    background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
    position: relative;
    overflow: hidden;
}

/* Section label */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.section-label::before,
.section-label::after {
    content: '';
    flex: 1;
    max-width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar-sticky {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav-link {
    letter-spacing: -0.01em;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary) !important;
}

/* ─── Hero Section ────────────────────────────────────────── */
.hero-section {
    padding: 5rem 0 4rem;
}
@media (max-width: 991px) { .hero-section { padding: 4rem 0 3rem; } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.30);
    color: var(--color-accent);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: blink 1.8s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ─── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}
.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── CSS MacBook Mockup ─────────────────────────────────── */
.macbook-mockup {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}
.macbook-screen {
    background: #1a1a2e;
    border-radius: 16px 16px 0 0;
    padding: 14px 14px 22px;
    box-shadow: inset 0 0 0 2px #2a2a3e, inset 0 0 0 3px #111, 0 24px 48px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.macbook-screen::before {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 7px; height: 7px;
    background: #2a2a3e;
    border-radius: 50%;
    border: 1px solid #3a3a4e;
    z-index: 2;
}
.macbook-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,70,229,0.1) 0%, transparent 50%, rgba(6,182,212,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}
.screen-content {
    width: 100%;
    height: 110%;
    border-radius: 4px;
    object-fit: cover;
    object-position: top;
    display: block;
}
.macbook-bottom {
    height: 16px;
    background: linear-gradient(to bottom, #c8d1d9, #b0bec5);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
}
.macbook-bottom::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 14%; height: 5px;
    background: #9eabb3;
    border-radius: 0 0 4px 4px;
}

/* ─── Section Labels ──────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* ─── Pain Points ─────────────────────────────────────────── */
.pain-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.125rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-bottom: 0.85rem;
}
.pain-item:last-child { margin-bottom: 0; }
.pain-item:hover {
    border-color: rgba(239,68,68,0.20);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.pain-icon {
    width: 46px; height: 46px;
    background: var(--color-danger-soft);
    color: #ef4444;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* ─── Feature Cards (Beneficios) ─────────────────────────── */
.feature-card {
    border: 1px solid var(--color-border);
    transition: var(--transition);
    text-align: center;
}
.feature-card:hover {
    border-color: rgba(79,70,229,0.20);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.icon-wrap-modern {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.875rem;
}

/* ─── Process / Steps ─────────────────────────────────────── */
.process-step {
    position: relative;
    text-align: center;
}
.step-number {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(79,70,229,0.35);
}
.step-connector {
    position: absolute;
    top: 28px;
    left: calc(50% + 42px);
    right: calc(-50% + 42px);
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    opacity: 0.25;
}
.col-md-3:last-child .step-connector { display: none; }

/* ─── Portfolio ───────────────────────────────────────────── */
.portfolio-item {
    transition: var(--transition);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,18,40,0.92) 0%, rgba(10,18,40,0.30) 50%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    transform: translateY(10px);
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-img-container { transition: transform 0.5s ease; }
.portfolio-item:hover .portfolio-img-container { transform: scale(1.04); }

/* ─── Decorative Shapes ───────────────────────────────────── */
.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(70px);
}
.shape-1 {
    width: 700px; height: 700px;
    background: var(--color-primary);
    top: -300px; right: -250px;
    opacity: 0.25;
}
.shape-2 {
    width: 450px; height: 450px;
    background: var(--color-accent);
    bottom: -150px; left: -150px;
    opacity: 0.18;
}

/* Blob decorations */
.blob { position: absolute; filter: blur(60px); z-index: 0; opacity: 0.35; }
.blob-1 {
    width: 350px; height: 350px;
    background: var(--color-primary);
    border-radius: 50%;
    top: -120px; left: -120px;
}
.blob-2 {
    width: 280px; height: 280px;
    background: var(--color-accent);
    border-radius: 50%;
    bottom: -60px; right: -60px;
}

/* ─── Grayscale Logo ──────────────────────────────────────── */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.grayscale:hover { filter: grayscale(0%); opacity: 1 !important; }

/* ─── WhatsApp Button ─────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    width: 58px; height: 58px;
    bottom: 28px; right: 28px;
    background: #fff;
    color: #25d366;
    border-radius: 50%;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.06);
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    background: #25d366;
    color: #fff;
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 16px 32px rgba(37,211,102,0.30);
}
@media (max-width: 768px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 1.45rem; }
}

/* ─── Contact Section ─────────────────────────────────────── */
.contact-section {
    background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
    position: relative;
    overflow: hidden;
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
.float-anim { animation: float 5s ease-in-out infinite; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.7s ease both; }
.fade-up-delay-1 { animation-delay: 0.15s; }
.fade-up-delay-2 { animation-delay: 0.30s; }
.fade-up-delay-3 { animation-delay: 0.45s; }

/* ─── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 768px) {
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-item:last-child { border-bottom: none; }
    .step-connector { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   ══════════════════════════════════════════════════════════════ */

/* White/light surfaces → dark */
.bg-white { background-color: var(--color-surface) !important; }
.bg-light  { background-color: var(--color-surface) !important; }

/* Pain-points section lighter strip */
section[style*="background:var(--color-light-bg)"] {
    background-color: var(--color-surface) !important;
}

/* Pain items */
.pain-item {
    background: var(--color-surface-2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

/* Solution card inner bg */
.solution-card .rounded-4 { background-color: var(--color-surface) !important; }
.solution-card h3 { color: #f1f5f9 !important; }
.solution-card p  { color: #94a3b8 !important; }
.solution-card li { color: #94a3b8 !important; }

/* Feature cards */
.feature-card { background-color: var(--color-surface) !important; border-color: rgba(255,255,255,0.07) !important; }

/* Text */
.text-secondary { color: #94a3b8 !important; }
.text-muted     { color: #64748b  !important; }
.text-dark      { color: #e2e8f0  !important; }
h1, h2, h3, h4, h5, h6 { color: #f1f5f9; }

/* Contact form card */
#contacto .card { background-color: var(--color-surface) !important; border: 1px solid rgba(255,255,255,0.08) !important; }
#contacto .form-label     { color: #94a3b8 !important; }
#contacto .form-control   { background-color: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.12) !important; color: #f1f5f9 !important; }
#contacto .form-control::placeholder { color: #475569 !important; }
#contacto .border-top     { border-color: rgba(255,255,255,0.08) !important; }

/* Footer links */
footer a:not(.btn) { color: #64748b !important; }
footer a:not(.btn):hover { color: #94a3b8 !important; }

/* Navbar toggler on dark background */
.navbar-toggler-icon { filter: invert(1) opacity(0.7); }