/* ============================================= */
/* RESET & BASE - CON MEJORAS DE NITIDEZ        */
/* ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  background: #f8f9fa;
  /* MEJORA: Color grafito más elegante */
  color: #374151; 
  /* MEJORA: Suavizado de fuentes (Efecto HD) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================= */
/* HERO                                         */
/* ============================================= */
.hero {
  background: #fff;
  padding: 20px 0 60px;
  position: relative;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 20px; /* SEGURIDAD: Esto obliga a que siempre haya 20px de aire entre el Logo, el Menú y el Botón */
}

.logo-img {
  height: 34px;
  flex-shrink: 0; /* Evita que el logo se aplaste */
}

.nav-menu {
  display: flex;
  gap: 20px; /* REDUCIDO: Antes era 30px. Esto recupera mucho espacio horizontal para el español */
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: #555;
  transition: color 0.3s;
  font-size: 0.95rem;  /* AJUSTE FINO: Un poquitín más pequeño (0.95rem) ayuda mucho a que quepa todo */
  white-space: nowrap; /* OBLIGATORIO: Impide que "Nuestros Servicios" se parta en dos líneas */
}

/* El botón negro de contacto */
.btn-contact {
  background: #000;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap; /* Evita que el texto del botón se rompa */
  flex-shrink: 0;      /* Asegura que el botón no se encoja */
}

.btn-contact:hover {
  background: #333;
  transform: translateY(-2px);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 60px auto 0;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: #003366;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em; 
}

.subtitle {
  font-size: 1.2rem;       /* Se mantiene el tamaño original */
  color: #222222;          /* CAMBIO: Gris mucho más oscuro e intenso */
  font-weight: 500;        /* CAMBIO: Un poco más de "cuerpo" (seminegrita suave) */
  margin-bottom: 30px;
  max-width: 800px;        /* Asegura que no se estire demasiado */
  margin-left: auto;       /* Centrado */
  margin-right: auto;      /* Centrado */
  opacity: 0.95;           /* Asegura máxima visibilidad */
}

.btn-get-in-touch {
  background: #f68b1f;
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s;
}

.btn-get-in-touch:hover {
  background: #e07b1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(246, 139, 31, 0.3);
}

.divider-image {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 40px;
}

.divider-image img {
  width: 100%;
  height: auto;
}

/* UNIFICACIÓN DE TÍTULOS */
h1, h2, h3.section-title, .hero h1 {
  color: #003366 !important;
  font-weight: 800; 
}

.servicios h2,
.section-title,
.seccion.historia .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #003366;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.servicios h2::after,
.section-title::after,
.seccion.historia .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #f68b1f;
    margin: 10px auto 0;
    border-radius: 1.5px;
}

.contact-form-wrapper h2::after {
    content: none;
}

/* ============================================= */
/* OUR SERVICES                                 */
/* ============================================= */
.servicios {
  padding: 30px 0 80px; 
  background: #fff;
}

.descripcion {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 1.1rem;
}

.tabs-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 12px;
  margin-bottom: 40px;
  width: 100%;
}

.tabs-row {
  display: contents;
}

/* ESTILO ORIGINAL DE TABS */
.tab {
  background: #f0f7ff;
  color: #005baa;
  border: 2px solid #005baa;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab:hover {
  background: #fff4e6;
  border-color: #f68b1f;
  color: #f68b1f;
}

.tab.active {
  background: #f68b1f;
  color: #fff;
  border-color: #f68b1f;
}

