/* ============================================================
   curriculum_style.css
   Hoja de estilos para la página de carrera profesional.
   Mantiene el look & feel del home (dark navy + #FBE803).
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins';
}

.container {
    width: 100%;
    margin: auto;
    overflow: hidden;
}

:root {
    --grad-bg: linear-gradient(to right, #00132E, #032B4F, #011633);
    --grad-dark: linear-gradient(to right, #00132E, #032B4F, #011633);
    --color-accent: #FBE803;
    --color-dark: #00132E;
    --color-text: #ffffff;
    --color-text-muted: rgb(245, 244, 244);
    --color-text-subtle: rgba(196, 196, 196, 0.715);
    --color-card: rgba(255, 255, 255, 0.04);
    --color-card-hover: rgba(255, 255, 255, 0.07);
    --color-border: rgba(255, 255, 255, 0.5);
    --color-border-hover: rgba(255, 255, 255, 0.22);
    --color-accent-glow: rgb(255, 255, 255);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 100px;
}

/* ── Scroll ── */
html {
    scroll-behavior: smooth;
}

/* ── Shared section base ── */
.curriculum-section {
    background: var(--grad-bg);
    padding: 80px 60px;
}

.curriculum-section.alt-bg {
    background: var(--grad-dark);
}

.section-header {
    max-width: 1100px;
    margin: 0 auto 52px;
}

.section-pre-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.50em;
    text-transform: uppercase;
    color: #F9AF5D;
    margin-bottom: 10px;
}

.section-main-title {
    font-size: clamp(30px, 5.5vw, 60px);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.15;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.curriculum-hero {
    background: var(--grad-bg);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 90px 0px 90px;
    height: 100%;
}

/* Large backdrop text inspired by image 3 */
.hero-backdrop {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 130px;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-backdrop span {
    display: block;
    font-size: clamp(48px, 8.5vw, 124px);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 3px rgb(255, 255, 255);
    line-height: 1;
    white-space: nowrap;
}

.hero-backdrop .last-name {
    color: white;
    -webkit-text-stroke: 0;
}

/* CENTER: photo with spinning ring */
.hero-photo-wrap {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    height: 75%;
}

.hero-photo-ring {
    width: 100%;
    height: 100%;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Two lateral-column layout: info | links */
.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 58px;
    max-width: 1550px;
    width: 100%;
    padding: 0px 5%;
    margin-top: 19%;
    flex: 1;
}

/* LEFT: text info */
.hero-info {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.374);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-name {
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.1;
}

.hero-job-title {
    font-size: clamp(20px, 1.4vw, 17px);
    font-weight: 300;
    color: var(--color-accent);
    margin: 0 0 14px;
    letter-spacing: 0.03em;
}

.hero-location-text {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 90px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-pill);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    outline: none;
}

.hero-btn-primary {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    color: white;
    background: black;
}

.hero-btn-primary:hover {
    font-weight: 500;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    color: black;
    background: white;
    transform: translateY(-2px);
}

.hero-btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.hero-btn-ghost:hover {
    border-color: rgba(251, 232, 3, 0.5);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* RIGHT: social links */
.hero-social-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 42px;
}

.social-icon {
    width: 26px;
    height: 20px;
    object-fit: contain;
}

.hero-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.hero-social-link:hover {
    background: var(--color-accent-glow);
    border-color: rgba(251, 232, 3, 0.35);
    color: var(--color-dark);
    transform: translateX(-4px);
}

/* Stats bar at bottom of hero */
.hero-stats-bar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 64px;
    padding-top: 44px;
    margin-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-lbl {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.experience-timeline {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line */
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(251, 232, 3, 0.3) 10%, rgba(251, 232, 3, 0.3) 90%, transparent);
    z-index: 0;
}

/* ── Entry wrapper ── */
.exp-entry {
    position: relative;
    margin-bottom: 14px;
    padding-left: 62px;
}

.exp-timeline-dot {
    position: absolute;
    left: 14px;
    top: 26px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #021e3a;
    border: 2px solid rgba(251, 232, 3, 0.35);
    z-index: 1;
    transition: var(--transition);
}

.exp-entry.exp-open .exp-timeline-dot {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 14px rgba(251, 232, 3, 0.45);
}

/* ── Card shell ── */
.exp-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), background var(--transition);
}

.exp-card:hover {
    border-color: var(--color-border-hover);
}

.exp-entry.exp-open .exp-card {
    border-color: rgb(251, 230, 3);
    box-shadow: 0 0 10px rgba(251, 232, 3, 0.45);
    background: rgba(251, 232, 3, 0.02);
}

/* ── Card header (clickable) ── */
.exp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
}

.exp-header:hover {
    background: var(--color-card-hover);
}

