:root {
  --azul: #003554;
  --dorado: #c89b3d;
  --gris: #f5f0ec;
  --texto: #2a2a2a;
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--gris);
  color: var(--texto);
}

/* Barra superior */
.topbar {
  background: #fff;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 800;
  color: var(--azul);
  font-size: 1.3rem;
}

.menu a {
  text-decoration: none;
  color: var(--texto);
  margin: 0 1.2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: var(--dorado);
}



.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}

.btn-hero {
  background: var(--dorado);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-hero:hover {
  background: #b18330;
}

/* Bloques */
.bloques {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.bloque {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 2rem;
  flex: 1 1 320px;
  text-align: center;
  transition: transform 0.3s;
}

.bloque:hover {
  transform: translateY(-6px);
}

/* Carrusel / video */
.carrusel {
  position: relative;
  overflow: hidden;
  height: 400px;
  margin-top: 2rem;
}

.carrusel h2 {
  position: absolute;
  z-index: 10;
  color: #fff;
  font-size: 2rem;
  top: 20px;
  left: 40px;
}

.video-fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}


:root {
  --vino: #7a2a4f;
  --vino-oscuro: #6a2343;
  --dorado: #c89b3d;
  --azul: #003554;
  --gris-fondo: #f5f0ec;
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--gris-fondo);
  color: #333;
}

/* Topbar */
.topbar {
  background: #fff;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-izq img {
  height: 44px;
}

.menu a {
  text-decoration: none;
  color: #333;
  margin: 0 1.3rem;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: var(--dorado);
}

/* HERO */
.hero {
  background: linear-gradient(120deg, var(--vino-oscuro) 0%, var(--azul) 90%);
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.logo-central {
  width: 580px; 
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 1000;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--dorado);
}

.hero p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.hero-btns {
  margin-top: 2rem;
}

.btn {
  background: var(--dorado);
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background: #b18330;
}

/* Bloques */
.bloques {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.bloque {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2rem;
  flex: 1 1 340px;
  text-align: center;
  transition: transform 0.3s;
}

.bloque:hover {
  transform: translateY(-5px);
}

/* Carrusel / video */
.carrusel {
  position: relative;
  overflow: hidden;
  height: 400px;
  margin-top: 2rem;
  border-radius: var(--radius);
}

.carrusel h2 {
  position: absolute;
  z-index: 10;
  color: #fff;
  font-size: 1.8rem;
  top: 20px;
  left: 40px;
}

.video-fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

:root {
  --vino: #7a2a4f;
  --vino-oscuro: #6a2343;
  --dorado: #c89b3d;
  --azul: #003554;
  --gris-fondo: #f5f0ec;
  --radius: 20px;
}

/* reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--gris-fondo);
  color: #333;
}

/* =============== TOPBAR =============== */
.topbar {
  background: #fff;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-izq img {
  height: 46px;
}

/* menú con animación dorada */
.menu a {
  position: relative;
  text-decoration: none;
  color: #333;
  margin: 0 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--vino) 0%, var(--dorado) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
  border-radius: 999px;
}

.menu a:hover {
  color: var(--dorado);
}

.menu a:hover::after {
  transform: scaleX(1);
}

/* =============== HERO =============== */
.hero {
  background: linear-gradient(120deg, var(--vino-oscuro) 0%, var(--azul) 85%);
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.logo-central {
  width: 585px;
  margin-bottom: 1rem;
  /* animación de latido */
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0 rgba(206, 88, 88, 0)); }
  50%  { transform: scale(1.04); filter: drop-shadow(0 6px 15px rgba(0,0,0,0.25)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.9;
}

.hero-btns {
  margin-top: 2rem;
}

.btn {
  background: var(--dorado);
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  margin: 0 0.4rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-alt {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =============== BLOQUES =============== */
.bloques {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.bloque {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2rem;
  flex: 1 1 340px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.bloque-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(120deg, var(--vino) 0%, var(--dorado) 100%);
  color: #fff;
  padding: 0.4rem 1.3rem;
  border-bottom-right-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.bloque h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.bloque p {
  margin-bottom: 1.1rem;
}

.mini-btn {
  background: linear-gradient(120deg, var(--vino) 0%, var(--dorado) 100%);
  border: none;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mini-btn:hover {
  opacity: 0.85;
}

/* =============== CARRUSEL / VIDEO =============== */
.carrusel {
  position: relative;
  overflow: hidden;
  height: 380px;
  margin: 0 1.5rem 3rem;
  border-radius: var(--radius);
}

.carrusel h2 {
  position: absolute;
  z-index: 10;
  color: #fff;
  font-size: 1.7rem;
  top: 22px;
  left: 35px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.video-fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

/* responsive */
@media (max-width: 820px) {
  .menu { display: none; } /* después le podés hacer hamburguesa */
  .hero h1 { font-size: 2rem; }
  .bloques { padding: 3rem 1rem; }
}


/* ================= HERO ================= */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background: radial-gradient(
      circle at 40% 50%, 
      rgba(205, 238, 180, 0.05) 0%, 
      rgba(0, 0, 0, 0.15) 60%
    ),
    linear-gradient(120deg, var(--vino-oscuro) 0%, var(--azul) 90%);
  overflow: hidden;
}

/* contenedor interno */
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* alineación horizontal de logos */
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  margin-bottom: 1.5rem;
}

/* Logo OBservar (izquierda, late) */
.logo-central {
  width: 580px;
  animation: pulse 2.5s ease-in-out infinite;
  transform: translateX(-30px);
}

/* Logo ORES (derecha, estático) */
.logo-ores {
  width: 360px;
  opacity: 0.8;
  transform: translateX(30px);
}

/* animación suave */
@keyframes pulse {
  0% { transform: scale(1) translateX(-30px); filter: brightness(1); }
  50% { transform: scale(1.06) translateX(-30px); filter: brightness(1.1); }
  100% { transform: scale(1) translateX(-30px); filter: brightness(1); }
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.9;
}






:root {
  --vino: #7a2a4f;
  --vino-oscuro: #6a2343;
  --dorado: #c89b3d;
  --azul: #003554;
  --gris-fondo: #f5f0ec;
  --radius: 20px;
}

/* reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--gris-fondo);
  color: #333;
}

/* ================= TOPBAR ================= */
.topbar {
  background: #fff;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-izq img {
  height: 34px;              /* ← más chico */
  width: auto;
  object-fit: contain;
  display: block;
}

/* menú con línea dorada */
.menu a {
  position: relative;
  text-decoration: none;
  color: #333;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--vino) 0%, var(--dorado) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
  border-radius: 999px;
}

.menu a:hover {
  color: var(--dorado);
}

.menu a:hover::after {
  transform: scaleX(1);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background: linear-gradient(120deg, #6a2343 0%, #003554 90%);
  overflow: hidden;
}

/* halo animado, pero suave */
.hero::before {
  content: "";
  position: absolute;
  top: 22%;
  left: 28%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle,
      rgba(255, 204, 102, 0.35) 0%,
      rgba(255, 204, 102, 0) 75%);
  filter: blur(8px);
  animation: halo 10s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 12%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle,
      rgba(106, 35, 67, 0.25) 0%,
      rgba(106, 35, 67, 0) 80%);
  filter: blur(10px);
  pointer-events: none;
}

@keyframes halo {
  0%   { transform: scale(1) translate(0,0); opacity: 0.6; }
  50%  { transform: scale(1.12) translate(14px,10px); opacity: 0.85; }
  100% { transform: scale(1) translate(0,0); opacity: 0.6; }
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* logos dentro del hero */
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  margin-bottom: 1.6rem;
}

.logo-central {
  width: 165px;
  transform: translateX(-28px);
  animation: pulse 2.8s ease-in-out infinite;
}

.logo-ores {
  width: 190px;
  opacity: 0.95;
  transform: translateX(28px);
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.15));
}

@keyframes pulse {
  0%   { transform: scale(1) translateX(-28px); }
  50%  { transform: scale(1.045) translateX(-28px); }
  100% { transform: scale(1) translateX(-28px); }
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.9;
}

/* ================= BLOQUES ================= */
.bloques {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.bloque {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2rem;
  flex: 1 1 340px;
  position: relative;
  overflow: hidden;
}

.bloque-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(120deg, var(--vino) 0%, var(--dorado) 100%);
  color: #fff;
  padding: 0.4rem 1.3rem;
  border-bottom-right-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
}

.bloque h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.bloque p {
  margin-bottom: 1rem;
}

.mini-btn {
  background: linear-gradient(120deg, var(--vino) 0%, var(--dorado) 100%);
  border: none;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.mini-btn:hover {
  opacity: 0.85;
}

/* ================= CARRUSEL / VIDEO ================= */
.carrusel {
  position: relative;
  overflow: hidden;
  height: 380px;
  margin: 0 1.5rem 3rem;
  border-radius: var(--radius);
}

.carrusel h2 {
  position: absolute;
  z-index: 10;
  color: #fff;
  font-size: 1.7rem;
  top: 22px;
  left: 35px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.video-fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

/* responsive */
@media (max-width: 820px) {
  .menu { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .hero-logos { flex-direction: column; gap: 1rem; }
  .logo-central, .logo-ores { transform: none; }
}


/* ======= HERO CON FONDO AZUL PETRÓLEO ======= */

.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background: #003554; /* Azul petróleo pleno */
  overflow: hidden;
}

/* Halo cálido y animado detrás del logo OBservar */
.hero::before {
  content: "";
  position: absolute;
  top: 22%;
  left: 25%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle,
      rgba(255, 208, 130, 0.45) 0%,
      rgba(255, 208, 130, 0) 75%);
  filter: blur(25px);
  animation: haloShift 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Halo tenue del lado derecho (para ORES) */
.hero::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0) 75%);
  filter: blur(15px);
  pointer-events: none;
  z-index: 0;
}

@keyframes haloShift {
  0%   { transform: scale(1); opacity: 0.7; }
  50%  { transform: scale(1.2) translate(15px,10px); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
}

/* Logos */
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  margin-bottom: 1.5rem;
}

.logo-central {
  width: 580px;
  transform: translateX(-25px);
  animation: pulseLogo 3s ease-in-out infinite;
}

.logo-ores {
  width: 385px;
  opacity: 0.95;
  transform: translateX(25px);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

@keyframes pulseLogo {
  0%   { transform: scale(1) translateX(-25px); filter: brightness(1); }
  50%  { transform: scale(1.05) translateX(-25px); filter: brightness(1.1); }
  100% { transform: scale(1) translateX(-25px); filter: brightness(1); }
}

/* Texto */
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.9;
}

/* Ajuste de posición del texto en el hero */
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: -25px;  /* lo sube hacia los logos */
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 2;
}



