/* ═══════════════════════════════════════════════════════════════
   Nosotros — capa de diseño propia (solo se carga en esa plantilla).
   Mobile-first: base para teléfono, se amplía con min-width.
   Objetivo: confianza — cara, historia legible, prueba real y
   qué pasa cuando escribes. Reutiliza tokens de main.css.
   ═══════════════════════════════════════════════════════════════ */

/* Estrellas y "G" compartidas */
.ab-stars { display: inline-flex; gap: 1px; color: #fbbc04; }
.ab-stars svg { width: 14px; height: 14px; }
.ab-g { display: inline-grid; flex-shrink: 0; width: 18px; height: 18px; }
.ab-g svg { width: 100%; height: 100%; }

/* ═══ Hero: identidad (foto + nombre + nota de Google) ═══ */
.ab-hero .h1-grad { display: inline; }

.ab-id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(7, 87, 248, 0.06), rgba(7, 87, 248, 0.01));
}

.ab-id-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(7, 87, 248, 0.35), 0 10px 22px rgba(7, 87, 248, 0.25);
}

.ab-id-who { display: grid; flex: 1 1 140px; min-width: 0; line-height: 1.25; }
.ab-id-who strong { color: var(--ink); font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; }
.ab-id-who span { color: var(--muted); font-size: 12.5px; font-weight: 550; }

.ab-id-google {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(9, 32, 88, 0.06);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ab-id-google strong { font-size: 14px; font-weight: 800; }

@media (hover: hover) {
    .ab-id-google:hover { border-color: rgba(7, 87, 248, 0.4); transform: translateY(-1px); }
}

.ab-hero .hero-ctas { margin-top: 20px; }

/* ═══ Mi historia ═══ */
.ab-story-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    max-width: 1120px;
    margin-inline: auto;
}

/* Ficha del fundador */
.ab-founder {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.ab-founder-photo {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-soft);
}

.ab-founder-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
}

.ab-founder-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(8, 20, 44, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.ab-founder-badge .live-dot { width: 8px; height: 8px; margin: 0; }

.ab-founder-body { padding: 20px 20px 22px; }

.ab-founder-body h3 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ab-founder-role { margin: 2px 0 0; color: var(--accent); font-size: 13.5px; font-weight: 700; }

.ab-founder-facts {
    display: grid;
    gap: 9px;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.ab-founder-facts li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(5, 11, 24, 0.78);
    font-size: 13.5px;
    line-height: 1.4;
}

.ab-founder-facts svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }

.ab-founder-links-title {
    margin: 18px 0 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ab-founder-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-founder-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ab-founder-links a svg { color: var(--accent); }

@media (hover: hover) {
    .ab-founder-links a:hover { border-color: rgba(7, 87, 248, 0.45); color: var(--accent); }
}

/* Timeline de hitos */
.ab-timeline {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Raíl vertical que une los hitos */
.ab-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 21px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(7, 87, 248, 0.12), rgba(7, 87, 248, 0.5));
}

.ab-milestone {
    position: relative;
    padding: 0 0 0 60px;
}

.ab-milestone-dot {
    position: absolute;
    top: 14px;
    left: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 10px 22px rgba(9, 32, 88, 0.08);
}

.ab-milestone--now .ab-milestone-dot {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #4d8dff);
    color: #fff;
    box-shadow: 0 10px 24px rgba(7, 87, 248, 0.35);
}

.ab-milestone-when,
.ab-milestone h3,
.ab-milestone > p:last-child { margin: 0; }

