/* ══════════════════════════════════════════════════════════════
   Vision2020 — Sitio Corporativo
   Software Médico Oftalmológico
   ══════════════════════════════════════════════════════════════ */

:root {
    --v-blue:       #1a56db;
    --v-blue-dk:    #1e40af;
    --v-blue-lt:    #dbeafe;
    --v-cyan:       #0ea5e9;
    --v-dark:       #0f172a;
    --v-dark-2:     #1e293b;
    --v-body:       #475569;
    --v-muted:      #94a3b8;
    --v-bg:         #f8fafc;
    --v-white:      #ffffff;
    --v-radius:     .875rem;
    --v-shadow:     0 2px 8px rgba(15,23,42,.07);
    --v-shadow-lg:  0 12px 32px rgba(15,23,42,.10);
    --v-transition: .25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--v-body);
    background: var(--v-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography helpers ── */
.text-gradient {
    background: linear-gradient(135deg, var(--v-blue) 0%, var(--v-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.v-navbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15,23,42,.06);
    padding: .75rem 0;
    transition: box-shadow var(--v-transition);
}
.v-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(15,23,42,.08);
}
.v-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.v-navbar .brand-logo {
    height: 38px;
    width: auto;
}
.v-navbar .nav-link {
    color: var(--v-body);
    font-weight: 500;
    font-size: .875rem;
    padding: .45rem .9rem;
    transition: color var(--v-transition);
    position: relative;
}
.v-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: .9rem; right: .9rem;
    height: 2px;
    background: var(--v-blue);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--v-transition);
}
.v-navbar .nav-link:hover { color: var(--v-blue); }
.v-navbar .nav-link:hover::after { transform: scaleX(1); }
.v-navbar .btn-demo {
    background: linear-gradient(135deg, var(--v-blue), var(--v-cyan));
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    padding: .45rem 1.25rem;
    border-radius: 6px;
    transition: opacity var(--v-transition), transform var(--v-transition);
}
.v-navbar .btn-demo:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: #fff;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.v-hero {
    min-height: 100vh;
    padding-top: 5.5rem;
    background: var(--v-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Fondo con mesh gradient */
.v-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(26,86,219,.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(14,165,233,.2) 0%, transparent 55%);
    pointer-events: none;
}

/* Grid decorativo */
.v-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.v-hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(26,86,219,.18);
    border: 1px solid rgba(26,86,219,.4);
    color: #93c5fd;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .35rem .9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}
.v-hero .badge-pill .dot {
    width: 6px; height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}

.v-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--v-white);
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.v-hero .lead {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.v-hero-cta {
    display: flex;
    gap: .875rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 3.5rem;
}
.btn-primary-grd {
    background: linear-gradient(135deg, var(--v-blue), var(--v-cyan));
    border: none;
    color: #fff;
    font-weight: 700;
    padding: .8rem 2rem;
    border-radius: 8px;
    font-size: .95rem;
    transition: transform var(--v-transition), box-shadow var(--v-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-primary-grd:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,86,219,.45);
}
.btn-ghost-white {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #e2e8f0;
    font-weight: 600;
    padding: .8rem 1.75rem;
    border-radius: 8px;
    font-size: .95rem;
    transition: background var(--v-transition), border-color var(--v-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-ghost-white:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.32);
}

/* Stats row */
.v-hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.v-stat {
    display: flex;
    flex-direction: column;
}
.v-stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: .2rem;
}
.v-stat-num span {
    background: linear-gradient(135deg, var(--v-blue), var(--v-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v-stat-label {
    font-size: .78rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* Mockup / Visual */
.v-hero-visual {
    position: relative;
}
.v-mockup-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.08),
        0 32px 80px rgba(0,0,0,.5);
    background: var(--v-dark-2);
}
.v-mockup-bar {
    background: #0f172a;
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.v-mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.v-mockup-body {
    padding: 1.5rem;
    min-height: 320px;
}

/* Fake dashboard UI */
.v-dash-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.v-dash-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 1rem;
}
.v-dash-card .v-dc-label {
    font-size: .68rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    margin-bottom: .35rem;
}
.v-dash-card .v-dc-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.v-dash-card .v-dc-sub {
    font-size: .7rem;
    color: #22c55e;
    margin-top: .25rem;
}
.v-dash-bar-wrap {
    margin-top: .6rem;
}
.v-dash-bar {
    height: 4px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: .3rem;
}
.v-dash-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--v-blue), var(--v-cyan));
    border-radius: 4px;
}

