/* ──────────────────────────────────────────────────────────────────────────
   DASC Server Manager — Estilos de la landing page
   Paleta: índigo (#4f46e5) · blanco · gris suave
   Fuente: Inter (Google Fonts)
   R-072 / Ruta 9.2
   ────────────────────────────────────────────────────────────────────────── */

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

:root {
    --primary:        #4f46e5;
    --primary-dark:   #1e1b4b;
    --primary-hover:  #4338ca;
    --primary-light:  #eef2ff;
    --primary-border: #c7d2fe;
    --accent:         #10b981;
    --accent-dark:    #059669;
    --text-dark:      #111827;
    --text-mid:       #374151;
    --text-light:     #6b7280;
    --text-xlight:    #9ca3af;
    --bg:             #ffffff;
    --bg-alt:         #f9fafb;
    --border:         #e5e7eb;
    --radius:         12px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow:         0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:      0 12px 32px rgba(79,70,229,.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Utilidades ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.tag {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--primary-light); color: var(--primary);
    padding: .3rem .85rem; border-radius: 99px;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800; color: var(--primary-dark);
    line-height: 1.25; margin-bottom: .85rem;
}
.section-subtitle {
    font-size: 1rem; color: var(--text-light); max-width: 560px; margin: 0 auto 3rem;
    text-align: center;
}
.section-header { text-align: center; }

/* ── Botones ── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.5rem; border-radius: 10px;
    font-size: .92rem; font-weight: 600; text-decoration: none;
    cursor: pointer; border: none; transition: all .18s;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--primary); border: 1.5px solid var(--primary-border); }
.btn-outline:hover { background: var(--primary-light); }
.btn-white     { background: #fff; color: var(--primary); }
.btn-white:hover   { background: var(--primary-light); }
.btn-lg        { padding: .85rem 2rem; font-size: 1rem; border-radius: 12px; }

/* ── Navbar ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo {
    display: flex; align-items: center; gap: .6rem; text-decoration: none;
}
.nav-logo-icon {
    width: 32px; height: 32px; background: var(--primary); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .85rem; font-weight: 800;
}
.nav-logo-name { font-size: 1rem; font-weight: 800; color: var(--primary-dark); }
.nav-links {
    display: flex; align-items: center; gap: .25rem; list-style: none;
}
.nav-links a {
    padding: .45rem .85rem; border-radius: 8px;
    font-size: .88rem; font-weight: 500; color: var(--text-mid);
    text-decoration: none; transition: all .15s;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--primary); }
.nav-cta { margin-left: .5rem; }
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: .35rem; color: var(--text-mid); font-size: 1.2rem;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #312e81 60%, #1e1b4b 100%);
    color: #fff; padding: 5.5rem 0 4rem; overflow: hidden; position: relative;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-tag {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #c7d2fe; padding: .3rem .85rem; border-radius: 99px;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 1.1rem; color: #fff;
}
.hero-title em { color: #a5b4fc; font-style: normal; }
.hero-subtitle {
    font-size: 1.05rem; color: #c7d2fe; margin-bottom: 2rem; line-height: 1.65; max-width: 480px;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-visual {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 1.5rem; position: relative;
}
.panel-mock {
    background: #0f0b2e; border-radius: 10px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.panel-mock-bar {
    background: #1e1b4b; padding: .65rem 1rem;
    display: flex; align-items: center; gap: .5rem;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.r { background: #ef4444; }
.mock-dot.y { background: #f59e0b; }
.mock-dot.g { background: #10b981; }
.mock-url {
    flex: 1; background: rgba(255,255,255,.08); border-radius: 5px;
    padding: .25rem .7rem; font-size: .72rem; color: #6b7280; margin: 0 .5rem;
}
.panel-mock-content { padding: 1rem; }
.mock-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; margin-bottom: .75rem; }
.mock-kpi {
    background: rgba(255,255,255,.05); border-radius: 6px; padding: .5rem .6rem;
    border-left: 2px solid;
}
.mock-kpi.g { border-color: #10b981; }
.mock-kpi.y { border-color: #f59e0b; }
.mock-kpi.b { border-color: #4f46e5; }
.mock-kpi.r { border-color: #ef4444; }
.mock-kpi-label { font-size: .58rem; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.mock-kpi-val   { font-size: .88rem; font-weight: 800; color: #e2e8f0; }
.mock-row { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); margin-bottom: .4rem; }
.mock-row.w60 { width: 60%; } .mock-row.w80 { width: 80%; } .mock-row.w45 { width: 45%; }
.mock-row.g { background: rgba(16,185,129,.25); } .mock-row.b { background: rgba(79,70,229,.3); }

/* ── Estadísticas ── */
.stats-strip { background: var(--primary-dark); color: #fff; padding: 2.5rem 0; }
.stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat-num    { font-size: 2rem; font-weight: 800; color: #a5b4fc; line-height: 1; }
.stat-label  { font-size: .82rem; color: #c7d2fe; margin-top: .3rem; }

/* ── Problema ── */
.problems-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.problem-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; transition: border-color .15s, box-shadow .15s;
}
.problem-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow); }
.problem-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #fee2e2; color: #b91c1c;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; margin-bottom: 1rem;
}
.problem-title { font-size: .95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .4rem; }
.problem-desc  { font-size: .84rem; color: var(--text-light); line-height: 1.55; }

