/* Fuente profesional y moderna */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

/* Fondo general con degradado médico */
body {
  background: linear-gradient(135deg, #e0f7fa, #f0f4f8);
  min-height: 100vh;
  color: #1b2a49;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 50px auto;
  padding: 25px;
}

/* Tarjetas estilo vidrio elegante */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1),
              inset 0 0 10px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Encabezados */
h1, h2, h3 {
  color: #0077b6;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
}

/* Etiquetas de formulario */
label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
  color: #023047;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #cfd8dc;
  background: #f9fafb;
  font-size: 15px;
  transition: 0.3s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.3);
  background: white;
}

/* Fila con columnas */
form .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 700px) {
  form .row {
    grid-template-columns: 1fr;
  }
}

/* Botones principales */
button, .btn {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  box-shadow: 0 6px 14px rgba(0, 119, 182, 0.4);
}

/* Botón contorno */
.btn-outline {
  background: transparent;
  border: 2px solid #00b4d8;
  color: #0077b6;
}

.btn-outline:hover {
  background: #00b4d8;
  color: white;
}

/* Tabla médica moderna */
.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

.table th {
  background: #0077b6;
  color: white;
  padding: 14px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
  border-bottom: 1px solid #e0e0e0;
}

.table tr:nth-child(even) td {
  background: #f4faff;
}

.table tr:hover td {
  background: #e0f7fa;
}

/* Estados (badges clínicos) */
.estado {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: capitalize;
}

.estado-pendiente { background: #f97316; }
.estado-seguimiento { background: #eab308; }
.estado-estable { background: #16a34a; }
.estado-alta { background: #2563eb; }
.estado-grave { background: #dc2626; }

/* Mensajes */
.success {
  color: #16a34a;
  font-weight: 600;
  margin-bottom: 10px;
}

.error {
  color: #dc2626;
  font-weight: 600;
  margin-bottom: 10px;
}

.notice {
  color: #475569;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Enlaces */
a.link {
  color: #0077b6;
  font-weight: 600;
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
  color: #0096c7;
}

/* Barra superior */
.topbar {
  background: linear-gradient(90deg, #0077b6, #0096c7);
  color: white;
  padding: 15px 25px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
  margin-bottom: 20px;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #334155;
  font-size: 13px;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 40px;
}
