/* ==========================================
   SECCIÓN SOBRE MÍ - ESTILO MODERNO UNIFICADO
   Diseño juvenil con grid blanco y efectos de grafito plateado
   ========================================== */

#sobre-mi {
    min-height: 100vh;
    padding: 80px 20px;
    position: relative;

    /* Fondo blanco limpio con grid sutil - igual que Hero */
    background: #fafafa;

    /* Grid cuadriculado estilo cuaderno técnico + textura de grafito */
    background-image:
        /* Textura granulada de grafito (nueva) */
        radial-gradient(circle at 18% 22%, rgba(200, 200, 200, 0.08) 0%, transparent 1%),
        radial-gradient(circle at 38% 48%, rgba(190, 190, 190, 0.06) 0%, transparent 1%),
        radial-gradient(circle at 68% 28%, rgba(185, 185, 185, 0.07) 0%, transparent 1%),
        radial-gradient(circle at 88% 65%, rgba(195, 195, 195, 0.08) 0%, transparent 1%),
        radial-gradient(circle at 28% 78%, rgba(188, 188, 188, 0.06) 0%, transparent 1%),
        radial-gradient(circle at 78% 85%, rgba(192, 192, 192, 0.07) 0%, transparent 1%),
        /* Líneas de grid horizontal */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 39px,
            rgba(200, 200, 210, 0.18) 39px,
            rgba(200, 200, 210, 0.18) 40px
        ),
        /* Líneas de grid vertical */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 39px,
            rgba(200, 200, 210, 0.18) 39px,
            rgba(200, 200, 210, 0.18) 40px
        ),
        /* Textura de papel sutil */
        radial-gradient(circle at 30% 40%, rgba(245, 245, 245, 0.6) 0%, transparent 3%),
        radial-gradient(circle at 70% 60%, rgba(240, 240, 240, 0.4) 0%, transparent 2%);

    background-size: 8px 8px, 12px 12px, 10px 10px, 9px 9px, 11px 11px, 7px 7px, 40px 40px, 40px 40px, 25px 25px, 20px 20px;
    overflow: hidden;
}

/* === ✨ EFECTOS DE GRAFITO PLATEADO INTENSIFICADOS === */
#sobre-mi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Trazos de grafito con shimmer plateado - más intensos */
        radial-gradient(ellipse 150px 3px at 25% 35%, rgba(192, 192, 192, 0.3), transparent),
        radial-gradient(ellipse 120px 4px at 60% 70%, rgba(184, 184, 184, 0.28), rgba(200, 200, 200, 0.15) 50%, transparent),
        radial-gradient(ellipse 170px 3px at 75% 25%, rgba(176, 176, 176, 0.26), transparent),
        radial-gradient(ellipse 130px 4px at 35% 75%, rgba(188, 188, 188, 0.3), transparent),
        /* Trazos adicionales */
        radial-gradient(ellipse 100px 2px at 45% 50%, rgba(180, 180, 180, 0.24), transparent),
        radial-gradient(ellipse 90px 2px at 55% 40%, rgba(190, 190, 190, 0.22), transparent),
        /* Brillo plateado más visible */
        radial-gradient(circle at 40% 60%, rgba(220, 220, 220, 0.1), transparent 50%),
        radial-gradient(circle at 65% 35%, rgba(210, 210, 210, 0.08), transparent 50%);

    background-size: 300px 200px, 250px 180px, 350px 220px, 280px 190px, 200px 150px, 180px 140px, 400px 400px, 450px 450px;
    animation: graphiteShimmer 18s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
    will-change: opacity;
    z-index: 0;
}

/* === ✏️ SOMBREADO CRUZADO ARTÍSTICO (CROSS-HATCHING) === */
#sobre-mi::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;

    /* Técnica de cross-hatching con líneas diagonales */
    background-image:
        /* Hatching diagonal 45° */
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 20px,
            rgba(140, 140, 150, 0.1) 20px,
            rgba(140, 140, 150, 0.1) 21px,
            transparent 21px,
            transparent 28px
        ),
        /* Hatching diagonal -45° (cruzado) */
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 25px,
            rgba(130, 130, 140, 0.08) 25px,
            rgba(130, 130, 140, 0.08) 26px,
            transparent 26px,
            transparent 35px
        ),
        /* Hatching diagonal 30° (tono medio) */
        repeating-linear-gradient(
            30deg,
            transparent 0px,
            transparent 38px,
            rgba(150, 150, 160, 0.06) 38px,
            rgba(150, 150, 160, 0.06) 39px,
            transparent 39px,
            transparent 50px
        );

    background-size: 100% 100%;
    mix-blend-mode: multiply;
}

