/* ============================================
   CreaSoft - Moderno Bold Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
    --primary: #6699FF;
    --primary-dark: #4477DD;
    --secondary: #339999;
    --secondary-dark: #267A7A;
    --gradient: linear-gradient(135deg, #6699FF 0%, #339999 100%);
    --bg: #FFFFFF;
    --bg-alt: #F1F5F9;
    --bg-cards: #F8FAFC;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --footer-bg: #1A2332;
    --whatsapp-green: #25D366;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-btn: 8px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.375rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

/* --- Image Placeholders --- */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    overflow: hidden;
}

/* --- Gradient Text --- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-btn);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    line-height: 1.4;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102,153,255,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,153,255,0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-dark:hover {
    background: var(--primary);
    color: #fff;
}

/* --- Header / Nav --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: linear-gradient(135deg, rgba(26,35,50,0.92), rgba(30,60,80,0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img,
.nav-logo .image-placeholder {
    height: 56px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .nav-logo img,
.site-header.scrolled .nav-logo .image-placeholder {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

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

.nav-links a:hover {
    color: rgba(255,255,255,0.7);
}

.nav-logo .image-placeholder {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
}

.nav-cta .btn-primary {
    color: #fff;
}

.nav-cta .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Mega-Menu (Desktop) --- */
.has-megamenu {
    position: relative;
}

.megamenu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chevron-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.has-megamenu:hover .chevron-icon,
.has-megamenu.open .chevron-icon {
    transform: rotate(180deg);
}

.megamenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 680px;
    background: linear-gradient(135deg, rgba(26,35,50,0.96), rgba(30,60,80,0.96));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
}

.megamenu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.has-megamenu:hover .megamenu,
.has-megamenu.open .megamenu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 1.5rem;
}

.megamenu-col {
    padding: 0 1rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.megamenu-col:first-child { padding-left: 0; }
.megamenu-col:last-child { padding-right: 0; border-right: none; }

.megamenu-cat {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102,153,255,0.2);
}

.megamenu-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.megamenu-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.megamenu-col ul li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.megamenu-col ul li a i,
.megamenu-col ul li a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.megamenu-col ul li a:hover i,
.megamenu-col ul li a:hover svg {
    opacity: 1;
    color: var(--primary);
}

.megamenu-col ul li a .external-icon {
    width: 12px;
    height: 12px;
    margin-left: auto;
    opacity: 0.4;
}

.megamenu-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.875rem 1.5rem;
    text-align: center;
}

.megamenu-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.megamenu-footer a:hover {
    color: #fff;
}

.megamenu-footer a i,
.megamenu-footer a svg {
    width: 16px;
    height: 16px;
}

/* --- Mobile Nav & Mega-Menu --- */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links a {
        color: var(--text-primary);
        font-size: 1rem;
    }
    .nav-links a:hover {
        color: var(--primary);
    }
    .megamenu-trigger .chevron-icon {
        color: var(--text-secondary);
    }
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Mobile: hide megamenu entirely, Soluciones is a direct link */
    .megamenu { display: none !important; }
    .megamenu-trigger .chevron-icon { display: none; }
}

/* --- Section Layout --- */
.section {
    padding: 5rem 1.5rem;
}

.section-alt {
    background: var(--bg-alt);
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Hero (Moderno Bold) --- */
.hero {
    padding: 10rem 1.5rem 10rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15,23,42,0.82) 0%, rgba(30,41,59,0.75) 50%, rgba(15,23,42,0.85) 100%);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.375rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero .subheadline {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* --- Trust Bar --- */
.trust-bar {
    padding: 0 1.5rem 2rem;
    margin-top: -5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.trust-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--bg-alt);
    z-index: -1;
    clip-path: inset(5rem 0 0 0);
}

.trust-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.trust-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid transparent;
    border-image: var(--gradient) 1;
    border-image-slice: 1;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.trust-card .number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.trust-card .label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* --- Solutions Grid --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.solution-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.solution-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.solution-card.highlight {
    background: rgba(102,153,255,0.08);
    border-color: rgba(102,153,255,0.2);
}

