/* ==========================================
   Portfolio - Diseño Optimizado para SEO
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #FAF9F6;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.6;
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF9F6;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* ==========================================
   Header / Navbar
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #FAF9F6;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.navbar-menu a {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.2s;
}

.navbar-menu a:hover {
    opacity: 0.6;
}

.navbar-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-link {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.navbar-link:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

.navbar-cta {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    transition: all 0.2s;
}

.navbar-cta:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* ==========================================
   Main Layout
   ========================================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 60px 80px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
}

/* ==========================================
   Left Sidebar (Sticky)
   ========================================== */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 32px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 13px;
    line-height: 1.2;
}

.profile-title {
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1.3;
}

/* ==========================================
   Right Content
   ========================================== */
.content {
    display: flex;
    flex-direction: column;
}

/* Hero / Tagline */
.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 60px;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.btn-secondary:hover {
    border-color: #1a1a1a;
}

/* ==========================================
   Section Divider
   ========================================== */
.section-divider {
    width: 100%;
    height: 1px;
    background: #e8e8e8;
    margin: 30px 0;
}

/* ==========================================
   Section Title
   ========================================== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* ==========================================
   Experience Items
   ========================================== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.experience-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a1a1a;
}

.experience-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-icon svg {
    width: 100%;
    height: 100%;
}

.experience-info {
    flex: 1;
}

.experience-role {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.experience-company {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.experience-period {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

/* ==========================================
   Awards Items
   ========================================== */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.award-item:hover {
    border-color: #ddd;
}

.award-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.award-icon span {
    font-family: 'Source Serif 4', serif;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.award-info {
    flex: 1;
}

.award-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.award-org {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.award-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.award-date {
    font-size: 13px;
    color: #888;
}

.award-arrow {
    width: 20px;
    height: 20px;
    color: #888;
}

/* ==========================================
   Videos
   ========================================== */
.videos-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.video-card:hover {
    border-color: #ddd;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.video-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ==========================================
   Services / What I Do
   ========================================== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.service-item:hover {
    border-color: #ddd;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a1a1a;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ==========================================
   Projects / Selected Works
   ========================================== */
.projects-section {
    margin-top: 20px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.project-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f3f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-info {
    padding: 24px;
}

.project-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ==========================================
   Testimonials
   ========================================== */
.testimonials-section {
    margin-top: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #f0f0f0;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: #FFB800;
}

.testimonial-text {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.testimonial-role {
    font-size: 13px;
    color: #888;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    margin-top: 48px;
    background: #1a1a1a;
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    color: white;
    margin-bottom: 12px;
}

.contact-description {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.whatsapp-btn svg {
    width: 22px;
    height: 22px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: #1a1a1a;
    padding: 40px 60px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-name {
    font-size: 15px;
    font-weight: 500;
    color: white;
}

.footer-title {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
}

.footer-cta {
    background: white;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-cta:hover {
    background: #f0f0f0;
}

/* ==========================================
   Category Filter
   ========================================== */
.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 30px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.category-btn:hover,
.category-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 100px 40px 60px;
        gap: 60px;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .navbar {
        padding: 16px 40px;
    }
    
    .navbar-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 100px 24px 40px;
    }
    
    .navbar {
        padding: 16px 24px;
    }
    
    .hero-tagline {
        font-size: 32px;
    }
    
    .profile-name {
        font-size: 37px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-list {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 32px 24px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .project-images {
        grid-template-columns: 1fr;
    }
    
    .project-images .side-images {
        flex-direction: row;
    }
    
    .project-images .side-images .side-image {
        height: 120px;
        width: calc(50% - 4px);
    }
    
    .contact-section {
        padding: 40px 24px;
    }
}

/* ==========================================
   BioLinks Page
   ========================================== */
.biolinks-page {
    background: #FAF9F6;
}

.biolinks-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 140px 24px 60px;
}

.biolinks-header {
    text-align: center;
    margin-bottom: 60px;
}

.biolinks-avatar {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 2px solid #e8e8e8;
}

.biolinks-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biolinks-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.biolinks-title {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* Video Section */
.video-section {
    margin-bottom: 60px;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.video-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.video-container iframe {
    display: block;
    border-radius: 16px;
}

.video-description {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
    text-align: center;
    line-height: 1.5;
}

/* BioLinks Section */
.biolinks-section {
    margin-bottom: 60px;
}

.biolinks-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.biolinks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.biolink-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.biolink-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.biolink-item-highlighted {
    background: #1a1a1a;
    border: none;
    color: white;
}

.biolink-item-highlighted:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.biolink-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.biolink-icon:empty {
    display: none;
}

.biolink-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    min-width: 44px;
}

.biolink-text {
    flex: 1;
}

.biolink-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.biolink-description {
    font-size: 13px;
    opacity: 0.7;
}

.biolink-arrow {
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.biolink-item:hover .biolink-arrow {
    opacity: 1;
}

.biolink-item-highlighted .biolink-arrow {
    opacity: 0.9;
}

/* Footer */
.biolinks-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    color: #aaa;
}

/* Desktop Only View */
.biolinks-desktop-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #FAF9F6;
    padding: 40px 20px;
    text-align: center;
}

.qr-container {
    margin-bottom: 40px;
}

.qr-container img {
    width: 280px;
    height: 280px;
    border: 8px solid white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

.desktop-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.desktop-message {
    font-size: 16px;
    color: #666;
    max-width: 400px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.desktop-instruction {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

/* Hide biolinks content on desktop */
@media (min-width: 769px) {
    .biolinks-header,
    .video-section,
    .biolinks-section,
    .biolinks-footer {
        display: none;
    }
}

/* Show desktop message on desktop */
@media (max-width: 768px) {
    .biolinks-desktop-message {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .biolinks-container {
        padding: 120px 16px 40px;
    }
    
    .biolinks-avatar {
        width: 80px;
        height: 80px;
    }
    
    .biolinks-name {
        font-size: 24px;
    }
    
    .video-container iframe {
        height: 300px;
    }
}