/* ======== ESTILO INSTITUCIONAL DE LA BARRA SUPERIOR ======== */

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);

  /* Variante A: azul petróleo con transparencia elegante */
  background: rgba(0, 53, 84, 0.92);
  backdrop-filter: blur(6px);
}

/* Si preferís otra versión, podés activar una sola y comentar las otras */

/* Variante B: degradé institucional
.topbar {
  background: linear-gradient(90deg, #7a2a4f 0%, #003554 80%);
  color: white;
}
*/

/* Variante C: barra blanca con borde inferior dorado
.topbar {
  background: #ffffff;
  border-bottom: 3px solid #c89b3d;
}
*/

/* ---- ajustes del contenido ---- */
.logo-izq img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.menu a {
  color: #fff;
  text-decoration: none;
  margin: 0 1.2rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f0d8a3, #c89b3d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.menu a:hover {
  color: #f0d8a3;
}

.menu a:hover::after {
  transform: scaleX(1);
}
/* ======= BARRA SUPERIOR AZUL PETRÓLEO CLARO ======= */
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0.65) 100%
  );
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(0, 53, 84, 0.2);
}

/* Logo más equilibrado */
.logo-izq img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

/* Menú con tono azul petróleo y animación dorada */
.menu a {
  color: #003554;
  text-decoration: none;
  margin: 0 1.2rem;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.menu a::after {

  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c89b3d, #f0d8a3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.menu a:hover {
  color: #7a2a4f;
}

.menu a:hover::after {
  transform: scaleX(1);
}



/* ======== PIE DE PÁGINA ORES ======== */

/* Bloque de redes */
.redes-ores {
  background: #f5f0ec;
  padding: 2.5rem 1rem 1rem;
  text-align: center;
}

.redes-ores h3 {
  color: #03304a;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.iconos-redes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.iconos-redes a {
  font-size: 1.4rem;
  color: #7a2a4f;
  background: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.iconos-redes a:hover {
  background: linear-gradient(120deg, #7a2a4f 0%, #c89b3d 100%);
  color: #fff;
  transform: translateY(-3px);
}

/* Tooltip animado */
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #003554;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, bottom 0.2s ease;
  white-space: nowrap;
}

.tooltip:hover::after {
  opacity: 1;
  bottom: -40px;
}

/* Ícono X (Twitter nuevo) */
.fa-x-twitter::before {
  content: "𝕏"; /* Unicode para el logo X */
  font-weight: bold;
  font-size: 1.3rem;
}

/* Ubicación institucional */
.ubicacion-ores {
  background: #f5f0ec;
  padding: 2rem 1rem;
  text-align: center;
  color: #031a9a;
}

.ubicacion-box {
  max-width: 600px;
  margin: 0 auto;
}

.ubi-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.ubi-textos h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #7a2a4f;
}

.ubi-textos p {
  margin: 0.3rem 0;
}

.ubi-textos a {
  display: inline-block;
  margin-top: 0.3rem;
  color: #c89b3d;
  text-decoration: none;
  font-weight: 600;
}

.ubi-textos a:hover {
  text-decoration: underline;
}

/* Footer final */
.footer {
  background: #023657;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}

.footer a {
  color: #f0d8a3;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* Forzar que el ícono de Twitter se vea como X */
.iconos-redes .fa-twitter:before {
  content: "𝕏";
  font-weight: 700;
  font-size: 1.1rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1;
}


/* ====== MENÚ CON DESPLEGABLES ====== */

.menu {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  color: #003554;          /* azul petróleo que ya usás */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.2rem;
  display: inline-block;
}

/* submenú oculto */
.submenu {
  position: absolute;
  top: 120%;              /* un poquito debajo de la barra */
  left: 0;
  background: #fff;
  min-width: 230px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 0.6rem 0;
  display: none;
  z-index: 999;
  border: 1px solid rgba(0,53,84,0.05);
}

/* items dentro del submenú */
.submenu a {
  display: block;
  padding: 0.55rem 1rem;
  color: #003554;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.87rem;
  transition: background 0.2s, padding 0.2s;
}

.submenu a:hover {
  background: rgba(200,155,61,0.08); /* dorado muy suave */
  padding-left: 1.2rem;
}

/* mostrar al pasar */
.has-submenu:hover .submenu {
  display: block;
}

/* flechita opcional para indicar que hay submenú */
.has-submenu > a::after {
  content: "▾";
  font-size: 0.6rem;
  margin-left: 4px;
  color: #7a2a4f;
}




.page-wrap {
  max-width: 1100px;
  margin: 90px auto 3rem; /* 90px para que no lo tape la barra */
  padding: 0 1.2rem;
}

.breadcrumb {
  font-size: 0.78rem;
  color: #6c7a80;
  margin-bottom: 1.4rem;
}

.breadcrumb a {
  color: #003554;
  text-decoration: none;
}

.intro-block h1 {
  font-size: 2rem;
  color: #003554;
  margin-bottom: 0.6rem;
}

.intro-block p {
  line-height: 1.6;
  margin-bottom: 0.6rem;
  max-width: 820px;
}

.cards-equipo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card-soft {
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem 1.3rem 1.4rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,53,84,0.03);
}

.card-soft h2 {
  margin-top: 0;
  font-size: 1.05rem;
  color: #7a2a4f; /* vino que venías usando */
  margin-bottom: 0.5rem;
}



/* ====== BANNER ORES ====== */
.banner-ores {
  background: linear-gradient(120deg, #003554 0%, #7a2a4f 70%);
  color: #fff;
  padding: 3.3rem 1.5rem 3rem;
  margin-top: 72px; /* para que no lo tape la topbar */
}

.banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.banner-logo img {
  height: 90px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.18));
}

.banner-textos h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.banner-textos p {
  opacity: 0.9;
  font-weight: 400;
}

/* responsive banner */
@media (max-width: 820px) {
  .banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .banner-logo img {
    height: 78px;
  }
}

/* ====== ANIMACIÓN DE ENTRADA (barrido/fade) ====== */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease-out forwards;
}

