/* ==================================
   RESET & BASE
   ================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-hero);
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    margin-bottom: 1rem;
}

h2 {
    font-size: var(--font-size-section);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
}

p {
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--color-muted);
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-section) 0;
}

.section.surface {
    background-color: var(--color-surface);
}

.section.surface-soft {
    background-color: var(--color-surface-soft);
}

/* ==================================
   COMPONENTS
   ================================== */

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background-color: var(--color-primary);
    border-radius: var(--radius-btn);
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn.secondary:hover {
    background-color: var(--color-surface);
    border-color: var(--color-muted);
    transform: translateY(-2px);
}

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

/* 01 NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.nav-brand img {
    max-height: 80px;
}

/* 02 HERO */
.hero {
    padding-top: calc(90px + 4rem);
    padding-bottom: var(--spacing-section);
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
    }
}

.hero-content {
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: var(--radius-badge);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-visual img {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    width: 100%;
}

/* GENERAL GRIDS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* CARDS & BENEFITS */
.benefit-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.benefit-card p {
    color: var(--color-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* TIMELINE (Cómo funciona) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .timeline {
        flex-direction: row;
        align-items: stretch;
    }
}

.timeline-step {
    flex: 1;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-step h4 {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.timeline-step h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
}

.timeline-step p {
    text-align: center;
    width: 100%;
}

.timeline-step .result {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.pricing-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.pricing-card .promesa {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

.pricing-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.pricing-features {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.pricing-features ul {
    list-style: none;
    margin-top: 0.5rem;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-muted);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.pricing-investment {
    margin-top: auto;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.pricing-investment p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

/* CAPTURE FORM */
.capture-box {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
}

.capture-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-submit-btn {
    width: 100%;
    margin-top: 1.5rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.75rem 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-muted);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    transition: height 0.3s;
}

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

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

.faq-answer-inner {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* INTEGRATIONS */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.8;
}

.logos-container span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-muted);
    background: var(--color-surface);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

/* FOOTER */
.footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-soft);
}

/* UTILITIES */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-sm {
    font-size: 0.95rem;
}

.text-md {
    font-size: 1.2rem;
}

.text-lg {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 2.5rem;
}

.text-xxl {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

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

.text-muted {
    color: var(--color-muted);
}

.text-primary {
    color: var(--color-primary);
}

.text-text {
    color: var(--color-text);
}

.text-error {
    color: #ef4444;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-underline {
    text-decoration: underline;
}

.text-uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.max-w-400 {
    max-width: 400px;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-900 {
    max-width: 900px;
}

.max-w-1000 {
    max-width: 1000px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.m-0 {
    margin: 0;
}

.mr-sm {
    margin-right: 0.5rem;
}

.mb-sm {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-1-5 {
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 2rem;
}

.p-2-1 {
    padding: 2rem 1rem;
}

.bg-surface {
    background-color: var(--color-surface);
}

.radius-card {
    border-radius: var(--radius-card);
}

.visual-placeholder {
    width: 100%;
    height: 300px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-soft);
}

.visual-placeholder.sm {
    height: 250px;
}

.check-list {
    list-style-type: none;
    color: var(--color-muted);
}

.check-list-icon {
    list-style-type: none;
    color: var(--color-muted);
}

.check-list-icon li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.border-primary-light {
    border-color: var(--color-primary-light);
}

.border-primary-solid {
    border: 2px solid var(--color-primary);
}

.border-standard {
    border: 1px solid var(--color-border);
}

.scale-up {
    transform: scale(1.02);
}

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.flex-center-wrap {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gap-1 {
    gap: 1rem;
}

.btn-wa {
    background-color: #25D366;
    color: #fff;
    border-color: #25D366;
    gap: 0.5rem;
}

.btn-wa:hover {
    background-color: #20BA59;
    border-color: #20BA59;
    color: #fff;
}

.btn.btn-wa-outline {
    background-color: var(--color-white) !important;
    color: #25D366 !important;
    border-color: #25D366 !important;
    gap: 0.5rem;
}

.btn.btn-wa-outline:hover {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

/* SIMPLE SLIDER */
.simple-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
.simple-slider::-webkit-scrollbar {
    height: 8px;
}
.simple-slider::-webkit-scrollbar-track {
    background: transparent;
}
.simple-slider::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 4px;
}
.slider-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
}
@media (min-width: 768px) {
    .slider-item {
        flex: 0 0 calc(33.333% - 1.33rem);
    }
}

.footer-logo-img {
    height: 39px;
    object-fit: contain;
}

.form-success-state {
    display: none;
}

.form-success-state.active {
    display: block;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-icon svg {
    width: 30px;
    height: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-section-mobile) 0;
    }

    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual,
    .hero-visual-wrapper {
        display: none;
    }
    
    #que-es .hero-visual {
        display: block;
        margin-top: 2rem;
    }
}

/* ==================================
   DASHBOARD SLIDER
   ================================== */
.dashboard-slider {
    position: relative;
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ds-slide {
    display: none;
    flex-direction: column;
    animation: fade-in 0.4s ease-in-out;
}

.ds-slide.active {
    display: flex;
}

.ds-image-wrapper {
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-in;
    padding: 1.5rem;
    min-height: 250px;
}

.ds-image-wrapper::after {
    content: "🔍 Ampliar";
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.ds-image-wrapper:hover::after {
    opacity: 1;
}

.ds-image-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.ds-text {
    padding: 1.5rem 2rem;
    text-align: center;
}

.ds-text h4 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.ds-text p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.ds-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.ds-btn {
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 0.5rem;
}

.ds-btn:hover {
    color: var(--color-primary);
}

.ds-dots {
    display: flex;
    gap: 0.5rem;
}

.ds-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.ds-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .ds-text {
        padding: 1.25rem 1rem;
    }
    .ds-controls {
        padding: 1rem;
    }
}

/* ==================================
   LIGHTBOX MODAL
   ================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    cursor: default;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 95vw;
        height: 90vh;
    }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .ds-image-wrapper::after {
        opacity: 1;
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}