/* ============================
   Tabla estilo moderno (Power BI)
   ============================ */

table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

table caption {
  font-size: 0.85em;
  margin: .5em 0 .75em;
  color: #5f6368;
  text-align: left;
}

/* Encabezado azul estilo Power BI */
table thead th {
  background-color: #1a73c1;
  background: linear-gradient(180deg, #1f7cd1 0%, #135a9c 100%);
  color: #ffffff;
  font-size: .8em;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: .75em 1em;
  border: none;
}

table thead th:first-child {
  border-top-left-radius: 8px;
}

table thead th:last-child {
  border-top-right-radius: 8px;
}

/* Filas del cuerpo */
table tbody tr {
  background-color: #ffffff;
  border-bottom: 1px solid #eef0f2;
  transition: background-color 0.15s ease-in-out;
}

/* Efecto zebra (filas alternadas), típico de dashboards */
table tbody tr:nth-child(even) {
  background-color: #f6f9fc;
}

/* Hover para resaltar fila, como en tablas interactivas */
table tbody tr:hover {
  background-color: #e8f1fb;
}

table tbody tr:last-child {
  border-bottom: none;
}

table th,
table td {
  padding: .65em 1em;
  font-size: 0.85em;
  text-align: left;
  color: #2c2c2c;
}

table tbody td {
  border: none;
}

/* ============================
   Botones estilo Google (Material)
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: "Google Sans", "Segoe UI", "Verdana", sans-serif;
  font-size: .875em;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .6em 1.5em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Botón primario (relleno azul, como "Iniciar sesión") */
.btn-primary {
  background-color: #1a73e8;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15);
}

.btn-primary:hover {
  background-color: #1765cc;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px rgba(60, 64, 67, 0.2);
}

.btn-primary:active {
  background-color: #185abc;
  box-shadow: none;
}

/* Botón secundario (contorno, como "Crear cuenta") */
.btn-secondary {
  background-color: #ffffff;
  color: #1a73e8;
  border: 1px solid #dadce0;
}

.btn-secondary:hover {
  background-color: #f6fafe;
  border-color: #d2e3fc;
}

.btn-secondary:active {
  background-color: #e8f0fe;
}

/* Botón de texto (sin fondo ni borde, como "Cancelar") */
.btn-text {
  background-color: transparent;
  color: #1a73e8;
  padding: .6em 1em;
}

.btn-text:hover {
  background-color: rgba(26, 115, 232, 0.06);
}

.btn-text:active {
  background-color: rgba(26, 115, 232, 0.12);
}

/* Botones "Cartilla" con estilo Google */
.BtnCartilla {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: "Google Sans", "Segoe UI", "Verdana", sans-serif;
  font-size: .875em;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .6em 1.5em;
  border-radius: 4px;
  border: none;
  background-color: #1a73e8;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.BtnCartilla:hover {
  background-color: #1765cc;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px rgba(60, 64, 67, 0.2);
}

.BtnCartilla:active {
  background-color: #185abc;
  box-shadow: none;
}

.BtnCartilla:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3);
}

.BtnCartilla:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.BtnCartilla + .BtnCartilla {
  margin-left: .75em;
}

table td[align="center"] {
  text-align: center;
}

/* ============================
   General styling
   ============================ */
body {
  font-family: "Segoe UI", "Verdana", sans-serif;
  line-height: 1.4;
  color: #24292e;
}

.cssFont_1 {
  font-size: 1.4em;
}

/* ============================
   Caja / contenedor estilo Google
   ============================ */
.caja {
  margin: 0px auto 0px auto;
  border: 1px solid #dadce0;
  border-radius: 4px;
  height: 30px;
  font-size: 18px;
  font-family: "Google Sans", Raleway, sans-serif;
  overflow: hidden;
  width: 230px;
  position: relative;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.caja:hover {
  border-color: #b0b3b8;
}

.caja:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}