/* Floating badges */
.v-floating-badge {
    position: absolute;
    background: var(--v-white);
    border-radius: 10px;
    padding: .6rem .9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--v-dark);
    white-space: nowrap;
    animation: float 5s ease-in-out infinite;
}
.v-floating-badge:nth-child(2) { animation-delay: -2.5s; }
.v-floating-badge .v-fb-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ══════════════════════════════════════════
   SECCIONES GENERALES
   ══════════════════════════════════════════ */
.v-section {
    padding: 5.5rem 0;
}
.v-section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--v-blue-lt);
    color: var(--v-blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 100px;
    margin-bottom: .85rem;
}
.v-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--v-dark);
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.v-section-sub {
    color: var(--v-body);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.7;
}

/* ══════════════════════════════════════════
   CLIENTES / LOGOS
   ══════════════════════════════════════════ */
.v-clients {
    background: var(--v-bg);
    padding: 3.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.v-clients-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--v-muted);
    margin-bottom: 1.5rem;
}
.v-client-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 3rem;
}
.v-client-logo {
    font-size: .9rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: .02em;
    transition: color var(--v-transition);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.v-client-logo:hover { color: var(--v-blue); }
.v-client-logo i { font-size: 1.1rem; }

/* ══════════════════════════════════════════
   MÓDULOS / FEATURES
   ══════════════════════════════════════════ */
.v-features { background: var(--v-white); }

.v-feature-card {
    background: var(--v-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--v-radius);
    padding: 1.75rem;
    transition: border-color var(--v-transition), box-shadow var(--v-transition), transform var(--v-transition);
    height: 100%;
}
.v-feature-card:hover {
    border-color: var(--v-blue);
    box-shadow: var(--v-shadow-lg);
    transform: translateY(-4px);
}
.v-feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}
.v-feature-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--v-dark);
    margin-bottom: .5rem;
}
.v-feature-card p {
    font-size: .875rem;
    color: var(--v-body);
    line-height: 1.65;
    margin: 0;
}
.v-feature-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 4px;
    margin-top: .85rem;
}

/* ══════════════════════════════════════════
   POR QUÉ VISION2020
   ══════════════════════════════════════════ */
.v-why { background: var(--v-bg); }

.v-why-list { list-style: none; padding: 0; margin: 0; }
.v-why-list li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .9rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.v-why-list li:last-child { border-bottom: none; }
.v-why-check {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--v-blue-lt);
    color: var(--v-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
.v-why-list li span {
    font-size: .9rem;
    color: var(--v-body);
    line-height: 1.55;
}
.v-why-list li strong { color: var(--v-dark); }

/* Números grandes */
.v-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.v-number-card {
    background: var(--v-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--v-radius);
    padding: 1.5rem;
    text-align: center;
}
.v-number-val {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .3rem;
    background: linear-gradient(135deg, var(--v-blue), var(--v-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.v-number-desc {
    font-size: .78rem;
    color: var(--v-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ══════════════════════════════════════════
   TIMELINE / PROCESO
   ══════════════════════════════════════════ */
.v-process { background: var(--v-white); }

.v-timeline {
    position: relative;
    padding-left: 3rem;
}
.v-timeline::before {
    content: '';
    position: absolute;
    left: 15px; top: 8px; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--v-blue), rgba(14,165,233,.2));
}
.v-tl-item {
    position: relative;
    padding-bottom: 2.5rem;
}
.v-tl-item:last-child { padding-bottom: 0; }
.v-tl-dot {
    position: absolute;
    left: -2.05rem;
    top: 4px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--v-blue);
    border: 3px solid var(--v-white);
    box-shadow: 0 0 0 3px var(--v-blue-lt);
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem;
    color: #fff;
    font-weight: 700;
}
.v-tl-item h6 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--v-dark);
    margin-bottom: .3rem;
}
.v-tl-item p {
    font-size: .85rem;
    color: var(--v-body);
    margin: 0;
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   EQUIPO
   ══════════════════════════════════════════ */
.v-team { background: var(--v-bg); }

.v-team-card {
    background: var(--v-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--v-radius);
    padding: 1.75rem;
    text-align: center;
    transition: transform var(--v-transition), box-shadow var(--v-transition);
}
.v-team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v-shadow-lg);
}
.v-team-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v-blue-lt), #e0f2fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    color: var(--v-blue);
    margin: 0 auto 1rem;
}
.v-team-card h6 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--v-dark);
    margin-bottom: .25rem;
}
.v-team-role {
    font-size: .78rem;
    color: var(--v-muted);
    font-weight: 500;
}
.v-team-tags {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .75rem;
}
.v-team-tag {
    font-size: .68rem;
    font-weight: 600;
    background: var(--v-blue-lt);
    color: var(--v-blue);
    padding: .2rem .55rem;
    border-radius: 4px;
    letter-spacing: .03em;
}

