/* 
   PLAY MACHINES - CORPORATE LIGHT THEME B2B
   Focus: Impeccable readability, generous whitespace, pill buttons, sharp cards.
   Mobile-First Scannability Upgrade.
*/

:root {
    /* Institutional Light Palette */
    --clr-bg-white: #ffffff;
    --clr-bg-light: #f8f9fa; /* Súper sutil gris B2B */
    
    /* Brand Authority Palette */
    --clr-violet: #3b0764; /* Violeta Oscuro Institutional */
    --clr-violet-dark: #2e054e;
    --clr-violet-light: #581c87;
    --clr-cyan: #06b6d4;   /* Vibrance for Actionable items */
    --clr-cyan-hover: #0891b2;
    --clr-light-cyan: #ecfeff;
    
    /* Text Hierarchy */
    --clr-text-main: #1f2937;
    --clr-text-muted: #4b5563; /* Oscurecido ligeramente para mejor lectura humana */
    --clr-text-inverse: #ffffff;
    --clr-border: #e5e7eb;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --radius-card: 16px; /* Pronunciado según instrucciones */
    --radius-pill: 50px;
    
    /* Elegant Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Difuminada técnica */
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    
    --fast-transition: all 0.3s ease;
}

/* --- RESETS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 400; /* Regular base */
    color: var(--clr-text-main);
    background-color: var(--clr-bg-light);
    line-height: 1.65; /* Más oxígeno paramóviles */
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--clr-violet);
    font-weight: 800; /* Peso extra-bold para autoridad */
    letter-spacing: -1px; /* Aspecto compacto comercial */
    line-height: 1.15; /* Corto y agresivo */
}