/* ── Funcionalidades ── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.feature-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; transition: border-color .15s, box-shadow .15s;
}
.feature-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; margin-bottom: 1rem;
}
.feature-title { font-size: .95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .4rem; }
.feature-desc  { font-size: .84rem; color: var(--text-light); line-height: 1.55; }

/* ── Cómo funciona ── */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; position: relative; }
.steps-grid::before {
    content: ''; position: absolute; top: 28px; left: calc(16.66% + 1.5rem); right: calc(16.66% + 1.5rem);
    height: 2px; background: var(--primary-border); z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 1.2rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.step-title { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .4rem; }
.step-desc  { font-size: .84rem; color: var(--text-light); }

/* ── Precios ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
    background: var(--bg); border: 1.5px solid var(--border); border-radius: 16px;
    padding: 1.75rem 1.5rem; position: relative; transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.popular {
    border-color: var(--primary); box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}
.pricing-popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    padding: .25rem .9rem; border-radius: 99px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    white-space: nowrap;
}
.pricing-plan   { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); margin-bottom: .4rem; }
.pricing-name   { font-size: 1.25rem; font-weight: 800; color: var(--primary-dark); margin-bottom: .85rem; }
.pricing-price  { margin-bottom: 1.25rem; }
.pricing-amount { font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.pricing-period { font-size: .82rem; color: var(--text-light); }
.pricing-desc   { font-size: .83rem; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.5; }
.pricing-features { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .55rem; }
.pricing-features li {
    display: flex; align-items: flex-start; gap: .55rem;
    font-size: .84rem; color: var(--text-mid);
}
.pricing-features li .check { color: var(--accent); flex-shrink: 0; margin-top: .15rem; font-size: .8rem; }
.pricing-features li .cross { color: var(--text-xlight); flex-shrink: 0; margin-top: .15rem; font-size: .8rem; }
.pricing-note { font-size: .75rem; color: var(--text-xlight); text-align: center; margin-top: .75rem; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 0; cursor: pointer; gap: 1rem;
    font-size: .95rem; font-weight: 600; color: var(--primary-dark);
    user-select: none;
}
.faq-q .faq-chevron { color: var(--text-xlight); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 0 1.1rem; font-size: .88rem; color: var(--text-mid); line-height: 1.65; }

/* ── Contacto ── */
.contact-inner {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: start;
}
.contact-info h2 { font-size: 1.75rem; font-weight: 800; color: var(--primary-dark); margin-bottom: .75rem; }
.contact-info p  { font-size: .92rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1.5rem; }
.contact-detail {
    display: flex; align-items: center; gap: .65rem;
    font-size: .88rem; color: var(--text-mid); margin-bottom: .65rem;
}
.contact-detail i { color: var(--primary); width: 18px; }

.contact-form { background: var(--bg); border: 1.5px solid var(--border); border-radius: 16px; padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text-mid); }
.form-group input, .form-group select, .form-group textarea {
    padding: .6rem .9rem; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: .88rem; font-family: inherit; color: var(--text-dark); background: var(--bg);
    transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; justify-content: center; font-size: .95rem; padding: .8rem; }
