:root {
    --color-bg: #050608;
    --color-bg-alt: #0d0f13;
    --color-surface: #13161d;
    --color-surface-soft: #181d26;
    --color-primary: #f4b321; /* Amarillo del logo */
    --color-primary-soft: rgba(244, 179, 33, 0.12);
    --color-text: #f7f7f7;
    --color-text-soft: #c3c6d1;
    --color-border: #262a35;
    --color-danger: #ff4f5a;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-subtle: 0 10px 28px rgba(0, 0, 0, 0.35);
    --container-width: 1140px;
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #151927 0, #050608 45%, #020308 100%);
    color: var(--color-text);
    line-height: 1.6;
}

/* Utilidades base */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-alt {
    padding: 6rem 0;
    background: radial-gradient(circle at top, #181d26, #06070b);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--color-text-soft);
    max-width: 640px;
    margin: 0 auto;
}

/* Layouts */
.grid {
    display: grid;
    gap: 1.8rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* HEADER / NAVBAR */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.85), rgba(5, 6, 10, 0.0));
    border-bottom: 1px solid rgba(38, 42, 53, 0.7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-text);
}

.brand-logo {
    height: 46px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--color-text-soft);
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(244, 179, 33, 0.6);
    background: linear-gradient(90deg, rgba(244, 179, 33, 0.18), transparent);
}

/* Mobile nav button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 4px;
}

/* HERO */
.hero {
    padding: 6rem 0 5rem 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero h1 {
    margin: 0.6rem 0 0.8rem 0;
    font-size: 2.7rem;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--color-primary);
}

.hero-subtitle {
    color: var(--color-text-soft);
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.8rem 0 1.1rem 0;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--color-text-soft);
}

.hero-badges span {
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(195, 198, 209, 0.35);
    background: radial-gradient(circle at top left, rgba(244, 179, 33, 0.18), rgba(19, 22, 29, 0.9));
}

/* HERO visual */
.hero-visual {
    background: radial-gradient(circle at top, #202637, #11141d);
    border-radius: 24px;
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(244, 179, 33, 0.24);
    position: relative;
    overflow: hidden;
}

.hero-logo-orbit {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-logo-orbit img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.7));
    animation: float 4.5s ease-in-out infinite;
}

.hero-metrics {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.metric {
    flex: 1;
    background: rgba(5, 7, 11, 0.9);
    border-radius: 16px;
    padding: 0.8rem 0.8rem;
    border: 1px solid rgba(244, 179, 33, 0.25);
    box-shadow: var(--shadow-subtle);
}

.metric-value {
    display: block;
    font-weight: 600;
    font-size: 1.3rem;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--color-text-soft);
}

/* Botones */
.btn {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(120deg, #f4b321, #f7c85a);
    color: #23190a;
    box-shadow: 0 12px 30px rgba(244, 179, 33, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(244, 179, 33, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(195, 198, 209, 0.4);
    color: var(--color-text-soft);
}

.btn-outline:hover {
    border-color: rgba(244, 179, 33, 0.8);
    color: var(--color-text);
    background: rgba(244, 179, 33, 0.12);
}

.btn.block {
    width: 100%;
    justify-content: center;
}

/* Tarjetas */
.cards .card {
    background: radial-gradient(circle at top left, rgba(244, 179, 33, 0.09), #10131b);
}

.card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(38, 42, 53, 0.9);
    padding: 1.6rem 1.5rem;
    background: rgba(10, 13, 19, 0.96);
    box-shadow: var(--shadow-subtle);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.card p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

.card-list {
    color: var(--color-text-soft);
    padding-left: 1.1rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.card-list li {
    margin-bottom: 0.35rem;
}

/* Pricing */
.pricing-card {
    position: relative;
}

.pricing-card-featured {
    background: radial-gradient(circle at top, rgba(244, 179, 33, 0.3), #131720);
    transform: translateY(-4px);
    border-color: rgba(244, 179, 33, 0.7);
}

.pricing-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: #23190a;
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
}

.pricing-price {
    font-size: 1.1rem;
    margin: 0.4rem 0 0.2rem 0;
}

.pricing-price span {
    font-size: 1.5rem;
}

/* Chips */
.chips {
    margin-top: 2rem;
}

.chip {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(244, 179, 33, 0.3);
    background: rgba(10, 13, 19, 0.96);
    text-align: center;
    font-size: 0.88rem;
}

/* About */
.about-grid {
    display: grid;
    gap: 2.2rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.about-highlight {
    background: linear-gradient(150deg, rgba(244, 179, 33, 0.26), #141723);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    border: 1px solid rgba(244, 179, 33, 0.8);
}

.about-pill-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.about-pill-list li {
    background: rgba(5, 7, 11, 0.8);
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Contacto */
.contact-grid {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
}

.contact-info p {
    color: var(--color-text-soft);
}

.contact-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.4rem 0;
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

.contact-list li {
    margin-bottom: 0.35rem;
}

.contact-note {
    font-size: 0.86rem;
    color: var(--color-text-soft);
}

/* Formulario */
.contact-form {
    background: rgba(5, 7, 11, 0.98);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-field label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
    background: #080b11;
    border: 1px solid rgba(52, 57, 72, 0.9);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-text);
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(244, 179, 33, 0.85);
    box-shadow: 0 0 0 1px rgba(244, 179, 33, 0.65);
    background: #05070c;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--color-text-soft);
    margin-top: 0.4rem;
}

/* Footer */
.footer {
    padding: 1.8rem 0 2.2rem 0;
    border-top: 1px solid rgba(38, 42, 53, 0.9);
    background: #05060a;
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand img {
    width: 24px;
    height: 24px;
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* Aparición con scroll */
.card-appear {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-appear.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 5.2rem;
    }

    .hero-visual {
        order: -1;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing-card-featured {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.5rem 0;
    }

    .nav {
        position: absolute;
        inset: 60px 0 auto 0;
        background: rgba(5, 6, 10, 0.98);
        border-bottom: 1px solid rgba(38, 42, 53, 0.85);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1.5rem 1.2rem 1.5rem;
        gap: 0.8rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-badges {
        gap: 0.4rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-metrics {
        flex-direction: column;
    }

    .section {
        padding: 4.5rem 0;
    }

    .section-alt {
        padding: 4.5rem 0;
    }
}