/* ══════════════════════════════════════════
   CONTACTO / CTA
   ══════════════════════════════════════════ */
.v-cta {
    background: var(--v-dark);
    position: relative;
    overflow: hidden;
}
.v-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 10% 50%, rgba(26,86,219,.3) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 40%, rgba(14,165,233,.15) 0%, transparent 55%);
    pointer-events: none;
}
.v-cta-inner { position: relative; z-index: 1; }

.v-contact-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--v-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background var(--v-transition), border-color var(--v-transition);
}
.v-contact-card:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.2);
}
.v-contact-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: rgba(26,86,219,.3);
    display: flex; align-items: center; justify-content: center;
    color: #93c5fd;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.v-contact-label {
    font-size: .72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.v-contact-val {
    font-size: .95rem;
    font-weight: 700;
    color: var(--v-white);
}

/* Form estilos para el CTA */
.v-form-card {
    background: var(--v-white);
    border-radius: var(--v-radius);
    padding: 2.25rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.v-form-card .form-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--v-dark);
    margin-bottom: .35rem;
}
.v-form-card .form-control,
.v-form-card .form-select {
    font-size: .875rem;
    border-color: #e2e8f0;
    border-radius: 8px;
    padding: .6rem .85rem;
    transition: border-color var(--v-transition), box-shadow var(--v-transition);
}
.v-form-card .form-control:focus,
.v-form-card .form-select:focus {
    border-color: var(--v-blue);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.v-footer {
    background: #060d1a;
    padding: 4rem 0 2rem;
    color: #475569;
}
.v-footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .85;
}
.v-footer-desc {
    font-size: .85rem;
    line-height: 1.7;
    color: #334155;
    margin-top: .85rem;
    max-width: 280px;
}
.v-footer h6 {
    color: #94a3b8;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.v-footer ul { list-style: none; padding: 0; margin: 0; }
.v-footer ul li { margin-bottom: .55rem; }
.v-footer ul li a {
    font-size: .85rem;
    color: #334155;
    text-decoration: none;
    transition: color var(--v-transition);
}
.v-footer ul li a:hover { color: #60a5fa; }
.v-footer-bottom {
    border-top: 1px solid #0f172a;
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}
.v-footer-bottom p {
    font-size: .8rem;
    color: #1e293b;
    margin: 0;
}
.v-social { display: flex; gap: .75rem; }
.v-social a {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: #0f172a;
    color: #475569;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    transition: background var(--v-transition), color var(--v-transition);
    text-decoration: none;
}
.v-social a:hover {
    background: var(--v-blue);
    color: #fff;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .v-hero { min-height: auto; padding: 7rem 0 4rem; }
    .v-hero-visual { margin-top: 3rem; }
    .v-numbers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .v-section { padding: 3.5rem 0; }
    .v-hero h1 { font-size: 2.2rem; }
    .v-hero-stats { gap: 1.5rem; }
    .v-hero-cta { flex-direction: column; align-items: flex-start; }
    .v-numbers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .v-numbers { grid-template-columns: 1fr; }
    .v-dash-preview { grid-template-columns: 1fr; }
}
