/* --- ESTILOS GLOBALES --- */
:root {
  --dark-blue: #0A1931; --light-blue: #B3CFE5; --mid-blue: #4A7FA7;
  --deep-blue: #1A3D63; --accent: #0C969C; --almost-white: #F6FAFD; --white: #ffffff;
  --lineup-orange: #f36f21; --lineup-purple: #8e44ad; --lineup-green: #27ae60;
  --lineup-yellow: #f1c40f; --lineup-cyan: #00a8b5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif; background: var(--white);
  color: var(--dark-blue);
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section, .cv-section { padding: 4rem 0; }
.section-title { font-size: 2rem; color: var(--dark-blue); margin-bottom: 2rem; border-left: 6px solid var(--mid-blue); padding-left: 1rem; }

.section-title i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: var(--accent);
  vertical-align: -2px;
}

/* --- HEADER Y NAVEGACIÓN --- */
.header-hero-wrapper { 
    background: var(--dark-blue); color: var(--white);
}
.header-hero-wrapper.with-bg-image { 
    background: url('../img/Header.jpg') center/cover no-repeat;
}
.page-cv .header-hero-wrapper, .page-projects .header-hero-wrapper, .page-project-case-study .header-hero-wrapper {
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header.container { padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo img { height: 44px; }
nav.desktop-nav { display: flex; gap: 1.5rem; align-items: center; }
nav.desktop-nav a { color: var(--white); font-weight: 600; }
.lang-toggle { background: none; border: none; color: inherit; font-family: inherit; font-size: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; }
.hamburger { display: none; font-size: 1.5rem; background: none; border: none; color: var(--white); cursor: pointer; z-index: 1001; }
.mobile-nav { display: none; flex-direction: column; background: var(--dark-blue); position: absolute; top: 100%; left: 0; width: 100%; }
.mobile-nav.show { 
    display: flex; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
}
.mobile-nav a, .mobile-nav .lang-toggle-wrapper { padding: 1rem; border-top: 1px solid #ffffff22; text-align: center; }

/* --- HERO SECTION (INDEX) --- */
.hero { padding: 5rem 0; }
.hero-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.hero-text { flex: 1 1 600px; min-width: 280px; }
#hero-title { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.2; }
#hero-subtitle { font-size: 1.1rem; margin-top: 1rem; max-width: 600px; }
.hero-buttons { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { flex: 1 1 300px; display: flex; align-items: flex-end; justify-content: center; min-width: 240px; }
.hero-image img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; object-position: center; border-radius: 0.5rem; }

/* --- BOTONES --- */
.btn { display: inline-block; padding: 0.75rem 1.5rem; font-weight: 600; border-radius: 6px; font-size: 1rem; transition: 0.3s ease; text-align: center; border: 2px solid transparent; }
.btn-outline-blue { background-color: transparent; color: var(--dark-blue); border-color: var(--dark-blue); }
.btn-outline-blue:hover { background-color: var(--dark-blue); color: var(--white); }
.btn-hero-primary { background-color: var(--white); color: var(--dark-blue); }
.btn-hero-primary:hover { background-color: transparent; color: var(--white); border-color: var(--white); }
.btn-hero-secondary { background-color: transparent; color: var(--white); border-color: var(--white); }
.btn-hero-secondary:hover { background-color: var(--white); color: var(--dark-blue); }

/* --- ESTILO DE FOCO PARA ACCESIBILIDAD --- */
a:focus, button:focus, [tabindex="0"]:focus, input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- "TOQUE DE ROCK" - Textura para fondos oscuros --- */
.impact, .dark-section-wrapper, .footer {
  background-image: url('https://www.transparenttextures.com/patterns/subtle-noise.png');
}


/* --- SECCIONES INDEX --- */
.about-me { background-color: var(--almost-white); }
.about-container { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.about-image { flex: 1 1 300px; text-align: center; }
.about-image img { width: 100%; max-width: 320px; border-radius: 12px; }
.about-text { flex: 2 1 600px; }
#about-text-content { color: var(--deep-blue); font-size: 1rem; line-height: 1.7; }
#about-text-content p { margin-bottom: 1rem; }
.impact { background-color: var(--dark-blue); }
.impact .section-title { color: var(--white); border-left-color: var(--light-blue); }
.impact-container { max-width: 1200px; margin: 0 auto; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.impact-card { background: var(--white); padding: 2rem; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.impact-card i { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; }
.impact-card h3 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 0.5rem; }
.impact-card p { font-size: 0.95rem; color: var(--deep-blue); line-height: 1.5; }

.projects { background-color: var(--white); }
.projects .section-title { text-align: left; }
.projects-container { text-align: center; }
.carousel-wrapper { position: relative; margin-bottom: 2rem; }
.carousel {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.project-card { flex: 0 0 300px; background-color: var(--almost-white); border-radius: 10px; scroll-snap-align: start; box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden; }
.project-card img { width: 100%; height: auto; border-bottom: 1px solid #ddd; }
.project-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; text-align: left; }
.project-card-content h3 { font-size: 1.2rem; }
.project-card-content p { margin: 0.5rem 0 1.5rem; flex-grow: 1; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(10, 25, 49, 0.7); color: #fff; border: none; border-radius: 50%; font-size: 1.5rem; padding: 0.25rem 0.6rem; cursor: pointer; z-index: 5; opacity: 0.8; transition: opacity 0.3s; }
.carousel-btn:hover { opacity: 1; }
.carousel-btn.prev { left: -15px; }
.carousel-btn.next { right: -15px; }

/* --- ESTILOS PARA LA PÁGINA DE CV --- */
.cv-hero { background-color: var(--almost-white); padding: 4rem 2rem; text-align: center; border-bottom: 1px solid #e0eaf1; }
.cv-hero .subtitle { font-size: 1.2rem; color: var(--deep-blue); max-width: 600px; margin: 1rem auto 2rem auto; }
.cv-hero #download-btn { margin-top: 1rem; }

.cv-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4rem);
  margin-bottom: 1.5rem;
  padding: 0;
  background: linear-gradient(45deg, var(--dark-blue), var(--mid-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
}

.dark-section-wrapper { background-color: var(--dark-blue); color: var(--white); }
.dark-section-wrapper .section-title { color: var(--white); border-left-color: var(--light-blue); }
.dark-section-wrapper a { color: var(--light-blue); }
.page-container { padding-top: 2rem; padding-bottom: 2rem; max-width: 1200px; }

.timeline-container { position: relative; max-width: 1200px; margin: 0 auto; padding-top: 4rem; }
#timeline-work-content + .section-title { margin-top: 4rem; }
.timeline-container::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 3px; height: 100%; background-color: #e0eaf1; }

.timeline-item { position: relative; width: 50%; margin-bottom: 3rem; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; min-height: 150px; display: flex; align-items: center; }
.timeline-item.is-visible { opacity: 1; transform: translateY(0); }
.timeline-item:nth-child(odd) { left: 0; justify-content: flex-end; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; background-color: var(--white); border: 4px solid var(--mid-blue); border-radius: 50%; top: 50%; margin-top: -10px; z-index: 1; }
.timeline-item:nth-child(odd):after { right: -10px; }
.timeline-item:nth-child(even):after { left: -10px; }

.timeline-content-block { 
    background: var(--white); 
    color: var(--dark-blue); 
    padding: 2rem; 
    text-align: left; 
    border-radius: 8px; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.07); 
    width: 100%;
    border-top: 4px solid var(--accent);
    overflow: hidden;
}

.timeline-item:nth-child(odd) .timeline-content-block { margin-right: 3rem; }
.timeline-item:nth-child(even) .timeline-content-block { margin-left: 3rem; }

.timeline-logo-wrapper { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 100%; 
    pointer-events: none; 
    display: flex;
}

.timeline-item:nth-child(odd) .timeline-logo-wrapper {
    left: 100%;
    justify-content: flex-start;
    padding-left: 5rem;
}

.timeline-item:nth-child(even) .timeline-logo-wrapper {
    right: 100%;
    justify-content: flex-end;
    padding-right: 5rem;
}

.timeline-logo { max-width: 200px; max-height: 80px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; }
.timeline-item:hover .timeline-logo { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

.timeline-date { color: var(--mid-blue); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
p.timeline-company { font-weight: 600; }
p.timeline-company a { 
    color: var(--mid-blue);
    text-decoration: none; 
    font-weight: inherit;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
p.timeline-company a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.timeline-content-block ul { padding-left: 1.75rem; margin-top: 1rem; line-height: 1.7; }

/* --- SKILLS LINEUP: Diseño "Embudo de Competencias" --- */
.skills-lineup { 
  font-family: 'Oswald', sans-serif; 
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0; 
}
.lineup-tier {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}
.lineup-tier-1 { width: 100%; }
.lineup-tier-2 { width: 90%; }
.lineup-tier-3 { width: 80%; }
.lineup-tier-4 { width: 70%; }
.lineup-tier .skill {
  padding: 0.5rem 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lineup-tier .skill:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.lineup-tier-1 .skill {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--white);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lineup-tier-1 .skill-logo { height: 2.2rem; filter: brightness(0) invert(1); }
.lineup-tier-1 .skill:nth-child(1) { background-color: var(--lineup-orange); }
.lineup-tier-1 .skill:nth-child(2) { background-color: var(--lineup-purple); }
.lineup-tier-1 .skill:nth-child(3) { background-color: var(--lineup-green); }
.lineup-tier-2 .skill {
  font-size: clamp(1rem, 3vw, 1.2rem);
  background-color: var(--lineup-yellow);
  color: var(--dark-blue);
}
.lineup-tier-3 .skill {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  background-color: var(--lineup-cyan);
  color: var(--dark-blue);
}
.lineup-tier-4 .skill {
  font-size: 0.9rem;
  color: var(--light-blue);
  background-color: transparent;
  border: 2px solid var(--mid-blue);
  font-weight: 600;
}
.lineup-tier-4 .skill:hover {
  background-color: var(--mid-blue);
  color: var(--white);
}

/* --- LANGUAGES, CERTIFICATIONS, INTERESTS --- */
.languages-list { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: flex-start; align-items: center; }
.language-item { display: flex; align-items: center; gap: 0.75rem; }
.language-item img { width: 32px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.language-item p { margin: 0; }
.language-item .lang-level { font-size: 0.9rem; color: var(--deep-blue); }
.certifications-list { list-style: none; padding-left: 0; columns: 2; gap: 2rem; }
.certifications-list li { break-inside: avoid-column; padding-bottom: 1rem; }
.certifications-list li a { text-decoration: none; font-weight: 600; color: var(--mid-blue); transition: color 0.3s ease; }
.certifications-list li a:hover { color: var(--accent); text-decoration: underline; }
.interests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 2rem; }
.interest-item { text-align: center; color: var(--white); }
.interest-item i { font-size: 2.5rem; margin-bottom: 0.5rem; }
.interest-item p { font-weight: 600; }
.badge-widgets { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }
.badge-widgets > div {
  background-color: var(--white);
  padding: 0.75rem 0.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-widgets > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.credly-link-styled { display: inline-block; margin-top: 1rem; font-weight: 600; }

/* --- FOOTER --- */
.footer {
  background-color: var(--dark-blue);
  color: var(--almost-white);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-contacts a {
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-contacts a:hover {
  color: var(--light-blue);
}
.footer-socials {
  display: flex;
  gap: 1.5rem;
}
.footer-socials a {
  font-size: 1.6rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-socials a:hover {
  color: var(--light-blue);
  transform: translateY(-2px);
}
.footer-bottom p {
  font-size: 0.9rem;
  color: var(--light-blue);
  opacity: 0.8;
}

/* --- ESTILOS PARA LA PÁGINA DE PROYECTOS (LISTA INTERACTIVA) --- */
.page-projects .header-hero-wrapper header.container {
    max-width: none;
    margin: 0;
}
.page-projects .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.8rem, 7vw, 3.5rem);
    border-left: none;
    padding-left: 0;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.projects-main-content {
  display: flex;
  min-height: calc(100vh - 220px);
}
.projects-list-column {
  flex: 1 1 50%;
  padding: 4rem;
  overflow-y: auto;
  border-right: 1px solid #e0eaf1;
}
.projects-preview-column {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  background-color: var(--almost-white);
}
.projects-list-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.projects-list-ul li a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0eaf1;
  text-decoration: none;
  transition: padding-left 0.3s ease;
}
.projects-list-ul li a:hover {
  padding-left: 1.5rem;
}
.project-list-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--mid-blue);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.projects-list-ul li a:hover .project-list-title {
  color: var(--dark-blue);
}
.project-list-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--deep-blue);
    font-weight: 400;
}
.project-preview-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}
.project-preview-image.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* --- ESTILOS PARA ÍCONOS DE HERRAMIENTAS EN LA LISTA DE PROYECTOS --- */
.project-tool-icon {
  height: 1.5rem;
  width: auto;
  margin-right: 0.75rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
}


/* --- ESTILOS PARA "MODO INMERSIVO" DE PROYECTOS (GENERAL) --- */
.project-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}
.project-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.button {
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-back { background-color: var(--mid-blue); }
.btn-linkedin { background-color: #0077B5; }
.btn-x { background-color: #000000; }
.btn-looker { background-color: #4285F4; }
.case-study-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.project-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
}
.project-dashboard-content {
  flex-grow: 1;
}
.dashboard-embed-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 62%; /* Define la relación de aspecto. ¡Puedes ajustar este valor! */
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.dashboard-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* --- TEMA PROYECTO 1: UNEMPLOYMENT (VERDE) --- */
.theme-dark-project {
  background-color: var(--white);
  color: var(--dark-blue);
  --unemployment-green-dark: #092E34;
  --unemployment-green-mid: #00A693;
}
.theme-dark-project .header-hero-wrapper,
.theme-dark-project .footer {
    background-color: var(--unemployment-green-dark);
}
.theme-dark-project .project-header h1 {
  color: var(--unemployment-green-dark);
}
.theme-dark-project .project-executive-summary {
  background-color: #F0FFFC;
  border-left: 5px solid var(--unemployment-green-dark);
}
.theme-dark-project .summary-card i {
    color: var(--unemployment-green-dark);
}
.theme-dark-project .project-sidebar .sidebar-section {
  background-color: var(--white);
  border: 1px solid #ddd;
  border-top: 4px solid var(--unemployment-green-dark);
}
.theme-dark-project .project-sidebar h3 {
    color: var(--dark-blue);
}
.theme-dark-project .project-sidebar p,
.theme-dark-project .project-sidebar li,
.theme-dark-project .project-sidebar strong {
    color: var(--deep-blue);
}
.theme-dark-project .project-sidebar h3 i {
    color: var(--unemployment-green-dark);
}
.theme-dark-project .project-sidebar a {
    color: var(--unemployment-green-mid);
    font-weight: 600;
}
.theme-dark-project .button.btn-back {
    background-color: var(--unemployment-green-dark);
}
.theme-dark-project .button.btn-looker {
    background-color: var(--unemployment-green-mid);
}


/* --- TEMA PROYECTO 2: FINANCIAL INCLUSION (AZUL) --- */
.theme-blue-project {
  background-color: var(--white);
  color: var(--dark-blue);
  --financial-blue-dark: #03045E;
  --financial-blue-mid: #0077B6;
  --financial-blue-light: #00B4D8;
}
.theme-blue-project .header-hero-wrapper,
.theme-blue-project .footer {
    background-color: var(--financial-blue-dark);
}
.theme-blue-project .project-header h1 {
    color: var(--financial-blue-dark);
}
.theme-blue-project .project-executive-summary {
  background-color: #EBF7FF; 
  border-left: 5px solid var(--financial-blue-dark);
}
.theme-blue-project .summary-card i { color: var(--financial-blue-dark); }
.theme-blue-project .summary-card-text h3 { color: var(--financial-blue-dark); }
.theme-blue-project .summary-card-text p { color: var(--deep-blue); }
.theme-blue-project .project-sidebar .sidebar-section {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-top: 4px solid var(--financial-blue-dark);
}
.theme-blue-project .project-sidebar h3 {
  color: var(--dark-blue);
}
.theme-blue-project .project-sidebar p,
.theme-blue-project .project-sidebar li,
.theme-blue-project .project-sidebar strong {
    color: var(--deep-blue);
}
.theme-blue-project .project-sidebar h3 i { color: var(--financial-blue-dark); }
.theme-blue-project .project-sidebar a { 
    color: var(--financial-blue-mid);
    font-weight: 600;
}
.theme-blue-project .button.btn-back {
    background-color: var(--financial-blue-dark);
}
.theme-blue-project .button.btn-looker {
    background-color: var(--financial-blue-mid);
}

/* --- ESTILOS COMPARTIDOS POR TEMAS DE PROYECTO --- */
.project-executive-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 8px;
}
.summary-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.summary-card i {
  font-size: 1.8rem;
  margin-top: 5px;
}
.summary-card-text h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}
.summary-card-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.project-sidebar .sidebar-section {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.project-sidebar .sidebar-section h3 {
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-sidebar h3 i {
    font-size: 1rem;
    margin-right: 0.75rem;
}
.project-sidebar p,
.project-sidebar li {
  color: var(--deep-blue);
}
.project-sidebar .sidebar-section .more-icon {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}
.project-sidebar .sidebar-section .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
  padding-top: 0;
  line-height: 1.7;
}
.project-sidebar .sidebar-section.active .content {
  max-height: 500px;
  transition: max-height 0.5s ease-in, padding-top 0.5s ease-in;
  padding-top: 1rem;
}
.project-sidebar .sidebar-section.active .more-icon {
  transform: rotate(180deg);
}
.project-sidebar ul {
  padding-left: 1.25rem;
}
.project-sidebar strong {
  color: var(--text-secondary);
}
.project-sidebar a:hover {
  text-decoration: underline;
}
.project-dashboard-content h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.project-dashboard-content p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* --- TEMA PROYECTO 3: POKEDEX (ROJO) --- */
.theme-red-project {
  background-color: var(--white);
  color: var(--dark-blue);
  --pokedex-red-dark: #A70000;
  --pokedex-red-mid: #BF0000;
  --pokedex-red-light: #FF1F1F;
}
.theme-red-project .header-hero-wrapper {
    background-color: var(--white);
    color: var(--dark-blue);
    border-bottom: 1px solid #eee;
}
.theme-red-project .footer {
    background-color: var(--almost-white);
    color: var(--dark-blue);
    border-top: 1px solid #eee;
    background-image: none;
}
.theme-red-project .footer .footer-contacts a,
.theme-red-project .footer .footer-socials a {
    color: var(--deep-blue);
}
.theme-red-project .footer .footer-contacts a:hover,
.theme-red-project .footer .footer-socials a:hover {
    color: var(--pokedex-red-dark);
}
.theme-red-project nav.desktop-nav a,
.theme-red-project .lang-toggle,
.theme-red-project .hamburger {
    color: var(--dark-blue);
}
.theme-red-project .logo img {
    filter: invert(1);
}
.theme-red-project .project-header {
    border-bottom-color: #ddd;
}
.theme-red-project .project-header h1 {
  color: var(--pokedex-red-dark);
}
.theme-red-project .project-executive-summary {
    background-color: #FFF5F5;
    border-left: 5px solid var(--pokedex-red-dark);
}
.theme-red-project .summary-card i {
    color: var(--pokedex-red-dark);
}
.theme-red-project .project-sidebar .sidebar-section {
    background-color: var(--white);
    color: var(--dark-blue);
    border: 1px solid #ddd;
    border-top: 4px solid var(--pokedex-red-dark);
}
.theme-red-project .project-sidebar h3 {
    color: var(--dark-blue);
}
.theme-red-project .project-sidebar h3 i {
    color: var(--pokedex-red-dark);
}
.theme-red-project .project-sidebar p,
.theme-red-project .project-sidebar li,
.theme-red-project .project-sidebar strong {
    color: var(--deep-blue);
}
.theme-red-project .project-sidebar a {
    color: var(--pokedex-red-mid);
    font-weight: 600;
}
.theme-red-project .project-sidebar a:hover {
    text-decoration-color: var(--pokedex-red-light);
}
.theme-red-project .button.btn-back { background-color: var(--dark-blue); }
.theme-red-project .button.btn-looker { background-color: var(--pokedex-red-mid); }

/* --- TEMA PROYECTO 4: EXCHANGE RATE (CUSTOM THEME) --- */
.theme-exchange-rate-project {
  background-color: var(--white);
  color: var(--dark-blue);
  /* Definimos la nueva paleta basada en tu dashboard */
  --exchange-rate-dark-bg: #0A1931; /* Un azul muy oscuro y corporativo, similar al fondo */
  --exchange-rate-card-bg: #1A3D63; /* Un azul intermedio para simular las tarjetas */
  --exchange-rate-highlight: #3498DB; /* El azul brillante para enlaces y acentos */
}
.theme-exchange-rate-project .header-hero-wrapper,
.theme-exchange-rate-project .footer {
    background-color: var(--exchange-rate-dark-bg);
    background-image: none; /* Quitamos la textura para un look más limpio como el de Power BI */
}
.theme-exchange-rate-project .project-header h1 {
  color: var(--dark-blue);
}
.theme-exchange-rate-project .project-executive-summary {
  background-color: var(--exchange-rate-card-bg);
  border-left: 5px solid var(--exchange-rate-highlight);
  border-radius: 8px;
  color: var(--white);
}
.theme-exchange-rate-project .summary-card i,
.theme-exchange-rate-project .summary-card-text h3 {
    color: var(--white);
}
.theme-exchange-rate-project .summary-card-text p {
    color: var(--light-blue);
}
.theme-exchange-rate-project .project-sidebar .sidebar-section {
  border-top: 4px solid var(--exchange-rate-highlight);
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.theme-exchange-rate-project .project-sidebar h3 i {
    color: var(--exchange-rate-highlight);
}
.theme-exchange-rate-project .project-sidebar a {
    color: var(--exchange-rate-highlight);
    font-weight: 600;
}
.theme-exchange-rate-project .button.btn-back {
    background-color: var(--exchange-rate-dark-bg);
}
.theme-exchange-rate-project .button.btn-looker {
    background-color: var(--exchange-rate-highlight);
}

/* CORRECCIÓN PARA EL MENÚ MÓVIL EN TEMA ROJO */
.theme-red-project .mobile-nav {
  background: var(--white);
}
.theme-red-project .mobile-nav a,
.theme-red-project .mobile-nav .lang-toggle-wrapper {
  color: var(--dark-blue);
  border-top: 1px solid #f0f0f0;
}


/* --- ESTILOS RESPONSIVOS --- */
@media (max-width: 992px) {
  .impact-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .lineup-tier-1 { width: 100%; }
  .lineup-tier-2 { width: 95%; }
  .lineup-tier-3 { width: 90%; }
  .lineup-tier-4 { width: 85%; }
  
  .projects-main-content {
    flex-direction: column;
  }
  .projects-list-column { 
    border-right: none; 
    padding: 2rem 1rem; /* Ajuste para móvil */
  }
  /* Ocultar la columna de previsualización en móvil */
  .projects-preview-column { 
    display: none; 
  }

  .case-study-layout {
    flex-direction: column;
  }
  .project-sidebar { 
    position: static; 
    width: 100%; 
    order: 2; 
    margin-top: 3rem; 
  }
  .project-dashboard-content { 
    order: 1; 
  }

  /* --- ESTILOS PARA ACORDEÓN DE PROYECTOS (MÓVIL) --- */
  .projects-list-ul.is-accordion {
    border-top: 1px solid #e0eaf1;
  }
  /* Ocultar la lista de escritorio por defecto en esta vista */
  .projects-list-ul:not(.is-accordion) li a {
      display: none;
  }
  .accordion-item {
    border-bottom: 1px solid #e0eaf1;
  }
  .accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0.5rem;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: var(--mid-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
  }
  .accordion-header:hover {
      color: var(--dark-blue);
  }
  .accordion-header .chevron-icon {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
  }
  .accordion-item.active .accordion-header {
    color: var(--dark-blue);
  }
  .accordion-item.active .chevron-icon {
    transform: rotate(180deg);
  }
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 0.5rem;
  }
  .accordion-item.active .accordion-content {
    max-height: 250px;
    padding: 0 0.5rem 1.5rem 0.5rem;
  }
  .accordion-content .project-list-description {
      margin-bottom: 1.5rem;
      line-height: 1.6;
      color: var(--deep-blue);
      font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  nav.desktop-nav { display: none; }
  .hamburger { display: block; }
  .hero-content { 
    flex-direction: column;
    text-align: center; 
  }
  .hero-image {
    display: none;
  }
  .about-image {
    display: none;
  }
  .hero-buttons { justify-content: center; }
  .impact-grid { grid-template-columns: 1fr; }
  .carousel-btn.prev { left: 5px; }
  .carousel-btn.next { right: 5px; }
  .timeline-container::before { left: 10px; transform: none; }
  .timeline-item, .timeline-item:nth-child(even) { width: 100%; padding-left: 3rem; padding-right: 1rem; left: 0; }
  .timeline-item::after, .timeline-item:nth-child(even):after { left: 1px; transform: none; }
  .timeline-logo-wrapper { display: none; }
  .certifications-list { columns: 1; }
  .lineup-tier-1 { flex-wrap: wrap; }
  .lineup-tier-1, .lineup-tier-2, .lineup-tier-3, .lineup-tier-4 { width: 100%; }
  .projects-list-column { padding: 2rem; }
}

@media (max-width: 480px) {
  .about-container { text-align: center; }
  .section-title { text-align: center; border-left: none; padding-left: 0; }
  .projects .section-title { text-align: center; }
}

/* --- ESTILOS PARA ENLACE RESALTADO EN SUBTÍTULOS --- */
.subtitle-link {
  font-weight: bold; /* Pone el texto en negrita */
  text-decoration: underline; /* Añade el subrayado */
  color: inherit; /* Hereda el color del texto circundante */
  transition: opacity 0.2s ease;
}

.subtitle-link:hover {
  opacity: 0.7; /* Efecto sutil al pasar el mouse */
}
