/* ===== RESET BÁSICO ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    color-scheme: light;
    --mh-background: #e0f2fe;
    --mh-card-bg: #ffffff;
    --mh-text: #0f172a;
    --mh-text-soft: #6b7280;
    --mh-primary: #1E3A8A;
    --mh-secondary: #3B82F6;
}

body {
    font-family: var(--mh-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    background-color: var(--mh-background);
    color: var(--mh-text);
}

/* ===== ESTRUCTURA GENERAL ===== */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mh-header {
    padding: 10px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--mh-card-bg, #FFFFFF);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mh-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mh-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mh-logo-circle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--mh-primary, #1E3A8A); /* primary */
    color: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.mh-brand-text {
    font-weight: 600;
    font-size: 15px;
    color: var(--mh-text, #111827);
}

.mh-tagline {
    font-size: 11px;
    color: var(--mh-text-soft, #6B7280);
}

/* ===== SWITCH DE IDIOMA ===== */

.mh-lang-switch {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px;
    border-radius: 999px;
    background: #F3F4F6;
}

.lang-btn {
    border: none;
    background: transparent;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 999px;
    cursor: pointer;
    color: #4B5563;
}

.lang-btn.lang-active {
    background: #1E3A8A;
    color: #F9FAFB;
}

/* ===== MAIN ===== */

.mh-main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== BLOQUES GENERALES ===== */

.mh-block {
    border-radius: 14px;
    padding: 14px 14px 16px;
    background: var(--mh-card-bg, #FFFFFF);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* ===== BLOQUE PERFIL ===== */

.mh-block-perfil {
    text-align: center;
    padding-top: 18px;
}

/* Logo del cliente */
.perfil-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.perfil-logo {
    max-width: 140px;
    max-height: 56px;
    object-fit: contain;
    display: none; /* se muestra solo si hay logo_url */
}

/* Avatar personal */
.perfil-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.perfil-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid var(--mh-secondary, #3B82F6); /* secondary */
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.perfil-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.perfil-nombre {
    font-size: 20px;
    font-weight: 700;
    color: var(--mh-text, #111827);
}

.perfil-titulo {
    font-size: 14px;
    color: var(--mh-text-soft, #4B5563);
}

.perfil-bio {
    margin-top: 6px;
    font-size: 13px;
    color: var(--mh-text-soft, #6B7280);
}

/* ===== BLOQUE CTA ===== */

.mh-block-cta {
    text-align: center;
}

.mh-cta-button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--mh-primary, #1E3A8A), var(--mh-secondary, #3B82F6));
    color: #F9FAFB;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, opacity 0.12s ease-out;
    touch-action: manipulation;
}

.mh-cta-button:active {
    transform: scale(0.97) translateY(1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    opacity: 0.92;
}

/* ===== BLOQUE REDES ===== */

.mh-block-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.redes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.redes-list li {
    list-style: none;      /* por si acaso el navegador insiste */
}
.redes-item {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mh-chip-bg, #EFF6FF);
    color: var(--mh-chip-text, #1D4ED8);
    text-decoration: none;
}

.redes-item-icon {
    font-size: 13px;
}

.redes-item-label {
    font-weight: 500;
}

/* ===== BLOQUE TESTIMONIO ===== */

.mh-block-testimonio {
    position: relative;
    padding-top: 20px;
}

.testimonio-texto {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}
.testimonio-texto:not(:empty)::before {
    content: "“";
    margin-right: 2px;
}
.testimonio-texto:not(:empty)::after {
    content: "”";
    margin-left: 2px;
}

.testimonio-autor {
    margin-top: 8px;
    font-size: 12px;
    color: #6B7280;
    text-align: right;
}

/* Carrusel de testimonios: puntitos */

.testimonio-dots {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.testimonio-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(148, 163, 184, 0.7); /* gris suave */
    cursor: pointer;
    opacity: 0.7;
}

.testimonio-dot-active {
    width: 10px;
    border-radius: 999px;
    background: var(--mh-primary, #1E3A8A);
    opacity: 1;
}

/* ===== FOOTER ===== */

.mh-footer {
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--mh-background, #F9FAFB);
    text-align: center;
}

.mh-footer-text {
    font-size: 11px;
    color: var(--mh-text-soft, #9CA3AF);
}

/* ===== PALETA (hook para futuro) ===== */

.palette-confianza_tech {
    --mh-primary: #1E3A8A;
    --mh-secondary: #3B82F6;
    --mh-background: #F9FAFB;
    --mh-text: #111827;
    --mh-accent: #F97316;
}
.palette-oscuro_moderno {
    --mh-primary: #0F172A;
    --mh-secondary: #38BDF8;
    --mh-background: #020617;
    --mh-text: #F9FAFB;
    --mh-accent: #F97316;
}

.palette-creativo {
    --mh-primary: #6D28D9;
    --mh-secondary: #F97316;
    --mh-background: #FEF3C7;
    --mh-text: #111827;
    --mh-accent: #10B981;
}

/* ===== RESPONSIVE SENCILLO ===== */

@media (min-width: 480px) {
    .mh-main {
        max-width: 100%;
        margin: 0 auto 16px;
    }
}
@media (min-width: 768px) {
    /* Logo más grande en escritorio */
    .perfil-logo {
        max-width: 240px;
        max-height: 96px;
    }

    /* Avatar más grande y con borde un poco más grueso */
    .perfil-avatar {
        width: 132px;
        height: 132px;
        border-width: 4px;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.45);
    }

    /* Nombre un poco más grande para balancear la tarjeta */
    .perfil-nombre {
        font-size: 22px;
    }
}

