html {
    scroll-padding-top: 100px;
}

:root {
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --primary-blue: #3b82f6;
    /* Electric Blue */
    --accent-green: #22c55e;
    /* Subtle Neon Green */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

.highlight {
    color: var(--accent-green);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(34, 197, 94, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.urgency-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    width: fit-content;
}

.urgency-text strong {
    color: #ef4444;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff !important;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    padding: 8rem 0;
    justify-content: flex-end;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    /* Limit text width */
}

.hero-content h1 {
    font-size: clamp(1.9rem, 7vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff 50%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-right: -10px;
}

.trust-badge span {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-container {
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.form-microcopy {
    font-size: 0.95rem;
    color: var(--accent-green) !important;
    font-weight: 500;
    margin-bottom: 1rem !important;
}

.form-security {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 100%;
}

.inline-form input {
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 1rem 1.2rem;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.inline-form input:focus {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.08);
}

.inline-form input::placeholder {
    color: var(--text-secondary);
}

.inline-form .btn {
    margin: 0;
    border-radius: 10px;
    white-space: normal;
    justify-content: center;
    width: 100%;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.hero-visual {
    height: 100vh;
    width: 100%;
    position: relative;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-demo {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
    animation: floatDemo 4s ease-in-out infinite;
}

.floating-demo i {
    font-size: 1.5rem;
}

.floating-demo div {
    display: flex;
    flex-direction: column;
}

.floating-demo strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.floating-demo span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.demo-1 {
    top: 25%;
    left: -10%;
    animation-delay: 0s;
}

.demo-2 {
    bottom: 25%;
    right: 5%;
    animation-delay: 2s;
}

@keyframes floatDemo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Section Styling */
section {
    padding: 8rem 0;
}

.section-tag {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.8);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Quiz Section */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.quiz-step {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-step h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quiz-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.quiz-btn i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.result-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px dashed var(--primary-blue);
    margin-top: 1.5rem;
}

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.case-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.case-item i {
    color: var(--accent-green);
    font-size: 1.25rem;
    margin-top: 5px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.8);
}

.stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.verified-badge {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-style: normal;
    font-weight: 600;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.author-avatar {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.corporate-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #1e293b 0%, #020617 100%);
    padding: 6rem 0;
    text-align: center;
    border-radius: 24px;
    margin: 4rem 2rem;
    border: 1px solid var(--glass-border);
}

.final-cta h2 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Trusted Logos */
.trusted-logos-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.3);
}

.trusted-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.trusted-logos-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue);
}

/* Mobile */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 2000;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff !important;
        transition: var(--transition);
    }

    .nav-container {
        display: none !important;
        /* Hide by default on mobile */
        position: fixed;
        top: 0;
        right: -100% !important;
        width: 100%;
        height: 100vh;
        background: #020617 !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: right 0.4s ease;
        z-index: 9999;
        visibility: hidden;
    }

    .nav-container.active {
        display: flex !important;
        /* Only show when active */
        right: 0 !important;
        visibility: visible;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        margin-bottom: 3rem;
        list-style: none;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 1.8rem !important;
        color: white !important;
        text-decoration: none;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }

    .hero-content-wrapper {
        padding: 8rem 0 4rem;
    }

    .hero-content {
        padding-right: 0;
    }

    .floating-demo {
        display: none;
    }

    .hero-visual {
        height: 400px;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-left: 50px;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-content {
        width: 100%;
    }

    .cases-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    /* Hero más compacto en móvil */
    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content-wrapper {
        padding: 4rem 0 3rem;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-visual {
        display: none;
    }

    .trust-badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        margin: 0 auto;
    }

    /* Formulario del hero */
    .form-container {
        text-align: left;
    }

    .inline-form {
        flex-direction: column;
    }

    /* Botón flotante WhatsApp — abajo a la izquierda en móvil para no tapar inputs */
    .whatsapp-float {
        bottom: 16px;
        right: auto;
        left: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

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

    .final-cta {
        margin: 3rem 1rem;
        padding: 3rem 1.5rem;
    }

    .final-cta h2 {
        font-size: 1.6rem;
    }
}

/* CEO Section */
.ceo-section {
    background: rgba(15, 23, 42, 0.3);
    padding: 10rem 0;
}

.ceo-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
}

.ceo-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.ceo-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

.ceo-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.ceo-content p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

@media (max-width: 968px) {
    .ceo-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .ceo-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .ceo-image img {
        max-height: 380px;
        transform: rotate(0deg);
    }

    .ceo-content h2 {
        font-size: 2rem;
    }
}
/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
        bottom: 16px;
        right: 16px;
    }
}