.solution-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.solution-content h3 {
    margin-bottom: 0.375rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.solution-content h3 a {
    color: inherit;
    text-decoration: none;
}

.solution-content h3 a:hover {
    color: var(--primary);
}

a.solution-icon {
    text-decoration: none;
    color: #fff;
    transition: transform var(--transition);
}

a.solution-icon:hover {
    transform: scale(1.08);
}

.solution-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.solution-links {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

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

.solution-links .link-more {
    color: var(--secondary);
}
.solution-links .link-more:hover { color: var(--secondary-dark); }

.solution-links .link-wa {
    color: var(--whatsapp-green);
}

.badge {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.solutions-hidden {
    display: none;
}

.solutions-hidden.show {
    display: contents;
}

.solutions-toggle {
    text-align: center;
    margin-top: 2rem;
}

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

/* --- CTA Intermedio --- */
.cta-intermedio {
    background: var(--footer-bg);
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem;
    text-align: center;
}

.cta-intermedio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(102,153,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-intermedio .container {
    position: relative;
    z-index: 1;
}

.cta-intermedio h2 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    font-weight: 800;
}

.cta-intermedio p {
    color: #94A3B8;
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

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

/* --- Why Us (2x2 grid) --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.why-us-item {
    padding: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #E2E8F0;
}

.why-us-item:nth-child(1) {
    border-top-left-radius: var(--radius-lg);
    border-right: none;
    border-bottom: none;
}
.why-us-item:nth-child(2) {
    border-top-right-radius: var(--radius-lg);
    border-bottom: none;
}
.why-us-item:nth-child(3) {
    border-bottom-left-radius: var(--radius-lg);
    border-right: none;
}
.why-us-item:nth-child(4) {
    border-bottom-right-radius: var(--radius-lg);
}

.why-us-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102,153,255,0.12), rgba(51,153,153,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.why-us-item h3 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.why-us-item p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .why-us-grid { grid-template-columns: 1fr; }
    .why-us-item {
        border-radius: 0 !important;
        border-right: 1px solid #E2E8F0 !important;
        border-bottom: none !important;
    }
    .why-us-item:first-child { border-top-left-radius: var(--radius-lg) !important; border-top-right-radius: var(--radius-lg) !important; }
    .why-us-item:last-child { border-bottom-left-radius: var(--radius-lg) !important; border-bottom-right-radius: var(--radius-lg) !important; border-bottom: 1px solid #E2E8F0 !important; }
}

/* --- Process Steps --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    border-right: 1px solid #E2E8F0;
}

.process-step:last-child { border-right: none; }

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transform: rotate(-3deg);
    margin-bottom: 1.25rem;
}

.process-step h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .process-grid { grid-template-columns: 1fr; }
    .process-step {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding: 1.5rem;
    }
    .process-step:last-child { border-bottom: none; }
}

/* --- Clients & Social Proof --- */
.sectors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.sector-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.sector-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sector-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.sector-pill.active i { color: #fff; }

.sector-pill i { color: var(--primary); transition: color 0.25s ease; }

/* Logo Wall Grid */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #E2E8F0;
    min-height: 80px;
    width: calc((100% - 5rem) / 6);
    transition: all 0.3s ease;
}

.client-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.client-item .client-logo {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.client-item:hover .client-logo {
    filter: grayscale(0%) opacity(1);
}

.client-item.hidden {
    display: none;
}

.client-placeholder {
    width: 100%;
    height: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.client-placeholder span {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .client-item { width: calc((100% - 3rem) / 4); }
}
@media (max-width: 480px) {
    .client-item { width: calc((100% - 2rem) / 3); padding: 0.75rem; min-height: 60px; }
    .client-item .client-logo { max-width: 80px; max-height: 35px; }
    .client-placeholder span { font-size: 0.625rem; }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid #E2E8F0;
}

.testimonial-quote {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

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

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.testimonial-company {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.testimonial-placeholder {
    border-style: dashed;
    opacity: 0.5;
}

.testimonial-placeholder .testimonial-quote {
    color: #94A3B8;
}

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

/* --- Quote Form --- */
.form-section {
    padding: 5rem 1.5rem;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.form-panel {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.form-panel p {
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-panel .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.form-panel .contact-info a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    opacity: 0.9;
    transition: opacity var(--transition);
}

.form-panel .contact-info a:hover { opacity: 1; }

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-btn);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: border-color var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,153,255,0.15);
}

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

.form-group.conditional { transition: opacity 0.3s ease, max-height 0.3s ease; overflow: hidden; }
.form-group.conditional.hidden { opacity: 0; max-height: 0; margin: 0; padding: 0; }
.form-group.conditional.visible { opacity: 1; max-height: 200px; }

.form-submit .btn { width: 100%; justify-content: center; padding: 0.875rem; }

.form-message {
    padding: 1rem;
    border-radius: var(--radius-btn);
    font-size: 0.875rem;
    display: none;
}
.form-message.success {
    background: rgba(16,185,129,0.1);
    color: var(--success);
    border: 1px solid rgba(16,185,129,0.2);
    display: block;
}
.form-message.error {
    background: rgba(239,68,68,0.1);
    color: var(--error);
    border: 1px solid rgba(239,68,68,0.2);
    display: block;
}

/* Honeypot */
.form-hp { position: absolute; left: -9999px; }

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

/* --- Sticky CTA Mobile --- */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta .sticky-cta-inner {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.sticky-cta .btn { flex: 1; justify-content: center; font-size: 0.8125rem; padding: 0.625rem; }

@media (max-width: 768px) {
    .sticky-cta { display: block; }
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 950;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.whatsapp-float svg { width: 28px; height: 28px; }

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-btn);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@media (max-width: 768px) {
    .whatsapp-float { bottom: 5rem; }
    .whatsapp-tooltip { display: none; }
}

/* --- Footer --- */
.site-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 4rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1E293B;
}

.footer-brand .tagline {
    color: #94A3B8;
    font-size: 0.9375rem;
    margin-top: 0.75rem;
}

.footer-links h4, .footer-contact h4 {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-contact p,
.footer-contact a {
    color: #94A3B8;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}
.footer-contact a:hover { color: #fff; }

.footer-location {
    color: #94A3B8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    color: #64748B;
    font-size: 0.8125rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Product Page --- */
.product-hero {
    background: linear-gradient(180deg, #003333 0%, #006666 45%, #6699FF 100%);
    padding: 0 1.5rem 4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.product-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.product-hero .tagline {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.375rem 1rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.product-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.product-hero p {
    opacity: 0.9;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.product-hero-image .product-mockup,
.product-hero-image .image-placeholder {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.product-hero-image .image-placeholder {
    aspect-ratio: 520/380;
    color: rgba(255,255,255,0.7);
    border: 2px dashed rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #fff;
    border-color: #fff;
}

@media (max-width: 768px) {
    .product-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .product-hero-text { text-align: center; }
    .product-hero h1 { font-size: 2.25rem; }
    .product-hero-image { order: -1; }
    .product-hero .cta-buttons { justify-content: center; }
    .product-quote-form { text-align: left; }
}

.product-problem { background: var(--bg-alt); }

.pain-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.pain-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: left;
}

.pain-points li::before {
    content: '';
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--error);
    margin-top: 0.5rem;
}

.pain-cta {
    text-align: center;
    margin-top: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-cards);
    border-radius: var(--radius);
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(102,153,255,0.12), rgba(51,153,153,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.5; }

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

/* --- Comparison Table --- */
.comparison-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 0.875rem 1rem;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.875rem;
}

.comparison-table th {
    background: var(--bg-alt);
    font-weight: 600;
}

.comparison-table td:first-child { text-align: left; }

.comparison-table .check { color: var(--success); font-size: 1.125rem; }
.comparison-table .cross { color: #CBD5E1; font-size: 1.125rem; }

/* --- Benefits List --- */
.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    background: var(--bg-cards);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid #E2E8F0;
}

.benefits-list li::before {
    content: '✓';
    color: #fff;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .benefits-list { grid-template-columns: 1fr; }
}

/* --- Pricing Section (Product page - dark bg) --- */
.product-pricing {
    background: var(--footer-bg);
    padding: 5rem 1.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.product-pricing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(102,153,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.product-pricing .container {
    position: relative;
    z-index: 1;
}

.product-pricing h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.product-pricing .pricing-desc {
    color: #94A3B8;
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* --- Pricing Box (generic, kept for landing page if needed) --- */
.pricing-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-cards);
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
}

.pricing-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #fff;
    border: none;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-question .faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.open .faq-question .faq-icon {
    transform: rotate(180deg);
}

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

.faq-answer-inner {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* --- Screenshots Gallery --- */
.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.screenshot-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.screenshot-placeholder img,
.screenshot-placeholder .image-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    border-radius: 0;
    border: none;
}

.screenshot-placeholder .image-placeholder {
    aspect-ratio: 16/10;
    background: #fff;
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius);
}

.screenshot-placeholder:first-child {
    grid-column: 1 / -1;
}

.screenshot-placeholder:first-child .image-placeholder {
    aspect-ratio: 16/9;
}

@media (max-width: 640px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    .screenshot-placeholder:first-child {
        grid-column: auto;
    }
}

/* --- Product CTA Final --- */
.product-cta {
    background: var(--gradient);
    padding: 4rem 1.5rem;
    text-align: center;
    color: #fff;
}

.product-cta h2 { margin-bottom: 0.75rem; }
.product-cta p { opacity: 0.9; margin-bottom: 2rem; font-size: 1.0625rem; }

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

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 6rem 1.5rem 1rem;
    font-size: 0.8125rem;
    position: relative;
    z-index: 1;
}

.breadcrumb-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s ease;
}
.breadcrumb a:hover { color: #fff; }

.breadcrumb-sep {
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
}
.breadcrumb-sep i,
.breadcrumb-sep svg {
    width: 14px;
    height: 14px;
}

.breadcrumb-current {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; }
    .hero-video-bg video { display: none; }
}

/* --- Print --- */
@media print {
    .site-header, .whatsapp-float, .sticky-cta { display: none !important; }
    .hero { padding-top: 2rem; }
    body { color: #000; }
}

/* ============================================
   Wizard CTA Modal
   ============================================ */

/* --- Overlay --- */
.wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    padding: 1rem;
}

.wizard-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Modal --- */
.wizard-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.95);
    transition: transform 200ms ease;
    will-change: transform;
}

.wizard-overlay.active .wizard-modal {
    transform: scale(1);
}

/* --- Close / Back buttons --- */
.wizard-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition);
    z-index: 10;
}

.wizard-close:hover {
    background: var(--bg-alt);
    color: var(--text-primary);
}

.wizard-back {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.wizard-back.visible {
    opacity: 1;
    pointer-events: all;
}

.wizard-back:hover {
    background: var(--bg-alt);
    color: var(--text-primary);
}

/* --- Header --- */
.wizard-header {
    text-align: center;
    padding: 2rem 2.5rem 0;
}

.wizard-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.wizard-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.wizard-header .wizard-crear {
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Progress Bar --- */
.wizard-progress {
    padding: 1.25rem 2.5rem 0;
}

.wizard-progress-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 25%;
    transition: width 500ms ease;
}

.wizard-progress-text {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 0.375rem;
    text-align: center;
}

/* --- Steps Container --- */
.wizard-body {
    padding: 1.5rem 2.5rem 2rem;
    overflow: hidden;
    position: relative;
}

.wizard-step {
    display: none;
    animation: wizardSlideIn 350ms ease forwards;
}

.wizard-step.active {
    display: block;
}

.wizard-step.slide-out-left {
    animation: wizardSlideOutLeft 350ms ease forwards;
}

.wizard-step.slide-in-right {
    animation: wizardSlideIn 350ms ease forwards;
}

.wizard-step.slide-out-right {
    animation: wizardSlideOutRight 350ms ease forwards;
}

.wizard-step.slide-in-left {
    animation: wizardSlideInLeft 350ms ease forwards;
}

@keyframes wizardSlideIn {
    from { opacity: 0.3; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes wizardSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0.3; transform: translateX(-40px); }
}

@keyframes wizardSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0.3; transform: translateX(40px); }
}

@keyframes wizardSlideInLeft {
    from { opacity: 0.3; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Step Titles --- */
.wizard-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

/* --- Cards (Steps 1 & 2) --- */
.wizard-cards {
    display: grid;
    gap: 0.875rem;
}

.wizard-cards.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wizard-cards.cards-2col {
    grid-template-columns: repeat(2, 1fr);
}

.wizard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius);
    cursor: pointer;
    background: #fff;
    position: relative;
    transition: all 200ms ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.wizard-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 153, 255, 0.15);
    transform: translateY(-3px);
}

.wizard-card:hover .wizard-card-icon {
    transform: scale(1.08);
}

.wizard-card.selected {
    background: linear-gradient(135deg, rgba(102, 153, 255, 0.06), rgba(51, 153, 153, 0.06));
    border-color: var(--primary);
}

.wizard-card:active {
    transform: scale(0.98);
}

/* Ripple effect */
.wizard-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(102, 153, 255, 0.2);
    transform: scale(0);
    animation: wizardRipple 600ms ease-out forwards;
    pointer-events: none;
}

@keyframes wizardRipple {
    to { transform: scale(4); opacity: 0; }
}

/* Card icon */
.wizard-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(102, 153, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.625rem;
    transition: transform 200ms ease;
}

.wizard-card-icon svg,
.wizard-card-icon i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

/* Card check */
.wizard-card-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 200ms ease;
}

.wizard-card.selected .wizard-card-check {
    transform: scale(1);
}

.wizard-card-check svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.wizard-card-label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.wizard-card-sublabel {
    font-size: 0.75rem;
    color: #94A3B8;
    line-height: 1.4;
}

/* --- Textarea (Step 3) --- */
.wizard-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: #F8FAFC;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.wizard-textarea::placeholder {
    color: #94A3B8;
    font-style: italic;
}

.wizard-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 153, 255, 0.12);
}

