:root {
    --color-bg: #0A2540;
    --color-bg-alt: #0f3156;
    --color-primary: #00C48C;
    --color-primary-soft: rgba(0, 196, 140, 0.15);
    --color-text: #0A2540;
    --color-text-soft: #4b5c75;
    --color-white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(8, 35, 74, 0.25);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-full: 999px;
    --transition-fast: 0.2s ease;
    --container-width: 1120px;
}

/* RESET BÁSICO */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background-color: #f3f6fb;
}

/* Helpers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: #e9f0fb;
}

.section h2 {
    font-size: 1.9rem;
    margin: 0 0 1rem;
    color: var(--color-bg);
}

.section-subtitle {
    max-width: 520px;
    color: var(--color-text-soft);
}

/* TOP BAR */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 37, 64, 0.94);
    backdrop-filter: blur(16px);
    color: var(--color-white);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;  /* Más ancho */
    height: 40px; /* Más alto */
    border-radius: 12px; /* Bordes más suaves */
    background: linear-gradient(135deg, #00C48C, #02E4A2); /* Verde más vivo */
    color: #FFFFFF; /* Blanco puro */
    font-weight: 700;
    font-size: 1.1rem; /* Letra más grande */
    box-shadow: 0 6px 20px rgba(0, 196, 140, 0.4); /* Sombra sutil */
    letter-spacing: -0.5px; /* Más compacto */
}


.logo-text {
    font-weight: 600;
    font-size: 1rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: #dfe8ff;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(0, 0, 0, 0.08);
}

/* HERO */
.hero {
    background: radial-gradient(circle at top left, #1a3a67 0, #0A2540 36%, #020817 90%);
    color: var(--color-white);
    padding-top: 4rem;
    padding-bottom: 4.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    color: #d2ddff;
    max-width: 480px;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #c7d3f3;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    background-color: rgba(0, 196, 140, 0.16);
    color: #8ffadd;
    font-size: 0.78rem;
}

.hero-note {
    opacity: 0.9;
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
}

.hero-card {
    background: #0e1c35;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-card-header {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.hero-card-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.dot.red {
    background-color: #ff6b6b;
}
.dot.yellow {
    background-color: #fbbf24;
}
.dot.green {
    background-color: #22c55e;
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.78rem;
    color: #a3b4da;
}

.stat-label {
    margin: 0 0 0.2rem;
}
.stat-value {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f9fbff;
}
.stat-value.warning {
    color: #f97373;
}

.hero-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.83rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    background-color: rgba(15, 23, 42, 0.7);
}

.check-item span {
    width: 20px;
    text-align: center;
}
.check-item.error {
    border-left: 3px solid #fb7185;
}
.check-item.ok {
    border-left: 3px solid #22c55e;
}

.hero-image-placeholder {
    margin-top: 0.7rem;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: #c7d3f3;
}

.hero-visual-caption {
    font-size: 0.75rem;
    margin-top: 0.6rem;
    color: #9fb4e0;
}

.hero-image-card {
    background: #0e1c35;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.2rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hero-image-preview {
    align-self: center;
    max-width: 280px;
}