/* Texto de escaneo rápido (Móvil) */
strong { font-weight: 700; color: var(--clr-violet-dark); }
.text-white strong, .bg-violet strong, .bg-dark strong { color: #fff; }
.scannable-text { max-width: 750px; margin: 0 auto; font-size: 1.1rem;}

/* UTILS */
.text-cyan { color: var(--clr-cyan); }
.text-violet { color: var(--clr-violet); }
.text-violet-dark { color: var(--clr-violet-dark); }
.text-white { color: var(--clr-text-inverse); }
.text-muted { color: var(--clr-text-muted); }

.bg-white { background-color: var(--clr-bg-white); }
.bg-light { background-color: var(--clr-bg-light); }
.bg-violet { background-color: var(--clr-violet); }
.bg-dark { background-color: #111827; }
.bg-light-cyan { background-color: var(--clr-light-cyan); }
.bg-cyan { background-color: var(--clr-cyan); }

.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-small { font-size: 0.85rem; }
.opacity-90 { opacity: 0.9; }

.mb-base { margin-bottom: 24px; }
.mb-large { margin-bottom: 48px; }
.mt-base { margin-top: 24px; }
.mt-large { margin-top: 48px; }
.pb-base { padding-bottom: 24px; }

/* Flex Helpers */
.flex-center { display: flex; align-items: center; justify-content: center; gap: 8px; }
.margin-center { margin: 0 auto; }

/* --- SPACING & LAYOUT --- */
.section-padding { padding: 90px 0; }
.pt-0 { padding-top: 0 !important; }
.container {
    width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative;
}
.section-header { max-width: 800px; margin: 0 auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 20px;}

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

/* --- SVG WAVE DIVIDERS --- */
.wave-divider {
    width: 100%; overflow: hidden; line-height: 0;
    transform: translateY(1px); /* Prevenir lineas invisibles */
}
.wave-divider svg {
    position: relative; display: block; width: calc(100% + 1.3px); height: 60px;
}
.wave-white .shape-fill { fill: var(--clr-bg-white); }
.wave-light .shape-fill { fill: var(--clr-bg-light); }
.wave-violet .shape-fill { fill: var(--clr-violet); }

/* --- BUTTONS (CTAs de Alta Conversión) --- */
.btn {
    display: inline-block; padding: 22px 48px; /* Target táctil masivo */
    font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem;
    border: none; cursor: pointer; text-transform: uppercase;
    transition: var(--fast-transition); text-align: center; text-decoration: none;
}
.btn-pill { border-radius: var(--radius-pill); }
.btn-icon { width: 24px; height: 24px; transition: transform 0.2s;}
.btn:hover .btn-icon { transform: translateX(5px); }

.btn-primary {
    background-color: var(--clr-cyan); color: #fff;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}
.btn-primary:hover {
    background-color: var(--clr-cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.4);
}

.btn-outline-primary {
    background-color: transparent; color: var(--clr-cyan);
    border: 2px solid var(--clr-cyan);
}
.btn-outline-primary:hover {
    background-color: var(--clr-cyan); color: #fff;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}
.btn-block { width: 100%; }

/* --- NAVBAR --- */
.navbar {
    position: sticky; top: 0; left: 0; width: 100%; z-index: 200;
    background: linear-gradient(135deg, #4c1d95 0%, #2e054e 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    padding: 14px 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }

/* Logo shared pill (used in navbar, footer, overlay) */
.logo-link { text-decoration: none; }
.logo-pill {
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
}
.logo-img { height: 38px; width: auto; display: block; }

/* Nav Right side */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* CTA button in navbar */
.btn-cta-nav {
    background: var(--clr-cyan);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
    transition: var(--fast-transition);
}
.btn-cta-nav:hover {
    background: var(--clr-cyan-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.45);
}

/* Hamburger icon */
.hamburger {
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
    background: rgba(255,255,255,0.12);
    border: none; cursor: pointer;
    width: 44px; height: 44px;
    border-radius: 10px;
    padding: 0;
    transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.22); }
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--fast-transition);
}

/* Overlay Drawer */
.nav-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: linear-gradient(160deg, #4c1d95 0%, #2e054e 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.overlay-close {
    position: absolute; top: 20px; right: 24px;
    background: rgba(255,255,255,0.12); border: none;
    color: #fff; cursor: pointer; border-radius: 10px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.overlay-close:hover { background: rgba(255,255,255,0.25); }
.overlay-logo { height: 52px; width: auto; margin-bottom: 40px; border-radius: 10px; }
.overlay-nav {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px; text-align: center;
}
.overlay-nav a {
    font-family: var(--font-heading);
    font-size: 1.3rem; font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-decoration: none; padding: 10px 24px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.overlay-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.overlay-nav .overlay-cta {
    margin-top: 20px;
    background: var(--clr-cyan);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
    font-size: 1.1rem;
}
.overlay-nav .overlay-cta:hover { background: var(--clr-cyan-hover); }

/* --- HERO --- */
.hero { position: relative; min-height: auto; padding: 100px 0 120px 0; display: flex; align-items: center; }
.hero-bg { position: absolute; top:0; left:0; width:100%; height:100%; z-index: -2; }
.hero-bg img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-70 {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0, 0, 0, 0.85); /* Oscurecido aún más para garantizar lectura B2B total */
}

/* B2B Tonal Badges */
.kicker-badge { margin-bottom: 24px; }
.kicker-badge span {
    display: inline-block; padding: 8px 16px; background: var(--clr-violet-light);
    border-radius: 6px; font-weight: 700; font-size: 0.85rem; color: #fff; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-content-wrapper { display: flex; justify-content: flex-start; width: 100%; z-index: 10; position: relative;}
.hero-box { max-width: 900px; text-align: left; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); color: #fff; margin-bottom: 24px; letter-spacing: -1.5px; line-height: 1.1;}
.hero h1 .text-cyan { color: var(--clr-cyan); }

.hero .subtitle { font-size: 1.25rem; font-weight: 400; color: rgba(255,255,255,0.9); max-width: 800px; margin-bottom: 40px;}
.hero .subtitle span { display: block; margin-bottom: 8px; line-height: 1.5; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; }


/* --- CARDS UI STANDARDS --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }

.card {
    background: var(--clr-bg-white); border-radius: var(--radius-card); /* Incremetnado a 16px */
    box-shadow: var(--shadow-card); border: 1px solid var(--clr-border);
    transition: var(--fast-transition);
    display: flex; flex-direction: column; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* Chunking: Padding cavernoso */
.card-body { padding: 32px; flex: 1; display:flex; flex-direction: column; justify-content: center;}
.card-flush .card-body { padding: 32px; } /* For Image Cards */

/* SVG minimal icons inside cards */
.card-icon-minimal { width: 36px; height: 36px; margin-bottom: 20px; }
.card-icon-large { 
    width: 64px; height: 64px; margin: 32px auto 0 auto;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--clr-text-muted); font-size: 1.05rem; }

/* Special Process card */
.border-top-cyan { border-top: 4px solid var(--clr-cyan); }


/* --- IMAGE CARDS (Casos de uso) --- */
.card-img { width: 100%; height: 220px; overflow: hidden;}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }

/* --- ICON CHECK MINIMAL --- */
.icon-check-minimal { width: 44px; height: 44px; margin: 0 auto 16px auto; background: var(--clr-light-cyan); border-radius: 50%; padding: 10px;}


/* --- CAPTURE FORM SECTION --- */
.form-wrapper { max-width: 800px; margin: 0 auto; }
.form-card { padding: 50px 60px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: none; }

.input-group { margin-bottom: 24px; width: 100%; }
.input-row { display: flex; gap: 20px; width: 100%; }

form label { 
    display: block; font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; 
    margin-bottom: 8px; color: var(--clr-violet);
}

form input, form select {
    width: 100%; padding: 18px;
    background: #f9fafb; border: 1px solid var(--clr-border);
    border-radius: 8px; font-family: var(--font-body);
    font-size: 1rem; color: var(--clr-text-main); transition: var(--fast-transition);
}
form input:focus, form select:focus {
    outline: none; border-color: var(--clr-cyan); box-shadow: 0 0 0 4px var(--clr-light-cyan); background: #fff;
}


/* --- FOOTER --- */
.footer-main {
    padding: 48px 0;
    background: linear-gradient(135deg, #4c1d95 0%, #2e054e 100%);
    text-align: center;
}


/* --- STICKY CTA (MOBILE) --- */
.sticky-footer {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--clr-bg-white); padding: 15px 24px; z-index: 999; 
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1); border-top: 1px solid var(--clr-border);
}


/* --- GLOBALS ADDED FOR CRO REVISIONS --- */
.text-gold { color: #fbbf24; }

/* --- TRUST BADGES HERO --- */
.trust-badges { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 15px; }
.trust-stars { display: flex; color: #fbbf24; }
.trust-stars svg { width: 18px; height: 18px; }
.trust-text { font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 500; font-family: var(--font-body); }

/* --- ROI CARDS --- */
.roi-card { border: 1px solid var(--clr-border); padding: 30px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.roi-card-header { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.1rem; color: var(--clr-text-muted); font-weight: 500; }
.roi-card h3 { font-size: 3.8rem; color: var(--clr-violet); margin: 5px 0 0 0; letter-spacing: -2px; font-weight: 900; line-height: 1; }

/* --- VERTICAL TIMELINE --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--clr-border); border-radius: 4px;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-bullet {
    position: absolute; left: -49px; top: 20px; width: 22px; height: 22px;
    background: var(--clr-cyan); border: 4px solid var(--clr-bg-white); border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2); z-index: 2;
}
.timeline-content {
    background: var(--clr-bg-white); padding: 32px; border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm); border: 1px solid var(--clr-border);
}
.timeline-content h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* --- SOCIAL PROOF BLOCKQUOTE --- */
.testimonial-card {
    background: #f1f5f9; padding: 40px; border-radius: var(--radius-card); position: relative;
    max-width: 800px; margin: 0 auto;
}
.testimonial-card::before {
    content: '"'; position: absolute; top: 20px; left: 20px; font-size: 6rem;
    color: var(--clr-border); font-family: serif; line-height: 1; opacity: 0.5;
}
.testimonial-text { font-size: 1.25rem; font-style: italic; color: var(--clr-text-main); position: relative; z-index: 2; margin-bottom: 30px;}
.testimonial-author { display: flex; align-items: center; gap: 15px; position: relative; z-index: 2;}
.testimonial-avatar { width: 50px; height: 50px; background: var(--clr-cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.2rem;}
.author-details p { margin: 0; line-height: 1.2;}

/* --- FAQ ACCORDION --- */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--clr-bg-white); border: 1px solid var(--clr-border); border-radius: 12px;
    margin-bottom: 15px; overflow: hidden; transition: var(--fast-transition);
}
.faq-question {
    padding: 24px; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-family: var(--font-heading); font-weight: 700; color: var(--clr-violet);
    font-size: 1.15rem; margin: 0;
}
.faq-icon { transition: transform 0.3s ease; width: 24px; height: 24px;}
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--clr-cyan);}
.faq-item.active { border-color: var(--clr-cyan); box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1); }
.faq-answer {
    padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--clr-text-muted);
}
.faq-item.active .faq-answer { padding: 0 24px 24px 24px; max-height: 250px; }

