/* ===================
   1. Reset & Variables
   =================== */
:root {
  --gris-oscuro: #1a1a1a;
  --gris-claro: #ccc;
  --gris-medio: #ebebeb;
  --gris-texto: #333;
  --primario: #880877;
  --primario-hover: #c21a98;
  --azul-link: #003366;
  --azul-link-hover: #6a1b9a;
  --verde-acento: #00473d;
  --blanco: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* ===================
   2. Contenedores y Títulos
   =================== */
.contenedor {
  padding: 20px 0;
  width: 90%;
  max-width: 1300px;
  margin: auto;
  overflow: hidden;
}

.titulo,
.titulo_tres_imagenes {
  color: #000;
  font-size: 35px;
  margin-top: 30px;
}

.titulo { text-align: center; }
.titulo_tres_imagenes { text-align: left; margin-bottom: 5px; }

.sub_titulo,
.sub_titulo_tres_imagenes {
  color: #000;
  font-size: 25px;
  margin-bottom: 30px;
}

.sub_titulo { text-align: center; margin-bottom: 50px; }
.sub_titulo_tres_imagenes { color: #747474; font-size: 20px; text-align: left; }

.news-header {
  max-width: 1400px;
  padding: 0 20px;
  margin: 50px auto;
}

.news-header .titulo_tres_imagenes {
  text-align: center;
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--gris-oscuro);
}

.news-header .sub_titulo_tres_imagenes {
  text-align: center;
  font-size: 18px;
  color: var(--gris-texto);
}

/* ===================
   3. Header
   =================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100px;
  background: rgb(0, 71, 61);
  background-size: cover;
  background-attachment: fixed;
}

.nav-derecha {
  display: flex;
  align-items: center;
  gap: 15px; /* Espacio entre el botón y los íconos */
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre iconos */
}

.header-contents .nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
}

.logo {
  flex: 1 1 32%;
  width: auto;
  height: 55px;
  padding: 2px;
  border-radius: 15%;
  vertical-align: middle;
}

/* ==== Dropdown Menu ==== */
.dropdown {
  position: relative;
  display: inline-block;
  font-family: inherit;
  z-index: 10000;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: #1a1a1a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-btn:hover {
  background-color: #292929;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 99999;
  display: none;
  min-width: 180px;
  padding: 5px 0;
  background-color: #1a1a1a;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: rgb(0, 71, 61);
}

/* Ocultar en pantallas de hasta 768px (tamaño típico de móvil y tablets pequeñas) */
@media (max-width: 768px) {
  .social-icons {
    display: none;
  }
}

/* ===================
   4. Footer
   =================== */
footer {
  background: var(--gris-oscuro);
  padding: 60px 0 30px;
  color: var(--blanco);
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 60%;
  margin: auto;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--gris-claro);
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 0 20px;
}

.footer-column h3 {
  color: var(--blanco);
  border-bottom: 3px solid var(--verde-acento);
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column p,
.footer-column address,
.footer-column a {
  color: var(--gris-claro);
  font-style: normal;
  line-height: 1.6;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--blanco);
  text-decoration: underline;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.social-icon:hover { transform: scale(1.1); }

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #9e9e9e;
  line-height: 1.6;
}

/* ===================
   5. News Grid
   =================== */
.sobre-nosotros-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.bloque-sobre-nosotros {
  flex: 1 1 28%;
  background-color: var(--gris-medio);
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}


.bloque-sobre-nosotros:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bloque-sobre-nosotros img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Muestra toda la imagen */
  background-color: #fff; /* Fondo en los huecos */
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.bloque-sobre-nosotros:hover img { transform: scale(1.05); }

.texto-sobre-nosotros p {
  font-size: 14px;
  color: var(--gris-texto);
  margin: 10px 10px;
  font-weight: bold;
}

.learn-more {
  text-decoration: none;
  color: var(--primario);
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s;
}

.learn-more:hover,
.learn-more:focus { color: var(--primario-hover); }

/* ===================
   6. Google Translate
   =================== */
#google_translate_element {
  transform: scale(0.9);
  transform-origin: top right;
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: inline-block;
}

.traductor-personalizado {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f1f1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.traductor-personalizado:hover { background-color: #e6e6e6; }

.traductor-personalizado img {
  width: 20px;
  height: 20px;
}

.traductor-personalizado .texto-traductor {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.goog-logo-link,
.goog-te-gadget span { display: none !important; }

/* ===================
   7. Ticker Criptomonedas
   =================== */
.ticker-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background-color: #f9f9f9;
  border-top: 4px solid #f39c12;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 6px 10px;
  gap: 10px;
  min-height: 35px;
}

.ticker {
  flex: 1;
  display: flex;
  white-space: nowrap;
  align-items: center;
  overflow: hidden;
}

.ticker-items {
  margin: 5px 0;
  display: inline-block;
  animation: scroll-left 180s linear infinite;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ticker-items:hover { animation-play-state: paused; }

@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.coin {
  display: inline-block;
  margin-right: 20px;
  font-size: 15px;
  white-space: nowrap;
}

.coin-symbol { color: #000; font-weight: bold; }
.coin-price { color: #000; }
.up { color: green; }
.down { color: red; }

.currency-selector {
  background-color: white;
  font-size: 14px;
  padding: 2px;
  font-weight: 500;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===================
   8. Layout 2 Columnas
   =================== */
.news-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 20px;
  max-width: 1400px;
  margin: auto;
}

.main-articles {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 19px;
}

.related-articles,
.ad-section {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.related-articles h3,
.ad-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 5px;
}

.related-articles ul { list-style: none; }
.related-articles li { margin-bottom: 10px; }

.related-articles a {
  text-decoration: none;
  color: var(--azul-link);
  font-size: 14px;
}

.related-articles a:hover { color: var(--azul-link-hover); }
    
.related-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.related-item img {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.related-info { display: flex; flex-direction: column; }

.related-category {
  font-size: 14px;
  font-weight: bold;
  color: var(--verde-acento);
  margin-bottom: 4px;
}

.related-info a {
  font-size: 15px;
  text-decoration: none;
  color: var(--gris-texto);
  line-height: 1.3;
}

.related-info a:hover { color: var(--verde-acento); }

/* ===================
   9. Responsive
   =================== */
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contenedor-articulos,
  .contenedor-footer {
    flex-direction: column;
    align-items: center;
  }

  .imagen-finanzas,
  .columna-articulos,
  .bloque-sobre-nosotros {
    width: 100%;
    max-width: 100%;
  }

  .imagen-finanzas { margin-top: 20px; }
  .logo-link { margin-left: 0; }
}

@media (max-width: 768px) {
  .bloque-sobre-nosotros {
    flex: 1 1 32%; /* 2 por fila en pantallas pequeñas */
  }
}

@media (max-width: 900px) {
  .news-layout {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    order: -1; /* Mueve la barra lateral arriba */
    margin-bottom: 20px;
  }
}

/* ===================
   10. Extras
   =================== */
.adsbygoogle { min-width: 250px; }

.contenedor.sobre-nosotros {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.281);
  padding: 20px;
  background-color: #fff;
  margin: 40px auto;
  max-width: 1200px;
}