.fade-up:nth-of-type(2) {
  animation-delay: 0.12s;
}
.fade-up:nth-of-type(3) {
  animation-delay: 0.22s;
}
.fade-up:nth-of-type(4) {
  animation-delay: 0.32s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== BANNER ORES CON EFECTO CINTA ====== */
.banner-ores {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
}

.banner-ores::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(120deg, #003554 0%, #7a2a4f 70%);
  transform-origin: left;
  transform: scaleX(0);
  animation: cintaExpand 1s ease-out forwards;
  z-index: 0;
}

@keyframes cintaExpand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 3.3rem 1.5rem 3rem;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  animation: contenidoAparece 0.6s ease-out 0.8s forwards;
}

@keyframes contenidoAparece {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-logo img {
  height: 90px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.18));
}

.banner-textos h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.banner-textos p {
  opacity: 0.9;
  font-weight: 400;
}

@media (max-width: 820px) {
  .banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .banner-logo img {
    height: 78px;
  }
}























/* ===== HERO SECUNDARIA ===== */
.hero-secundaria {
  background: radial-gradient(circle at 14% 20%, rgba(200,155,61,0.08) 0%, rgba(0,53,84,1) 40%, #7a2a4f 100%);
  color: #fff;
  padding: 4.4rem 1.5rem 3.4rem;
  margin-top: 72px;
}
.hero-secundaria-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.hero-secundaria h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.hero-secundaria p {
  max-width: 650px;
  opacity: 0.92;
}
.chip {
  display: inline-block;
  background: rgba(240,216,163,0.18);
  border: 1px solid rgba(240,216,163,0.5);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

/* ===== LAYOUT 2 COLUMNAS ===== */
.page-flex {
  display: flex;
  gap: 2.4rem;
  max-width: 1100px;
  margin: 2.6rem auto 3.4rem;
  padding: 0 1.2rem;
}
.col-contenido {
  flex: 1 1 62%;
}
.col-lateral {
  flex: 1 1 30%;
}
@media (max-width: 920px) {
  .page-flex {
    flex-direction: column;
  }
}

/* ===== CARDS RAZONES ===== */
.cards-razones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin: 1.6rem 0 2.3rem;
}
.razon-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1rem 1.25rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,53,84,0.03);
  transition: transform 0.2s;
}
.razon-card:hover {
  transform: translateY(-4px);
}
.iconito {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7a2a4f, #c89b3d);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 0.6rem;
}

/* ===== LATERAL ===== */
.box-lateral {
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem 1.2rem 1.1rem;
  border-left: 5px solid #c89b3d;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  margin-bottom: 1.3rem;
}
.box-lateral h3 {
  margin-bottom: 0.6rem;
  color: #003554;
}
.box-lateral ul {
  list-style: none;
  padding: 0;
}
.box-lateral li {
  margin-bottom: 0.4rem;
  color: #333;
}
.box-lateral.soft {
  border-left-color: #7a2a4f;
}

/* ===== ANIMACIÓN REUTILIZABLE ===== */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.45s ease-out forwards;
}
.fade-up:nth-of-type(2) { animation-delay: 0.1s; }
.fade-up:nth-of-type(3) { animation-delay: 0.18s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Para marcar la opción activa dentro del submenu */
.submenu .activo-sub {
  background: rgba(200,155,61,0.08);
  font-weight: 600;
}


/* ===== AJUSTE HERO ¿POR QUÉ OBSERVAR? ===== */
.hero-secundaria {
  background: linear-gradient(120deg, #003554 0%, #7a2a4f 80%);
  position: relative;
  overflow: hidden;
}
.hero-secundaria::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,210,120,0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
}
.hero-secundaria-inner {
  position: relative;
  z-index: 2;
  animation: heroIn 1s ease-out forwards;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
}
@keyframes heroIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.hero-secundaria h1 {
  color: #f0d8a3; /* dorado claro */
  text-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.hero-secundaria p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== TEXTO MÁS LEGIBLE EN CONTENIDO ===== */
.page-wrap p {
  line-height: 1.75;
  font-size: 1rem;
  max-width: 800px;
  color: #2a2a2a;
}
.page-wrap h2 {
  color: #003554;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}
.page-wrap .col-contenido p + p {
  margin-top: 1rem;
}
.page-wrap {
  background: #faf9f7;
  border-radius: 20px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}



/* ===== RECOMENDACIONES DE USO ===== */
.reco-wrap {
  max-width: 1150px;
  margin: 90px auto 3rem;   /* 90px por la barra fija */
  padding: 0 1.2rem;
}

.reco-header {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.02);
  position: relative;
  margin-bottom: 1.5rem;
}

.reco-icono {
  width: 28px;
  height: 28px;
  background: #7a2a4f;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #f0d8a3;
  font-weight: 700;
  margin-top: 3px;
}

.reco-header h1 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: #003554;
}

.reco-header p {
  line-height: 1.5;
}

.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.reco-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.05rem 1rem 1.05rem;
  border-left: 6px solid rgba(200,155,61,0.55);
  box-shadow: 0 6px 20px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 150px;
}

.reco-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #f5f0ec;
  display: grid;
  place-items: center;
  color: #7a2a4f;
  font-size: 1.05rem;
}

.reco-card h2 {
  font-size: 0.95rem;
  color: #003554;
}

.reco-card p {
  font-size: 0.84rem;
  line-height: 1.4;
}

.reco-footer {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  color: #555;
}

@media (max-width: 680px) {
  .reco-header {
    flex-direction: column;
  }
}



