/* ============================================================
   public/css/sobre-nosotros.css
   Estilos específicos de /sobre-nosotros
   Reutiliza tokens de index.css
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   1. RESET PARA LA PÁGINA
   ═══════════════════════════════════════════════════════════ */
body {
    background: var(--bg-canvas);
    color: var(--text-1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Cursor normal (sin custom cursor en esta página) ─── */
body { cursor: auto; }
button, a { cursor: pointer; }

/* ─── Header no fijo (a diferencia del index) ─── */
header {
    position: relative;
    top: auto;
    padding: 16px 5%;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

/* ═══════════════════════════════════════════════════════════
   2. HERO
   ═══════════════════════════════════════════════════════════ */
.about-main {
    display: block;
    min-height: 60vh;
    padding-bottom: 0;
}

.about-hero {
    padding: 80px 5% 60px;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.about-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

/* ─── Foto con anillo dorado girando ─── */
.about-hero-foto {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-foto-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--accent),
        var(--accent-bright),
        var(--accent-deep),
        var(--accent)
    );
    animation: aboutSpinRing 14s linear infinite;
    z-index: 1;
    opacity: 0.8;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

[data-theme="light"] .about-hero-foto-ring {
    opacity: 0.55;
}

@keyframes aboutSpinRing {
    to { transform: rotate(360deg) translateZ(0); }
}

.about-hero-foto img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-surface);
    background: var(--bg-elevated);
    position: relative;
    z-index: 2;
    aspect-ratio: 1 / 1;
    display: block;
    transition: transform 0.4s var(--ease-out);
}

.about-hero-foto:hover img {
    transform: scale(1.04);
}

/* ─── Texto ─── */
.about-hero-texto {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.about-hero-titulo {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin: 0;
}

.about-hero-titulo em {
    font-style: italic;
    color: var(--accent);
}

.about-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
    margin: 0;
    max-width: 520px;
}

.about-hero-sellos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.about-sello {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   3. STATS
   ═══════════════════════════════════════════════════════════ */
.about-stats-section {
    padding: 40px 5% 60px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.about-stats {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.about-stat-num {
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.about-stat-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   4. HISTORIA
   ═══════════════════════════════════════════════════════════ */
.about-historia {
    padding: 100px 5% 80px;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-historia-titulo {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-1);
    margin: 0;
}

.about-historia-titulo em {
    font-style: italic;
    color: var(--accent);
}

.about-historia-contenido {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-historia-contenido p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-2);
    margin: 0;
}

.about-historia-contenido p strong {
    color: var(--text-1);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   5. CREDENCIALES
   ═══════════════════════════════════════════════════════════ */
.about-credenciales {
    padding: 80px 5% 100px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-credenciales-titulo {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-1);
    margin: 0 0 16px;
}

.about-credenciales-titulo em {
    font-style: italic;
    color: var(--accent);
}

.about-credenciales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.about-credencial-card {
    padding: 28px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s var(--ease);
    will-change: transform, box-shadow;
}

.about-credencial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.about-credencial-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-lg);
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.about-credencial-nombre {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-1);
    margin: 0;
}

.about-credencial-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   6. FILOSOFÍA
   ═══════════════════════════════════════════════════════════ */
.about-filosofia {
    padding: 100px 5% 80px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.about-quote {
    margin: 0;
    padding: 32px 40px;
    border-left: 4px solid var(--accent);
    background: var(--bg-elevated);
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
    text-align: left;
    max-width: 720px;
    position: relative;
}

.about-quote::before {
    content: '"';
    position: absolute;
    top: -20px; left: 20px;
    font-family: 'Instrument Serif', serif;
    font-size: 80px;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    pointer-events: none;
}

.about-quote p {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.4;
    color: var(--text-1);
    margin: 0 0 16px;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
}

.about-quote cite {
    display: block;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 13px;
    color: var(--text-3);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-filosofia-nota {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-2);
    margin: 0;
    max-width: 640px;
}

/* ═══════════════════════════════════════════════════════════
   7. CTA FINAL
   ═══════════════════════════════════════════════════════════ */
.about-cta {
    padding: 80px 5% 100px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
}

.about-cta-titulo {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-1);
    margin: 0;
}

.about-cta-titulo em {
    font-style: italic;
    color: var(--accent);
}

.about-cta-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0 0 16px;
    max-width: 500px;
}

.about-cta-botones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    min-height: 48px;
    border-radius: var(--r-md);
    background: var(--text-1);
    color: var(--bg-canvas);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    will-change: transform, box-shadow;
}

[data-theme="light"] .btn-cta-primary {
    background: #0F0F14;
    color: #FFFFFF;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    min-height: 48px;
    border-radius: var(--r-md);
    background: transparent;
    border: 1.5px solid var(--border-default);
    color: var(--text-1);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    will-change: transform;
}

.btn-cta-outline:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
    padding: 32px 5%;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}
footer p { font-size: 12px; color: var(--text-3); }
footer p strong {
    color: var(--accent);
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   9. RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    header { padding: 12px 4%; gap: 8px; }
    .brand-name { font-size: 17px; }
    .brand-user { font-size: 9px; }
    .header-actions .btn span { display: none; }
    .header-actions .btn { padding: 9px 12px; }
    .header-actions .icon-btn { width: 38px; height: 38px; }

    .about-hero { padding: 50px 5% 40px; }
    .about-hero-container {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }
    .about-hero-foto { width: 160px; height: 160px; }
    .about-hero-texto { align-items: center; }
    .about-hero-desc { text-align: center; }
    .about-hero-sellos { justify-content: center; }

    .about-stats-section { padding: 32px 5% 40px; }
    .about-stats { gap: 16px; }
    .about-stat-num { font-size: 28px; }
    .about-stat-label { font-size: 10px; }

    .about-historia { padding: 60px 5% 50px; gap: 16px; }
    .about-historia-titulo { font-size: 24px; }
    .about-historia-contenido p { font-size: 15px; line-height: 1.7; }

    .about-credenciales { padding: 50px 5% 60px; }
    .about-credenciales-titulo { font-size: 24px; }
    .about-credenciales-grid { grid-template-columns: 1fr; gap: 16px; }
    .about-credencial-card { padding: 22px 20px; }
    .about-credencial-nombre { font-size: 19px; }
    .about-credencial-icon { width: 46px; height: 46px; font-size: 20px; }

    .about-filosofia { padding: 60px 5% 50px; gap: 24px; }
    .about-quote { padding: 24px 22px; }
    .about-quote p { font-size: 18px; }
    .about-quote::before { font-size: 60px; top: -14px; left: 14px; }

    .about-cta { padding: 50px 5% 60px; }
    .about-cta-titulo { font-size: 24px; }
    .about-cta-botones { flex-direction: column; width: 100%; max-width: 320px; }
    .about-cta-botones a { width: 100%; }
}

@media (max-width: 480px) {
    .about-hero-foto { width: 140px; height: 140px; }
    .about-stat-num { font-size: 24px; }
    .about-stat-label { font-size: 9px; letter-spacing: 0.05em; }
    .about-sello { font-size: 11px; padding: 5px 11px; }
    .about-quote { padding: 20px 18px; }
    .about-quote p { font-size: 16px; }
    .about-quote cite { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   10. REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .about-hero-foto-ring { animation: none; }
    .about-hero-foto:hover img { transform: none; }
    .about-credencial-card:hover { transform: none; }
    .btn-cta-primary:hover,
    .btn-cta-outline:hover { transform: none; }
}