:root {
  --cream: #C9A799; 
  --dark: #201a1a;
}

/* RESET COMPLETO  EVITAR HUECOS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--dark);
  color: var(--cream);
  font-family: 'Arial Narrow', sans-serif;
  scroll-behavior: smooth;
}

/* PORTADA - SIN MARGEN SUPERIOR */

.section-top {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important; 
    margin: 0 !important;
}


.header-elevated-max {
    transform: translateY(-60px); /* subir más el bloque central */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}


.bottom-center-tag {
    position: absolute;
    bottom: 30px; 
    /* Cambia l tamaño */
    font-size: 1.6rem; 
    font-weight: bold;
    text-align: center;
    width: 100%;
    z-index: 4;
    
    letter-spacing: 2px; 
   
    text-transform: uppercase; 
}

.portfolio-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}




.subject-img {
    height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    z-index: 2;
    position: relative;
}

.text-layer {
    position: absolute;
    font-size: 16vw;
    font-weight: 900;
    text-align: center;
    pointer-events: none;
    
    margin-top: 90px; 
}

.fill {
    color: var(--cream);
    z-index: 1;
}

.outline {
    z-index: 3;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--cream);
}


/* ELEMENTOS CABECERA */
.tag { position: absolute; font-weight: bold; }
.top-left { top: 30px; left: 40px; }
.header-right { position: absolute; top: 30px; right: 40px; display: flex; gap: 20px; z-index: 10; }
.social-icon { width: 35px; filter: invert(70%); transition: 0.3s ease; }
.social-icon:hover { transform: scale(1.2); }

/* SECCIONES GENERALES */
.section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    position: relative;
}

.section-compact {
    min-height: auto;
    padding: 50px 20px;
}

/* --- ABOUT ME --- */
.about-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 90%;
    gap: 60px;
}

.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--cream);
}

.about-text-side {
    flex: 1;
    text-align: left;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* --- IDIOMAS --- */
.skills-container { 
    width: 100%; 
    max-width: 1100px; 
    text-align: center; 
}

.skills-main-title {
    font-size: 2.2rem;
    margin-bottom: 40px; 
    color: var(--cream);
}

.languages-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
}

.flag-circle-container {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 3px solid var(--cream);
    overflow: hidden;
    margin: 0 auto 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.flag-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-card:hover .flag-circle-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(201, 167, 153, 0.4);
}

/* --- SKILLS --- */
.skills-description-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.skill-block {
    width: 280px;
}

.skill-icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--cream);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--dark);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.skill-block:hover .skill-icon-circle {
    transform: translateY(-15px) scale(1.1);
    box-shadow: 0 15px 30px rgba(201, 167, 153, 0.4);
}

/* --- EXPERIENCIA --- */
.exp-container { width: 90%; max-width: 1100px; }
.timeline-scroll-area { overflow-x: auto; width: 100%; padding: 40px 0; }
.timeline-horizontal { display: flex; position: relative; gap: 100px; padding: 0 50px; min-width: max-content; }
.timeline-track { position: absolute; top: 10px; left: 0; right: 0; height: 3px; background: var(--cream); opacity: 0.3; }
.h-dot { width: 22px; height: 22px; background: var(--cream); border-radius: 50%; margin-bottom: 25px; position: relative; z-index: 2; border: 4px solid var(--dark); }

/* --- TÍTULOS --- */
/* --- TÍTULOS --- */
.titles-wrapper-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.title-card {
    width: 240px; 
    text-align: center;
}

.title-name {
    font-size: 1.4rem; 
    font-weight: bold;
    color: var(--cream);
    margin: 10px 0;
    line-height: 1.2;
}

.title-uni, .title-date {
    font-size: 1rem;
    opacity: 0.8;
}

.title-card a {
    text-decoration: none;
    display: block;
    color: inherit;
}

.cert-img-simple {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: 0.3s ease;
    cursor: pointer;
}

.img-with-bg {
    background-color: rgba(201, 167, 153, 0.12);
    padding: 12px;
}

.title-card:hover .cert-img-simple {
    transform: translateY(-10px);
}
.divider-line-small {
    width: 80%;
    height: 1px;
    background: var(--cream);
    opacity: 0.2;
    margin: 50px auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-container { flex-direction: column; text-align: center; }
    .skills-description-grid { flex-direction: column; align-items: center; }
    .subject-img { height: 50vh; }
}