/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE
   ========================================================================== */
* { 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; /* Habilita desplazamiento suave al hacer clic en enlaces internos */
}
body { 
    background: #0a0a0a; /* Fondo oscuro principal */
    color: #fff; /* Color de texto blanco por defecto */
    overflow-x: hidden; /* Evita desbordamientos horizontales */
}

/* ==========================================================================
   GRADIENTES Y DEGRADADOS DE INTERFAZ
   ========================================================================== */
/* Texto con degradado de color (usado en títulos principales) */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fondo degradado radial de atmósfera en sección Hero */
.hero-bg {
    background: radial-gradient(ellipse at top, #1e3a8a 0%, #0a0a0a 60%);
}

/* Resplandores box-shadow */
.glow-blue { box-shadow: 0 0 40px rgba(59, 130, 246, 0.3); }
.glow-orange { box-shadow: 0 0 40px rgba(249, 115, 22, 0.3); }

/* ==========================================================================
   ANIMACIONES PERSONALIZADAS
   ========================================================================== */
/* 1. Imagen flotante en Hero */
.float { animation: float 4s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 2. Burbujas ascendentes de fondo */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(59,130,246,0.1));
    border: 1px solid rgba(255,255,255,0.2);
    animation: bubble-rise linear infinite;
}
@keyframes bubble-rise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.7; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ==========================================================================
   TARJETAS Y CONTENEDORES INTERACTIVOS (CARDS)
   ========================================================================== */
/* Tarjetas con efecto de elevación y sombra expansiva en hover */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

/* Badge "Más Popular" sobre la tarjeta del Plan Plus */
.price-popular { position: relative; }
.price-popular::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* Iconos circulares de servicios */
.service-icon {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Línea conectora de los pasos del proceso */
.step-line { background: linear-gradient(180deg, #3b82f6, #f97316); }

/* Separador de ola SVG */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Elementos de la galería con zoom y overlay oscuro en hover */
.gallery-item { overflow: hidden; border-radius: 16px; position: relative; }
.gallery-item img { transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.gallery-item:hover::after { opacity: 1; }

/* ==========================================================================
   BOTONES Y ELEMENTOS DE ACCIÓN (CTA)
   ========================================================================== */
/* Botón verde de WhatsApp con sombra y hover de escala */
.whatsapp-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transition: all 0.3s;
}
.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

/* Animación de entrada de scroll (Scroll Reveal) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Barra de navegación superior con efecto de desenfoque de fondo */
.nav-glass {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Alineación de números en contadores estadísticos */
.counter-value { font-variant-numeric: tabular-nums; }

/* Tarjetas de testimonios con fondo degradado suave */
.testimonial-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Línea decorativa naranja bajo los títulos */
.title-line { position: relative; display: inline-block; }
.title-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, transparent);
    border-radius: 2px;
}

/* ==========================================================================
   SECCIONES ADICIONALES (DOMICILIO, PLANES, DETALLES)
   ========================================================================== */
/* Banner de domicilio disponible */
.domicilio-banner {
    background: linear-gradient(135deg, #0e7490, #06b6d4, #22d3ee);
}
/* Insignia de domicilio animada */
.domicilio-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

/* Botones de selección de plan en las tarjetas */
.plan-btn { transition: all 0.3s ease; }
.plan-btn:hover { transform: scale(1.05); }

/* Etiqueta para sub-título de servicios */
.same-service-tag {
    background: linear-gradient(135deg, #0e7490, #06b6d4);
    font-size: 0.65rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   FIRMA GOLEM-DEVS
   ========================================================================== */
.golem-text {
    background: linear-gradient(to right, #3b82f6, #22c55e, #78350f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-style: italic;
}