/* ================================================================
   KONEKO ADS — MEJORAS VISUALES v1.0
   ================================================================

   ANTES DE EMPEZAR — ajusta las 3 variables de color de aquí abajo
   para que coincidan con tu branding. Abre tu web, pulsa F12,
   ve a Elements y busca el color hexadecimal de tu acento principal.

   ================================================================ */

:root {
    --koneko-accent:       #7B2FBE;          /* ← TU COLOR ACENTO PRINCIPAL    */
    --koneko-accent-rgb:   123, 47, 190;     /* ← El mismo en R, G, B separados */
    --koneko-accent-light: #9B5FDE;          /* ← Versión más clara del acento  */
    --koneko-card-bg:      #12112a;          /* ← Fondo de tarjetas oscuras     */
    --koneko-border:       rgba(123, 47, 190, 0.25);
    --koneko-green:        #4ade80;          /* Para métricas de reducción (positivo) */
    --koneko-text-muted:   rgba(255, 255, 255, 0.60);
    --koneko-radius:       14px;
}


/* ================================================================
   MEJORA 1 — TARJETA DE MÉTRICAS (HERO)
   Inserta el shortcode [koneko_hero_card] en un widget HTML o
   Shortcode de Elementor en la columna derecha del hero.
   ================================================================ */

.koneko-hero-card {
    background: var(--koneko-card-bg);
    border: 1px solid var(--koneko-border);
    border-radius: var(--koneko-radius);
    padding: 28px 24px;
    max-width: 380px;
    width: 100%;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.koneko-hero-card__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--koneko-accent-light);
    margin: 0 0 20px;
    opacity: 0.85;
}

.koneko-hero-card__metrics {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.koneko-metric {
    display: flex;
    align-items: center;
    gap: 14px;
}

.koneko-metric__number {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    min-width: 76px;
    flex-shrink: 0;
}

.koneko-metric__number--positive { color: var(--koneko-accent-light); }
.koneko-metric__number--green    { color: var(--koneko-green); }

.koneko-metric__label {
    font-size: 0.85rem;
    color: var(--koneko-text-muted);
    line-height: 1.35;
}

.koneko-hero-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 18px;
    border-top: 1px solid var(--koneko-border);
}

.koneko-tag {
    background: rgba(var(--koneko-accent-rgb), 0.12);
    border: 1px solid rgba(var(--koneko-accent-rgb), 0.35);
    color: var(--koneko-accent-light);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}


/* ================================================================
   MEJORA 2 — CARDS DE PASOS (SECCIÓN AUDITORÍA)

   INSTRUCCIONES:
   1. En Elementor, haz clic en la sección que contiene los 4 pasos.
   2. Pestaña "Avanzado" → campo "Clases CSS" → escribe: koneko-steps
   3. Guarda. Los estilos se aplicarán automáticamente.

   Los textos de cada paso siguen siendo editables en Elementor.
   ================================================================ */

.koneko-steps .elementor-column > .elementor-widget-wrap {
    position: relative;
    overflow: hidden;
    background: var(--koneko-card-bg) !important;
    border: 1px solid transparent !important;
    border-radius: var(--koneko-radius) !important;
    padding: 32px 24px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.koneko-steps .elementor-column > .elementor-widget-wrap:hover {
    border-color: var(--koneko-accent) !important;
    box-shadow: 0 0 28px rgba(var(--koneko-accent-rgb), 0.20) !important;
}

/* Número grande semitransparente de fondo */
.koneko-steps .elementor-column:nth-child(1) > .elementor-widget-wrap::before { content: "01"; }
.koneko-steps .elementor-column:nth-child(2) > .elementor-widget-wrap::before { content: "02"; }
.koneko-steps .elementor-column:nth-child(3) > .elementor-widget-wrap::before { content: "03"; }
.koneko-steps .elementor-column:nth-child(4) > .elementor-widget-wrap::before { content: "04"; }

.koneko-steps .elementor-column > .elementor-widget-wrap::before {
    position: absolute;
    bottom: -14px;
    right: 12px;
    font-size: 7rem;
    font-weight: 900;
    color: var(--koneko-accent);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.koneko-steps .elementor-column > .elementor-widget-wrap:hover::before {
    opacity: 0.12;
}

/* El contenido de cada columna queda por encima del número */
.koneko-steps .elementor-column > .elementor-widget-wrap > .elementor-widget {
    position: relative;
    z-index: 1;
}

/* Separación entre columnas en móvil */
@media (max-width: 767px) {
    .koneko-steps .elementor-column > .elementor-widget-wrap {
        margin-bottom: 16px !important;
    }
}


/* ================================================================
   MEJORA 3 — SECCIÓN DE ESTADÍSTICAS
   Inserta [koneko_stats] en un widget Shortcode de Elementor.
   Colócalo entre la sección de problemas y la sección de IA.
   ================================================================ */

.koneko-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    background: var(--koneko-card-bg);
    border: 1px solid var(--koneko-border);
    border-radius: var(--koneko-radius);
    padding: 40px 16px;
    gap: 0;
}

.koneko-stats__item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 16px 32px;
    position: relative;
}

