/* --- VARIABLES DE COLORES --- */
:root {
  --color-azul: #002e6d;
  --color-rojo: #d32f2f;
  --bg-color: #ffffff;
}

/* --- RESET Y ESTRUCTURA BASE --- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh; /* Ocupa exactamente el 100% de la altura visible */
  overflow: hidden; /* PROHIBIDO el scroll / desbordamiento */
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
}

/* --- CONTENEDOR PRINCIPAL --- */
.contenedor-full {
  width: 100%;
  height: 100%;
  max-width: 1000px; /* Que no se estire infinito en monitores 4k */
  margin: 0 auto; /* Centrado horizontal */
  background-color: var(--bg-color);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.5)
    ),
    url("fondo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  padding: 2vh 3vw;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  position: relative; /* Asegura posición correcta */
}

/* --- 1. ENCABEZADO (LOGOS) --- */
.header {
  flex: 0 0 1%; /*Ocupa el 15% de la altura vertical */
  max-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
}
.texto-mensaje {
  font-size: 1.4rem;
  color: #002e6d;
  margin-top: 1px;
  margin-bottom: 1px;
}

.logo-img {
  max-height: 100%; /* Los logos ocupan el 80% de ese espacio reservado */
  width: auto;
  object-fit: contain;
}

/* --- 2. CUERPO PRINCIPAL (QR y TASAS) --- */
.main-content {
  flex: 1; /* Ocupa TODO el espacio sobrante disponible */
  display: flex;
  align-items: center; /* Centra verticalmente el contenido interno */
  padding: 2vh 0;
  gap: 4vw;
}

/* COLUMNA IZQUIERDA: QR */
.col-qr {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-box {
  /* El QR será cuadrado y su tamaño depende de la pantalla */
  width: 35vmin;
  height: 35vmin;
  border: 0.5vmin solid var(--color-azul);
  padding: 1vmin;
  border-radius: 8px;
  margin-bottom: 1vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.texto-qr {
  font-size: 2.5vmin; /* El texto escala según el tamaño de pantalla */
  font-weight: 800;
  color: var(--color-azul);
  text-transform: uppercase;
  line-height: 1.2;
}
.texto-rojo {
  color: var(--color-rojo);
  display: block;
  margin-top: 0.5vh;
}

/* COLUMNA DERECHA: TASAS */
.col-tasas {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* Distribuye espacio igual entre filas */
  height: 100%;
}

.fila-tasa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 18%; /* Cada fila ocupa un % de la altura disponible */
}

.label-tasa {
  font-size: 4vmin; /* Fuente responsiva */
  font-weight: 900;
  color: var(--color-azul);
  width: 40%;
}

.caja-valor {
  width: 60%;
  height: 100%;
  background: #f0f4f8;
  border: 0.4vmin solid var(--color-azul);
  display: flex;
  align-items: center;
  padding-left: 2vw;
  font-size: 4.5vmin; /* Números grandes responsivos */
  font-weight: bold;
  color: #000;
}

/* --- 3. PIE DE PÁGINA (LEGAL) --- */
.footer {
  flex: 0 0 auto; /* Altura automática según el texto */
  text-align: center;
  border-top: 2px solid #ccc;
  padding-top: 1vh;
}

.bandera-img {
  max-height: 100%; /* Los logos ocupan el 80% de ese espacio reservado */
  max-width: 100%;
  object-fit: contain;
}

.legal-text {
  font-size: 1.8vmin; /* Letra pequeña legible */
  color: #555;
  font-style: italic;
  margin-bottom: 1vh;
  line-height: 1.2;
}

.gob-text {
  font-size: 2vmin;
  font-weight: bold;
  color: #444;
  text-transform: uppercase;
}

/* --- MEDIA QUERY PARA MÓVILES VERTICALES MUY ESTRECHOS --- */
@media (max-width: 600px) {
  .main-content {
    flex-direction: column; /* Pone QR arriba y tasas abajo */
    justify-content: center;
    gap: 2vh;
  }
  .col-qr,
  .col-tasas {
    width: 100%;
  }
  .col-qr {
    flex: 0 0 auto;
  }
  .col-tasas {
    flex: 1;
    gap: 1vh;
  }
  .qr-box {
    width: 25vh;
    height: 25vh;
  } /* QR más grande en móvil */
  .label-tasa {
    font-size: 3vh;
  }
  .caja-valor {
    font-size: 3.5vh;
  }
  .legal-text {
    display: none;
  } /* Ocultar texto legal largo en móviles pequeños para ganar espacio */
  .gob-text {
    font-size: 1.5vh;
  }
}
