:root {
    --bg-dark: #050816;
    --bg-light: #0f172a;
    --bg-lighter: #111827;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.15);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --card-bg: #020617;
    --border-subtle: #1f2937;
    --danger: #f97373;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.9);
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.25s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
    color: var(--text-main);
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

/* Layout base */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo img {
    height: 40px;
    display: block;
}

.main-nav {
    display: flex;
    gap: 1.4rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, var(--accent), #a855f7);
    border-radius: 999px;
    transition: width var(--transition-med);
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */

.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.8rem;
}

.hero-side {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 55%),
                var(--card-bg);
    border-radius: 24px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.25);
    max-width: 320px;
}

.hero-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.hero-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Botones */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: #0b1120;
    box-shadow: 0 14px 35px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

.btn-secondary:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* Secciones */

.section {
    padding: 3.5rem 0;
    background: transparent;
}

.section.light {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 55%);
}

.section.highlight {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.12));
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
}

/* Dos columnas */

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.two-columns h2 {
    font-size: 1.3rem;
}

.two-columns p {
    color: var(--text-muted);
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.1rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.7);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.98));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 1);
}

/* Pasos */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.4rem;
}

.step {
    position: relative;
    padding: 1.1rem 1rem 1rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-card);
}

.step-number {
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    color: #020617;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.5);
}

.step h3 {
    margin-top: 0.6rem;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Tags */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
}

/* Servicios */

.service-block {
    padding: 1.2rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), #020617);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

.service-block h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.service-block p {
    margin: 0.2rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* CTA */

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-content p {
    color: var(--text-muted);
}

/* Footer */

.site-footer {
    padding: 2.5rem 0 1.5rem;
    background: #020617;
    border-top: 1px solid rgba(15, 23, 42, 1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.site-footer h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(31, 41, 55, 1);
    padding-top: 0.9rem;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsivo */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-side {
        justify-content: flex-start;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 3.2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-card {
        max-width: 100%;
    }
}