.wizard-char-count {
    font-size: 0.75rem;
    color: #CBD5E1;
    text-align: right;
    margin-top: 0.375rem;
    opacity: 0;
    transition: opacity 200ms ease;
}

.wizard-char-count.visible {
    opacity: 1;
}

/* --- Step 3 Buttons --- */
.wizard-step3-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* --- Toggle Email/WhatsApp (Step 4) --- */
.wizard-toggle {
    display: inline-flex;
    background: #F1F5F9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.25rem;
    width: 100%;
}

.wizard-toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 200ms ease;
}

.wizard-toggle-option.active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wizard-toggle-option svg,
.wizard-toggle-option i {
    width: 20px;
    height: 20px;
}

/* --- Inputs (Step 4) --- */
.wizard-field {
    margin-bottom: 1rem;
}

.wizard-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.wizard-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: #F8FAFC;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.wizard-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 153, 255, 0.12);
}

.wizard-input.error {
    border-color: var(--error);
}

.wizard-field-error {
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 0.25rem;
    display: none;
}

.wizard-field-error.visible {
    display: block;
    animation: wizardSlideDown 200ms ease;
}

@keyframes wizardSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Phone input with prefix */
.wizard-phone-wrapper {
    display: flex;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    background: #F8FAFC;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.wizard-phone-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 153, 255, 0.12);
}

