/* ══════════════════════════════════════════════
   about.css — Estilos EXCLUSIVOS de la página About
   Se carga DESPUÉS de legal.css y sobrescribe solo aquí.
   Versión ligera: sin backdrop-filter, sin background fijo,
   animaciones solo con transform (baratas para la GPU).
══════════════════════════════════════════════ */

/* ━━━ 1. Fondo suave con dos globos flotantes ━━━ */
/* Nota: NO tocamos padding/margin de .legal-page — legal.css
   ya compensa el header fijo con padding-top:110px */
.legal-page {
    position: relative;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 38, 53, 0.04) 0%, transparent 50%);
}
.legal-page::before,
.legal-page::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(36px);
    z-index: -1;
    pointer-events: none;
}
.legal-page::before {
    top: 12%;
    inset-inline-start: -60px;
    background: rgba(245, 158, 11, 0.10);
    animation: about-float 20s ease-in-out infinite alternate;
}
.legal-page::after {
    bottom: 15%;
    inset-inline-end: -60px;
    background: rgba(139, 38, 53, 0.09);
    animation: about-float 26s ease-in-out infinite alternate-reverse;
}

/* ━━━ 2. Título y subtítulo centrados ━━━ */
.legal-title { font-size: 2.6rem; text-align: center; }
.legal-sub   { text-align: center; font-size: 16px; }

/* ━━━ 3. Cajas de estadísticas: salto + línea superior ━━━ */
.stat-box {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.35s ease, border-color 0.35s ease;
}
.stat-box:hover {
    transform: translateY(-8px);
    border-color: #8B2635;
    box-shadow: 0 16px 28px rgba(139, 38, 53, 0.10);
}
.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8B2635, #e0c98a);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-box:hover::after { opacity: 1; }
.stat-num {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stat-box:hover .stat-num { transform: scale(1.12); }

/* ━━━ 4. Nuestra historia: tarjeta destacada + línea de tiempo ━━━ */
.story-section {
    background: linear-gradient(135deg, rgba(255, 254, 245, 0.9), rgba(253, 242, 248, 0.7));
    border: 1px solid rgba(224, 201, 138, 0.55);
    border-radius: 20px;
    padding: 26px 28px;
}
.story-timeline {
    margin-top: 18px;
    border-inline-start: 2px dashed #e0c98a;
    padding-inline-start: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.story-step {
    position: relative;
    color: #4a3728;
    font-size: 15px;
    line-height: 1.7;
}
/* punto dorado sobre la línea de tiempo */
.story-step::before {
    content: '';
    position: absolute;
    inset-inline-start: -26px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8B2635;
    border: 2px solid #e0c98a;
}

/* ━━━ 5. Animaciones ━━━ */
@keyframes about-float {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(30px, 18px); }
    100% { transform: translate(-16px, 32px); }
}
/* respeto por usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .legal-page::before, .legal-page::after { animation: none; }
}

/* ━━━ 6. Móvil ━━━ */
@media (max-width: 600px) {
    .legal-title { font-size: 2rem; }
    .story-section { padding: 20px 18px; }
    .legal-page::before, .legal-page::after { width: 120px; height: 120px; }
}

/* ━━━ 7. Modo oscuro ━━━ */
[data-theme="dark"] .legal-page {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(180, 100, 220, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 38, 53, 0.06) 0%, transparent 50%);
}
[data-theme="dark"] .legal-page::before { background: rgba(180, 100, 220, 0.08); }
[data-theme="dark"] .legal-page::after  { background: rgba(240, 140, 180, 0.07); }
[data-theme="dark"] .stat-box:hover {
    border-color: #e090c0;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .story-section {
    background: linear-gradient(135deg, rgba(40, 22, 50, 0.85), rgba(30, 12, 38, 0.7));
    border-color: rgba(180, 100, 220, 0.25);
}
[data-theme="dark"] .story-step { color: #d8c8e8; }
[data-theme="dark"] .story-step::before { background: #e090c0; border-color: #5a3a70; }
[data-theme="dark"] .story-timeline { border-color: #5a3a70; }

/* ━━━ Firma del fundador (final de "Our Story") ━━━ */
.founder-sig {
    margin-top: 24px;
    text-align: right;
}
.founder-line {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}
.founder-script {
    display: inline-block;
    margin: 2px 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 26px;
    font-weight: 700;
    color: #C4973A;
    transform: rotate(-4deg);
    letter-spacing: 1px;
}
[data-theme="dark"] .founder-script { color: #eac07e; }
