/* --- Reset y base --- */
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

header {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
  background-color: cyan;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  

}

header h1 {
  padding-top: 28px;
  font-size: 3.0rem;
  font-weight: bold;
  margin: 0;
}


h1 a{
  text-decoration: none;
  color: navy;
  font-size: larger;
  font-weight: 700;
}

/* --- Contenedor principal --- */
.container {
 
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

/* --- Tabla responsive --- */
table {
  border-collapse: collapse;
  max-width: 750px;
  width: 100%;
  margin: 1rem auto;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: #f1f1f1;
}

th, td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

tr:last-child td {
  border-bottom: none;
}

/* --- Colores para mejores valores --- */
.mejor-compra {
  background-color: #e0f7fa;
  font-weight: bold;
}

.mejor-venta {
  background-color: #ffe0b2;
  font-weight: bold;
}

/* --- Referencias y hora --- */
#referencias-row,
#hora-row {
  margin-top: 1rem;
  font-weight: normal;
  text-align: center;
  word-wrap: break-word;
}

#referencia-dolarcripto{
  margin-top: 1rem;
  font-weight: lighter;
  text-align: center;
  word-wrap: break-word;
  font-size: x-small;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background-color: #f0f0f0;
  margin-top: 2rem;
  color: #666;
}
.carousel-item {
  min-height: 150px;
  transition: transform 0.6s ease;
}

.carousel-item > div {
  transition: opacity 0.3s ease-in-out;
}

.carousel-item a.h6 {
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0d6efd; /* bootstrap primary */
}

.carousel-item a.h6:hover {
  text-decoration: underline;
}
.carousel-control-prev-icon {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M5.5 0L1 4l4.5 4V0z"/></svg>');
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-control-next-icon {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M2.5 0L7 4 2.5 8V0z"/></svg>');
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carrusel-img {
  height: 250px;
  object-fit: cover;
  width: 100%;
  display: block;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

#climaInfo {
 background-color: cyan !important;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

/* --- Scroll horizontal en móvil --- */
@media (max-width: 600px) {
  .carrusel-img {
    height: 250px;
  }

  .carousel-caption {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.6); /* Más contraste en mobile */
  }

  .carousel-caption a.h6 {
    font-size: 0.95rem;
    color: white;
    white-space: normal;
    display: block;
    width: 100%;
  }

  .carousel-caption a.h6:hover {
    text-decoration: underline;
  }
  .container{
    display: flex;
  }

  table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  th, td {
    white-space: nowrap;
    padding: 0.75rem;
  }
  header h1 {
    font-size: 1.9rem;
    padding-top: 36px;
    font-weight: bold;
  }

  .container {
    padding: 0.5rem;
  }

 

  #climaInfo{
    visibility: hidden;
  }
}