/* --- FLOATING WHATSAPP --- */
.wa-float {
    position: fixed; bottom: 30px; right: 30px; width: 64px; height: 64px;
    background-color: #25d366; color: #fff; border-radius: 50px;
    display: flex; align-items: center; justify-content: center; z-index: 1000;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); text-decoration: none;
    transition: transform 0.3s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-icon { width: 38px; height: 38px; fill: currentColor; }
.wa-pulse { animation: wa-pulse 2s infinite; }
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- SCROLL REVEALS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* --- RESPONSIVE MOBILE EXTREME FIXES --- */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .hero { padding-top: 120px; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 20px;}
    .hero .subtitle { font-size: 1.15rem; }
    .section-header h2 { font-size: 2rem; }
    
    /* Control de Desborde para Pillbox Masiva */
    .hl-cyan-massive {
        font-size: 1.4em !important; /* Tope de tamaño para no fracturar 390px */
        padding: 4px 15px; 
    }
    
    .card-body { padding: 24px; }
    .form-card { padding: 32px 24px; }
    .input-row { flex-direction: column; gap: 0; }

    /* W-full forces CTAs to 100% width on Mobile only for Fat-Finger accessibility */
    .w-full-mobile { width: 100%; }

    .sticky-footer.visible { display: block; }
    
    .timeline { padding-left: 20px; }
    .timeline-bullet { left: -29px; }
    .wa-float { bottom: 90px; right: 20px; width: 54px; height: 54px; }
    .wa-icon { width: 34px; height: 34px; }
}
