/* ========================================
   PORTFOLIO ÁNGEL ROMÁN — MINIMALISTA
   Diseño: Editorial Escandinavo
   Paleta: Crema #FAFAF7, Carbón #1C1C1E, Terracota #C4714A
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    background-color: #FAFAF7;
    color: #1C1C1E;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== LAYOUT PRINCIPAL ========== */

.container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    border-right: 1px solid #E8E8E8;
    background-color: #FAFAF7;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.surname {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.divider {
    width: 2rem;
    height: 1px;
    background-color: #C4714A;
    margin: 1rem 0;
}

.title {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C4714A;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.specialty {
    font-size: 0.7rem;
    color: #999;
    font-weight: 300;
}

/* NAVEGACIÓN */
.nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2rem 0;
}

.nav-link {
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link::before {
    content: '';
    display: block;
    width: 0.75rem;
    height: 1px;
    background-color: #E8E8E8;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #1C1C1E;
}

.nav-link:hover::before {
    width: 1.25rem;
    background-color: #C4714A;
}

.nav-link.active {
    color: #1C1C1E;
    font-weight: 500;
}

.nav-link.active::before {
    width: 1.5rem;
    background-color: #C4714A;
}

/* CONTACTO EN SIDEBAR */
.sidebar-footer {
    margin-top: auto;
}

.contact-link {
    display: block;
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.contact-link:hover {
    color: #C4714A;
}

.location {
    font-size: 0.7rem;
    color: #999;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* CONTENIDO PRINCIPAL */
.main-content {
    margin-left: 280px;
    flex: 1;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.97);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(250, 250, 247, 0.6), transparent);
}

/* CONTENIDO */
.content {
    padding: 3rem 4rem;
    max-width: 900px;
}

/* SECCIONES */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.section-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-style: italic;
    color: #E8E8E8;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C4714A;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1C1C1E;
}

.section-text {
    font-size: 0.95rem;
    color: #1C1C1E;
    opacity: 0.85;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* COMPETENCIAS */
.skills-group {
    margin-bottom: 2rem;
}

.skills-category {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border: 1px solid #E8E8E8;
    color: #666;
    transition: all 0.2s ease;
    cursor: pointer;
}

.skill-tag:hover {
    border-color: #C4714A;
    color: #C4714A;
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.soft-skill {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    background-color: #F0F0F0;
    color: #1C1C1E;
    transition: all 0.2s ease;
    cursor: pointer;
}

.soft-skill:hover {
    background-color: #C4714A;
    color: white;
}

/* ESPECIALIDADES DESTACADAS */
.specialty-tag {
    background: linear-gradient(135deg, #C4714A 0%, #A85A3A 100%);
    color: white;
    border-color: #C4714A;
    font-weight: 500;
}

.specialty-tag:hover {
    border-color: #A85A3A;
    opacity: 0.9;
}

/* TARJETAS DE PROYECTOS */
.projects-section {
    margin-top: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-card {
    border: 1px solid #E8E8E8;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #FAFAF7;
}

.project-card:hover {
    border-color: #C4714A;
    box-shadow: 0 4px 12px rgba(196, 113, 74, 0.1);
    transform: translateY(-2px);
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1C1C1E;
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.6;
}

/* TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #E8E8E8;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -0.4rem;
    top: 0.5rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    border: 1px solid #C4714A;
    background-color: #FAFAF7;
}

.timeline-year {
    font-size: 0.75rem;
    color: #C4714A;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-width: 60px;
    flex-shrink: 0;
}

.timeline-role {
    font-weight: 500;
    font-size: 0.95rem;
    color: #1C1C1E;
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.6;
}

/* EDUCACIÓN */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    border-left: 1px solid #E8E8E8;
    padding-left: 1.5rem;
    transition: border-color 0.3s ease;
}

.education-item:hover {
    border-left-color: #C4714A;
}

.education-period {
    font-size: 0.75rem;
    color: #C4714A;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.education-degree {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1C1C1E;
    margin-bottom: 0.25rem;
}

.education-institution {
    font-size: 0.8rem;
    color: #999;
}

.education-note {
    font-size: 0.75rem;
    color: #C4714A;
    font-style: italic;
    margin-top: 0.5rem;
}

/* IDIOMAS */
.languages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.language-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #1C1C1E;
}

.language-level {
    font-size: 0.75rem;
    color: #999;
    font-weight: 300;
}

.language-bar {
    width: 100%;
    height: 1px;
    background-color: #E8E8E8;
    position: relative;
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background-color: #C4714A;
    transition: width 1s ease-out;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 3rem 0;
    margin: 2rem 0;
}

.cta-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    margin: 1rem 0;
    line-height: 1.3;
}

.cta-text {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    border: 2px solid #1C1C1E;
    color: #1C1C1E;
    text-decoration: none;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    background-color: #FAFAF7;
}

.cta-button:hover {
    background-color: #1C1C1E;
    color: #FAFAF7;
    transform: translateY(-2px);
}

.cta-button-secondary {
    border-color: #C4714A;
    color: #C4714A;
}

.cta-button-secondary:hover {
    background-color: #C4714A;
    color: white;
    border-color: #C4714A;
}

/* FOOTER */
.footer {
    border-top: 1px solid #E8E8E8;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    margin: 0;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
        padding: 2rem 1.5rem;
    }

    .main-content {
        margin-left: 250px;
    }

    .content {
        padding: 2rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #E8E8E8;
        padding: 2rem;
        z-index: 50;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
    }

    .sidebar-header {
        flex: 1;
    }

    .nav {
        flex: 1;
        flex-direction: row;
        gap: 1.5rem;
        margin: 0;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .sidebar-footer {
        flex: 1;
        margin-top: 0;
    }

    .hero {
        height: 200px;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .section-header {
        gap: 1rem;
    }

    .section-number {
        font-size: 2.5rem;
    }

    .section-header h3 {
        font-size: 1.4rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sidebar-content {
        flex-direction: column;
    }

    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sidebar-footer {
        margin-top: 1rem;
    }

    .content {
        padding: 1.5rem 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .section-number {
        font-size: 2rem;
    }

    .section-header h3 {
        font-size: 1.2rem;
    }

    .skill-items,
    .soft-skills {
        gap: 0.4rem;
    }

    .skill-tag,
    .soft-skill {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }
}