@keyframes graphiteShimmer {
    0%, 100% { opacity: 0.65; }
    25% { opacity: 0.85; }
    50% { opacity: 0.5; }
    75% { opacity: 0.75; }
}

/* Partículas de pintura removidas - reemplazadas por grafito */
.paint-particles {
    display: none;
}

/* === 📝 HEADER ARTÍSTICO MODERNO === */
.artist-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.sketch-title {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: -0.02em;

    /* Efecto de grafito plateado con brillo */
    text-shadow:
        1px 1px 0px rgba(192, 192, 192, 0.3),
        2px 2px 4px rgba(180, 180, 190, 0.2),
        3px 3px 8px rgba(200, 200, 210, 0.15),
        4px 4px 12px rgba(210, 210, 220, 0.1);
}

/* Línea de subrayado estilo grafito */
.sketch-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(180, 180, 190, 0.4) 10%,
        rgba(192, 192, 192, 0.7) 30%,
        rgba(200, 200, 200, 0.8) 50%,
        rgba(192, 192, 192, 0.7) 70%,
        rgba(180, 180, 190, 0.4) 90%,
        transparent
    );
    border-radius: 2px;
    box-shadow:
        0 1px 2px rgba(220, 220, 220, 0.4),
        0 -1px 1px rgba(170, 170, 180, 0.3);
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: #5a5a5a;
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 400;
}

.pencil-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(180, 180, 190, 0.6),
        rgba(192, 192, 192, 0.8),
        rgba(180, 180, 190, 0.6),
        transparent
    );
    margin: 20px auto;
    position: relative;
    border-radius: 1px;
    box-shadow: 0 1px 1px rgba(200, 200, 210, 0.3);
}

/* === 📓 CUADERNO DE BOCETOS MODERNO === */
.sketchbook {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    margin-bottom: 50px;
    position: relative;

    /* Borde sutil de papel */
    border: 1px solid rgba(200, 200, 210, 0.3);

    /* Sombra suave moderna */
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);

    z-index: 1;

    /* Grid de fondo estilo cuaderno */
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 39px,
            rgba(200, 200, 210, 0.1) 39px,
            rgba(200, 200, 210, 0.1) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 39px,
            rgba(200, 200, 210, 0.08) 39px,
            rgba(200, 200, 210, 0.08) 40px
        );
    background-size: 40px 40px, 40px 40px;
}

/* Línea lateral sutil (margen del cuaderno) */
.sketchbook::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(192, 192, 192, 0.3) 10%,
        rgba(180, 180, 190, 0.4) 50%,
        rgba(192, 192, 192, 0.3) 90%,
        transparent
    );
    border-radius: 1px;
}

/* Efecto de brillo plateado en el borde */
.sketchbook::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(220, 220, 220, 0.15) 0%,
        transparent 30%,
        transparent 70%,
        rgba(200, 200, 210, 0.1) 100%
    );
    pointer-events: none;
}

.story-content {
    position: relative;
    z-index: 2;
    padding-left: 50px;
}

.story-paragraph {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.8;
    color: #2c2c2c;
    margin-bottom: 25px;
    text-align: left;
    position: relative;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-weight: 400;
}

.highlight {
    background: linear-gradient(120deg,
        rgba(200, 200, 210, 0.25) 0%,
        rgba(192, 192, 192, 0.3) 50%,
        rgba(200, 200, 210, 0.25) 100%
    );
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow:
        inset 0 1px 0 rgba(220, 220, 220, 0.3),
        0 1px 2px rgba(180, 180, 190, 0.1);
}

/* Trazos de lápiz decorativos */
.pencil-sketch {
    position: absolute;
    opacity: 0.3;
    pointer-events: none;
}

.sketch-heart {
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #8b4513;
    animation: pulse 3s ease-in-out infinite;
}

.sketch-brush {
    bottom: 20px;
    left: 50px;
    font-size: 2.5rem;
    color: #8b4513;
    transform: rotate(-15deg);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === 📅 TIMELINE ARTÍSTICA MODERNA === */
.timeline {
    margin: 60px 0;
    position: relative;
    z-index: 1;
}

.timeline-title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 50px;
    position: relative;
    letter-spacing: -0.02em;

    /* Efecto de grafito plateado */
    text-shadow:
        1px 1px 0px rgba(192, 192, 192, 0.3),
        2px 2px 4px rgba(180, 180, 190, 0.2),
        3px 3px 8px rgba(200, 200, 210, 0.15);
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(180, 180, 190, 0.4),
        rgba(192, 192, 192, 0.6) 30%,
        rgba(200, 200, 200, 0.7) 50%,
        rgba(192, 192, 192, 0.6) 70%,
        rgba(180, 180, 190, 0.4)
    );
    border-radius: 2px;
    box-shadow:
        0 0 8px rgba(200, 200, 210, 0.3),
        inset 0 1px 0 rgba(220, 220, 220, 0.4);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-content {
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 12px;
    width: 45%;
    border: 1px solid rgba(200, 200, 210, 0.3);
    transition: all 0.3s ease;

    /* Sombra moderna sutil */
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);

    /* Grid de fondo sutil */
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 19px,
            rgba(200, 200, 210, 0.05) 19px,
            rgba(200, 200, 210, 0.05) 20px
        );
    background-size: 20px 20px;
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(180, 180, 190, 0.6);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 0 0 2px rgba(192, 192, 192, 0.2);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-year {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #2c2c2c;
    margin-bottom: 12px;
    letter-spacing: -0.01em;

    /* Efecto de grafito */
    text-shadow:
        1px 1px 0 rgba(192, 192, 192, 0.2),
        2px 2px 3px rgba(180, 180, 190, 0.15);
}

