/* ===== VARIABLES Y RESET ===== */
:root {
    /* Colores principales */
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-secondary: #ff6b35;
    --color-success: #10b981;
    --color-danger: #ef4444;

    /* Colores de fondo */
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-dark: #1a1f3a;

    /* Colores de texto */
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-white: #ffffff;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Tipografía */
    --font-primary: 'Montserrat', sans-serif;

    /* Bordes */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d4a7c 100%);
    color: var(--color-text-white);
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/></svg>') repeat-x;
    background-size: 1200px 120px;
    opacity: 0.1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: var(--spacing-md);
    display: block;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 140px;
        margin: 0 auto var(--spacing-md);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--color-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
    color: var(--color-secondary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hero-guarantee {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: var(--spacing-md);
}

.guarantee-icon {
    font-size: 1.25rem;
}

/* Hero Image Styling */
.hero-main-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-main-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.cta-primary {
    background: var(--color-secondary);
    color: var(--color-text-white);
    box-shadow: 0 4px 14px 0 rgba(255, 107, 53, 0.4);
}

.cta-primary:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(255, 107, 53, 0.5);
}

.cta-secondary {
    background: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.cta-secondary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

.cta-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.cta-arrow {
    font-size: 1.5rem;
    transition: var(--transition);
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* ===== SECTIONS ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PROBLEMS SECTION ===== */
.problems {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-alt);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    background: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.problem-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.problems-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.problems-text {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

/* ===== WHAT YOU GET SECTION ===== */
.what-you-get {
    padding: var(--spacing-2xl) 0;
}

.audit-steps {
    max-width: 800px;
    margin: 0 auto;
}

.audit-step {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.audit-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -48px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.step-content p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== SOCIAL PROOF SECTION ===== */
.social-proof {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-text);
}

.testimonial-business {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.testimonial-rating {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.testimonial-results {
    display: flex;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid #e5e7eb;
}

.result-item {
    text-align: center;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-success);
}

.result-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ===== FORM & FAQ SIDE BY SIDE ===== */
.form-faq-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.form-faq-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

@media (max-width: 1024px) {
    .form-faq-grid {
        grid-template-columns: 1fr;
    }
}

.form-container {
    width: 100%;
    background: var(--color-bg);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.form-subtitle {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.form-progress {
    margin-top: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 50px;
    transition: width 0.3s ease;
    width: 33.33%;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.audit-form {
    margin-top: var(--spacing-lg);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.step-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    cursor: pointer;
    padding: 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: white;
    width: 100%;
}

.checkbox-label:hover {
    border-color: var(--color-primary);
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom+.checkbox-text {
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 26px;
    height: 26px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-text {
    flex: 1;
    color: var(--color-text);
    font-size: 1rem;
}

.form-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.btn-back,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-back {
    background: #f3f4f6;
    color: var(--color-text);
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-next,
.btn-submit {
    background: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

.btn-submit {
    position: relative;
}

.btn-submit .btn-loader {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--color-success);
}

.success-text {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.success-next-steps {
    background: var(--color-bg-alt);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.success-next-steps h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.success-next-steps ul {
    list-style: none;
}

.success-next-steps li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text);
}

.success-footer {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.success-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== FAQ SECTION ===== */
.faq-list {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: var(--spacing-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: var(--spacing-md);
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-white);
}

.final-cta-content {
    text-align: center;
}

.final-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.final-cta-text {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.highlight-number {
    color: var(--color-secondary);
    font-size: 1.5em;
}

.final-cta-guarantee {
    margin-top: var(--spacing-md);
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

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

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: var(--spacing-lg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .dashboard-content,
    .hero-main-image {
        /* Reset transform on mobile */
        transform: none;
        max-width: 100%;
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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

    .form-container {
        padding: var(--spacing-md);
    }

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

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .final-cta-title {
        font-size: 1.75rem;
    }
}

/* ===== PROCESSING CLOUD NOTIFICATION ===== */
.processing-cloud {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 9999;
    max-width: 350px;
    border: 2px solid #e0e7ff;
    animation: slideInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.processing-cloud.active {
    display: block;
}

.cloud-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cloud-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

.cloud-text {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
}

.cloud-text strong {
    color: var(--color-primary);
    font-size: 16px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== CALENDAR BUTTON ===== */
.btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4285f4;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

.btn-calendar:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(66, 133, 244, 0.4);
}