﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=DM+Serif+Display&display=swap');

:root {
  --color-bg:         #E2D8CC;
  --color-surface:    #ffffff;
  --color-secondary:  #95B1C7;
  --color-primary:    #022E4B;
  --color-accent:     #4C050D;
  --color-on-dark:    #E2D8CC;
  --color-text:       #022E4B;
  --color-border:     #d0c8bc;

  --shadow-card:  0 4px 16px rgba(2, 46, 75, 0.10);
  --shadow-hover: 0 8px 28px rgba(2, 46, 75, 0.18);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 780px;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* HEADER */
header {
  text-align: center;
  background: var(--color-primary);
  margin: -2rem -2rem 2rem;
  padding: 2.5rem 2rem 2.2rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.logo {
  width: 130px;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
}

header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-on-dark);
  font-weight: 400;
  margin-bottom: 0.35rem;
}

header h2 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* SECTION */
section {
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 1.5rem 0 0.45rem;
  font-weight: 400;
}

section ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  background: rgba(2, 46, 75, 0.04);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-primary);
}

/* BUTTONS */
.actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.btn, button[type="submit"] {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-on-dark);
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: block;
  letter-spacing: 0.3px;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn:hover, button[type="submit"]:hover {
  background: #0a4a72;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* FORMS */
form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

input, select, textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 46, 75, 0.10);
}

input::placeholder { color: #a89e93; }

select option {
  color: var(--color-text);
  background: var(--color-surface);
}

/* TABLE */
table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(2, 46, 75, 0.08);
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--color-primary);
  color: var(--color-on-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

tr:hover td   { background: rgba(2, 46, 75, 0.03); }
.titular td   { background: rgba(2, 46, 75, 0.04); }
.espera td    { background: rgba(149, 177, 199, 0.12); }

/* ALERTS */
.success, .warning, .error {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.warning { background: #fff8e1; color: #f57f17; border-left: 4px solid #ffc107; }
.error   { background: #ffebee; color: #c62828; border-left: 4px solid #ef5350; }

/* RESPONSIVE */
@media (max-width: 600px) {
  body { padding: 0; }
  .container { border-radius: 0; padding: 1.2rem; }
  header { margin: -1.2rem -1.2rem 1.5rem; padding: 2rem 1.2rem 1.5rem; border-radius: 0; }
  .logo { width: 90px; }
  header h1 { font-size: 1.7rem; }
  .btn, button[type="submit"] { font-size: 0.9rem; }
  th, td { font-size: 0.8rem; padding: 0.6rem; }
}

/* TABLE SCROLL */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.table-responsive table {
  min-width: 720px;
  margin-top: 0;
}
