/* ============================================================
   LEADS AI — LANDING PAGE PREMIUM
   Variables CSS completas para personalización total
============================================================ */

/* ── VARIABLES GLOBALES ─────────────────────────────────── */
:root {
    /* Colores principales */
    --la-primary:        #4f46e5;
    --la-accent:         #f59e0b;
    --la-accent-alt:     #ec4899;

    /* Gradiente hero */
    --la-gradient-start: #0f0c29;
    --la-gradient-mid:   #302b63;
    --la-gradient-end:   #24243e;

    /* Gradiente botón */
    --la-btn-from:       #f59e0b;
    --la-btn-to:         #ec4899;

    /* Gradiente sección bot */
    --la-bot-from:       #4f46e5;
    --la-bot-to:         #7c3aed;

    /* Tipografía */
    --la-font-display:   'Playfair Display', serif;
    --la-font-body:      'DM Sans', sans-serif;

    /* Espaciado */
    --la-section-pad:    110px 8%;
    --la-radius:         24px;
    --la-radius-sm:      12px;

    /* Sombras */
    --la-shadow-card:    0 30px 60px rgba(0,0,0,0.12);
    --la-shadow-btn:     0 8px 30px rgba(245,158,11,0.4);
    --la-shadow-glow:    0 0 80px rgba(79,70,229,0.3);
}

/* ── RESET Y BASE ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

.la-landing-wrapper {
    font-family: var(--la-font-body);
    color: #111;
    width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
}

.la-hero *,
.la-benefits *,
.la-agenda *,
.la-footer * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── HERO ───────────────────────────────────────────────── */
.la-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--la-section-pad);
    background:
        radial-gradient(ellipse at 20% 50%, rgba(79,70,229,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(236,72,153,0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--la-gradient-start), var(--la-gradient-mid), var(--la-gradient-end));
    color: white;
    overflow: hidden;
    gap: 60px;
}

/* Textura de ruido sutil */
.la-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

/* Orbe decorativo */
.la-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
    right: -100px;
    top: -100px;
    pointer-events: none;
}

.la-hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    flex: 1;
}

.la-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    animation: fadeSlideDown 0.7s ease both;
}

.la-hero-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--la-accent);
    animation: pulse 2s infinite;
}

.la-hero h1 {
    font-family: var(--la-font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    animation: fadeSlideUp 0.7s 0.1s ease both;
}

.la-hero h1 em {
    font-style: normal;
    font-size: clamp(2.8rem, 5vw, 4rem);
    background: linear-gradient(90deg, var(--la-btn-from), var(--la-btn-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.la-hero p {
    font-size: 1.15rem;
    opacity: 0.8;
    font-weight: 300;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.7s 0.2s ease both;
}

.la-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.7s 0.3s ease both;
}

.la-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--la-btn-from), var(--la-btn-to));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--la-shadow-btn);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.la-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.la-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(245,158,11,0.5);
    color: white;
    text-decoration: none;
}

.la-btn-primary:hover::before { opacity: 1; }

.la-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.la-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

/* Imagen hero */
.la-hero-image {
    position: relative;
    z-index: 2;
    flex: 0 0 600px;
    animation: fadeSlideUp 0.9s 0.2s ease both;
}

.la-hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(79,70,229,0.3), rgba(236,72,153,0.3));
    border-radius: var(--la-radius);
    filter: blur(30px);
    z-index: -1;
}

.la-hero-image img {
    width: 100%;
    border-radius: var(--la-radius);
    display: block;
    box-shadow: var(--la-shadow-card);
}

/* Stats flotantes */
.la-hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 44px;
    animation: fadeSlideUp 0.7s 0.4s ease both;
}

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

.la-stat strong {
    display: block;
    font-family: var(--la-font-display);
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--la-btn-from), var(--la-btn-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.la-stat span {
    font-size: 0.85rem;
    font-weight: 600;      /* ← grueso */
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── BENEFITS ───────────────────────────────────────────── */
.la-benefits {
    padding: var(--la-section-pad);
    background: #fafafa;
    text-align: center;
    position: relative;
}

.la-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--la-primary), transparent);
    opacity: 0.2;
}

.la-section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--la-primary);
    background: rgba(79,70,229,0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.la-benefits h2,
.la-bot h2,
.la-agenda h2 {
    font-family: var(--la-font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.la-section-sub {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto 60px;
    font-weight: 300;
}

.la-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.la-card {
    background: white;
    padding: 44px 36px;
    border-radius: var(--la-radius);
    box-shadow: var(--la-shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.04);
}

.la-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--la-primary), var(--la-accent-alt));
    opacity: 0;
    transition: opacity 0.3s;
}

.la-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.la-card:hover::before { opacity: 1; }

.la-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--la-radius-sm);
    background: linear-gradient(135deg, var(--la-primary), var(--la-accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.la-card-text {
    font-size: 1rem;
    color: #333;
    font-weight: 400;
    line-height: 1.6;
}

/* ── BOT SECTION ─────────────────────────────────────────── */
.la-bot {
    padding: var(--la-section-pad);
    background:
        radial-gradient(ellipse at 30% 50%, rgba(124,58,237,0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(236,72,153,0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--la-bot-from), var(--la-bot-to));
    color: white;
    position: relative;
    overflow: hidden;
}

.la-bot::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.la-bot h2 {
    position: relative;
    z-index: 1;
    color: white;
    margin-bottom: 12px;
}

.la-bot .la-section-sub {
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.la-bot-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto;
}

/* Ajuste para que el chatbot encaje en la landing */
.la-bot-inner .phone-wrapper {
    margin: 0 auto;
}

/* ── AGENDA ─────────────────────────────────────────────── */
.la-agenda {
    padding: var(--la-section-pad);
    background: white;
    text-align: center;
    position: relative;
}

.la-agenda h2 { color: #111; margin-bottom: 12px; }

.la-agenda .la-section-sub { margin-bottom: 50px; }

.la-agenda-frame {
    border-radius: var(--la-radius);
    overflow: hidden;
    box-shadow: var(--la-shadow-card);
    border: 1px solid rgba(0,0,0,0.06);
    max-width: 900px;
    margin: 0 auto;
}

.la-agenda-frame iframe {
    display: block;
    width: 100%;
    height: 700px;
    border: none;
}

/* ── FOOTER MINIMAL ─────────────────────────────────────── */
.la-footer {
    padding: 40px 8%;
    background:
        linear-gradient(135deg, var(--la-gradient-start), var(--la-gradient-end));
    color: rgba(255,255,255,0.4);
    text-align: center;
    font-size: 0.82rem;
}

/* ── ANIMACIONES ────────────────────────────────────────── */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* Scroll reveal */
.la-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.la-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .la-hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 6%;
        min-height: auto;
    }

    .la-hero-content { max-width: 100%; }
    .la-hero-actions { justify-content: center; }
    .la-hero-stats   { justify-content: center; }
    .la-hero-image   { flex: 0 0 auto; width: 100%; max-width: 380px; }
    .la-hero-badge   { margin: 0 auto 28px; }
}

@media (max-width: 600px) {
    :root { --la-section-pad: 70px 5%; }

    .la-hero h1    { font-size: 2rem; }
    .la-hero-stats { flex-direction: column; gap: 16px; align-items: center; }
    .la-card       { padding: 30px 24px; }

    .la-btn-primary,
    .la-btn-secondary { width: 100%; justify-content: center; }
}