/* ===== BOTÓN MODO OSCURO ===== */
.modo-toggle {
  cursor: pointer;
  color: #003554;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.modo-toggle:hover {
  background: #c89b3d;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== MODO OSCURO GLOBAL ===== */
body.dark-mode {
  background-color: #0f1419;
  color: #e2e2e2;
}

body.dark-mode .topbar {
  background: rgba(10, 14, 18, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

body.dark-mode .menu a {
  color: #e2e2e2;
}

body.dark-mode .menu a:hover {
  color: #c89b3d;
}

body.dark-mode .bloque,
body.dark-mode .banner-ores,
body.dark-mode .hero-secundaria,
body.dark-mode .reco-header,
body.dark-mode .reco-card,
body.dark-mode .box-lateral,
body.dark-mode .footer {
  background: #162029;
  color: #e2e2e2;
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .footer {
  background: #0d1a22;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
  color: #f0d8a3;
}

body.dark-mode .modo-toggle {
  background: #1f2c38;
  color: #f0d8a3;
}

body.dark-mode .modo-toggle:hover {
  background: #c89b3d;
  color: #fff;
}





/* ===== HERO DATOS ===== */
.hero-datos {
  background: linear-gradient(120deg, #003554 0%, #14597a 45%, #7a2a4f 100%);
}

/* ===== CONTENEDOR DATOS ===== */
.datos-wrap {
  max-width: 1150px;
  margin: 2.4rem auto 3.4rem;
  padding: 0 1.2rem;
}

.datos-intro h2 {
  color: #003554;
  margin-bottom: 0.6rem;
}

.datos-intro p {
  line-height: 1.65;
  max-width: 820px;
}

/* ===== GRID DE FUENTES ===== */
.fuentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.fuente-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1rem 1.2rem;
  border: 1px solid rgba(0,53,84,0.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.015);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fuente-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .3rem;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: .02rem;
}

.pill-verde { background: rgba(81, 139, 98, 0.15); color: #315841; }
.pill-azul { background: rgba(0, 53, 84, 0.15); color: #003554; }
.pill-dorado { background: rgba(200, 155, 61, 0.16); color: #7a2a4f; }

.anio {
  font-size: 0.7rem;
  color: #666;
}

/* ===== TABLA DE DISPONIBILIDAD ===== */
.tabla-disponibilidad {
  margin-top: 2.3rem;
}

.tabla-disponibilidad h2 {
  margin-bottom: .6rem;
}

.tabla-scroll {
  overflow-x: auto;
}

.tabla-soft {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.015);
}

.tabla-soft th, .tabla-soft td {
  padding: .7rem .9rem;
  border-bottom: 1px solid rgba(0,0,0,0.028);
  text-align: left;
  font-size: .82rem;
}

.tabla-soft thead {
  background: rgba(0,53,84,0.04);
}

.tabla-soft tbody tr:last-child td {
  border-bottom: none;
}

.nota-datos {
  font-size: .7rem;
  color: #555;
  margin-top: .5rem;
}

/* ===== ALERTA DATOS ===== */
.alerta-datos {
  margin-top: 1.6rem;
  background: #fff1da;
  border-left: 5px solid #c89b3d;
  border-radius: 12px;
  padding: .75rem 1rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .82rem;
  color: #653d0f;
}

.alerta-datos i {
  margin-top: .2rem;
}

/* ===== MODO OSCURO PARA ESTA PÁGINA ===== */
body.dark-mode .fuente-card,
body.dark-mode .tabla-soft,
body.dark-mode .alerta-datos {
  background: #162029;
  color: #e2e2e2;
  border-color: rgba(255,255,255,0.03);
}
body.dark-mode .tabla-soft thead {
  background: rgba(255,255,255,0.03);
}
body.dark-mode .alerta-datos {
  background: rgba(200, 155, 61, 0.08);
  color: #fff;
}



/* ===== GRID DE FUENTES (versión mejorada) ===== */
.fuentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
  margin-bottom: 2rem;
}

.fuente-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.6rem 1.4rem 1.6rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fuente-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Encabezado */
.fuente-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.pill {
  display: inline-block;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  background: rgba(0, 53, 84, 0.08);
}

.pill-verde { background: rgba(81, 139, 98, 0.15); color: #2f5b3f; }
.pill-azul { background: rgba(0, 53, 84, 0.12); color: #003554; }
.pill-dorado { background: rgba(200, 155, 61, 0.18); color: #7a2a4f; }

.anio {
  font-size: 0.75rem;
  font-weight: 500;
  color: #777;
}

/* Contenido */
.fuente-card h3 {
  font-size: 1.05rem;
  color: #003554;
  margin-bottom: 0.4rem;
}

.fuente-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333;
  margin-bottom: 0.8rem;
}

.fuente-card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #222;
}

.fuente-card li {
  margin-bottom: 0.35rem;
}

/* Responsivo */
@media (max-width: 780px) {
  .fuentes-grid {
    gap: 1rem;
  }
  .fuente-card {
    padding: 1.3rem 1.1rem;
  }
}


/* ===== BLOQUES DE DEVOLUCIÓN (versión más aireada) ===== */
.devolucion-open {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.devolucion-box {
  background: #ffffff;
  flex: 1 1 360px;
  border-radius: 18px;
  padding: 1.4rem 1.6rem 1.5rem;
  border-left: 6px solid #003554;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.devolucion-box.soft {
  border-left-color: #c89b3d;
}

.devolucion-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Texto interno */
.devolucion-box h3 {
  font-size: 1.05rem;
  color: #003554;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.devolucion-box p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #2b2b2b;
  margin-bottom: 0.6rem;
}

/* Efecto de entrada sutil */
.devolucion-box {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInSoft 0.6s ease-out forwards;
}
.devolucion-box:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes fadeInSoft {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MODO OSCURO ===== */
body.dark-mode .devolucion-box {
  background: #162029;
  color: #e2e2e2;
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .devolucion-box h3 {
  color: #f0d8a3;
}

/* ===== HERO DATOS ABIERTOS ===== */
.hero-datos-abiertos {
  background: linear-gradient(120deg, #003554 0%, #246f87 45%, #c89b3d 100%);
}

/* ===== PRINCIPIOS OPEN DATA ===== */
.principios-open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.7rem 0 2.3rem;
}

.open-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1rem 1.1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.015);
  border: 1px solid rgba(0,53,84,0.02);
}

.open-card h3 {
  display: flex;
  gap: .5rem;
  align-items: center;
  color: #003554;
  margin-bottom: .4rem;
  font-size: .95rem;
}

.open-card i {
  color: #7a2a4f;
}

/* ===== FUENTES ABIERTAS ===== */
.fuentes-open h2 {
  margin-bottom: .5rem;
  color: #003554;
}

.fuentes-open ul {
  margin: .6rem 0 1.5rem;
  padding-left: 1rem;
}

.fuentes-open li {
  margin-bottom: .45rem;
}

/* ===== DEVOLUCIÓN ===== */
.devolucion-open {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .6rem;
  margin-bottom: 2.5rem;
}

.devolucion-box {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1rem 1rem;
  flex: 1 1 320px;
  border-left: 5px solid #003554;
  box-shadow: 0 6px 16px rgba(0,0,0,0.02);
}

.devolucion-box.soft {
  border-left-color: #c89b3d;
}

/* modo oscuro */
body.dark-mode .open-card,
body.dark-mode .devolucion-box {
  background: #162029;
  color: #e2e2e2;
  border-color: rgba(255,255,255,0.03);
}

/* ===== BLOQUES DE DEVOLUCIÓN (versión más aireada) ===== */
.devolucion-open {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.devolucion-box {
  background: #ffffff;
  flex: 1 1 360px;
  border-radius: 18px;
  padding: 1.4rem 1.6rem 1.5rem;
  border-left: 6px solid #003554;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.devolucion-box.soft {
  border-left-color: #c89b3d;
}

.devolucion-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Texto interno */
.devolucion-box h3 {
  font-size: 1.05rem;
  color: #003554;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.devolucion-box p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #2b2b2b;
  margin-bottom: 0.6rem;
}

/* Efecto de entrada sutil */
.devolucion-box {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInSoft 0.6s ease-out forwards;
}
.devolucion-box:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes fadeInSoft {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MODO OSCURO ===== */
body.dark-mode .devolucion-box {
  background: #162029;
  color: #e2e2e2;
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .devolucion-box h3 {
  color: #f0d8a3;
}


/* HERO PRODUCCIÓN Y ÉTICA */
.hero-produc {
  background: linear-gradient(120deg, #003554, #2f5b3f, #c89b3d);
}
.hero-etica {
  background: linear-gradient(120deg, #7a2a4f, #003554);
}

/* MINI CARDS */
.cards-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0 3rem;
}

.mini-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem 1rem 1.2rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
  text-align: center;
  transition: all 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.mini-card i {
  font-size: 1.5rem;
  color: #7a2a4f;
  margin-bottom: .6rem;
}

.mini-card h3 {
  font-size: 1rem;
  color: #003554;
  margin-bottom: .4rem;
}

.mini-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #333;
}

/* DARK MODE */
body.dark-mode .mini-card {
  background: #162029;
  color: #e2e2e2;
  box-shadow: none;
}
body.dark-mode .mini-card h3 {
  color: #f0d8a3;
}



/* ===== HERO DATA CULTURE ===== */
.hero-dataculture {
  background: linear-gradient(120deg, #003554, #7a2a4f, #c89b3d);
}

/* ===== SECCIÓN DATA CULTURE ===== */
.dataculture-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem 0 3rem;
}

.dataculture-text {
  flex: 1 1 480px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2b2b2b;
}

.dataculture-text p {
  margin-bottom: 1rem;
}

.dataculture-img {
  flex: 1 1 360px;
  text-align: center;
}

.dataculture-img img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.dataculture-img img:hover {
  transform: scale(1.02);
}

/* ===== DARK MODE ===== */
body.dark-mode .dataculture-text {
  color: #e2e2e2;
}
body.dark-mode .dataculture-img img {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.06);
}


/* ===== HERO METODOLOGÍA ===== */
.hero-metodo {
  background: linear-gradient(120deg, #003554, #7a2a4f, #c89b3d);
}

/* ===== BLOQUES METODOLÓGICOS ===== */
.metodo-bloque {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease;
}

.metodo-bloque:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.metodo-bloque h2 {
  font-size: 1.05rem;
  color: #003554;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metodo-bloque ul {
  list-style: none;
  padding-left: 1rem;
}

.metodo-bloque li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
  position: relative;
}

.metodo-bloque li::before {
  content: "•";
  color: #c89b3d;
  position: absolute;
  left: -0.8rem;
}

.metodo-bloque p {
  line-height: 1.65;
  color: #2b2b2b;
}

.nota-metodo {
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.6rem;
}

/* ===== MODO OSCURO ===== */
body.dark-mode .metodo-bloque {
  background: #162029;
  color: #e2e2e2;
}
body.dark-mode .metodo-bloque h2 {
  color: #f0d8a3;
}
body.dark-mode .nota-metodo {
  color: #ccc;
}


/* ===== HERO TECNOLOGÍAS ===== */
.hero-tecno {
  background: linear-gradient(120deg, #003554, #7a2a4f, #c89b3d);
}

/* ===== TARJETAS DE TECNOLOGÍAS ===== */
.tecno-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.tecno-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tecno-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.tecno-card i {
  font-size: 2rem;
  color: #7a2a4f;
  margin-bottom: 0.6rem;
}

.tecno-card h3 {
  margin-bottom: 0.4rem;
  color: #003554;
  font-size: 1rem;
}

.tecno-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

/* ===== IMAGEN FINAL ===== */
.tecno-img {
  text-align: center;
  margin-top: 2rem;
}

.tecno-img img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.caption {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.6rem;
}

/* ===== DARK MODE ===== */
body.dark-mode .tecno-card {
  background: #162029;
  color: #e2e2e2;
}

body.dark-mode .tecno-card h3 {
  color: #f0d8a3;
}

body.dark-mode .caption {
  color: #ccc;
}


/* ===== HERO CÓDIGOS ===== */
.hero-codigos {
  background: linear-gradient(120deg, #003554, #7a2a4f, #c89b3d);
}

/* ===== SECCIÓN CÓDIGOS ===== */
.codigos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.cod-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.cod-card i {
  font-size: 2rem;
  color: #7a2a4f;
  margin-bottom: 0.6rem;
}

.cod-card h3 {
  margin-bottom: 0.4rem;
  color: #003554;
  font-size: 1rem;
}

.cod-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

/* ===== ENLACE GITHUB ===== */
.codigos-link {
  text-align: center;
  margin: 2rem 0 3rem;
}

.btn-codigo {
  display: inline-block;
  background: #7a2a4f;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-codigo:hover {
  background: #6a2343;
  transform: translateY(-2px);
}

/* ===== DARK MODE ===== */
body.dark-mode .cod-card {
  background: #162029;
  color: #e2e2e2;
}

body.dark-mode .cod-card h3 {
  color: #f0d8a3;
}

body.dark-mode .btn-codigo {
  background: #c89b3d;
  color: #1c1c1c;
}

body.dark-mode .btn-codigo:hover {
  background: #f0d8a3;
}


/* ====== BASE ====== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f7f5f3;
  color: #1f2a33;
}

/* ====== HEADER ====== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0.6rem 1.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-izq img {
  height: 48px;
}

.menu {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.menu-item > a {
  text-decoration: none;
  color: #6a3045;
  font-weight: 500;
  font-size: 0.85rem;
  position: relative;
}

/* submenus */
.has-submenu {
  position: relative;
}

.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  min-width: 190px;
  z-index: 90;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: #6a3045;
  text-decoration: none;
  font-size: 0.78rem;
}

.submenu a:hover {
  background: #f7f0f3;
}

/* ====== BOTÓN LUNA ====== */
.modo-toggle {
  cursor: pointer;
  font-size: 1rem;
  color: #333;
}

/* ====== CONTACTO GLOW (el que nos pediste) ====== */
.menu .contacto-glow {
  position: relative;
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 1;
}

/* halo arcoíris */
.menu .contacto-glow::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    #ff005a,
    #ff9900,
    #ffee00,
    #00ff88,
    #00c8ff,
    #9b00ff,
    #ff005a
  );
  background-size: 400% 400%;
  filter: blur(6px);
  opacity: .85;
  z-index: -1;
  animation: contactoGlow 5s linear infinite;
}

@keyframes contactoGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ====== HERO CONTACTO ====== */
.contacto-hero {
  padding: 3.2rem 1.6rem 2.2rem;
  text-align: center;
}

.contacto-hero h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #7a2a4f;
}

.contacto-hero p {
  max-width: 620px;
  margin: 0.6rem auto 0;
  color: #555;
}

/* ====== TARJETAS ====== */
.container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.contacto-info {
  padding: 1.8rem 1.6rem;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.03);
}

.contact-card h3 {
  margin-top: 0;
  color: #6a3045;
}

/* redes */
.contact-redes a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: #f7edf2;
  border-radius: 50%;
  color: #6a3045;
  margin-right: .4rem;
}

/* ====== FORM ====== */
.contacto-form {
  padding: 2rem 1.6rem 3rem;
}

.form-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 1.3rem 1.4rem 1.9rem;
  box-shadow: 0 16px 30px rgba(0,0,0,0.02);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: .55rem .6rem;
  font-size: .85rem;
  font-family: inherit;
}

.btn.violet {
  background: #7a2a4f;
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.75rem;
  color: #777;
}

/* ====== MODO OSCURO ====== */
body.dark-mode {
  background: #10181b;
  color: #fff;
}

body.dark-mode .topbar {
  background: #131f25;
}

body.dark-mode .contact-card,
body.dark-mode .form-wrapper {
  background: #162229;
  box-shadow: none;
}

body.dark-mode .contacto-hero p {
  color: #ddd;
}

body.dark-mode .submenu {
  background: #162229;
}


body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f7f5f3;
  color: #1f2a33;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0.8rem 1.8rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo-izq img {
  height: 48px;
}

/* === MENÚ === */
.menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.menu a {
  text-decoration: none;
  color: #6a3045;
  font-weight: 500;
  font-size: 0.88rem;
}

.menu .active-btn {
  background: linear-gradient(90deg, #7a2a4f, #d47f2f);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* === HERO === */
.contacto-hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(to bottom, #fff 0%, #f7f5f3 100%);
}

.contacto-hero h1 {
  font-size: 2.3rem;
  margin: 0;
  color: #7a2a4f;
  letter-spacing: -0.5px;
}

.contacto-hero p {
  max-width: 640px;
  margin: 0.8rem auto 0;
  font-size: 1rem;
  color: #4b3b3b;
  line-height: 1.5;
}

/* === INFO CARDS === */
.contacto-info {
  padding: 2.5rem 1.6rem;
}

.contacto-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 8px 26px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.07);
}

.contact-card .icon {
  font-size: 1.8rem;
  color: #d47f2f;
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  color: #6a3045;
  margin-bottom: 0.4rem;
}

/* redes */
.contact-redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #f3e8ed;
  border-radius: 50%;
  color: #7a2a4f;
  margin: 0 0.3rem;
  transition: 0.3s;
}

.contact-redes a:hover {
  background: #7a2a4f;
  color: #fff;
}

/* === FORM === */
.contacto-form {
  padding: 2.5rem 1rem 3.5rem;
}

.form-wrapper {
  background: #fff;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.05);
  padding: 2rem 2.5rem;
}

.form-wrapper h2 {
  text-align: center;
  color: #6a3045;
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #444;
}

input, select, textarea {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: #7a2a4f;
  outline: none;
}

.btn.violet {
  display: block;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, #7a2a4f, #d47f2f);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn.violet:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(122,42,79,0.3);
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 1.8rem 1rem;
  font-size: 0.85rem;
  color: #666;
  background: #f5f3f2;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* === DARK MODE === */
body.dark-mode {
  background: #0e1518;
  color: #e6e6e6;
}

body.dark-mode .topbar {
  background: #131d22;
}

body.dark-mode .contact-card,
body.dark-mode .form-wrapper {
  background: #172329;
  box-shadow: none;
}

body.dark-mode .contacto-hero {
  background: linear-gradient(to bottom, #131d22 0%, #0e1518 100%);
}

body.dark-mode .contacto-hero p {
  color: #ccc;
}

/* BLOQUE HERRAMIENTAS DESTACADA */
.herramientas-destacada {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--bg);
  color: var(--texto);
}

.herramientas-destacada h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--vino);
  margin-bottom: 1rem;
}

.herramientas-destacada p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 3rem;
}