.form-legal {
    font-size: .72rem; color: var(--text-xlight); text-align: center; margin-top: .75rem; line-height: 1.5;
}
.form-legal a { color: var(--text-light); }

/* ── Botón de envío — estado de carga ── */
.form-submit.loading { opacity: .7; pointer-events: none; cursor: not-allowed; }
.form-submit .btn-text { display: inline-flex; align-items: center; gap: .45rem; }
.form-submit.loading .btn-text { display: none; }
.form-submit .spinner {
    display: none;
    width: 17px; height: 17px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vigex-spin .65s linear infinite;
}
.form-submit.loading .spinner { display: inline-block; }
@keyframes vigex-spin { to { transform: rotate(360deg); } }

/* ── Estado de éxito del formulario ── */
.form-success {
    display: none;
    position: relative;
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    overflow: hidden;
    min-height: 260px;
}
.form-success.visible { display: block; }
.form-success-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.form-success-inner { position: relative; z-index: 1; }
.form-success-icon {
    font-size: 3.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    animation: vigex-pop .4s cubic-bezier(.175,.885,.32,1.275) both;
}
.form-success-title {
    font-size: 1.55rem; font-weight: 800;
    color: var(--primary-dark); margin-bottom: .5rem;
    animation: vigex-fade-up .35s .1s both;
}
.form-success-sub {
    font-size: .9rem; color: var(--text-light);
    line-height: 1.65; max-width: 340px; margin: 0 auto;
    animation: vigex-fade-up .35s .2s both;
}
@keyframes vigex-pop {
    0%   { transform: scale(0);   opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
@keyframes vigex-fade-up {
    0%   { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

/* ── Footer ── */
.footer {
    background: var(--primary-dark); color: #c7d2fe; padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
    margin-bottom: 2rem;
}
.footer-brand p { font-size: .84rem; color: #8b9dc3; margin-top: .65rem; line-height: 1.6; }
.footer-logo    { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.footer-logo-icon {
    width: 30px; height: 30px; background: var(--primary); border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .8rem; font-weight: 800;
}
.footer-logo-name { font-size: .95rem; font-weight: 800; color: #fff; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8b9dc3; margin-bottom: .75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul a { font-size: .84rem; color: #c7d2fe; text-decoration: none; transition: color .15s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: .78rem; color: #8b9dc3;
}
.footer-bottom a { color: #8b9dc3; text-decoration: none; }
.footer-bottom a:hover { color: #c7d2fe; }

/* ── CTA banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #fff; padding: 4rem 0; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: .85rem; }
.cta-banner p  { font-size: 1rem; color: #c7d2fe; margin-bottom: 2rem; }
.cta-actions   { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner      { grid-template-columns: 1fr; }
    .hero-visual     { display: none; }
    .stats-grid      { grid-template-columns: repeat(2, 1fr); }
    .problems-grid,
    .features-grid   { grid-template-columns: repeat(2, 1fr); }
    .steps-grid      { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .pricing-grid    { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card.popular { transform: none; }
    .contact-inner   { grid-template-columns: 1fr; }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: var(--bg);
        border-bottom: 1px solid var(--border); padding: .75rem 1.5rem 1rem;
        box-shadow: var(--shadow);
    }
    .section { padding: 3.5rem 0; }
    .problems-grid, .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
