/* Reset base */
body {
  background: #4F4E4E;
  margin: 0;
  padding: 0;
  color: #242424;
}

/* Encabezado */
header {
	background-color: #2d6da3;
	color: #F2F2F2;
	padding: 10px 0;
	text-align: center;
	border-bottom: 1px solid #F2F2F2;
}

.header h1{
	font-family: 'Georgia', serif;
	font-size: 28px;
	margin: 0;
	letter-spacing: 1px;
}

h1 a {
	text-decoration: none;
	color: inherit;
	cursor: pointer;	
}

.header p{
	font-family: 'Arial', sans-serif;
	font-size: 16px;
	margin: 4px 0 0;
	color: #F2F2F2;
}








.titulo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.titulo-container h1 {
  font-size: 32px;
  color: #F2F2F2;
  margin: 0;

}

.subtitulo {
  font-size: 16px;
  color: #F2F2F2;
  margin: 2px 0 0;
}

/* Contenedor principal */
.container {
  max-width: 900px;
  margin: 1px auto;
  padding: 0 5px;
}

/* Sección de cotización */
.separador {
	height: 2px;
	background: linear-gradient(to right, #6c957e, #8BC34A);
	border-radius: 2px;
	margin: 10px 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
h2 {	margin-bottom: 0.3rem;	}


.cotizacion {
  background-color: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  margin-bottom: 10px;
}

.cotizacion h2 {
  margin-top: 0;
  font-size: 1.9rem;
  text-align: center;
}

/* Fila de cajas */
.fila {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Caja individual */
.caja {
  flex: 1;
  border: 2px solid;
  border-radius: 10px;
  padding: 1px 4px; /* Menos alto */
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  line-height: 1.2; /* Compacta el texto */
}

.caja h3,
.caja p,
.caja span {
  margin: 0;
  padding: 0 1px;
}

.caja:hover {
  transform: scale(1.02);
  box-shadow: 0 0 5px rgba(0,0,0,0.08);

}

/* Estetica para los emojis */
.box h3 {
	font-size: 1.1em;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Titulo dentro de cada caja */
.caja h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #444;
}

/* Valor en grande */
.valor {
  font-size: 2.1rem;
  font-weight: bold;
  margin-top: 10px;
}

/* Colores por tipo de dólar */
.oficial { background: #d0f1e1; border-color: #04a035; color: #04a035; }
.blue    { background: #d1e4f3; border-color: #0762a2; color: #0762a2; }
.mep     { background: #c7c0e5; border-color: #1f069f; color: #1f069f; }
.ccl     { background: #d9d4cf; border-color: #2f2c28; color: #2f2c28; }
.cripto  { background: #cce7e4; border-color: #05786f; color: #05786f; }
.tarjeta { background: #f4e8d4; border-color: #e59200; color: #e59200; }
.mayorista { background: #f0d2cd; border-color: #a21b06; color: #a21b06; }
.euro    { background: #bccef9; border-color: #0e44c1; color: #0e44c1; }
.real    { background: #fffab7; border-color: #3a9261; color: #3a9261; }
.otros   { background: #cacaca; border-color: #252525; color: #252525; }

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #555;
  background-color: #dedede;
  padding: 10px 10px;
  margin-top: 10px;
  border-top: 1px solid #ddd;
}

.footer-container a {
  color: #3b3b3b;
  text-decoration: none;
  margin: 0 5px;
}

.footer-container a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.75em;
  color: #757575;
  margin-top: 8px;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .fila {
    flex-direction: wrap;
    gap: 6px;
  }

  .caja {
    padding: 2px 4px;
    font-size: 0.85rem;
  }

  .caja h3 {
    font-size: 1.1rem;
  }

  .caja .valor {
    font-size: 1.9rem;
  }
}

/* Actualización */
.actualizacion {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

/* Calculadora */
.calculadora {
  background: white;
  padding: 2px;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 900px;
  text-align: center;
}

.calculadora h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.opciones {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group input {
  padding: 8px;
  font-size: 1rem;
  width: 180px;
}

.boton-limpiar {
  margin-top: 10px;
  padding: 8px 14px;
  background-color: #e6e6e6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.boton-limpiar:hover {
  background-color: #ccc;
}

/* Resultados calculadora */
#resultados {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  text-align: center;
}

.resultado-box {
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  max-width: auto;
  flex: 1 1 10px;
  color: #333;
}

.resultado-oficial {
  background: #d8f3dc;
  border: 2px solid #09ab76;
}
.resultado-blue {
  background: #cce5ff;
  border: 2px solid #096bb0;
}
.resultado-tarjeta {
  background: #ffe5b4;
  border: 2px solid #e29105;
}
.resultado-mep {
  background: #e6ccff;
  border: 2px solid #2409b0;
}

.resultado-ccl {
  background: #e0e0e0;
  border: 2px solid #555;
}

.resultado-cripto {
  background: #fff9c4;
  border: 2px solid #a5a622;
}

.resultado-mayorista {
  background: #f0d2cd;
  border: 2px solid #a21b06;
} */

/* Seccion Dolar Historico */
#rango {
	padding: 5px;
	font-size: 14px;
	margin-left: 5px;
}

/* Legales */
section.cotizacion h2 {
  margin-top: 20px;
  color: #333;
  font-size: 1.8em;
  padding-bottom: 5px;
}

section.cotizacion ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

section.cotizacion p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Menú */
.menu-placeholder {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 1000;
}

.menu-btn {
  font-size: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.menu {
  position: absolute;
  top: 55px;
  right: 10px;
  background-color: rgba(0, 61, 0, 0.98);
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 6px 10px;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  white-space: nowrap;
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu a:last-child {
  border-bottom: none;
}

.menu a:hover {
  color: #91c491;
}

.menu.mostrar {
  display: block;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  margin: 8px 0;
}