/* Company color icon */
.exp-icon {
    width: 56px;
    height: 56px;
    border-radius: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.exp-icon.globant {
    background: linear-gradient(135deg, #005f00, #009900);
}

.exp-icon.netmidas {
    background: linear-gradient(135deg, #1a3a7a, #2255cc);
}

.exp-icon.dafiti {
    background: linear-gradient(135deg, #5b21b6, #9333ea);
}

.exp-icon.codescrum {
    background: linear-gradient(135deg, #92400e, #d97706);
}

.exp-meta {
    flex: 1;
    min-width: 0;
}

.exp-role {
    font-size: clamp(14px, 4.5vw, 22px);
    font-weight: 300;
    color: #F4B860;
    margin: 0 0 3px;
    line-height: 1.3;
}

.exp-company-label {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 2px;
}

.exp-period-label {
    font-size: 14px;
    color: var(--color-text-subtle);
    margin: 0;
}

.exp-current-pill {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.28);
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.exp-toggle-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-weight: 300;
}

.exp-entry.exp-open .exp-toggle-icon {
    background: var(--color-accent-glow);
    border-color: rgba(251, 232, 3, 0.3);
    color: var(--color-dark);
    transform: rotate(45deg);
}

/* ── Expandable body ── */
.exp-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-body-inner {
    padding: 6px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Single-project label */
.exp-project-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 16px 0 12px;
    padding: 4px 12px;
    background: rgba(251, 232, 3, 0.07);
    border: 1px solid rgba(251, 232, 3, 0.18);
    border-radius: var(--radius-pill);
}

.exp-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.65;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.exp-bullet-list li:last-child {
    border-bottom: none;
}

.exp-bullet-list li::before {
    content: '▸';
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 11px;
}

/* ============================================================
   NESTED / MULTI-PROJECT TIMELINE
   ============================================================ */
.multi-project-label {
    font-size: 12px;
    color: var(--color-text-subtle);
    margin: 16px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.05em;
}

.sub-timeline {
    position: relative;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.sub-entry {
    position: relative;
}

.sub-entry-dot {
    position: absolute;
    left: -19px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    transition: background var(--transition);
}

.sub-entry.sub-open .sub-entry-dot {
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(251, 232, 3, 0.4);
}

.sub-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.sub-entry.sub-open .sub-card {
    border-color: rgba(251, 232, 3, 0.18);
}

.sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
}

.sub-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sub-meta {
    flex: 1;
    min-width: 0;
}

.sub-role {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 2px;
    line-height: 1.3;
}

.sub-period {
    font-size: 13px;
    color: var(--color-text-subtle);
    margin: 0 0 2px;
}

.sub-project-name {
    font-size: 14px;
    color: rgb(251, 230, 3);
    margin: 0;
}

.sub-toggle-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--color-text-subtle);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.sub-entry.sub-open .sub-toggle-icon {
    color: var(--color-accent);
    border-color: rgba(251, 232, 3, 0.28);
    transform: rotate(45deg);
}

.sub-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-body-inner {
    padding: 4px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Shared bullet list also used in sub-body */
.sub-body-inner .exp-bullet-list li {
    font-size: 14px;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-columns {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}

.skills-group-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 18px;
}

.skill-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-tag {
    padding: 8px 15px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 16px;
    color: var(--color-text-muted);
    cursor: default;
    transition: var(--transition);
    line-height: 1;
}

.skill-tag.featured {
    border: black;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    color: white;
    background: #011633;
}

/* Languages */
.languages-row {
    max-width: 1100px;
    margin: 48px auto 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.lang-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 18px 28px;
    flex: 1;
    min-width: 160px;
    transition: var(--transition);
}

.lang-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-card-hover);
}

.lang-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
}

.lang-level {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

.lang-level strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================================
   EDUCATION & PROJECTS SECTION
   ============================================================ */
.edu-grid {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edu-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.edu-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-card-hover);
}

.edu-card-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 12px;
}

.edu-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 6px;
    line-height: 1.3;
}

.edu-card-sub {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0 0 4px;
}

.edu-card-year {
    font-size: 14px;
    color: var(--color-text-subtle);
    margin: 0;
}

/* Projects */
.projects-label {
    max-width: 1100px;
    margin: 0 auto 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.projects-row {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.project-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(251, 230, 3, 0.916);
    background: rgba(251, 232, 3, 0.04);
    transform: translateY(-3px);
}

.project-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.project-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 7px;
}

.project-card-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
}

.project-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-accent);
    margin-top: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {

    .curriculum-hero,
    .curriculum-section {
        padding: 70px 28px;
    }

    .hero-layout {
        margin-top: 40%;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .hero-info {
        order: 2;
        text-align: center;
    }

    .hero-photo-wrap {
        order: 1;
        width: 0px;
        height: 0px;
    }

    .hero-social-col {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .hero-social-link:hover {
        transform: translateY(-2px);
    }

    .hero-location-text {
        justify-content: center;
    }

    .hero-cta-row {
        justify-content: center;
    }

    .hero-stats-bar {
        gap: 32px;
        flex-wrap: wrap;
        margin-top: 44px;
    }

    .exp-current-pill {
        display: none;
    }

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

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

    .experience-timeline::before {
        left: 14px;
    }

    .exp-entry {
        padding-left: 42px;
    }

    .exp-timeline-dot {
        left: 6px;
    }
}

@media (max-width: 600px) {

    .curriculum-hero,
    .curriculum-section {
        padding: 60px 16px;
    }

    .exp-header {
        gap: 12px;
        padding: 16px;
    }

    .exp-icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 15px;
    }

    .hero-stats-bar {
        gap: 20px;
    }
}

/* -- Responsive 620px -- */
@media screen and (max-width:620px) {
    .hero-layout {
        margin-top: 60%;
    }
}

/* -- Responsive 450px -- */
@media screen and (max-width:450px) {
    .hero-layout {
        margin-top: 90%;
    }
}