* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

body {
  background: url('https://dolar.sytes.net/wp-content/uploads/2025/05/foto7.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #000;
  padding: 60px 0 110px; /* top: menú fijo, bottom: footer fijo */
}

body.oculto {
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.4s ease-in-out;
}

.container, .grid, .main-wrapper {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 0 10px;
}

.titulo-container {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 80px;
  flex-direction: row;
}

.titulo {
  font-size: 45px;
  font-weight: bold;
  color: #E5E4E2;
  margin: 0;
}

.subtitulo {
  font-size: 20px;
  color: #E5E4E2;
  animation: pulso 2s infinite ease-in-out;
}


@keyframes pulso {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

nav.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.95);
  padding: 12px 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: auto;
}

nav.main-nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 30px;
  font-weight: bold;
  font-size: 18px;
  white-space: nowrap;
}

nav.main-nav a:hover {
  color: #FFD700;
  text-decoration: underline;
}

#marquesina-mercado {
  background-color: #333;
  color: white;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: bold;
  margin: 10px auto;
  max-width: 300px;
  border-radius: 6px;
  display: block;
}

#marquesina-monedas {
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  margin: 10px auto;
  max-width: 900px;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
}

marquee {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.box {
  width: 100%;
  max-width: 350px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  color: #fff;
  display: inline-block;
}

.box h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 29px;
  flex-wrap: wrap;
  text-align: center;
}

.box i {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 30px;
  min-height: 30px;
  display: inline-block;
}

.box p {
  font-size: 27px;
  margin: 6px 0;
  font-weight: normal;
}

.footer-fixed-bar {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0); /* notch en iPhone */
  width: 100%;
  background: #0a0a0a;
  color: #fff;
  padding: 12px 0 18px;
  text-align: center;
  font-size: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-fixed-bar a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.footer-fixed-bar a:hover {
  text-decoration: underline;
  color: #FFD700;
}

@media (max-width: 480px) {
  .titulo {
    font-size: 28px;
    margin-top: 20px;
  }

  .subtitulo {
    font-size: 14px;
    margin-top: 5px;
  }

  .box {
    font-size: 14px;
    padding: 10px;
    margin: 10px auto;
    width: 90%;
  }

  .box h2 {
    font-size: 18px;
  }

  .box p {
    font-size: 18px;
  }

  #marquesina-mercado,
  #marquesina-monedas {
    font-size: 12px;
    max-width: 95%;
    padding: 4px;
  }

  .footer-fixed-bar {
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    font-size: 13px;
  }

  .footer-fixed-bar a {
    display: block;
    margin: 2px 0;
  }

  nav.main-nav {
    justify-content: flex-start;
    padding: 10px;
  }

  nav.main-nav a {
    font-size: 14px;
    margin: 0 10px;
  }
}

/* Ajuste final para textos largos */
h1, h2, h3, h4, h5, h6, p, a, span, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#faq-search {
  width: 100%;
  max-width: 500px;
  padding: 12px 16px;
  border: 2px solid #fff;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  outline: none;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s ease;
}

#faq-search::placeholder {
  color: #ccc;
  font-style: italic;
}

#faq-search:focus {
  background-color: rgba(0, 0, 0, 0.85);
  border-color: #FFD700;
}

.buscador-faq {
  max-width: 700px;
  margin: 20px auto;
  padding: 0 10px;
  text-align: center;
}

.buscador-faq {
  max-width: 700px !important;
  margin: 20px auto !important;
  padding: 0 10px;
  text-align: center;
}

#faq-search {
  width: 100% !important;
  max-width: 500px;
  padding: 12px 16px;
  border: 2px solid #fff;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  outline: none;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s ease;
}

#faq-search::placeholder {
  color: #ccc;
  font-style: italic;
}

#faq-search:focus {
  background-color: rgba(0, 0, 0, 0.85);
  border-color: #FFD700;
}

/* Menú hamburguesa para mobile */
/* Menú hamburguesa solo en mobile */
/* Oculta el botón hamburguesa por defecto */
.menu-toggle {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  background: #111;
  color: white;
  text-align: center;
  padding: 14px;
  font-size: 18px;
  display: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-content {
    margin-top: 70px; /* ajustado para dejar espacio al menú hamburguesa */
  }
}


  nav.main-nav {
    display: none;
  }
}

.site-content {
	margin-top: 60px;
}

/* ================ OVERRIDE 3-3-1 PEGADO ================= */
@media (min-width: 768px) {
  #cotizaciones-grid {
    display: grid !important;
    /* 3 columnas de 300px */
    grid-template-columns: repeat(3, 300px) !important;
    /* espacio de 20px entre filas y columnas */
    gap: 20px !important;
    /* centra todo el bloque */
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 auto !important;
  }

  /* cajas fijas a 300px */
  #cotizaciones-grid > .box {
    width: 300px !important;
    max-width: none !important;
  }

  /* séptima caja centrada en la tercera fila */
  #cotizaciones-grid > .box:last-child {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: 300px !important;
  }
}
/* ======================================================== */


/* ————— Restaurar navegación de tests ————— */
@media (min-width: 768px) {
  nav.main-nav {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    padding: 12px 0;
    overflow-x: auto;
  }
  nav.main-nav a {
    color: #fff !important;
    margin: 0 20px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 18px;
    white-space: nowrap;
  }
}

/* En móvil, si quieres un hamburguesa, saca esta línea:
@media (max-width: 768px) {
  nav.main-nav { display: none !important; }
}
*/


