/* --- VARIABLES --- */
:root {
    --bg-color: #fafafa;
    --text-color: #111111;
    --accent-color: #ff6600;
    --border-color: #e5e5e5;
    --gray-subtle: #777777;
    --card-bg: #ffffff;
    --font-family: 'Outfit', sans-serif;
}

/* --- RESET Y BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    padding: 0 24px;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

hr.divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 40px 0;
}

/* --- HEADER / NAVIGATION --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* --- HERO SECTION --- */
.hero {
    padding: 60px 0;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero h1 span.arrow {
    color: var(--accent-color);
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1rem;
    color: #333333;
    font-weight: 300;
    text-align: justify;
}

/* --- TÍTULOS DE SECCIÓN --- */
.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

/* --- PROYECTO DESTACADO --- */
.featured-video {
    width: 100%;
    max-width: 820px;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto 30px auto;
}

.featured-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.featured-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.featured-tags {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.featured-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.featured-desc {
    font-size: 0.95rem;
    color: #444444;
    margin-bottom: 20px;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tool-badge {
    font-size: 0.75rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
}

/* --- PORTAFOLIO 3D --- */
.artstation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.art-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
}

.art-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #eaeaea;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease;
}

.art-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.art-card:hover .art-thumbnail img {
    transform: scale(1.05);
}

.art-card:hover .art-thumbnail {
    border-color: var(--accent-color);
}

.art-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color);
    transition: color 0.3s;
}

.art-card:hover .art-title {
    color: var(--accent-color);
}

/* --- TRAYECTORIA PROFESIONAL --- */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 25px;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-company {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-subtle);
    margin-bottom: 10px;
}

.timeline-bullets {
    list-style: none;
}

.timeline-bullets li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #444444;
}

.timeline-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* --- EDUCACIÓN & CERTIFICACIONES --- */
.education-section {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.edu-column h3,
.edu-title {
    text-transform: uppercase;
    font-weight: 800;
}

.edu-column h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.edu-item {
    margin-bottom: 20px;
}

.edu-title {
    font-size: .95rem;
}

.edu-meta {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* --- HABILIDADES --- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* --- RECOMENDACIONES --- */
.recommendations {
    margin-bottom: 40px;
}

.recommendation-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 4px;
    border-left: 5px solid var(--accent-color);
}

.recommendation-card p {
    font-style: italic;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

.recommendation-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- CONTACTO --- */
.contact-section {
    padding: 30px 0;
    text-align: center;
}

.card-personal {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #ffffff;
    margin-top: 20px;
}

.foto-perfil {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.titulo {
    color: var(--accent-color);
    font-weight: 800;
}

.btn-custom {
    margin-right: 10px;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--accent-color);
    border: none;
}

.btn-primary:hover {
    background-color: #cc5200;
}

.cta-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 4px;
    transition: all 0.3s;
}

.cta-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-subtle);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    body {
        padding: 0 16px;
    }

    .nav-wrapper {
        flex-direction: column;
        text-align: center;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        gap: 25px;
    }

    .hero-image {
        width: 180px;
        height: 180px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

.card-info small {
    display: block;
    font-size: 0.8rem;
    color: #ffcc00; /* Puedes cambiar este color para que combine con tu web */
    margin-bottom: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}
}

/* ==============================
   GALERÍA IMPRESIÓN 3D
   ============================== */

.impresion-3d-section {
    margin-top: 70px;
    margin-bottom: 70px;
}

.impresion-3d-description {
    max-width: 650px;
    margin: -5px auto 30px;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
}

/* GALERÍA */

.impresion-3d-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Cada imagen/video */

.impresion-3d-card {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.impresion-3d-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.impresion-3d-card img,
.impresion-3d-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Elementos ocultos inicialmente */

.extra-impresion {
    display: none;
}

/* BOTÓN */

#ver-mas-impresion-btn {
    margin-top: 25px;
}

/* TABLET */

@media (max-width: 900px) {

    .impresion-3d-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .impresion-3d-card {
        height: 170px;
    }
}

/* MÓVIL */

/* IMPRESIÓN 3D */
.impresion-3d-section { margin: 80px 0; }
.impresion-3d-description { max-width: 750px; margin: -10px auto 35px; text-align: center; color: #999; font-size: 1rem; }

.impresion-3d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.impresion-3d-card {
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    aspect-ratio: 16 / 10;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impresion-3d-card:hover {
    transform: scale(1.6);
    z-index: 10;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}

.impresion-3d-card img,
.impresion-3d-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: all 0.4s ease;
}

.impresion-3d-card:hover img,
.impresion-3d-card:hover video { object-fit: contain; }

.extra-impresion { display: none; }

@media (max-width: 768px) { .impresion-3d-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .impresion-3d-grid { grid-template-columns: 1fr; } }