/* ==========================================================================
   GSAP Enhancements — mejoras visuales y de animación
   No modifica contenido; solo añade estados de transición y micro-interacciones.
   Los estados iniciales "ocultos" se aplican vía JS (GSAP), no aquí, para que
   el contenido sea visible aunque el JS falle (progressive enhancement).
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Navbar: transición fluida ya existente + leve blur al hacer scroll */
.navbar {
    transition: padding 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease, backdrop-filter 0.35s ease;
    will-change: padding, box-shadow;
}

.navbar.navbar-scrolled {
    backdrop-filter: blur(10px);
}

/* Cards con hover más vivo (complementa el existente, sin duplicar transform base) */
.service-card,
.service-card-detail {
    will-change: transform;
}

.service-card:hover .icon-box,
.service-card-detail:hover .icon-box {
    transform: translateY(-4px) scale(1.06);
}

.icon-box {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Botones: efecto de brillo sutil al pasar el cursor */
.btn-modern,
.btn-pill-outline,
.btn-client-access {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-modern::after,
.btn-pill-outline::after,
.btn-client-access::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.btn-modern:hover::after,
.btn-pill-outline:hover::after,
.btn-client-access:hover::after {
    transform: translateX(120%);
}

/* Stats: preparar números para animación de conteo sin salto visual */
.stat-modern-item h2 {
    font-variant-numeric: tabular-nums;
}

/* Imagen "Sobre Nosotros": leve profundidad al hover */
.img-diagonal-clip {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-diagonal-clip:hover {
    transform: scale(1.02);
}

/* Contact icon circles: pulso suave al hover */
.contact-icon-circle {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-icon-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.35);
}

/* Footer: enlaces con subrayado animado */
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--brand-green, #2ecc71);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

/* Utilidad genérica reservada para GSAP (evita FOUC solo cuando JS confirma soporte) */
.js-gsap-ready .gsap-reveal,
.js-gsap-ready .gsap-reveal-item {
    visibility: visible;
}

/* ==========================================================================
   Rediseño moderno inspirado en referencia "Jeena IT Solutions"
   Gradientes, blobs decorativos y acentos — 100% CSS, sin imágenes ajenas.
   ========================================================================== */

/* Blobs decorativos flotantes (glow difuso) para secciones oscuras/hero */
.hero-section,
.hero-inner,
.hero-simple,
.stats-modern-section,
section[style*="--primary-bg"],
.contact-sidebar,
.contact-info-panel {
    isolation: isolate;
}

.hero-section::after,
.hero-inner::after,
.hero-simple::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 77, 243, 0.35) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

.hero-section::before,
.hero-inner::before {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.25) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

/* Badge con borde en degradado (estilo "pill" premium) */
.iso-badge {
    position: relative;
    background: linear-gradient(rgba(10, 31, 61, 0.92), rgba(10, 31, 61, 0.92)) padding-box,
        var(--accent-gradient, linear-gradient(135deg, #2ecc71, #674df3)) border-box;
    border: 1px solid transparent;
}

/* Subrayado degradado bajo los títulos de sección */
.section-header .sub-title {
    background: var(--accent-gradient, linear-gradient(135deg, #2ecc71, #674df3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botón primario con gradiente sutil en hover (mantiene el color base) */
.btn-modern-primary,
.btn-client-access,
.btn-send {
    background-image: linear-gradient(135deg, var(--brand-green, #2ecc71) 0%, var(--brand-green, #2ecc71) 60%, var(--accent-purple, #674df3) 140%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    border-color: transparent !important;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-modern-primary:hover,
.btn-client-access:hover,
.btn-send:hover {
    background-position: 100% 0%;
}

/* Iconos circulares con leve halo en hover */
.icon-box,
.service-icon-float,
.contact-icon-circle,
.info-icon {
    box-shadow: 0 0 0 0 rgba(103, 77, 243, 0);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.service-card:hover .icon-box {
    box-shadow: 0 8px 20px rgba(103, 77, 243, 0.25);
}

/* Números de estadísticas con degradado verde→violeta (coherente con el acento nuevo) */
.stat-modern-item h2 {
    background: linear-gradient(to right, #fff, var(--brand-green, #2ecc71) 60%, var(--accent-purple, #674df3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header y Footer — acentos inspirados en el tema Jeena (recursos propios,
   sin depender de assets/css/style.css para no afectar el resto del sitio)
   ========================================================================== */

/* Iconos sociales en línea dentro del navbar (junto al botón de WhatsApp) */
.nav-social-inline {
    gap: 10px;
    margin-right: 4px;
}

.nav-social-inline a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-social-inline a:hover {
    background: var(--accent-gradient, linear-gradient(135deg, #2ecc71, #674df3));
    transform: translateY(-2px);
}

/* Botón de WhatsApp del navbar con leve degradado (coherente con el resto de CTAs) */
.btn-client-access {
    background-image: linear-gradient(135deg, var(--brand-green, #2ecc71) 0%, var(--brand-green, #2ecc71) 60%, var(--accent-purple, #674df3) 140%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-client-access:hover {
    background-position: 100% 0%;
}

/* Footer: marca en degradado, igual que el navbar-brand */
.footer-brand {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--brand-green, #2ecc71) 60%, var(--accent-purple, #674df3) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand .brand-dot {
    -webkit-text-fill-color: var(--brand-green, #2ecc71);
}

/* Footer: shapes decorativos del tema (solo visuales, no interactivos) */
footer.footer-theme-accent {
    position: relative;
    overflow: hidden;
}

.footer-shape-line,
.footer-shape-right {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

.footer-shape-line {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.footer-shape-right {
    bottom: 0;
    right: 0;
    width: 220px;
    max-width: 30vw;
    height: auto;
    opacity: 0.35;
}

footer.footer-theme-accent .container {
    z-index: 1;
}

/* Footer: iconos circulares para los datos de contacto */
.footer-contact-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-green, #2ecc71);
    margin-right: 12px;
}