.screen-frame {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 18px;
    padding: 1rem 0.8rem;
    position: relative;
    max-width: 260px;
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.screen-dots {
    display: flex;
    gap: 0.3rem;
}

.screen-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.screen-content {
    background: var(--color-white);
    border-radius: 12px;
    padding: 0.9rem 0.7rem;
    font-size: 0.78rem;
}

.screen-url {
    font-weight: 600;
    color: var(--color-bg);
    margin: 0 0 0.4rem;
}

.screen-issues {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.issue-badge {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.issue-badge.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.issue-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.issue-badge.ok {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.hero-summary {
    text-align: center;
}

.summary-title {
    margin: 0 0 0.6rem;
    color: #e5edff;
    font-size: 0.9rem;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
    font-size: 0.75rem;
    color: #c7d3f3;
    text-align: left;
}

.summary-list li {
    padding: 0.15rem 0;
}

.summary-cta {
    display: flex;
    justify-content: center;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.btn-outline.btn-small {
    border-color: rgba(148, 163, 184, 0.6);
}

@media (max-width: 480px) {
    .hero-image-preview {
        max-width: 240px;
    }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 10px 30px rgba(0, 196, 140, 0.35);
}

.btn-primary:hover {
    background-color: #06d899;
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(0, 196, 140, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background-color: rgba(15, 23, 42, 0.55);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
}

/* GRID GENÉRICO */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

/* PROBLEMAS */
.problem-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.problem-list li {
    display: flex;
    gap: 0.8rem;
    padding: 0.9rem 0.9rem;
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.problem-list h3 {
    margin: 0 0 0.15rem;
    font-size: 0.98rem;
}

.problem-list p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

.problem-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.problem-note {
    align-self: center;
    max-width: 360px;
}

.highlight-text {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

/* PASOS */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.step-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 1.1rem 1rem 1.2rem;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.step-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.step-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--color-text-soft);
}

.section-highlight {
    margin-top: 1.5rem;
    font-weight: 500;
}

/* PRECIOS */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem 1.8rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pricing-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

.pricing-card li::before {
    content: "• ";
    color: var(--color-primary);
    font-weight: 700;
}

.pricing-card-featured {
    border: 1px solid rgba(10, 37, 64, 0.1);
    position: relative;
    overflow: hidden;
}

.pricing-card-featured::before {
    content: "Más contratado";
    position: absolute;
    top: 1.1rem;
    right: -2.4rem;
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 2.6rem;
    transform: rotate(35deg);
}

.pricing-price {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.9rem;
}

/* SOBRE MÍ */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: 2rem;
    align-items: center;
}

.avatar-placeholder {
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 0.9rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.5);
    border: 3px solid rgba(148, 163, 184, 0.5);
}

.about-content p {
    font-size: 0.92rem;
    color: var(--color-text-soft);
    margin: 0 0 0.6rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.about-list li::before {
    content: "✔ ";
    color: var(--color-primary);
}

/* TESTIMONIO */
.testimonial-card {
    margin-top: 1.5rem;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.4rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    max-width: 640px;
}

.testimonial-text {
    margin: 0 0 0.8rem;
    font-style: italic;
    font-size: 0.95rem;
}

.testimonial-author {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

/* CTA FINAL */
.section-cta {
    background: linear-gradient(135deg, #0A2540, #020617);
    color: var(--color-white);
    padding: 3.8rem 0;
}

.cta-box {
    text-align: center;
}

.cta-box h2 {
    margin: 0 0 0.7rem;
    color: var(--color-white);
}

.cta-box p {
    margin: 0 0 1.4rem;
    color: #d2ddff;
}

/* FOOTER */
.footer {
    background-color: #020617;
    color: #9ca3af;
    padding: 1.6rem 0;
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    font-weight: 600;
    margin: 0 0 0.3rem;
    color: #e5e7eb;
}

.footer-text {
    margin: 0;
}

.footer-info p {
    margin: 0.1rem 0;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 1.4rem;
    right: 1.4rem;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background-color: #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #052e16;
    box-shadow: 0 16px 35px rgba(22, 163, 74, 0.7);
    text-decoration: none;
    z-index: 60;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    background-color: #4ade80;
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.8);
}

.whatsapp-icon {
    font-size: 1.4rem;
}

/* ANIMACIONES SUAVES */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero {
        padding-top: 3rem;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    /* ORDEN CORRECTO: TEXTO PRIMERO */
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    /* DENTRO DEL CARD: LISTA ARRIBA, MOCKUP ABAJO */
    .hero-image-card {
        flex-direction: column-reverse;
        gap: 1.1rem;
    }
    
    .grid-2,
    .pricing-grid,
    .steps,
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .problem-note {
        max-width: 100%;
    }
}


@media (max-width: 720px) {
    .top-bar-inner {
        flex-wrap: wrap;
        gap: 0.7rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.6rem;
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-outline {
        width: 100%;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-card {
        padding: 1rem;
    }

    .avatar-placeholder {
        width: 140px;
        height: 140px;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }
}