.ab-milestone-when {
    padding-top: 14px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ab-milestone h3 {
    margin-top: 3px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.ab-milestone > p:last-child {
    margin-top: 6px;
    color: rgba(5, 11, 24, 0.68);
    font-size: 14.5px;
    line-height: 1.55;
}

.ab-milestone > p:last-child strong { color: var(--ink); font-weight: 700; }

.ab-milestone + .ab-milestone { padding-top: 6px; }

/* Cita del fundador */
.ab-quote {
    position: relative;
    margin: 26px 0 0;
    padding: 24px 22px 20px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(98, 160, 255, 0.35), transparent 45%),
        linear-gradient(135deg, #0b1c4f, #0757f8);
    color: #fff;
    box-shadow: 0 24px 48px rgba(7, 47, 140, 0.25);
}

.ab-quote::before {
    content: '\201C';
    position: absolute;
    top: -6px;
    right: 18px;
    color: rgba(255, 255, 255, 0.16);
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
}

.ab-quote p {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.ab-quote footer {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
}

.ab-quote footer img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.ab-quote footer span { display: grid; color: rgba(255, 255, 255, 0.72); font-size: 12.5px; line-height: 1.3; }
.ab-quote footer strong { color: #fff; font-size: 14px; }

/* ═══ Reseñas: lo que dicen de trabajar conmigo ═══ */
.ab-reviews {
    background:
        radial-gradient(600px 280px at 50% 0%, rgba(7, 87, 248, 0.06), transparent 70%),
        var(--surface-soft);
}

.ab-review-grid {
    display: grid;
    gap: 14px;
    max-width: 1120px;
    margin-inline: auto;
}

.ab-review {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px 20px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 14px 30px rgba(9, 32, 88, 0.06);
}

.ab-review-tema {
    align-self: flex-start;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ab-review blockquote { flex: 1; margin: 12px 0 0; }

.ab-review blockquote p {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.5;
}

.ab-review figcaption {
    display: grid;
    gap: 3px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.ab-review figcaption strong { color: var(--ink); font-size: 14px; }

.ab-review-src {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

.ab-review-src .ab-g { width: 14px; height: 14px; }

.ab-google-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    width: fit-content;
    max-width: 100%;
    margin: 22px auto 0;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.ab-google-link > strong { color: var(--ink); font-size: 15px; }

@media (hover: hover) {
    .ab-google-link:hover { border-color: rgba(26, 115, 232, 0.45); color: #1a73e8; }
}

/* ═══ Cómo trabajo: principios + primeros pasos (una sola sección) ═══ */
.ab-how-grid {
    display: grid;
    gap: 18px;
    max-width: 1080px;
    margin-inline: auto;
}

/* Principios: filas compactas de cristal */
.ab-principles {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-principles li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.5;
}

.ab-principles strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ab-principle-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(127, 176, 255, 0.28);
    border-radius: 13px;
    background: rgba(7, 87, 248, 0.22);
    color: #9cc4ff;
}

/* Panel de primeros pasos: tarjeta clara que salta sobre el fondo oscuro */
.ab-first {
    padding: 22px 20px 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(7, 87, 248, 0.10), transparent 45%),
        var(--surface);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.ab-first-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ab-first-title .live-dot { width: 9px; height: 9px; margin: 7px 0 0; }

.ab-first-steps {
    position: relative;
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Raíl que une los números */
.ab-first-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 17px;
    width: 2px;
    background: linear-gradient(180deg, rgba(7, 87, 248, 0.15), rgba(7, 87, 248, 0.55));
}

.ab-first-steps li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.ab-first-steps strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.ab-first-num {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(7, 87, 248, 0.18);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--accent);
    font-size: 15px;
    font-weight: 850;
}

.ab-first-steps li:last-child .ab-first-num {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #4d8dff);
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 87, 248, 0.35);
}

.ab-first-cta { width: 100%; margin-top: 20px; justify-content: center; }

.ab-first-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

/* ═══ CTA final con la persona ═══ */
.ab-cta-person {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.ab-cta-person img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.ab-cta-person > span { display: grid; color: rgba(255, 255, 255, 0.72); font-size: 12px; line-height: 1.25; }
.ab-cta-person strong { color: #fff; font-size: 14px; }

/* ═══ Tablet+ ═══ */
@media (min-width: 700px) {
    .ab-review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ═══ Desktop: ficha fija a la izquierda, historia a la derecha ═══ */
@media (min-width: 960px) {
    .ab-story-grid {
        grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
        gap: 48px;
        align-items: start;
    }

    .ab-founder {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }

    .ab-founder-photo { aspect-ratio: 4 / 4.2; }

    .ab-milestone h3 { font-size: 21px; }
    .ab-milestone > p:last-child { font-size: 15.5px; }

    .ab-how-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
        gap: 28px;
        align-items: center;
    }

    .ab-principles li { padding: 20px 22px; }
    .ab-first { padding: 28px 28px 24px; }

    .ab-quote { padding: 30px 32px 26px; }
    .ab-quote p { font-size: 23px; }
}
