/* ==========================================================================
VARIABLES GLOBALES Y CONFIGURACIÓN DE TU PALETA (.css original)
   ========================================================================== */
:root {
    --bg-dark: #243b2f;      /* Verde bosque profundo de referencia */
    --bg-light: #f3edd8;     /* Tono crema / papel pergamino de fondo */
    --accent-orange: #fca311;/* Naranja aguzado para detalles */
    --btn-orange: #ff5e36;   /* Coral vivo para botones de llamada a la acción */
    --tag-dark: #0f1a14;     
    --text-dark: #1c2a22;
    --text-light: #f3edd8;
    --font-serif: 'DM+Serif+Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --sidebar-width: 75px;
}

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

body {
    font-family: var(--font-sans);
    background-color: #1a2921; 
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow-x: hidden;
}

/* Contenedor Principal (Estilo Archivador Corpóreo) */
.folder-container {
    width: 100%;
    max-width: 1180px;
    height: 85vh;
    display: flex;
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
BARRA DE NAVEGACIÓN VERTICAL (Inspiración e Estructura: image_4f0994.png)
   ========================================================================== */
.tabs-sidebar {
    width: var(--sidebar-width);
    background: #182a21; 
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.tab-button {
    background: #25392e;
    border: none;
    color: rgba(243, 237, 216, 0.35);
    padding: 38px 0;
    cursor: pointer;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    /* Recorte en diagonal asimétrico imitando pestañas troqueladas físicas */
    clip-path: polygon(0% 15%, 45% 0%, 100% 0%, 100% 100%, 0% 100%);
    border-left: 4px solid transparent;
}

.tab-button .tab-text {
    writing-mode: vertical-rl;
    text-indent: mixed;
    transform: rotate(180deg);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.tab-button::before {
    content: attr(data-code);
    font-size: 0.52rem;
    opacity: 0.35;
    margin-bottom: 6px;
    font-family: var(--font-sans);
}

.tab-button:hover {
    color: var(--text-light);
    background: #2e4438;
}

.tab-button.active {
    color: var(--text-dark);
    background: var(--bg-light); 
    clip-path: polygon(0% 10%, 35% 0%, 100% 0%, 100% 100%, 0% 100%);
    border-left: 5px solid var(--accent-orange);
    z-index: 12;
    pointer-events: none;
}

.tab-button.active::before {
    color: var(--btn-orange);
    opacity: 1;
    font-weight: 700;
}

/* ==========================================================================
ESPACIADOS Y DISPOSICIÓN DE LOS PANELES INTERNOS
   ========================================================================== */
.content-container {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.panel {
    display: none;
    padding: 55px;
}

.panel.active {
    display: block;
    animation: transitionSheet 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes transitionSheet {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PANTALLA DE INICIO (Perfil & Gráfica)
   ========================================================================== */
.profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 45px;
    align-items: start;
    margin-bottom: 40px;
}

h1.main-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #38463c;
    margin-bottom: 28px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--btn-orange); 
    color: white;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 18px rgba(255, 94, 54, 0.2);
    margin-bottom: 30px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 94, 54, 0.3);
}

.contact-box {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px dashed rgba(28, 42, 34, 0.2);
}

.contact-box h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--bg-dark);
}

.contact-item {
    font-size: 0.92rem;
    margin: 6px 0;
    color: var(--text-dark);
}

.profile-image-container {
    position: relative;
    width: 100%;
}

.profile-image-wrapper {
    width: 100%;
    height: 440px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: var(--bg-dark);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge-date {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--accent-orange);
    color: var(--tag-dark);
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hobbies-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--bg-dark);
}

.hobbies-section h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 18px;
    color: var(--bg-dark);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--tag-dark);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ==========================================================================
   SECCIÓN: RESUMEN / LÍNEA DE TIEMPO
   ========================================================================== */
h2.section-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--bg-dark);
    border-bottom: 2px solid var(--bg-dark);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.section-spacing {
    margin-top: 45px;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 25px;
    border-left: 3px solid var(--accent-orange);
}

.timeline-item::before {
    content: '✦';
    position: absolute;
    left: -8px;
    top: -2px;
    color: var(--accent-orange);
    background: var(--bg-light);
    font-size: 13px;
}

.timeline-item.dark-accent {
    border-left-color: var(--tag-dark);
}

.timeline-item.dark-accent::before {
    color: var(--tag-dark);
}

.time-period {
    font-weight: 700;
    color: var(--accent-orange);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.timeline-item.dark-accent .time-period {
    color: var(--tag-dark);
}

.item-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.item-institution, .item-description {
    font-size: 0.92rem;
    opacity: 0.85;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skill-box {
    background: rgba(28, 42, 34, 0.04);
    padding: 18px;
    border-radius: 6px;
    border: 1px solid rgba(28, 42, 34, 0.06);
}

.skill-box h4 {
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-dark);
}

/* ==========================================================================
   COMPONENTE AJUSTADO: SLIDER DE TRABAJOS CON EPÍGRAFE INTEGRADOR (REF: image_4fdc66.jpg)
   ========================================================================== */
.showcase-banner {
    background: var(--bg-dark);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 35px;
}

.showcase-banner h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 10px;
}

.showcase-banner p {
    opacity: 0.75;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.center-tags {
    justify-content: center;
}

.tag.orange-accent {
    background: var(--accent-orange);
    color: var(--tag-dark);
}

/* Envoltura del Deslizador */
.slider-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-orange) transparent;
}

/* Tira de Flexión Infinita */
.design-slider {
    display: flex;
    gap: 24px;
    width: max-content;
}

/* Tarjeta Integrada Completa (Contenedor de Foto + Epígrafe) */
.design-card-container {
    display: flex;
    flex-direction: column;
    width: 270px; /* Ancho modular moderado */
    flex-shrink: 0;
}

/* Bloque Visual */
.design-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(28, 42, 34, 0.2);
    border-radius: 8px;
    height: 175px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.design-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-card-container:hover .design-card {
    border-color: var(--accent-orange);
}

/* Estilos Claros para el Epígrafe Informativo Asociado */
.design-epigraph {
    margin-top: 10px;
    padding: 2px 4px;
}

.epigraph-meta {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.epigraph-text {
    font-size: 0.84rem;
    line-height: 1.4;
    color: #435348;
}

.design-placeholder-text {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.5;
    text-align: center;
    padding: 10px;
}

/* Estilización Avanzada de la Barra Deslizante */
.slider-wrapper::-webkit-scrollbar {
    height: 5px;
}
.slider-wrapper::-webkit-scrollbar-thumb {
    background: rgba(252, 163, 17, 0.3);
    border-radius: 3px;
}
.slider-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* ==========================================================================
   SOPORTE ADAPTATIVO (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .profile-image-wrapper {
        height: 360px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    .folder-container {
        height: auto;
        flex-direction: column;
    }
    .tabs-sidebar {
        width: 100%;
        flex-direction: row;
        padding-top: 0;
        gap: 0;
    }
    .tab-button {
        clip-path: none !important;
        padding: 16px 8px;
        flex-direction: row;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .tab-button .tab-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.72rem;
    }
    .tab-button::before {
        display: none;
    }
    .tab-button.active {
        border-bottom: 3px solid var(--accent-orange);
    }
    .panel {
        padding: 25px 15px;
    }
    h1.main-title {
        font-size: 2.8rem;
    }
    .text-dark {
        grid-template-columns: 1fr;
    }
}