.timeline-event {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.timeline-description {
    color: #5a5a5a;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    line-height: 1.6;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg,
        rgba(200, 200, 200, 0.9),
        rgba(192, 192, 192, 1),
        rgba(180, 180, 190, 0.85)
    );
    border-radius: 50%;
    border: 3px solid #fafafa;
    z-index: 2;

    /* Brillo plateado */
    box-shadow:
        0 0 0 2px rgba(180, 180, 190, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(220, 220, 220, 0.5);
}

/* === 📊 CONTADORES ESTADÍSTICAS MODERNAS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Borde sutil */
    border: 1px solid rgba(200, 200, 210, 0.25);

    /* Sombra moderna */
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);

    /* Grid de fondo muy sutil */
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 19px,
            rgba(200, 200, 210, 0.04) 19px,
            rgba(200, 200, 210, 0.04) 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 19px,
            rgba(200, 200, 210, 0.03) 19px,
            rgba(200, 200, 210, 0.03) 20px
        );
    background-size: 20px 20px, 20px 20px;
}

/* Efecto de brillo plateado en hover */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(220, 220, 220, 0.15) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(180, 180, 190, 0.5);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.06),
        0 0 0 2px rgba(192, 192, 192, 0.2);
}

.stat-number {
    font-size: clamp(3rem, 8vw, 4rem);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;

    /* Efecto de grafito plateado brillante */
    text-shadow:
        1px 1px 0 rgba(192, 192, 192, 0.25),
        2px 2px 4px rgba(180, 180, 190, 0.18),
        3px 3px 8px rgba(200, 200, 210, 0.12);
}

.stat-label {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
    color: #2c2c2c;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stat-sublabel {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: #6a6a6a;
    font-style: italic;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.stat-icon {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    filter: grayscale(0.2) opacity(0.85);
}

/* Responsive */
@media (max-width: 768px) {
    .sketch-title {
        font-size: 2.5rem;
    }

    .sketchbook {
        padding: 30px 20px;
    }

    .story-content {
        padding-left: 20px;
    }

    .story-paragraph {
        font-size: 1rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* ==========================================
   ESTILOS EXTENDIDOS PARA TIMELINE MEJORADA
   ========================================== */

/* Timeline item special (Piano) */
.timeline-item.special .timeline-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-left: 4px solid #764ba2;
}

.timeline-item.special .timeline-dot.musical {
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.5);
}

/* Timeline item highlight (Óleo) */
.timeline-item.highlight .timeline-content {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border-left: 4px solid #FFD700;
}

.timeline-item.highlight .timeline-dot.featured {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
        transform: scale(1.1);
    }
}

/* Timeline item current (Presente) */
.timeline-item.current .timeline-content {
    background: linear-gradient(135deg, #e8f4f8 0%, #fff 100%);
    border-left: 4px solid #4CAF50;
}

.timeline-item.current .timeline-dot.pulse {
    background: linear-gradient(135deg, #4CAF50, #45A049);
    animation: pulse-green 1.5s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
        transform: scale(1.15);
    }
}

/* Timeline gallery section */
.timeline-gallery {
    margin-top: 1rem;
}

.timeline-note {
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.view-gallery-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Timeline highlight badge */
.timeline-highlight {
    margin-top: 1rem;
}

.highlight-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

/* Timeline stats (para período actual) */
.timeline-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 10px;
}

.timeline-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.timeline-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
    font-family: 'Playfair Display', serif;
}

.timeline-stat .stat-label {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive para timeline mejorada */
@media (max-width: 768px) {
    .timeline-year {
        font-size: 1.3rem;
    }

    .timeline-event {
        font-size: 1rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }

    .view-gallery-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .timeline-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-stat .stat-value {
        font-size: 1.5rem;
    }

    .highlight-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}