/*=============== VARIABLES Y ESTILO BASE ===============*/
:root {
    --dark-navy: #0A192F;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --accent-color: #64ffda; /* Un verde-cian brillante */
    
    --body-font: 'Inter', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --border-radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--dark-navy);
    color: var(--slate);
    font-family: var(--body-font);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

main {
    padding: 0 150px;
}

h1, h2, h3, h4 {
    color: var(--lightest-slate);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}
a:hover { color: var(--accent-color); filter: brightness(1.2); }

.container { max-width: 1100px; margin: 0 auto; }
.section { padding: 100px 0; }
.section__title {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    white-space: nowrap;
}
.section__title::after {
    content: "";
    display: block;
    position: relative;
    top: 2px;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--lightest-navy);
}

.button {
    display: inline-block;
    color: var(--accent-color);
    background-color: transparent;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}
.button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/*=============== PANELES LATERALES FIJOS ===============*/
.side-panel {
    width: 40px;
    position: fixed;
    bottom: 0;
    left: 40px;
    z-index: 10;
}
.side-panel::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    margin: 0 auto;
    background-color: var(--slate);
}
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}
.social-links a {
    padding: 10px;
    font-size: 1.25rem;
    color: var(--slate);
}
.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}


/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 11;
    padding: 0 50px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.nav__logo {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
}
.nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}
.nav__link {
    color: var(--lightest-slate);
    font-size: 0.9rem;
}

/*=============== HERO ===============*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero__intro {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1rem;
}
.hero__name {
    font-size: clamp(40px, 8vw, 70px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}
.hero__tagline {
    font-size: clamp(30px, 7vw, 60px);
    color: var(--slate);
    line-height: 1.1;
    margin-top: 10px;
}
.hero__bio {
    max-width: 600px;
    margin-top: 25px;
}
.hero .button { margin-top: 40px; }

/*=============== ABOUT ===============*/
.about__content {
    display: grid;
    gap: 50px;
}
.about__text p { margin-bottom: 15px; }

/*=============== EXPERIENCIA (TABS) ===============*/
.experience__tabs {
    display: flex;
    gap: 40px;
}
.experience__tab-list {
    position: relative;
    display: flex;
    flex-direction: column;
}
.experience__tab-button {
    background-color: transparent;
    border: none;
    border-left: 2px solid var(--lightest-navy);
    padding: 10px 20px;
    cursor: pointer;
    color: var(--slate);
    text-align: left;
    font-size: 0.9rem;
    width: 150px;
    transition: all 0.3s ease;
}
.experience__tab-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
}
.experience__tab-button.active {
    color: var(--accent-color);
    border-left: 2px solid var(--accent-color);
}
.experience__panel {
    display: none;
    padding-left: 10px;
}
.experience__panel.active { display: block; }
.experience__panel h3 { font-size: 1.2rem; }
.panel__company { color: var(--accent-color); }
.panel__dates { font-size: 0.9rem; margin: 5px 0 15px; }
.experience__panel ul { list-style-type: none; }
.experience__panel li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.experience__panel li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/*=============== HABILIDADES ===============*/
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.skills__category h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
}
.skills__category ul { list-style: none; }
.skills__category li {
    background-color: var(--lightest-navy);
    color: var(--lightest-slate);
    padding: 5px 12px;
    border-radius: 15px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    display: inline-block;
}

/*=============== CONTACTO ===============*/
.contact { text-align: center; }
.contact__container {
    max-width: 600px;
    margin: 0 auto;
}
.contact__title {
    font-size: 2.5rem;
    color: var(--accent-color);
}
.contact__text { margin: 20px 0 40px; }

/*=============== FOOTER ===============*/
.footer {
    padding: 25px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--slate);
}

/*=============== ANIMACIONES DE SCROLL ===============*/
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*=============== RESPONSIVE DESIGN ===============*/
@media (max-width: 1080px) {
    main { padding: 0 100px; }
    .side-panel { left: 20px; }
}

@media (max-width: 768px) {
    main { padding: 0 25px; }
    .side-panel { display: none; }
    .header { padding: 0 25px; }
    .nav__list { display: none; } /* Opcional: reemplazar con un menú hamburguesa */
    .section { padding: 80px 0; }
    .section__title::after { width: 100px; }
    .experience__tabs { flex-direction: column; }
    .experience__tab-list { flex-direction: row; overflow-x: auto; }
}