/* =================================================================
   SECCIÓN: LÍNEA DE SERVICIO / ¿NECESITAS AYUDA? - FUNDECIMA
   Estilo Tuhabi adaptado: card azul claro, decoraciones azul institucional,
   datos de contacto desde la tabla `entidad`.
   ================================================================= */

/* ---------- Sección ---------- */
.ayuda-section {
    padding: 0;
}

/* ---------- Card principal ---------- */
.ayuda-card {
    position: relative;
    background: #f0f4ff;
    border-radius: 18px;
    padding: 52px 48px;
    overflow: hidden;
    isolation: isolate;
}

/* Línea decorativa diagonal (izquierda) */
.ayuda-card::before {
    content: '';
    position: absolute;
    left: 5%;
    top: -30%;
    width: 1.5px;
    height: 160%;
    background: linear-gradient(
        to bottom,
        rgba(30, 58, 138, 0) 0%,
        rgba(30, 58, 138, 0.22) 50%,
        rgba(30, 58, 138, 0) 100%
    );
    transform: rotate(26deg);
    z-index: 0;
    pointer-events: none;
}

/* ---------- Decoraciones ---------- */

/* Triángulo azul institucional (esquina superior derecha) */
.ayuda-deco-triangulo {
    position: absolute;
    top: 0;
    right: 0;
    width: 230px;
    height: 190px;
    background: #1e3a8a;
    clip-path: polygon(18% 0, 100% 0, 100% 100%);
    z-index: 0;
    pointer-events: none;
}

/* Círculo verde institucional (solapado bajo el triángulo) */
.ayuda-deco-circulo {
    position: absolute;
    top: 160px;
    right: 130px;
    width: 72px;
    height: 72px;
    background: #059669;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Contenido (siempre sobre las decoraciones) ---------- */
.ayuda-contenido {
    position: relative;
    z-index: 1;
}

/* Etiqueta superior: LÍNEA DE SERVICIO */
.ayuda-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1e3a8a;
    margin-bottom: 12px;
}

/* Título: ¿Necesitas ayuda? */
.ayuda-titulo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

/* Descripción */
.ayuda-descripcion {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.55;
    max-width: 340px;
    margin-bottom: 0;
}

/* ---------- Bloque de información (columna derecha) ---------- */
.ayuda-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

/* Horario */
.ayuda-horario p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.5;
}

/* Items de contacto (email / teléfono) */
.ayuda-contacto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.ayuda-contacto i {
    color: #a0aec0;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.ayuda-contacto:hover {
    color: #1e3a8a;
}

.ayuda-contacto:hover i {
    color: #1e3a8a;
}

.ayuda-contacto:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Botón: Chat en vivo ---------- */
.btn-chat-en-vivo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    background: transparent;
    border-radius: 999px;
    padding: 10px 26px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-chat-en-vivo:hover {
    background: #1e3a8a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

.btn-chat-en-vivo:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 3px;
}

/* ---------- Redes sociales ---------- */
.ayuda-redes {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.ayuda-red {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #059669;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ayuda-red:hover {
    background: #047857;
    color: #ffffff;
    transform: translateY(-2px);
}

.ayuda-red:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ayuda-card {
        padding: 40px 28px;
    }

    .ayuda-info {
        margin-top: 10px;
    }

    .ayuda-deco-triangulo {
        width: 150px;
        height: 125px;
    }

    .ayuda-deco-circulo {
        width: 54px;
        height: 54px;
        top: 100px;
        right: 80px;
    }
}

@media (max-width: 575px) {
    .ayuda-section {
        padding: 32px 0 4px;
    }

    .ayuda-card {
        padding: 34px 22px;
        border-radius: 16px;
    }

    .ayuda-titulo {
        font-size: 1.75rem;
    }

    .ayuda-descripcion {
        font-size: 1rem;
    }

    .ayuda-deco-triangulo {
        width: 110px;
        height: 90px;
    }

    .ayuda-deco-circulo {
        width: 44px;
        height: 44px;
        top: 70px;
        right: 60px;
    }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn-chat-en-vivo,
    .ayuda-red,
    .ayuda-contacto {
        transition: none;
    }
}