/* ============================
   ESTILO PREMIUM TIPO APP MODERNA
   ============================ */

:root {
  --color-principal: #0e4c92; /* Azul corporativo */
  --color-secundario: #f4b400; /* Dorado elegante */
  --color-fondo: #eef2f7; /* Fondo neutro moderno */
  --color-texto: #1a1a1a;
  --vidrio: rgba(255, 255, 255, 0.3);
  --borde-radio: 16px;
  --sombra: 0 8px 25px rgba(0, 0, 0, 0.1);
  --transicion: all 0.3s ease;
}

/* --- Estructura general --- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- Encabezado tipo glass --- */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: var(--vidrio);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--sombra);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-radius: 0 0 var(--borde-radio) var(--borde-radio);
  z-index: 100;
  background-image: linear-gradient(
    115deg,
    rgba(14, 76, 146, 0.95),
    rgba(21, 101, 192, 0.85)
  );
}

header img {
  height: 48px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease, filter 0.3s ease;
}

header img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

header h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  text-align: right;
  letter-spacing: 0.5px;
  color: #fff;
}

/* --- Contenedor principal del chat --- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  height: 100%;
}

iframe {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border-radius: var(--borde-radio);
  box-shadow: var(--sombra);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  transition: var(--transicion);
}

iframe:hover {
  transform: scale(1.002);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* --- Pie de página --- */
footer {
  backdrop-filter: blur(8px);
  background: rgba(14, 76, 146, 0.9);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0.4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--sombra);
}

footer a {
  color: var(--color-secundario);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transicion);
}

footer a:hover {
  color: #ffe082;
}

/* --- Animación sutil --- */
header, iframe, footer {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Modo móvil --- */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }

  header img {
    height: 42px;
    margin-bottom: 8px;
  }

  header h1 {
    font-size: 17px;
  }

  iframe {
    margin-top: 10px;
    min-height: 65vh;
  }

  footer {
    font-size: 12px;
  }
}