.tab-content {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.tab-pane.active {
  display: block;
  opacity: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.service-img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.text ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.text li {
  margin-bottom: 10px;
  position: relative;
  line-height: 1.6;
}

.text li::before {
  content: "•";
  color: #f68b1f;
  font-weight: bold;
  position: absolute;
  left: -1.2rem;
}

.cta-center {
  text-align: center;
  margin-top: 50px;
}

.btn-primary {
  background: #005baa;
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 6px 16px rgba(0,91,170,0.3);
}

.btn-primary:hover {
  background: #004080;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,91,170,0.4);
}

/* ============================================= */
/* ABOUT US                                     */
/* ============================================= */
.about-us-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: center;
}

.about-image img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
  color: #005baa;
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: #555;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.strength-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03); 
  transition: all 0.35s ease;
  border: 1px solid rgba(0, 91, 170, 0.08);
}
.strength-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 6px 15px rgba(0, 0, 0, 0.08);
}

.strength-card img {
  height: 80px;
  margin: 0 auto 20px;
}

.strength-card p {
  color: #444;
  font-size: 0.98rem;
}

.bottom-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.values-box {
  background: #003366;
  color: #fff;
  padding: 48px 40px;
  border-radius: 24px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.values-box h3 {
  text-align: center;
  color: #fff !important;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.value-item {
  text-align: center;
}

.value-item img {
  height: 60px;
  margin: 0 auto 12px;
  filter: brightness(0) invert(1);
}

.value-item p {
  font-weight: 600;
  color: #fff;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 91, 170, 0.08);
  transition: all 0.35s ease;
}
.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.mv-card h3 {
  color: #005baa;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.mv-card p {
  color: #555;
}

/* ============================================= */
/* OUR HISTORY (CORREGIDO DEFINITIVO)            */
/* ============================================= */

.seccion.historia {
  padding-bottom: 100px; /* Margen inferior amplio */
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

.timeline-master {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CONTENEDOR FLEX HORIZONTAL */
.timeline-container {
  position: relative;
  display: flex;
  flex-direction: row;     
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  margin-bottom: 40px;     
  flex-wrap: wrap;
}

.timeline-line {
  position: absolute;
  top: 55px; /* Alineada con los círculos */
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #005baa;
  z-index: 1;
}

/* EVENTO INDIVIDUAL (VERTICAL) */
.timeline-event {
  position: relative;
  z-index: 2;
  margin: 0 40px;
  cursor: pointer;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-circle {
  background-color: #fff;
  border: 2px solid #005baa;
  color: #005baa;
  font-weight: 700;
  border-radius: 50%;
  width: 70px;  
  height: 70px; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

/* ETIQUETA DE NOMBRE */
.timeline-label {
  font-weight: 800;
  font-size: 0.95rem;
  color: #9ca3af;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  text-align: center;
  text-transform: uppercase;
}

.timeline-event:hover .timeline-circle {
  background-color: #fff4e6;
  border-color: #f68b1f;
  color: #f68b1f;
  transform: scale(1.1);
}
.timeline-event:hover .timeline-label {
  color: #f68b1f;
}

.timeline-event.active .timeline-circle {
  background-color: #f68b1f;
  color: #fff;
  border-color: #f68b1f;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(246, 139, 31, 0.5);
}
.timeline-event.active .timeline-label {
  color: #003366;
}

/* PANELES Y CABECERAS */
.timeline-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.content-panel {
  display: none !important; /* OCULTAR POR DEFECTO */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease;
  margin-top: 40px;
}

.content-panel.active {
  display: block !important; /* MOSTRAR AL ACTIVAR */
  opacity: 1;
  transform: translateY(0);
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CABECERA DE EMPRESA (LOGO PEQUEÑO) */
.company-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.company-logo img {
  height: 80px !important;
  width: auto !important;
  object-fit: contain;
  max-width: 250px;
  flex-shrink: 0;
}

.company-header h3 {
  color: #003366;
  margin: 0;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.2;
}

.company-header .year {
  display: block;
  color: #f68b1f !important;
  font-weight: 700;
  margin-top: 8px;
  font-size: 1rem;
}

/* LISTAS DE HISTORIA (VIÑETAS NARANJAS) */
.content-panel ul {
  padding-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  list-style: none; 
}

.content-panel li {
  margin-bottom: 12px;
  position: relative;
  line-height: 1.8;
  color: #374151;
  padding-left: 5px;   
}

.content-panel li::before {
  content: "•";
  color: #f68b1f;
  font-weight: bold;
  position: absolute;
  left: -15px;
  font-size: 1.4rem;
  line-height: 1.5rem; 
  top: -4px;
}

/* ============================================= */
/* FEATURED PROJECTS (CORREGIDO)                */
/* ============================================= */

#projects {
    background: #ffffff;
    padding: 80px 0; /* Padding amplio arriba */
}

.experiencia {
  background: #f8fbff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06); 
  border: 1px solid rgba(0, 91, 170, 0.06);
  text-align: center;
}

.experiencia h2 { 
  text-align: center; 
  color: #003366 !important; 
  margin-bottom: 5px; 
  font-size: 2.8rem;
  font-weight: 800; 
  width: 100%;
}

.experiencia h2 span {
    display: block; 
    margin-top: 10px; 
    line-height: 1.5; 
    font-size: 1.1rem;
    font-weight: 500;
    color: #4b5563; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accordion details { 
  margin: 16px 0; 
  border: 1px solid #e8e8e8; 
  border-radius: 14px; 
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  text-align: left;
}

.accordion summary { 
  padding: 24px 28px;
  background: #f5f9ff; 
  font-weight: 600; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 28px;
  color: #003366;
  font-size: 1.15rem;
  transition: background 0.3s;
  list-style: none;
  position: relative;
}

.accordion summary::-webkit-details-marker { 
  display: none; 
}

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 28px;
  font-weight: bold;
  font-size: 1.5rem;
  color: #005baa;
  transition: transform 0.3s;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion summary:hover { 
  background: #e6f0ff; 
}

.accordion summary img {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  border: 4px solid #005baa;
  box-shadow: 0 6px 18px rgba(0,91,170,0.3);
}

.badge { 
  background: #f68b1f; 
  color: white; 
  padding: 8px 18px; 
  border-radius: 30px; 
  font-size: 0.9rem; 
  font-weight: bold;
  letter-spacing: 0.5px;
}

.accordion details[open] {
  border: 1px solid #005baa;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 91, 170, 0.12);
  border-left: 6px solid #f68b1f;
  border-radius: 14px;
}

.accordion details[open] summary {
  background: #e6f0ff;
  color: #003366;
  font-weight: 700;
}

/* ============================================= */
/* TARJETAS DE PROYECTOS (ALTO IMPACTO)         */
/* ============================================= */
.projects-wrapper {
  padding: 20px;
  background: #f8fbff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  background: #fff;
  border: 1px solid #cfd8dc; 
  border-left: 6px solid #005baa; 
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.08); 
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 51, 102, 0.15);
  border-color: #b0c4de;
}

.project-card h4 {
  color: #003366; 
  font-size: 1.15rem;
  margin-bottom: 16px;
  border-bottom: 2px solid #f0f0f0; 
  padding-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.project-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-card li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  color: #374151; 
}

.project-card li::before {
  content: "•";
  color: #f68b1f; 
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

.project-card strong {
  color: #002a5c; 
  font-weight: 800;
}

@media (min-width: 768px) {
  .projects-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================= */
/* CONTACTO                                     */
/* ============================================= */
.contact-section {
  padding: 40px 0 100px; 
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-wrapper {
  max-width: 500px;
}

.contact-form-wrapper h2 {
  color: #003366;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  transition: all 0.3s;
  background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #005baa;
  box-shadow: 0 0 0 3px rgba(0,91,170,0.1);
  background: #ffffff;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: #003366;
  color: #fff;
  padding: 16px 40px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: #002244;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,51,102,0.3);
}

.contact-info-map {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-container {
  flex: 1;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

.contact-info {
  background: #003366;
  color: #fff;
  padding: 28px;
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-info p {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info strong {
  min-width: 80px;
  color: #f68b1f;
  font-weight: 600;
}

/* ============================================= */
/* FOOTER                                       */
/* ============================================= */
.site-footer {
  background-color: #f8f8f8;
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
  font-family: 'Manrope', sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 70px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -2px;
}

.footer-nav a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
  line-height: 1.4;
}

.footer-nav a:hover {
  color: #000;
}

.footer-copyright {
  font-size: 14px;
  color: #777;
  margin: 0;
  width: 100%;
  text-align: left;
}

/* ============================================= */
/* LANG BUTTONS (LÓGICA INVERTIDA)              */
/* ============================================= */

.lang-switcher {
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 20px; 
  padding: 3px;           
  margin-left: 20px;
  border: 1px solid #e5e7eb;
}

/* 1. ESTADO POR DEFECTO (El idioma NO seleccionado) */
/* Este es el botón que llama a la acción -> COLORIDO */
.lang-btn {
  display: flex;          
  align-items: center;
  gap: 6px;               
  background: #003366;    /* AZUL: Resalta para que le des clic */
  border: none;
  color: #fff;            /* Texto Blanco */
  padding: 5px 12px;      
  border-radius: 18px; 
  font-weight: 700;       
  font-size: 0.8rem;      
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0,51,102,0.2);
}

/* Bandera del idioma disponible (A todo color) */
.flag-img {
  width: 16px !important;  
  height: 16px !important; 
  object-fit: cover;
  border-radius: 50%;      
  filter: grayscale(0%);   /* A COLOR */
  opacity: 1;
  transition: all 0.3s ease;
}

/* 2. ESTADO ACTIVO (El idioma que estás leyendo) */
/* Este botón se "apaga" visualmente -> GRIS */
.lang-btn.active {
  background: transparent; /* Sin fondo */
  color: #9ca3af;          /* Texto Gris */
  box-shadow: none;        /* Sin sombra */
  cursor: default;         /* Cursor normal (no manito) */
}

/* Bandera del idioma actual (Gris y tenue) */
.lang-btn.active .flag-img {
  filter: grayscale(100%); /* BLANCO Y NEGRO */
  opacity: 0.5;            /* Semitransparente */
  transform: none;
}

/* 3. HOVER (Solo afecta al botón disponible) */
.lang-btn:hover:not(.active) {
  background: #f68b1f; /* Naranja al pasar el mouse (opcional) o un azul más oscuro */
  transform: translateY(-1px);
}

/* ============================================= */
/* RESPONSIVE GENERAL                           */
/* ============================================= */
@media (max-width: 992px) {
  .content-grid,
  .about-intro,
  .mission-vision,
  .strengths-grid,
  .bottom-row {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info-map {
    order: -1;
  }
  .accordion summary img {
    width: 120px;
    height: 120px;
  }
  .accordion summary {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .lang-switcher {
    position: absolute;
    top: 80px;
    right: 20px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .timeline-container {
    gap: 40px; 
    flex-direction: row;
    justify-content: center;
  }
  .timeline-event {
    margin: 0;
  }
  .experiencia { 
    margin: 60px 20px; 
    padding: 30px 20px; 
  }
  .accordion summary { 
    flex-direction: column;
    text-align: center;
  }
  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-copyright {
    text-align: center;
  }
  .projects-wrapper { 
    grid-template-columns: 1fr; 
  }
  .company-header {
    flex-direction: column; 
    text-align: center;
  }
}
/* ============================================= */
/* BOTÓN SCROLL TOP (RESTAURADO)                */
/* ============================================= */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  background: #003366; /* Azul Corporativo */
  color: white;
  border: none;
  border-radius: 50%;  /* Redondo */
  display: none;       /* Se oculta por defecto, JS lo activa */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Clase que agrega JS cuando bajas la página */
#scrollTopBtn.show {
  display: flex;
}

/* Efecto al pasar el mouse */
#scrollTopBtn:hover {
  background: #f68b1f; /* Se pone naranja */
  transform: translateY(-3px);
}