.wizard-phone-wrapper.error {
    border-color: var(--error);
}

.wizard-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: #F1F5F9;
    border-right: 1px solid #E2E8F0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.wizard-phone-wrapper .wizard-input {
    border: none;
    border-radius: 0;
    background: transparent;
}

.wizard-phone-wrapper .wizard-input:focus {
    box-shadow: none;
}

/* Conditional contact field */
.wizard-contact-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 200ms ease, opacity 200ms ease;
}

.wizard-contact-field.visible {
    max-height: 120px;
    opacity: 1;
}

/* --- Buttons --- */
.wizard-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 14px 32px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(102, 153, 255, 0.3);
    transition: all 150ms ease;
}

.wizard-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 153, 255, 0.4);
    transform: translateY(-1px);
}

.wizard-btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(102, 153, 255, 0.25);
}

.wizard-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wizard-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 14px 32px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.wizard-btn-secondary:hover {
    background: rgba(102, 153, 255, 0.06);
}

/* WhatsApp button (Step 5) */
.wizard-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 14px 32px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: all 150ms ease;
    text-decoration: none;
    animation: wizardPulse 2s ease-in-out infinite;
}

.wizard-btn-whatsapp:hover {
    background: #20BD5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes wizardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Back link (visible in steps 3 & 4) */
.wizard-back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    transition: color var(--transition);
}

