/* ===================
   ESTILOS.CSS - Estilos globales de GetUpFinance
   =================== */

/* ===================
   1. Variables Globales
   =================== */
: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;
}

/* ===================
   2. Reset General
   =================== */
* {
  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;
}

/* ===================
   3. Contenedor General
   =================== */
.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
  overflow: hidden;
}

.mainTitle {
  text-align: center;
  font-size: 50px;
  margin-bottom: 30px;
}

/* ===================
   4. Header y Navegación
   =================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100px;
  background: var(--verde-acento);
  background-size: cover;
  background-attachment: fixed;
}

.header-contents .nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
}

.nav-izquierda {
  display: flex;
  align-items: center;
}

.nav-derecha {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  flex: 1 1 32%;
  width: auto;
  height: 55px;
  padding: 2px;
  border-radius: 15%;
  vertical-align: middle;
}

/* Iconos de redes sociales */
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Menú desplegable */
.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: var(--blanco);
  background-color: var(--gris-oscuro);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.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: var(--gris-oscuro);
  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: var(--blanco);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: var(--verde-acento);
}

/* ===================
   5. Ticker de Criptomonedas
   =================== */
.ticker-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 35px;
  padding: 6px 10px;
  background-color: #f9f9f9;
  border-top: 4px solid #f39c12;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.ticker {
  flex: 1;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.ticker-items {
  display: inline-block;
  margin: 5px 0;
  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-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  white-space: nowrap;
}

.coin-symbol {
  font-weight: bold;
  color: #000;
}

.coin-price {
  font-weight: normal;
  color: #000;
}

.up {
  color: green;
}

.down {
  color: red;
}

.currency-selector {
  padding: 2px;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--blanco);
  border: 1px solid var(--gris-claro);
  border-radius: 4px;
}

/* ===================
   6. Footer
   =================== */
footer {
  margin: auto;
  padding: 60px 0 30px 0;
  overflow: hidden;
  color: var(--blanco);
  background: var(--gris-oscuro);
  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 {
  margin-bottom: 15px;
  padding-bottom: 5px;
  font-size: 18px;
  color: var(--blanco);
  border-bottom: 3px solid var(--verde-acento);
}

.footer-column p,
.footer-column address {
  color: var(--gris-claro);
  line-height: 1.6;
  font-style: normal;
}

.footer-column a {
  color: var(--gris-claro);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--blanco);
  text-decoration: underline;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 30px;
  font-size: 14px;
  text-align: center;
  color: #9e9e9e;
  line-height: 1.6;
}

/* ===================
   7. Grids y Cards - Página Principal
   =================== */

/* Grid de 3 columnas para sección principal */
.general-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Grid de 4 columnas para guías */
.cards-guides {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Estilo de las cards */
.card-guide {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-guide:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-guide img {
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.card-text {
  padding: 12px 15px;
  color: var(--gris-texto);
}

.card-text h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #111;
}

.card-text p {
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
}

.card-date {
  font-size: 12px;
  color: #999;
}

/* ===================
   8. Sección "Sobre Nosotros"
   =================== */
.titulo_tres_imagenes {
  margin-top: 30px;
  margin-bottom: 5px;
  font-size: 35px;
  color: #000;
  text-align: center;
}

.sobre-nosotros-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.bloque-sobre-nosotros {
  flex: 1 1 32%;
  padding: 15px;
  color: inherit;
  text-decoration: none;
  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;
}

.bloque-sobre-nosotros:hover {
  box-shadow: 0 8px 20px rgba(37, 37, 37, 0.15);
}

.bloque-sobre-nosotros img {
  width: 100%;
  height: 150px;
  margin-bottom: 10px;
  border-radius: 8px;
  object-fit: cover;
  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);
}

/* ===================
   9. Índice de Artículos
   =================== */
.indice-articulos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
}

.titulo1 {
  font-size: 20px;
  margin-bottom: 50px;
}

.fila {
  margin-bottom: 3rem;
  text-align: left;
}

.fila h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #1c1c1c;
  text-align: left;
}

.fila ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0;
  list-style: none;
}

.fila ul li {
  margin: 0.5rem 0;
}

.fila ul li a {
  font-weight: 500;
  color: var(--azul-link);
  text-decoration: none;
  transition: color 0.3s;
}

.fila ul li a:hover {
  color: var(--azul-link-hover);
}

/* ===================
   10. Herramientas Interactivas
   =================== */
.herramientas-interactivas {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
}

.titulo-herramientas {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #1a237e;
}

.descripcion-herramientas {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #555;
}

.herramientas-interactivas .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.herramientas-interactivas .card {
  width: 240px;
  padding: 1.2rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  background-color: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.herramientas-interactivas .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.herramientas-interactivas .card img {
  width: 160px;
  height: 90px;
  margin-bottom: 1rem;
  border-radius: 8px;
  object-fit: cover;
}

.herramientas-interactivas .card h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #1a237e;
}

.herramientas-interactivas .card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* ===================
   11. Google AdSense
   =================== */
.adsbygoogle {
  min-width: 250px;
}

/* ===================
   12. Responsive Design
   =================== */

/* Tablets y pantallas medianas */
@media (max-width: 1200px) {
  .general-card {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-guides {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .general-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-guides {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
  .social-icons {
    display: none;
  }

  .contenedor-articulos,
  .contenedor-footer {
    flex-direction: column;
    align-items: center;
  }

  .columna-articulos,
  .imagen-finanzas,
  .bloque-sobre-nosotros {
    width: 100%;
    max-width: 100%;
  }

  .imagen-finanzas {
    margin-top: 20px;
  }

  .logo-link {
    margin-left: 0;
  }

  header {
    height: auto;
    padding-bottom: 10px;
  }

  .navegacion-con-traductor .nav-content {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
    text-align: center;
  }

  .nav-izquierda,
  .nav-derecha {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .logo {
    height: 40px;
  }

  .traductor-personalizado {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
  }

  .texto-traductor {
    margin: 0;
  }

  .imagen-ocultar-movil {
    display: none;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .general-card {
    grid-template-columns: 1fr;
  }

  .cards-guides {
    grid-template-columns: 1fr;
  }
}