/* =========================================
   PLATANADAS BUSINESS - ESTILOS PRO v2.0
   Requiere: base.css (variables y reset)
   ========================================= */

:root {
    /* Paleta Business (extiende base.css) */
    --biz-dark: #122419;
    --biz-green: #1e3d2b;
    --biz-accent-green: var(--verde-pinton);
    --biz-gold: var(--amarillo-maduro);
    --biz-gold-dark: #e0b830;
    --biz-light: #f8f9fa;
    
    /* Paleta Tech (Modo Oscuro Colizero) */
    --tech-bg: #0a1116;
    --tech-cyan: #00ffc8;
    --tech-purple: #bd00ff;
}

/* Utilidades Business */
.highlight-text {
    color: var(--biz-accent-green);
    position: relative;
    white-space: nowrap;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--biz-gold);
    opacity: 0.3;
    z-index: -1;
    transform: rotate(-1deg);
}

/* =========================================
   NAVEGACIÓN FLOTANTE
   ========================================= */
.biz-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biz-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--biz-dark);
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-badge {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--biz-accent-green);
}

.back-link {
    font-weight: 600;
    color: var(--biz-green);
    text-decoration: none;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-5px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding: 10rem 5% 6rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #f0f7f2 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(var(--biz-green) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: var(--biz-green);
    color: var(--biz-gold);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    color: var(--biz-dark);
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* KPIs en el Hero */
.hero-kpis {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.kpi-badge {
    display: flex;
    flex-direction: column;
    padding-left: 1.5rem;
    border-left: 4px solid var(--biz-green);
}

.kpi-badge.highlight {
    border-color: var(--biz-gold);
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--biz-dark);
    line-height: 1;
}

.kpi-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Parte Visual del Hero */
.hero-visual {
    position: relative;
}

.image-container-pro {
    position: relative;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    background: linear-gradient(45deg, var(--biz-green), var(--biz-dark));
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Elementos "Tech" flotantes */
.tech-overlay-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--biz-gold);
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
    box-shadow: 0 0 15px var(--biz-gold);
}

.p1 {
    top: 20%;
    right: 30%;
    animation: pulse 2s infinite;
}

.p2 {
    bottom: 30%;
    left: 20%;
    animation: pulse 2s infinite 1s;
}

/* Pin de ubicación fijo */
.location-pin {
    position: absolute;
    top: 28%;
    right: 22%;
    width: 32px;
    height: 42px;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
    animation: pinBounce 2s ease-in-out infinite;
}
.location-pin svg {
    width: 100%;
    height: 100%;
}
@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Destellos de venta */
#salesFlashes { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sale-flash {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--c);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 12px var(--c);
    animation: flashPulse 2.2s ease-out forwards;
}
.sale-flash span {
    position: absolute;
    left: 50%; bottom: 100%;
    transform: translateX(-50%);
    font: 600 0.6rem var(--font-mono);
    background: var(--c);
    color: #1a1a1a;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    animation: labelPop 2.2s ease-out forwards;
    text-shadow: 0 0 2px rgba(255,255,255,0.5);
}
@keyframes flashPulse {
    0% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
    20% { transform: translate(-50%,-50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(0.8); opacity: 0; }
}
@keyframes labelPop {
    0%,10% { opacity: 0; transform: translateX(-50%) translateY(0); }
    25% { opacity: 1; transform: translateX(-50%) translateY(-4px); }
    75% { opacity: 1; transform: translateX(-50%) translateY(-4px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}

.tech-data-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: float 3s ease-in-out infinite;
}

/* =========================================
   BOTONES PRO
   ========================================= */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button.primary {
    background: var(--biz-dark);
    color: #fff;
}

.cta-button.primary:hover {
    background: var(--biz-green);
    transform: translateY(-3px);
}

.cta-button.glow-effect {
    box-shadow: 0 4px 15px rgba(30, 61, 43, 0.3);
}

.cta-button.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #25D366;
    color: white;
}

.cta-button.whatsapp-btn:hover {
    background: #20bd5a;
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
}

.cta-button.giant {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
}

/* =========================================
   SECCIÓN FINANCIERA
   ========================================= */
.finance-section {
    padding: var(--section-spacing) 5%;
    background: #fff;
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--biz-dark);
}

.section-sub {
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.pro-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pro-card:hover {
    border-color: transparent;
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Tarjeta Destacada */
.pro-card.featured {
    border: 2px solid var(--biz-gold);
    background: linear-gradient(to bottom, #fffff8, #fff);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.pro-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--biz-gold);
    color: var(--biz-dark);
    padding: 0.4rem 1.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10% 50%);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.card-icon-bg {
    font-size: 3rem;
    width: 90px;
    height: 90px;
    line-height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--biz-light);
}

.featured .card-icon-bg {
    background: var(--biz-gold);
    color: var(--biz-dark);
}

.pro-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--biz-dark);
}

