/* =============================================
   Cultivalo Web - Estilos globales
   ============================================= */

html {
    scroll-behavior: smooth;
    color-scheme: light only;
}

/* Reserva espacio para el navbar (h-16 = 64px) antes de que JS lo renderice.
   Evita el layout shift (CLS) que provoca que el contenido salte al cargar. */
#navbar-web {
    min-height: 64px;
}

/* Animación fade-in para secciones visibles */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradiente hero personalizado con patrón de puntos integrado */
.hero-gradient {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0) center/24px 24px,
        linear-gradient(135deg, #16a34a 0%, #14532d 100%);
}

/* Tarjetas de módulos con hover suave */
.module-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* El patrón está integrado en .hero-gradient; esta clase se conserva por compatibilidad */
.hero-pattern {}

/* Línea divisora verde */
.divider-green {
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #4ade80, transparent);
    border: none;
}

/* Badges de categoría en el blog */
.badge-cat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Estilos para artículos de blog */
.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 0.75rem;
}
.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.5rem;
}
.article-content p {
    color: #374151;
    margin-bottom: 1.1rem;
    line-height: 1.75;
}
.article-content ul, .article-content ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
    color: #374151;
    line-height: 1.75;
}
.article-content li {
    margin-bottom: 0.4rem;
}
.article-content strong {
    color: #111827;
}
.article-content .callout {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Imagen hero lazy con efecto blur */
img.lazyload {
    filter: blur(4px);
    transition: filter 0.4s;
}
img.loaded {
    filter: blur(0);
}

/* Pasos numerados (how it works) */
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #16a34a;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