.wizard-back-link:hover {
    color: var(--primary);
}

/* Close link (Step 5) */
.wizard-close-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    transition: color var(--transition);
}

.wizard-close-link:hover {
    color: var(--text-primary);
}

/* --- Spinner --- */
.wizard-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wizardSpin 0.6s linear infinite;
}

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

/* --- Step 5: Confirmation --- */
.wizard-confirmation {
    text-align: center;
    padding: 1rem 0;
}

.wizard-check-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transform: scale(0);
    animation: wizardCheckBounce 400ms 100ms ease forwards;
}

.wizard-check-circle svg {
    width: 36px;
    height: 36px;
    color: #fff;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: wizardCheckDraw 400ms 400ms ease forwards;
}

@keyframes wizardCheckBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes wizardCheckDraw {
    to { stroke-dashoffset: 0; }
}

.wizard-confirmation h3 {
    font-size: 1.375rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wizard-confirmation p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* --- Confetti --- */
.wizard-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: wizardConfettiBurst 800ms ease-out forwards;
}

@keyframes wizardConfettiBurst {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--confetti-x), var(--confetti-y)) scale(0); }
}

/* --- CTA Trigger Section --- */
.cta-wizard-trigger {
    padding: 5rem 1.5rem;
    text-align: center;
    background: var(--gradient);
    color: #fff;
}