.card-data {
    margin-bottom: 1.5rem;
}

.big-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--biz-accent-green);
    line-height: 1.1;
}

.currency {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pro-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   SECCIÓN TECH (Colizero)
   ========================================= */
.tech-section.dark-mode {
    background-color: var(--tech-bg);
    color: #fff;
    padding: var(--section-spacing) 5%;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -5vw;
    padding-top: calc(var(--section-spacing) + 5vw);
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.tech-bg-effect {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(0, 255, 200, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 200, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.tech-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.tech-subtitle {
    color: var(--tech-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 1rem;
}

.tech-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.tech-highlight {
    color: var(--tech-cyan);
    position: relative;
    text-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
}

.colizero-image {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 1rem 0 2rem;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

.tech-lead {
    font-size: 1.2rem;
    color: #a0aec0;
    margin-bottom: 3rem;
}

.tech-lead strong {
    color: #fff;
}

/* Lista de características Tech */
.tech-features-list {
    list-style: none;
}

.tech-features-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tf-icon {
    font-size: 2rem;
    background: rgba(0, 255, 200, 0.1);
    color: var(--tech-cyan);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 200, 0.3);
    flex-shrink: 0;
}

.tech-features-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--tech-cyan);
}

.tech-features-list p {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* MOCKUP DE CHAT */
.chat-interface-mockup {
    background: rgba(10, 23, 30, 0.8);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 200, 0.1);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
}

.chat-header {
    background: rgba(0, 255, 200, 0.05);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 200, 0.1);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.chat-title {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--tech-cyan);
    font-weight: 500;
}

.chat-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    max-width: 85%;
    padding: 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg.user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg.bot {
    align-self: flex-start;
    background: rgba(0, 255, 200, 0.1);
    color: var(--tech-cyan);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-bottom-left-radius: 4px;
}

.msg.bot.highlight {
    background: rgba(0, 255, 200, 0.2);
    border-color: var(--tech-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
    color: #fff;
}

.bot-alert {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 189, 46, 0.15);
    border-radius: 8px;
    color: #ffbd2e;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 189, 46, 0.3);
}

/* Animación de "escribiendo..." */
.typing .dot-anim {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--tech-cyan);
    border-radius: 50%;
    margin-right: 3px;
    animation: typingWave 1.3s linear infinite;
}

.typing .dot-anim:nth-child(2) { animation-delay: -1.1s; }
.typing .dot-anim:nth-child(3) { animation-delay: -0.9s; }

@keyframes typingWave {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* =========================================
   SECCIÓN OPERATIVA
   ========================================= */
.ops-section {
    padding: var(--section-spacing) 5%;
    background: #fff;
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.process-timeline {
    max-width: 1100px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: repeating-linear-gradient(to right, var(--biz-gold) 0, var(--biz-gold) 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 0 1rem;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(252, 209, 68, 0.3);
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.step-icon {
    font-size: 2.5rem;
}

.process-step h3 {
    font-size: 1.4rem;
    color: var(--biz-dark);
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0 1rem;
}

/* =========================================
   CTA FINAL
   ========================================= */
.cta-final-section {
    padding: 6rem 5%;
}

.cta-banner {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--biz-dark);
    color: #fff;
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--biz-gold), var(--biz-accent-green), var(--biz-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    100% { filter: hue-rotate(360deg); }
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--biz-gold);
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.cta-note {
    font-size: 0.85rem;
    margin-top: 1.5rem;
    opacity: 0.7;
}

/* =========================================
   FOOTER
   ========================================= */
.biz-footer {
    background: #fff;
    padding: 3rem 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--biz-green);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =========================================
   MODAL DE PRIVACIDAD
   ========================================= */
.biz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.biz-modal:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    text-decoration: none;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--biz-dark);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--biz-dark);
}

.modal-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--biz-green);
}

.modal-content p,
.modal-content ul {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-content ul {
    padding-left: 1.2rem;
    list-style: disc;
}

.modal-content li {
    margin-bottom: 0.4rem;
}

/* =========================================
   ANIMACIONES ON-SCROLL
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.15s; }
.animate-on-scroll.delay-2 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
    .hero-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-kpis {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .image-container-pro {
        min-height: 300px;
    }

    .tech-content {
        order: -1;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero-section {
        padding-top: 8rem;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .tech-features-list li {
        flex-direction: column;
        text-align: center;
    }

    .tf-icon {
        margin: 0 auto;
    }
}
