@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700;800;900&display=swap');

:root {
    --bg-base: #d2dbee;
    --text-primary: #192132;
    --text-secondary: #58657e;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 20px 40px rgba(30, 41, 69, 0.07);
    --pill-bg: #f5f8ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 10% 20%, rgba(255, 255, 255, 0.8) 0px, transparent 40%),
        radial-gradient(at 90% 10%, rgba(186, 203, 236, 0.8) 0px, transparent 50%),
        radial-gradient(at 80% 85%, rgba(255, 220, 220, 0.4) 0px, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===================================================
   NAVBAR LIMPIO Y TRANSPARENTE
   =================================================== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-cta {
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
}

/* ===================================================
   GRID DEL HERO (2 COLUMNAS SEGÚN WIREFRAME)
   =================================================== */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 1rem auto 0;
    padding: 0 5%;
    flex: 1;
}

/* Columna Izquierda */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    z-index: 2;
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero-title span {
    color: rgba(25, 33, 50, 0.35);
    display: block;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 400px;
}

/* ===================================================
   BOTÓN CÁPSULA ULTRA PRO pill-btn (FROSTED GLASS)
   =================================================== */
.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    /* Fondo translúcido con desenfoque real */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    padding: 0.5rem 2rem 0.5rem 0.55rem;
    border-radius: 999px;
    text-decoration: none;
    color: #161e2e;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.3px;
    /* Sombra exterior suave + brillo interior blanco */
    box-shadow: 
        0 14px 28px rgba(35, 48, 80, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    width: fit-content;
}

/* El círculo del icono */
.pill-btn .pill-icon {
    width: 48px;
    height: 48px;
    /* Degradado sutil con efecto relieve */
    background: linear-gradient(135deg, rgba(235, 242, 255, 0.9), rgba(210, 225, 250, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(35, 48, 80, 0.05);
    transition: transform 0.3s ease;
}

/* La imagen de la lupa más grande y nítida */
.icon-lupa {
    width: 30px; /* Subimos a 30px para que se note el efecto de cristal */
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    transition: transform 0.35s ease;
}

/* Flechita con micro-animación */
.pill-btn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    color: #58657e;
    font-size: 1.1rem;
}

/* ===================================================
   MICRO-INTERACCIONES pill-btn (HOVER)
   =================================================== */
.pill-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 22px 38px rgba(35, 48, 80, 0.12),
        inset 0 1px 1px #fff;
}

.pill-btn:hover .pill-icon {
    transform: scale(1.05);
}

.pill-btn:hover .icon-lupa {
    transform: scale(1.15) rotate(6deg); /* Gira suavemente al pasar el mouse */
}

.pill-btn:hover .arrow {
    transform: translateX(4px); /* La flecha se desliza a la derecha */
    color: #161e2e;
}

/* Columna Derecha (Escena con tarjetas flotantes) */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

/* Imagen 3D central */
.center-visual {
    width: 100%;
    max-width: 480px;
    filter: drop-shadow(0 30px 40px rgba(30, 41, 69, 0.18));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ===================================================
   TARJETAS GLASS FLOTANTES
   =================================================== */
.glass-box {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid var(--glass-border);
    border-radius: 28px;
    padding: 1.2rem 1.5rem;
    box-shadow: var(--glass-shadow);
    z-index: 3;
}

/* Tarjeta 1: Usuarios arriba derecha */
.card-top-right {
    top: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-group {
    display: flex;
}

.avatar-group span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #cad4e8;
    border: 2px solid #fff;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}
.avatar-group span:first-child { margin-left: 0; }

/* Tarjeta 2: Métrica grande abajo derecha */
.card-stat {
    bottom: 5%;
    right: 2%;
    width: 220px;
}

.card-stat .big-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.5rem 0 0.2rem;
}

/* Tarjeta 3: Insights abajo izquierda */
.card-insights {
    bottom: 10%;
    left: 2%;
    width: 190px;
}

/* ===================================================
   FOOTER MINIMALISTA (PUNTOS Y SLIDER)
   =================================================== */
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.slide-number {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.slide-number span {
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 0.5rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(25, 33, 50, 0.2);
}

.dot.active {
    background: var(--text-primary);
    width: 24px;
    border-radius: 99px;
}