.cta-wizard-trigger h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.cta-wizard-trigger p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #fff;
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-btn);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 150ms ease;
}

.wizard-trigger-btn:hover {
    background: #f0f4ff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.wizard-trigger-btn:active {
    transform: translateY(0);
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .wizard-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .wizard-modal {
        max-width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
    }

    .wizard-header {
        padding: 3.5rem 1.5rem 0;
    }

    .wizard-header h2 {
        font-size: 1.25rem;
    }

    .wizard-progress {
        padding: 1rem 1.5rem 0;
    }

    .wizard-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .wizard-cards.cards-3 {
        grid-template-columns: 1fr;
    }

    .wizard-cards.cards-2col {
        grid-template-columns: 1fr;
    }

    .wizard-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        gap: 0.875rem;
    }

    .wizard-card-icon {
        margin-bottom: 0;
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .wizard-card-icon svg,
    .wizard-card-icon i {
        width: 24px;
        height: 24px;
    }

    .wizard-step3-actions {
        flex-direction: column;
    }

    .wizard-confirmation {
        padding: 0.5rem 0;
    }
}

/* ============================================
   Page Loader – Animated CreaSoft "C" logo
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0B1120;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 120px;
    height: 120px;
}

/* Each arc uses stroke-dasharray/offset to animate.
   The sweep goes: hidden → drawn → hidden (opposite end).  */
.loader-arc {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    animation: arcSweep 3s ease-in-out infinite;
    animation-delay: var(--d);
}

.arc-1  { --len: 86; --d: 0.1s; }
.arc-2  { --len: 72; --d: 0.06s; }
.arc-3  { --len: 39; --d: 0.18s; }
.arc-4  { --len: 28; --d: 0.16s; }
.arc-5  { --len: 62; --d: 0.14s; }
.arc-6  { --len: 36; --d: 0.32s; }
.arc-7  { --len: 23; --d: 0.32s; }
.arc-8  { --len: 36; --d: 0.28s; }
.arc-9  { --len: 23; --d: 0.4s; }

@keyframes arcSweep {
    0%        { stroke-dashoffset: var(--len); }
    30%, 70%  { stroke-dashoffset: 0; }
    100%      { stroke-dashoffset: calc(var(--len) * -1); }
}