.boton-herramientas {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-herramientas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #7a2a4f, #c89b3d);
  border: none;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-herramientas:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #6a2343, #d4a61d);
}

.btn-herramientas i {
  font-size: 1.8rem;
}

/* ====== HERRAMIENTAS – PORTALES ====== */
.herramientas-portales{
  padding: 5rem 1.5rem 4rem;
  background: var(--bg, #f5f0ec);
  text-align: center;
}
.herramientas-portales h2{
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--vino, #7a2a4f);
  margin: 0 0 0.6rem;
}
.herramientas-portales .herramientas-sub{
  color: rgba(0,0,0,.65);
  margin: 0 auto 2rem;
  max-width: 820px;
}

.herramientas-card{
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
  padding: 1.25rem;
}
.dark-mode .herramientas-card{
  background: #0f172a; /* slate-900 */
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
}

.portales{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.portal{
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.2rem 1.2rem 1.2rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: #1f2937;
  background: linear-gradient(180deg, rgba(255,255,255,.86), #ffffff);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.portal:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.10);
}
.dark-mode .portal{
  color: #e5e7eb;
  background: linear-gradient(180deg, rgba(15,23,42,.85), rgba(15,23,42,.98));
  border: 1px solid rgba(255,255,255,.08);
}

.portal-edu{
  /* vino -> dorado */
  background-image: linear-gradient(135deg, rgba(122,42,79,.10), rgba(200,155,61,.10)), 
                    linear-gradient(180deg, rgba(255,255,255,.86), #ffffff);
}
.dark-mode .portal-edu{
  background-image: linear-gradient(135deg, rgba(122,42,79,.18), rgba(200,155,61,.18)),
                    linear-gradient(180deg, rgba(15,23,42,.85), rgba(15,23,42,.98));
}

.portal-soc{
  /* dorado -> vino */
  background-image: linear-gradient(135deg, rgba(200,155,61,.10), rgba(122,42,79,.10)),
                    linear-gradient(180deg, rgba(255,255,255,.86), #ffffff);
}
.dark-mode .portal-soc{
  background-image: linear-gradient(135deg, rgba(200,155,61,.18), rgba(122,42,79,.18)),
                    linear-gradient(180deg, rgba(15,23,42,.85), rgba(15,23,42,.98));
}

.portal-icono{
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #fff 0%, #f7f7f7 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6),
              0 6px 16px rgba(0,0,0,.12);
}
.dark-mode .portal-icono{
  background: radial-gradient(circle at 30% 20%, #1f2937 0%, #0b1222 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),
              0 6px 16px rgba(0,0,0,.45);
}
.portal-icono i{
  font-size: 1.6rem;
  color: #7a2a4f;
}
.portal-edu .portal-icono i{ color: #7a2a4f; }
.portal-soc .portal-icono i{ color: #c89b3d; }

.portal-textos .portal-titulo{
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
}
.portal-textos .portal-desc{
  display: block;
  margin-top: .2rem;
  font-size: .98rem;
  color: #6b7280;
}
.dark-mode .portal-textos .portal-desc{ color: #9ca3af; }

.portal-flecha{
  font-size: 1rem;
  color: rgba(0,0,0,.45);
  transition: transform .18s ease, color .18s ease;
}
.portal:hover .portal-flecha{
  transform: translateX(3px);
  color: #7a2a4f;
}

/* Responsive */
@media (max-width: 820px){
  .portales{ grid-template-columns: 1fr; }
}
/* ===== HERRAMIENTAS – BANNERS HERO ===== */
.herramientas-hero{
  padding: 5rem 1.25rem 4rem;
  background: var(--bg, #f5f0ec);
}
.hz-title{
  text-align:center; font-size:2.4rem; font-weight:800;
  color: var(--vino, #7a2a4f); margin:0 0 .4rem;
}
.hz-sub{
  text-align:center; color:#6b7280; margin:0 auto 2.2rem; max-width:860px;
}
.hz-grid{
  display:grid; gap:2rem; max-width:1100px; margin:0 auto;
}

/* Banner base */
.hz-banner{
  position:relative; overflow:hidden; display:grid; grid-template-columns: 1.2fr .8fr;
  align-items:center; min-height:220px; padding:2rem; border-radius:28px;
  text-decoration:none; color:#111827; box-shadow: 0 20px 50px rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.6);
  transition: transform .2s ease, box-shadow .2s ease;
  isolation:isolate; /* para overlays */
}
.hz-banner:hover{
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,.18);
}

/* Edu / Social */
.hz-edu{
  background:
    radial-gradient(1200px 600px at -10% 120%, rgba(200,155,61,.18), transparent 60%),
    radial-gradient(900px 500px at 110% -10%, rgba(122,42,79,.25), transparent 60%),
    linear-gradient(135deg, #ffffff, #faf7f1);
}
.hz-soc{
  background:
    radial-gradient(1200px 600px at 110% 120%, rgba(122,42,79,.20), transparent 60%),
    radial-gradient(900px 500px at -10% -10%, rgba(200,155,61,.22), transparent 60%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.dark-mode .hz-edu, .dark-mode .hz-soc{
  border-color: rgba(255,255,255,.08);
  color:#e5e7eb;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}
.dark-mode .hz-edu{
  background:
    radial-gradient(1200px 600px at -10% 120%, rgba(200,155,61,.20), transparent 55%),
    radial-gradient(900px 500px at 110% -10%, rgba(122,42,79,.30), transparent 55%),
    linear-gradient(135deg, #0f172a, #0b1222);
}
.dark-mode .hz-soc{
  background:
    radial-gradient(1200px 600px at 110% 120%, rgba(122,42,79,.24), transparent 55%),
    radial-gradient(900px 500px at -10% -10%, rgba(200,155,61,.24), transparent 55%),
    linear-gradient(135deg, #0f172a, #0b1222);
}

/* textos */
.hz-texts{ z-index:2; }
.hz-kicker{
  display:inline-block; font-size:.85rem; letter-spacing:.06em; text-transform:uppercase;
  color:#7a2a4f; background:rgba(122,42,79,.08); padding:.3rem .6rem; border-radius:999px;
}
.hz-edu .hz-kicker{ color:#7a2a4f; background:rgba(122,42,79,.12); }
.hz-soc .hz-kicker{ color:#c89b3d; background:rgba(200,155,61,.14); }

.dark-mode .hz-edu .hz-kicker{ color:#f3d6e2; background:rgba(122,42,79,.28); }
.dark-mode .hz-soc .hz-kicker{ color:#ffe7a9; background:rgba(200,155,61,.28); }

.hz-texts h3{
  margin:.5rem 0 .4rem; font-size:2rem; line-height:1.1; font-weight:900;
}
.hz-texts p{
  color:#475569; max-width:560px; margin:0 0 1rem;
}
.dark-mode .hz-texts p{ color:#9ca3af; }

.hz-cta{
  display:inline-flex; gap:.6rem; align-items:center; font-weight:700;
  color:#7a2a4f;
}
.hz-soc .hz-cta{ color:#c89b3d; }
.hz-cta i{ transition: transform .18s ease; }
.hz-banner:hover .hz-cta i{ transform: translateX(4px); }

/* ilustración/imagen */
.hz-illus{
  position:relative; height:100%; display:grid; place-items:center;
}
.hz-illus img{
  width: 90%; height:auto; object-fit:contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
}
.hz-blob{
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.35) 60%, transparent 70%),
              radial-gradient(circle at 70% 70%, rgba(255,219,138,.8), rgba(194,102,145,.7));
  filter: blur(2px) saturate(105%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 25px 50px rgba(0,0,0,.12);
}
.hz-soc .hz-blob{
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.35) 60%, transparent 70%),
              radial-gradient(circle at 70% 70%, rgba(255,219,138,.85), rgba(122,42,79,.75));
}

/* responsive */
@media (max-width: 960px){
  .hz-banner{ grid-template-columns: 1fr; padding:1.6rem; min-height:unset; }
  .hz-illus{ display:none; } /* ocultamos la ilustración para dejarlo liviano en mobile */
}
/* --- CTA SOLO ENLACE --- */
.hz-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(122,42,79,.08);
  color: #7a2a4f;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.hz-soc .hz-cta {
  background: rgba(200,155,61,.10);
  color: #c89b3d;
}
.hz-cta:hover {
  transform: translateX(3px);
  background: rgba(0,0,0,0.07);
}

/* --- TOOLTIP MODERNO --- */
.hz-banner {
  position: relative;
}
.hz-banner[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  transform: translateY(-100%);
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 360px;
}
.hz-banner[data-tip]::before {
  content: "";
  position: absolute;
  left: 1.8rem;
  top: -1rem;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(17, 24, 39, 0.95);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hz-banner:hover::after,
.hz-banner:hover::before {
  opacity: 1;
}

/* Oculta tooltips en pantallas pequeñas */
@media (max-width: 640px) {
  .hz-banner[data-tip]::after,
  .hz-banner[data-tip]::before {
    display: none;
  }
}

/* -------- TOOLTIP INSTITUCIONAL -------- */
.hz-banner {
  position: relative;
  overflow: visible;
}

.hz-banner[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 1.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #3a2e2a;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  max-width: 360px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.hz-banner[data-tip]::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 2rem;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.96) transparent;
  opacity: 0;
  transition: all 0.25s ease;
}

.hz-banner:hover::after,
.hz-banner:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Sutil gradiente para diferenciar mundos */
.hz-edu[data-tip]::after {
  background: linear-gradient(135deg, #fff, #f9f2f4);
  border: 1px solid rgba(122, 42, 79, 0.2);
}
.hz-soc[data-tip]::after {
  background: linear-gradient(135deg, #fff, #faf6ec);
  border: 1px solid rgba(200, 155, 61, 0.25);
}

/* Ocultar en pantallas pequeñas */
@media (max-width: 640px) {
  .hz-banner[data-tip]::after,
  .hz-banner[data-tip]::before {
    display: none;
  }
}


/* -------- TOOLTIP OBservar OSCURO -------- */
.hz-banner {
  position: relative;
  overflow: visible;
}

.hz-banner[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 1.5rem;
  padding: 0.7rem 1rem;
  background: rgba(15, 23, 42, 0.97); /* azul profundo institucional */
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.35;
  max-width: 360px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
  letter-spacing: 0.2px;
}

.hz-banner[data-tip]::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 2rem;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent rgba(15, 23, 42, 0.97) transparent;
  opacity: 0;
  transition: all 0.25s ease;
}

/* Transición */
.hz-banner:hover::after,
.hz-banner:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Tonalidades institucionales según mundo */
.hz-edu[data-tip]::after {
  border-left: 3px solid #7a2a4f; /* vino */
  color: #f6e9ee;
}
.hz-soc[data-tip]::after {
  border-left: 3px solid #c89b3d; /* dorado */
  color: #fff8e6;
}

/* Ocultar en móviles */
@media (max-width: 640px) {
  .hz-banner[data-tip]::after,
  .hz-banner[data-tip]::before {
    display: none;
  }
}

/* --- Contenedores listos para tooltip --- */
.herramientas-hero, .hz-grid { overflow: visible; }
.hz-banner{ position: relative; overflow: visible; z-index: 1; }

/* --- Tooltip real (visible SIEMPRE en hover) --- */
.hz-tip{
  position: absolute;
  left: 1.25rem;
  bottom: calc(100% + 12px);   /* arriba del card */
  max-width: 420px;
  padding: .7rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.35;
  color: #fff;
  background: rgba(17,17,17,.96);              /* oscuro sólido */
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 9999;                                /* por encima de todo */
}

/* Flechita */
.hz-tip::after{
  content:"";
  position:absolute;
  top: 100%;
  left: 1.5rem;
  border: 8px solid transparent;
  border-top-color: rgba(17,17,17,.96);
}

/* Mostrar tooltip al pasar por el CARD */
.hz-banner:hover .hz-tip{
  opacity: 1;
  transform: translateY(0);
}

/* Tonos institucionales (borde lateral sutil) */
.hz-tip-edu{ border-left: 4px solid #7a2a4f; } /* vino */
.hz-tip-soc{ border-left: 4px solid #c89b3d; } /* dorado */

/* --- mostrarlo SOLO al pasar por el botón, activa esto y comenta el hover del card --- */
/*
.hz-banner:hover .hz-tip{ opacity: 0; transform: translateY(8px); }
.hz-cta:hover + .hz-tip,
.hz-banner:hover .hz-cta:hover ~ .hz-tip{
  opacity: 1; transform: translateY(0);
}


/* Móviles: ocultar tooltips para no tapar UI */
@media (max-width: 640px){
  .hz-tip{ display:none; }
}


/* =========================================================
   CIFRAS CLAVE · KM (tu HTML actual)
   Objetivo: “cuadrítos” tipo CEPAL (rectos, pro, con fondo)
   NO cambia tu HTML. Solo estiliza .km-section y .km-card
   ========================================================= */

:root{
  /* si ya existen en tu CSS, no pasa nada */
  --azul: #003554;
  --vino: #7a2a4f;
  --vino-oscuro:#6a2343;
  --dorado:#c89b3d;
  --gris:#f5f0ec;
  --texto:#1f2a33;
}

/* sección */
.km-section{
  width: min(1150px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 2.6rem 0 3.2rem;
}

.km-head{
  text-align: center;
  margin-bottom: 1.25rem;
}

.km-title{
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--azul);
  margin-bottom: .35rem;
}

.km-sub{
  font-size: 1.02rem;
  opacity: .85;
  color: #2b3b46;
}

/* grid */
.km-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

/* tarjeta base */
.km-card{
  position: relative;
  overflow: hidden;
  border-radius: 12px;            /* CEPAL: más “recto” */
  min-height: 132px;
  padding: 1.05rem 1.05rem .95rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;             /* para que overlays no se mezclen raro */
}

.km-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0,0,0,.16);
}

/* “cap” superior tipo placa */
.km-card::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:100%;
  height: 14px;
  background: rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.18);
  z-index: 1;
}

/* textura/dibujo tipo CEPAL (líneas + puntos) */
.km-card::after{
  content:"";
  position:absolute;
  inset:-22px;
  opacity:.22;
  pointer-events:none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='180' viewBox='0 0 320 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.55'%3E%3Cpath d='M12 150 C70 110, 110 120, 160 90 S260 60, 308 40' stroke-width='2'/%3E%3Cpath d='M18 44 L52 64 L88 52 L124 70 L160 58 L194 78 L230 60 L270 82 L306 66' stroke-width='1.5'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.65'%3E%3Ccircle cx='18' cy='44' r='3'/%3E%3Ccircle cx='88' cy='52' r='3'/%3E%3Ccircle cx='160' cy='58' r='3'/%3E%3Ccircle cx='230' cy='60' r='3'/%3E%3Ccircle cx='306' cy='66' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 180px;
  background-repeat: repeat;
  filter: blur(.15px);
  transform: rotate(-2deg);
}

/* overlay suave para profundidad */
.km-card .km-top,
.km-card .km-value,
.km-card .km-foot{
  position: relative;
  z-index: 2; /* arriba del before/after */
}

/* top line */
.km-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: .8rem;
}

.km-kicker{
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .95;
}

.km-year{
  font-size: .95rem;
  font-weight: 900;
  opacity: .92;
}

/* valor grande */
.km-value{
  font-size: 2.05rem;
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: -.6px;
  text-shadow: 0 8px 22px rgba(0,0,0,.28);
  margin-top: .35rem;
}

/* pie */
.km-foot{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: .8rem;
  margin-top: .55rem;
}

.km-place{
  font-size: .88rem;
  font-weight: 750;
  opacity: .95;
}

.km-src{
  font-size: .78rem;
  font-weight: 850;
  opacity: .88;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.16);
}

/* =========================
   Colores por tarjeta (sin tocar HTML)
   Usamos el orden actual (1..6)
   ========================= */

/* 1: dorado institucional */
.km-grid .km-card:nth-child(1){
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.22)),
    linear-gradient(135deg, #d6b25b 0%, #b98b2e 55%, #8a6a22 100%);
}

/* 2: teal */
.km-grid .km-card:nth-child(2){
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.22)),
    linear-gradient(135deg, #2aa8a2 0%, #178a8c 55%, #0e626f 100%);
}

/* 3: azul */
.km-grid .km-card:nth-child(3){
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.24)),
    linear-gradient(135deg, #2b6e9a 0%, #1d5a86 55%, #0f3f6a 100%);
}

/* 4: vino */
.km-grid .km-card:nth-child(4){
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.24)),
    linear-gradient(135deg, #c05763 0%, #a73855 55%, #7a2a4f 100%);
}

/* 5: grafito */
.km-grid .km-card:nth-child(5){
  background:
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.30)),
    linear-gradient(135deg, #4f5e6d 0%, #364654 55%, #253342 100%);
}

/* 6: mint/verde-azulado */
.km-grid .km-card:nth-child(6){
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.22)),
    linear-gradient(135deg, #3aa7a1 0%, #2a8f8d 55%, #1b6c72 100%);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1200px){
  .km-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .km-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .km-value{ font-size: 1.85rem; }
}
@media (max-width: 480px){
  .km-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Dark mode (tu body.dark-mode)
   ========================= */
body.dark-mode .km-title{ color: #f0d8a3; }
body.dark-mode .km-sub{ color: rgba(240,216,163,.80); }
body.dark-mode .km-src{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
}

/* =====================================================
   CEPAL MODE REAL · números legibles (2 líneas)
   ===================================================== */

/* valor principal */
.km-value{
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.4px;

  /* CLAVE: permitir salto de línea */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;

  max-width: 100%;
  word-break: break-word;
}

/* SOLO el primer card (ALC) — es el más largo */
.km-grid .km-card:nth-child(1) .km-value{
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.15;
}

/* más aire vertical, como CEPAL */
.km-card{
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

/* subtítulos más abajo (no pegados al número) */
.km-foot{
  margin-top: .75rem;
}

/* opcional: números alineados prolijos */
.km-value{
  font-variant-numeric: lining-nums tabular-nums;
}
/* CEPAL-like layout: valor + unidad */
.km-card{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.km-value{
  margin-top: .2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.05;

  /* NO cortar */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.km-unit{
  margin-top: .25rem;
  font-size: .92rem;
  opacity: .95;
  font-weight: 700;
}

.km-foot{
  margin-top: .85rem;
}

/* ===== NOVEDADES estilo CEPAL (antes de Cifras clave) ===== */
.news-cepal{
  background:#fff;
  border-top:1px solid rgba(10,20,30,0.06);
  border-bottom:1px solid rgba(10,20,30,0.06);
}

.news-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:28px 18px;
  display:grid;
  grid-template-columns:180px 1fr;
  gap:22px;
  align-items:start;
}

.news-badge{
  font-weight:800;
  letter-spacing:0.08em;
  color:#d35757;
  text-transform:uppercase;
  border-right:3px solid rgba(211,87,87,0.35);
  padding-right:18px;
  margin-top:4px;
}

.news-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.news-item{
  padding:10px 8px 10px 0;
}

.news-meta{
  font-size:0.92rem;
  font-weight:700;
  color:rgba(10,20,30,0.75);
  margin-bottom:6px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:baseline;
}

.news-date{
  color:rgba(10,20,30,0.65);
  font-weight:700;
}

.news-tag{
  color:#0b7285;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.04em;
}

.news-text{
  color:rgba(10,20,30,0.78);
  line-height:1.35;
  font-size:0.98rem;
  margin:0;
  max-width:40ch;
}

/* responsive */
@media (max-width: 980px){
  .news-wrap{
    grid-template-columns:1fr;
  }
  .news-badge{
    border-right:0;
    border-bottom:3px solid rgba(211,87,87,0.35);
    padding-right:0;
    padding-bottom:10px;
  }
  .news-grid{
    grid-template-columns:1fr;
  }
  .news-text{
    max-width:none;
  }
}

.km-note{
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  text-align: right;
  letter-spacing: 0.02em;
}


/* =========================
   FOOTER · ORES / OBservar
   ========================= */

.footer{
  background: #0f3b4a;           /* azul petróleo */
  color: #ffffff;
  padding: 22px 0;
  margin-top: 48px;
}

.footer .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer p{
  margin: 6px 0;
  line-height: 1.4;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* correo en naranja ORES */
.footer p:last-child{
  color: #f2a23a;               /* naranja ORES */
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* (opcional) si luego lo convertís en link <a> */
.footer a{
  color: #f2a23a;
  text-decoration: none;
}
.footer a:hover{
  text-decoration: underline;
}

/* modo oscuro: lo mantenemos consistente */
body.dark-mode .footer{
  background: #0b2f3a;          /* petróleo más profundo */
}
body.dark-mode .footer p:last-child,
body.dark-mode .footer a{
  color: #f2a23a;
}

/* Hero */
.hero{
  background:
    linear-gradient(
      rgba(0, 53, 84, 0.65),
      rgba(0, 53, 84, 0.65)
    ),
    url("/assets/fondo_a.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color:#fff;
  text-align:center;
  padding:6rem 1.5rem;
}

.hero::before,
.hero::after{
  content: none !important;
  display: none !important;
}

.hero{
  background:
    linear-gradient(
      120deg,
      rgba(0,53,84,.85) 0%,
      rgba(0,53,84,.65) 55%,
      rgba(0,53,84,.45) 100%
    ),
    url("/assets/fondo_a.png") center/cover no-repeat;
}


/* 1) Subir un poquito el bloque de texto del hero */
.hero .hero-content{
  transform: translateY(-14px); /* ajustá -10 a -24 si querés más/menos */
}

/* 2) Botón circulito con flecha */
.hero-scroll{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  text-decoration: none;
}

.hero-scroll__circle{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.75);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(2px);
  display: inline-flex;
  justify-content: center;
  align-items: center;

  /* rebote sutil EN EL LUGAR */
  animation: heroBreathe 1.6s ease-in-out infinite;
}

.hero-scroll__icon{
  width: 22px;
  height: 22px;
  color: #fff;
}

/* rebote suave (poco desplazamiento) */
@keyframes heroBreathe{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* accesibilidad: si el usuario prefiere menos movimiento */
@media (prefers-reduced-motion: reduce){
  .hero-scroll__circle{ animation: none; }
}


.hero{
  padding-bottom: 1.5rem; /* si ahora tenés 5.5 o 6 */
}

.hero-scroll{
  margin-top: 4px;
}



.btn-volver-ores{
  margin-left:14px;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:.9rem;

  background:rgba(122,91,102,.92); /* borravino */
  border:1px solid rgba(122,91,102,.55);

  display:inline-flex;
  align-items:center;
  gap:8px;

  color:#ffffff !important; /* 👈 fuerza blanco */
}

.btn-volver-ores:hover{
  background:rgba(122,91,102,1);
  border-color:rgba(122,91,102,.75);
  transform:translateY(-1px);
  color:#ffffff !important;
}


/* =========================
   CONTADOR UNdeC · ORES (aislado)
   ========================= */
.undec-counter{
  padding: 54px 0;
  background:
    radial-gradient(1200px 520px at 12% 10%, rgba(212,166,29,.14), transparent 60%),
    linear-gradient(180deg, rgba(247,245,242,1), rgba(255,255,255,1));
}

.undec-counter-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.undec-counter-head{
  margin: 0 0 18px 0;
  text-align: center;
}

.undec-counter-title{
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--petroleo, #0e2336);
}

.undec-counter-sub{
  margin: 0;
  color: rgba(14,35,54,.72);
  font-size: 1rem;
  line-height: 1.55;
}

.undec-counter-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.undec-counter-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(14,35,54,.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.undec-counter-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
  border-color: rgba(107,31,58,.18);
}

.undec-counter-kicker{
  font-size: .88rem;
  font-weight: 800;
  color: rgba(14,35,54,.78);
  letter-spacing: .2px;
}

.undec-counter-value{
  margin-top: 10px;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--violet, #6b1f3a);
}

.undec-counter-foot{
  margin-top: 8px;
  font-size: .92rem;
  color: rgba(14,35,54,.65);
}

.undec-counter-accent .undec-counter-value{
  color: var(--gold, #D4A61D);
}

/* Responsive */
@media (max-width: 1100px){
  .undec-counter-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .undec-counter-grid{ grid-template-columns: 1fr; }
}

/* Dark mode compatible (si tu dark-mode invierte fondo) */
body.dark-mode .undec-counter{
  background:
    radial-gradient(1200px 520px at 12% 10%, rgba(212,166,29,.10), transparent 60%),
    linear-gradient(180deg, rgba(14,35,54,1), rgba(8,22,34,1));
}
body.dark-mode .undec-counter-title,
body.dark-mode .undec-counter-sub,
body.dark-mode .undec-counter-kicker,
body.dark-mode .undec-counter-foot{
  color: rgba(255,255,255,.82);
}
body.dark-mode .undec-counter-card{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

