/* ===== Variables y Reseteo Global ===== */
:root {
    --bg-dark: #0a0a0f;
    --bg-dark-purple: #0F0821;
    --primary-blue: #4a6fff;
    --primary-purple: #8b5cf6;
    --primary-pink: #ec4899;
    --primary-orange: #f97316;
    --text-light: #ffffff;
    --text-muted: #a1a1aa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-multicolor: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 20% 10%, rgba(102, 126, 234, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 30%, rgba(236, 72, 153, 0.12) 0px, transparent 50%),
        radial-gradient(at 40% 70%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(79, 172, 254, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
p {
    overflow-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Glass Panel Effect ===== */
.glass-panel {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInDelay 1s ease-out 0.3s forwards;
}

/* ===== Header / Navigation ===== */
header {
    background-color: transparent;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header nav.glass-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-multicolor);
    transition: width 0.3s ease;
}

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

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

.cta-button {
    background: var(--gradient-1);
    color: var(--text-light);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.cta-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.cta-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.cta-primary:hover {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.cta-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual .whatsapp-mockup {
    max-width: 420px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-multicolor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* WhatsApp Mockup */
.whatsapp-mockup {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.05) 100%);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.whatsapp-header {
    background: #128C7E;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
}

.whatsapp-header i {
    font-size: 1.5rem;
}

.whatsapp-messages {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.message.received {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.message.sent {
    background: #128C7E;
    align-self: flex-end;
}

.message.typing {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Benefits Section ===== */
.benefits-section {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.benefit-card {
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Featured Benefit Card */
.featured-benefit {
    grid-column: 1 / -1;
    background: linear-gradient(135deg,
            rgba(236, 72, 153, 0.1) 0%,
            rgba(139, 92, 246, 0.1) 100%) !important;
    border: 2px solid rgba(236, 72, 153, 0.3) !important;
}

.benefit-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-2);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2.2rem;
}

.featured-benefit .benefit-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-2);
    font-size: 2.5rem;
}

.benefit-card:nth-child(2) .benefit-icon {
    background: var(--gradient-1);
}

.benefit-card:nth-child(3) .benefit-icon {
    background: var(--gradient-3);
}

.benefit-card:nth-child(4) .benefit-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.featured-benefit h3 {
    font-size: 1.75rem;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.benefit-features {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.benefit-features span {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-features i {
    color: #25D366;
}

/* ===== Funnel Section ===== */
.funnel-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.03) 100%);
}

.funnel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.funnel-stage {
    width: 100%;
    position: relative;
}

.stage-content {
    padding: 32px 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stage-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stage-content:hover::before {
    opacity: 0.1;
}

.stage-content:hover {
    transform: scale(1.02);
}

.stage-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-multicolor);
    color: white;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 12px;
}

.stage-content h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stage-count {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-multicolor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.funnel-arrow {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 20px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.stage-content.highlight {
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.15) 0%,
            rgba(236, 72, 153, 0.15) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

/* ===== How It Works Section ===== */
.how-it-works-section {
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step-card {
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-multicolor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.step-card:nth-child(2) .step-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.step-card:nth-child(3) .step-icon {
    background: var(--gradient-2);
}

.step-card:nth-child(4) .step-icon {
    background: var(--gradient-3);
}

.step-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
}

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

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, transparent 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.testimonial-card {
    padding: 36px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.quote-icon {
    font-size: 2.5rem;
    background: var(--gradient-multicolor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card:nth-child(2) .author-avatar {
    background: var(--gradient-2);
}

.testimonial-card:nth-child(3) .author-avatar {
    background: var(--gradient-3);
}

.author-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.badge {
    text-align: center;
    padding: 24px;
}

.badge i {
    font-size: 2.5rem;
    background: var(--gradient-multicolor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

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

.badge strong {
    display: block;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* ===== CTA Final Section ===== */
.cta-final {
    padding: 100px 0;
}

.cta-content {
    padding: 80px 60px;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-content > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ===== Footer ===== */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

footer .copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: auto;
    padding: 50px 40px 40px;
    animation: slideUp 0.4s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-pink);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

/* Estilos para las opciones del select (dropdown) */
.form-group select option {
    background-color: #1a1a1f;
    color: var(--text-light);
    padding: 8px;
}

/* Estilos para el input date */
.form-group input[type="date"] {
    color-scheme: dark;
}

/* Icono del calendario en input date */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(1) brightness(2.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success i {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 24px;
        right: 24px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-links li {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links.active {
        display: flex;
    }

    header nav.glass-panel {
        padding: 16px 20px;
    }

    header nav .cta-button {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-visual .whatsapp-mockup {
        max-width: 340px;
    }

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

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

    .featured-benefit {
        grid-column: 1;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cta-buttons .cta-button {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    /* Modal responsive */
    .modal-content {
        padding: 40px 24px 24px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 48px 0 32px;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

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

    .benefit-card {
        padding: 28px 20px;
    }

    .stage-content {
        padding: 24px 20px;
    }

    .stage-count {
        font-size: 1.6rem;
    }

    .step-card {
        padding: 32px 20px;
    }

    .cta-content {
        padding: 48px 24px;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .testimonial-card {
        padding: 28px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        align-items: flex-start;
    }

    .footer-links {
        width: 100%;
        align-items: flex-start;
    }

    .footer-links a {
        display: block;
        width: 100%;
    }
}