/* =========================================================================
   cloudgympro.css - Diseño Premium SaaS (Colores Sólidos)
   ========================================================================= */

:root {
    --primary: #4f46e5;      /* Color Índigo Corporativo */
    --primary-hover: #4338ca;
    --secondary: #0ea5e9;    /* Celeste para detalles */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* --- Utilidades --- */
.text-primary-custom {
    color: var(--primary) !important;
}

/* --- Navbar Glassmorphism --- */
.navbar-glass {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: var(--transition);
}

.navbar-brand img { height: 50px; }
.nav-link { font-weight: 600; color: var(--text-muted) !important; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* --- Botones --- */
.btn-custom {
    border-radius: 50rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-solid-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
}

.btn-solid-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
    color: white;
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0;
    background-color: #ffffff; /* Color sólido y limpio */
}

.badge-soft {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-weight: 700;
}

.badge i {
    color: #4f46e5; /* mismo color primario del branding */
}

.badge-inteligente {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8fafc;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.badge-inteligente i {
    color: #facc15;
    font-size: 1.1rem;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0%   { text-shadow: 0 0 2px #facc15; transform: scale(1); }
    50%  { text-shadow: 0 0 6px #facc15, 0 0 10px #fde68a; transform: scale(1.1); }
    100% { text-shadow: 0 0 2px #facc15; transform: scale(1); }
}

/* Animación imagen hero */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.hero-img-wrapper,
.hero-img-wrapper-modern {
    position: relative;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.hero-img-wrapper::before,
.hero-img-wrapper-modern::before {
    content: '';
    position: absolute;
    inset: -10px;
    background-color: rgba(79, 70, 229, 0.08); /* Sombra sólida detrás de imagen */
    border-radius: 20px;
    z-index: -1;
    transform: rotate(-3deg);
}

.hero-img {
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    border: 1px solid rgba(226, 232, 240, 1);
}

/* --- KPIs Solapados --- */
.kpi-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* --- Tarjetas Premium (Feature y Step) --- */
.card-premium,
.feature-card,
.step-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 1rem;
    height: 100%;
}

.card-premium:hover,
.feature-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

/* --- Features Iconos --- */
.icon-box {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}

/* Iconos funcionalidades - Estilo Premium */
.icon-box-premium {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;

    /* Fondo con degradado sutil */
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.15));

    /* Sombras suaves y profundidad */
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15), 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--primary);
}

/* Hover efecto profesional */
.icon-box-premium:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.25), 0 6px 12px rgba(0,0,0,0.08);
    color: var(--secondary);
}

/* Icono central (i) ajustado */
.icon-box-premium i {
    font-size: 2rem;
}

.icon-whatsapp { background: linear-gradient(135deg, #dcfce7, #16a34a); color: #16a34a; }
.icon-access { background: linear-gradient(135deg, #e0e7ff, #4f46e5); color: #4f46e5; }
.icon-pos { background: linear-gradient(135deg, #fef08a, #ca8a04); color: #ca8a04; }
.icon-reports { background: linear-gradient(135deg, #e0f2fe, #0284c7); color: #0284c7; }

/* --- Steps Numbers --- */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

.step-card h5 {
    margin-top: 0.5rem;
}

.step-card p {
    font-size: 0.95rem;
}

/* --- Testimonios --- */
.testimonial-text { font-style: italic; color: #334155; }
.avatar-initial {
    width: 45px; height: 45px;
    border-radius: 50%;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem;
}

/* --- Logos de Clientes --- */
.client-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 10px;
}

.client-img {
    max-width: 100%;
    max-height: 120%;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.client-img:hover {
    opacity: 1;
    transform: scale(1.12);
}

/* --- CTA Final --- */
.cta-box,
.cta-modern {
    background-color: var(--primary);
    border-radius: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
    padding: 3rem 2rem;
}

/* --- Wrapper CTA integración landing --- */
.cta-section-wrapper {
    padding: 120px 0 80px;
    background-color: #f8fafc;
}

/* Integración visual CTA */
.cta-modern {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.15);
}

/* --- Gradiente de texto compatible --- */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* --- Secciones modernas Hero SaaS --- */
.hero-pro {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(14,165,233,0.1));
    z-index: 0;
    border-radius: 24px;
}

footer {
    margin-top: 40px;
    padding-top: 60px;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
}