    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { background: #f2f2f2; color: #333; font-family: Arial, sans-serif; line-height: 1.6;
    flex-direction: column; align-items: center; max-width: 100%; }

    html, body {
  overflow-x: hidden;
}
/* Colores: reemplaza con los valores de la paleta ya definida */
:root {
  --primary-color: #3a82ee;
  --secondary-color: #029e99;
  --bg-color: #f9f9f9;
  --text-color: #333;
  --link-color: var(--primary-color);
  --header-bg: white;
  --footer-bg: #222;
  --footer-text: #ccc;
}

/* Header global */
header {
  width: 100%;
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  z-index: 100;
}
.logo img { display: block;  height: auto;}
.nav-menu { position: relative; min-width: 160px}
.menu-btn {
  background: #e0e0e0;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}
.dropdown {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  min-width: 160px; /* Tamaño mínimo */
  white-space: nowrap; /* Evita que los enlaces se partan en múltiples líneas */
  overflow: hidden;
  z-index: 999; /* Asegura que se superponga correctamente */
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  width: 100%; /* Que no se pasen del dropdown */
  box-sizing: border-box;
}


/* Reset suave */
.section-ling-cv { margin: 0; padding: 0; font-family: sans-serif; background: var(--bg-color); color: var(--text-color); }
.container { max-width: 920px; margin: auto; padding: 1.5rem; }


/* Ajustes responsivos */
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .ling-cv-nav { 
    position: absolute; top: 100%; right: 0; background: var(--header-bg); 
    flex-direction: column; width: 200px; transform: translateX(100%); transition: transform .3s;
    box-shadow: 0 4px 8px rgba(0,0,0,.1); padding: 1rem;
  }
  .ling-cv-nav.open { transform: translateX(0); }
}

/* Hero Placeholder */
.ling-cv-hero { background: var(--secondary-color); margin-bottom: 1.5rem; border-radius: 4px; }

/* Tipografía */
h1, h2 { color: var(--primary-color); margin-top: 0; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-top: 2rem; }
ul { list-style: none; padding: 0; }
ul li { margin-bottom: 1.2rem; line-height: 1.5; }
ul li strong { color: var(--secondary-color); }

/* Tabla escalas */
.scale-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.scale-table th, .scale-table td { border: 1px solid #ccc; padding: 0.6rem; text-align: left; }
.scale-table th { background: var(--primary-color); color: white; }

/* Enlaces en recursos */
.resources-section a { color: var(--link-color); text-decoration: none; }
.resources-section a:hover { text-decoration: underline; }

/* Estilos para el apartado de descarga CV */
#cv-template-section {
  background: var(--secondary-color, #59d2ec);
  padding: 2rem 1.5rem;
  border-radius: 6px;
  color: #fff;
  margin-bottom: 3rem;
}
#cv-template-section h2 {
  margin-bottom: 1rem;
  color: white;
  font-size: 1.8rem;
}
#cv-template-section p,
#cv-template-section .small {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.btn-download {
  display: inline-block;
  background: #fff;
  color: var(--secondary-color, #59d2ec);
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn-download:hover {
  background: var(--primary-color, #029e99);
  color: white;
}


/* Footer global */
.footer {
  background-color: rgba(12, 12, 12, 0.9);
  height: 80px;
  line-height: 80px;
  text-align: center;
  width: 100%;
}
.footer p {
  margin: 0;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 300;
}
.footer p a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}


/* ============ MÓVILES (<=600px) ============ */
@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
  }

  /* Header: mantiene fila sin desbordar */
  header {
    padding: 0.75rem 1rem;
  }
  .logo img {
    max-height: 40px;
    width: auto;
    display: block;
  }
  .menu-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }
  /* Dropdown fullscreen */
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
  }

  /* Tablas: scroll interno, sin romper layout */
  .scale-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  .scale-table th,
  .scale-table td {
    white-space: nowrap;
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  /* Tipografía y botón */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  p, li { font-size: 0.95rem; }
  .btn-download {
    width: 100%;
    display: block;
    text-align: center;
    padding: 0.6rem 0;
    font-size: 1rem;
    box-sizing: border-box;
  }
}

/* ============ TABLETS (601px–900px) ============ */
@media (min-width: 601px) and (max-width: 900px) {
  .container {
    width: 95%;
    padding: 0 1.5rem;
    margin: 0 auto;
  }

  header {
    padding: 0.85rem 2%;
  }
  .logo img {
    max-height: 50px;
  }
  .menu-btn {
    padding: 0.45rem 0.9rem;
    font-size: 1.05rem;
  }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 2%;
    width: 96%;
  }

  .scale-table {
    display: block;
    overflow-x: auto;
  }
  .scale-table th,
  .scale-table td {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  p, li { font-size: 1rem; }
  .btn-download {
    width: auto;
    padding: 0.7rem 1.4rem;
    font-size: 1.05rem;
  }
}

/* ============ DESKTOP (901px–1200px) ============ */
@media (min-width: 901px) and (max-width: 1200px) {
  .container {
    width: 90%;
    padding: 0 2rem;
    margin: 0 auto;
  }

  header {
    padding: 1rem 3%;
  }
  .logo img {
    max-height: 60px;
  }
  .menu-btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 3%;
    width: 94%;
    max-width: 260px;
  }

  .scale-table {
    display: table;
    overflow: visible;
  }
  .scale-table th,
  .scale-table td {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  p, li { font-size: 1.05rem; }
  .btn-download {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
  }
}

/* ============ DESKTOP AMPLIO (>1200px) ============ */
@media (min-width: 1201px) {
  .container {
    width: 80%;
    margin: 0 auto;
    padding: 0 2.5rem;
  }

  header {
    padding: 1rem 5%;
  }
  .logo img {
    max-height: 70px;
  }
  .menu-btn {
    padding: 0.6rem 1.1rem;
    font-size: 1.15rem;
  }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 5%;
    width: 90%;
    max-width: 280px;
  }

  .scale-table {
    display: table;
    overflow: visible;
  }
  .scale-table th,
  .scale-table td {
    padding: 0.8rem;
    font-size: 1rem;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  p, li { font-size: 1.1rem; }
  .btn-download {
    padding: 0.9rem 1.6rem;
    font-size: 1.15rem;
  }
}