/* Divisor vertical entre stats (solo en escritorio) */
.koneko-stats__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 56px;
    width: 1px;
    background: var(--koneko-border);
}

.koneko-stats__number {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--koneko-accent-light);
    line-height: 1;
    margin-bottom: 12px;
}

.koneko-stats__desc {
    display: block;
    font-size: 0.875rem;
    color: var(--koneko-text-muted);
    line-height: 1.45;
    max-width: 180px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .koneko-stats {
        flex-direction: column;
        padding: 28px 20px;
    }
    .koneko-stats__item:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 1px;
    }
    .koneko-stats__item {
        padding: 20px 16px;
    }
}


/* ================================================================
   MEJORA 4 — TESTIMONIOS PREMIUM

   INSTRUCCIONES:
   1. En Elementor, haz clic en tu sección de testimonios.
   2. Pestaña "Avanzado" → campo "Clases CSS" → escribe: koneko-testimonios
   3. Guarda. Los estilos se aplican automáticamente.

   Los textos, nombres, cargos y fotos siguen editables en Elementor.
   ================================================================ */

/* --- Estrellas sobre cada testimonio --- */
.koneko-testimonios .elementor-testimonial,
.koneko-testimonios .elementor-testimonial-wrapper {
    position: relative;
}

.koneko-testimonios .elementor-testimonial::before,
.koneko-testimonios .elementor-testimonial-wrapper::before {
    content: "★★★★★";
    display: block;
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 14px;
    line-height: 1;
}

/* --- Card del testimonio --- */
.koneko-testimonios .elementor-testimonial,
.koneko-testimonios .elementor-testimonial-wrapper {
    background: var(--koneko-card-bg) !important;
    border: 1px solid var(--koneko-border) !important;
    border-radius: var(--koneko-radius) !important;
    padding: 28px 24px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    height: 100%;
    box-sizing: border-box;
}

.koneko-testimonios .elementor-testimonial:hover,
.koneko-testimonios .elementor-testimonial-wrapper:hover {
    border-color: var(--koneko-accent) !important;
    box-shadow: 0 0 24px rgba(var(--koneko-accent-rgb), 0.15) !important;
}

/* --- Separación texto/autor --- */
.koneko-testimonios .elementor-testimonial-meta,
.koneko-testimonios .elementor-testimonial__cite {
    border-top: 1px solid var(--koneko-border) !important;
    padding-top: 18px !important;
    margin-top: 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* --- Foto de avatar circular --- */
.koneko-testimonios .elementor-testimonial-image img,
.koneko-testimonios .elementor-testimonial__image img {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    border: 2px solid var(--koneko-accent) !important;
    flex-shrink: 0 !important;
}

/* --- Nombre del autor --- */
.koneko-testimonios .elementor-testimonial-name,
.koneko-testimonios .elementor-testimonial__name {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

/* --- Cargo / empresa --- */
.koneko-testimonios .elementor-testimonial-job,
.koneko-testimonios .elementor-testimonial__title {
    color: var(--koneko-accent-light) !important;
    font-size: 0.8rem !important;
    opacity: 0.9 !important;
}

/* --- Texto del testimonio --- */
.koneko-testimonios .elementor-testimonial-content,
.koneko-testimonios .elementor-testimonial__text {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    color: var(--koneko-text-muted) !important;
}
