/* =========================================
   VARIABLES & BASE CONFIG
   ========================================= */
:root {
    --bg-color: #121212;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #818cf8; /* Indigo claro */
    --border: #2d2d30;
    --card-bg: #1e1e24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    padding: 2rem 0 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* =========================================
   SECTIONS
   ========================================= */
section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-main);
}

/* =========================================
   1. SOBRE MÍ (HERO)
   ========================================= */
.about-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.greeting {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.nickname-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.highlight-text {
    color: #ff4655;
    font-weight: 700;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.description {
    font-size: 1rem;
    color: var(--text-main);
}

.about-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

@media (max-width: 600px) {
    .about-hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    .profile-image {
        width: 100px;
        height: 100px;
    }
}

/* =========================================
   2. ESTUDIOS Y CURSOS UCSP
   ========================================= */
.edu-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.courses-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.courses-list li {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.courses-list li strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* =========================================
   3. EXPERIENCIAS
   ========================================= */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    border-left: 2px solid var(--border);
    padding-left: 1.25rem;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.experience-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
}

.experience-item .date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.text-link {
    color: var(--primary);
    text-decoration: underline;
}

.text-link:hover {
    color: var(--text-main);
}

/* =========================================
   4. PÁGINAS DE AMIGOS
   ========================================= */
.friends-desc {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.friends-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.friend-link-card {
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.friend-link-card:hover {
    background-color: var(--primary);
    color: #121212;
    border-color: var(--primary);
}

.add-friend {
    border-style: dashed;
    color: var(--text-muted);
}

.add-friend:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

/* =========================================
   5. REDES Y CONTACTO
   ========================================= */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.social-btn:hover {
    opacity: 0.9;
}

.linkedin { background-color: #0077b5; }
.tracker { background-color: #ff4655; }
.github { background-color: #333333; }
.twitter { background-color: #1da1f2; }
.instagram { background-color: #e1306c; }

/* =========================================
   6. AOURUM SHOWCASE
   ========================================= */
.aourum-section {
    padding: 3rem 0;
}

.aourum-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.aourum-desc strong {
    color: var(--primary);
}

/* Browser Mockup Tabs */
.browser-tabs {
    display: flex;
    background-color: #0d0d0f;
    padding: 0.5rem 0.5rem 0 0.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
}

.browser-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    outline: none;
}

.browser-tab:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.browser-tab.active {
    background-color: #16161a;
    color: var(--primary);
    border: 1px solid var(--border);
    border-bottom: 1px solid #16161a;
    margin-bottom: -1px;
}

/* Browser Mockup */
.browser-mockup {
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.browser-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #16161a;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.browser-buttons {
    display: flex;
    gap: 0.35rem;
}

.browser-buttons .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.browser-buttons .red { background-color: #ff5f56; }
.browser-buttons .yellow { background-color: #ffbd2e; }
.browser-buttons .green { background-color: #27c93f; }

.browser-address {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lock-icon {
    font-size: 0.75rem;
    color: #27c93f;
}

.browser-address input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    pointer-events: none;
}

.browser-actions {
    display: flex;
    align-items: center;
}

.open-tab-btn {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.open-tab-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.browser-body {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #ffffff;
}

.browser-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .browser-body {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .browser-body {
        height: 300px;
    }
    .browser-address {
        display: none;
    }
    .browser-header {
        justify-content: space-between;
    }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
