/* ---- Portal Clientes - Estilo coherente con la web principal (v2) ---- */

/* =========================
   PALETA / VARIABLES
========================= */
:root{
  --c-primary: #821b0e;   /* granate corporativo */
  --c-sky: #4f95da;       /* azul claro */
  --c-navy: #002060;      /* azul oscuro corporativo */
  --c-cream: #f2f0ed;     /* blanco cálido corporativo */

  --text-main: #0b1633;   /* texto principal sobre fondos claros */
  --text-soft: rgba(11,22,51,0.72);
  --border-soft: rgba(0,32,96,0.18);

  --card-bg: rgba(242,240,237,0.97);  /* tarjetas claras */
  --card-bg-2: rgba(255,255,255,0.9);
  --glass: rgba(255,255,255,0.55);

  --focus-ring: rgba(79,149,218,0.45);
  --shadow-1: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-2: 0 6px 22px rgba(0,0,0,0.10);
}

/* =====================================
   TEMA OSCURO (activa: body.theme-dark)
===================================== */
body.theme-dark {
  --c-primary: #821b0e;          /* granate aclarado para contraste */
  --c-sky: #4f95da;
  --c-navy: #cdd9ff;             /* azul claro para texto */
  --c-cream: #1b1d22;            /* fondo base muy oscuro */

  --text-main: #f5f7fa;
  --text-soft: rgba(245,247,250,0.75);
  --border-soft: rgba(255,255,255,0.18);

  --card-bg: rgba(25,28,33,0.94);   /* tarjetas oscuras */
  --card-bg-2: rgba(40,43,50,0.92);
  --glass: rgba(255,255,255,0.06);

  --focus-ring: rgba(79,149,218,0.45);

  --shadow-1: 0 10px 32px rgba(0,0,0,0.60);
  --shadow-2: 0 6px 18px rgba(0,0,0,0.50);
}

/* Gradiente oscuro */
body.theme-dark {
  background-color: #297ce7;
  background-image: radial-gradient(
    circle,
    rgb(0, 39, 118) 0%,
    rgb(26, 78, 156) 50%,
    rgb(0, 117, 251) 85%,
    rgb(0, 117, 234) 100%
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


/* Reset muy ligero */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Fondo general y tipografía */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;

  /* Fondo corporativo con gradiente suave */
  background-color: #297ce7;
  background-image: radial-gradient(
    circle,
    rgb(0, 39, 118) 0%,
    rgb(26, 78, 156) 50%,
    rgb(0, 117, 251) 85%,
    rgb(0, 117, 234) 100%
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;

  color: var(--text-main);
  font-family: "Source Sans Pro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.65;
}

/* Enlaces */
a {
  text-decoration: none;
  border-bottom: dotted 1px rgba(0,32,96,0.35);
  color: var(--c-navy);
  transition: color 0.2s ease-in-out,
              background-color 0.2s ease-in-out,
              border-bottom-color 0.2s ease-in-out;
}

a:hover {
  color: var(--c-primary);
  border-bottom-color: transparent;
}

/* Títulos */
h1, h2, h3, h4 {
  color: var(--c-navy);
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0.12rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2rem;
  text-transform: none;
}

h2 {
  font-size: 1.4rem;
}

h2 {
  font-family: "Source Sans Pro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: 0.05rem;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--c-primary);
  text-transform: none;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--c-sky);
  border-radius: 2px;
}

/* ---- Layout general del portal ---- */

.portal-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Tarjeta central */
.portal-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(6px);
}

/* Variante dashboard */
.portal-card--wide {
  max-width: 800px;
}

/* Cabecera dentro de la tarjeta */
.portal-card__header {
  text-align: center;
  margin-bottom: 2rem;
}

.portal-card__subtitle {
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Marca/logo texto arriba */
.portal-brand {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--c-navy);
  opacity: 0.9;
}

/* Logo imagen debajo del texto DATA TORRES */
.portal-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.portal-logo img {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Aura blanca para el logo en modo oscuro */
body.theme-dark .portal-navbar__logo {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.9));
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
}

/* Bordes y halo para el logo de la sidebar en modo oscuro */
body.theme-dark .sidebar-logo img {
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  padding-bottom: 0px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

/* ---- AI Apps ---- */

form {
  margin: 0;
}

form .field {
  margin-bottom: 1.8rem;
}

label {
  display: block;
  color: var(--c-navy);
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

/* Inputs claros - más grandes y bonitos */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"] {
  width: 100%;
  height: 3.25rem;
  padding: 0 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--border-soft);
  background: var(--card-bg-2);
  color: var(--text-main);
  font-size: 1rem;
  outline: 0;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder,
input[type="number"]::placeholder {
  color: rgba(11,22,51,0.45);
  font-size: 0.95rem;
}

body.theme-dark input[type="email"]::placeholder,
body.theme-dark input[type="password"]::placeholder,
body.theme-dark input[type="text"]::placeholder,
body.theme-dark input[type="number"]::placeholder {
  color: rgba(245,247,250,0.5);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  background: var(--card-bg-2);
  border-color: var(--c-sky);
  box-shadow: 0 0 0 4px var(--focus-ring), 0 4px 12px rgba(79,149,218,0.15);
  transform: translateY(-1px);
}

body.theme-dark input[type="email"]:focus,
body.theme-dark input[type="password"]:focus,
body.theme-dark input[type="text"]:focus,
body.theme-dark input[type="number"]:focus {
  background: var(--card-bg-2);
  color: var(--text-main);
}

input[type="email"]:hover,
input[type="password"]:hover,
input[type="text"]:hover,
input[type="number"]:hover {
  border-color: rgba(79,149,218,0.4);
}

/* Selects - más grandes y bonitos */
select {
  width: 100%;
  height: 3.25rem;
  padding: 0 1.25rem;
  padding-right: 3rem;
  border-radius: 10px;
  border: 2px solid var(--border-soft);
  background-color: var(--card-bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23002060' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  color: var(--text-main);
  font-size: 1rem;
  outline: 0;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  appearance: none;
}

select:hover {
  border-color: rgba(79,149,218,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

select:focus {
  background-color: var(--card-bg-2);
  border-color: var(--c-sky);
  box-shadow: 0 0 0 4px var(--focus-ring), 0 4px 12px rgba(79,149,218,0.15);
  transform: translateY(-1px);
  color: var(--text-main);
}

body.theme-dark select {
  background-color: var(--card-bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cdd9ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

body.theme-dark select:focus {
  background-color: var(--card-bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cdd9ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  color: var(--text-main);
}

select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: rgba(0,0,0,0.03);
}

/* Textareas - más grandes y bonitos */
textarea {
  width: 100%;
  min-height: 5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--border-soft);
  background: var(--card-bg-2);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.6;
  outline: 0;
  resize: vertical;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

textarea::placeholder {
  color: rgba(11,22,51,0.45);
  font-size: 0.95rem;
}

body.theme-dark textarea::placeholder {
  color: rgba(245,247,250,0.5);
}

textarea:hover {
  border-color: rgba(79,149,218,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

textarea:focus {
  background: var(--card-bg-2);
  border-color: var(--c-sky);
  box-shadow: 0 0 0 4px var(--focus-ring), 0 4px 12px rgba(79,149,218,0.15);
  transform: translateY(-1px);
}

body.theme-dark textarea:focus {
  background: var(--card-bg-2);
  color: var(--text-main);
}

/* Botón principal corporativo - más grande y bonito */
button,
button[type="submit"],
input[type="submit"] {
  display: inline-block;
  width: 100%;
  height: 3.5rem;
  border-radius: 10px;
  border: 0;
  background-color: var(--c-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: all 0.25s ease-in-out;
  margin-top: 0.5rem;
}

button:hover,
input[type="submit"]:hover {
  background-color: #6f140a;  /* ligeramente más oscuro */
  box-shadow: 0 12px 32px rgba(130,27,14,0.35);
  transform: translateY(-2px);
}

button:active,
input[type="submit"]:active {
  transform: translateY(0);
  background-color: #5d0f07;
}

/* Enlaces secundarios debajo del login */
.portal-actions {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ---- Mensajes flash / error ---- */

.alert {
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert--error {
  background: rgba(130, 27, 14, 0.08);
  border: 1px solid rgba(130, 27, 14, 0.45);
  color: var(--c-primary);
}

.alert--success {
  background: rgba(0, 32, 96, 0.06);
  border: 1px solid rgba(0, 32, 96, 0.35);
  color: var(--c-navy);
}

/* ---- Dashboard: lista de informes ---- */

.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reports-header h2 {
  margin-bottom: 0;
}

.reports-header small {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Títulos de sección en paneles (Mis Aplicaciones IA, Mis Informes) */
.tab-panel h3 {
  font-family: "Source Sans Pro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.18rem;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  text-transform: uppercase;
  position: relative;
  color: var(--c-navy);
  background-image: linear-gradient(120deg, #0f2f7a, #1d56d6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 22px rgba(13, 57, 148, 0.45);
}

body.theme-dark .tab-panel h3 {
  background-image: linear-gradient(120deg, #ffffff, #bcd1ff);
}

.tab-panel h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #5c8aff 0%, #2362e9 40%, #1d56d6 70%, #002987 100%);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(13, 57, 148, 0.5);
}

/* Título principal de la página de Formularios (Aplicaciones IA) */
.ai-apps-title {
  font-family: "Source Sans Pro", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: 0.05rem;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--c-primary);
  text-transform: none;
  position: relative;
}

.ai-apps-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--c-sky);
  border-radius: 2px;
}

/* Lista de informes */
.reports-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 0.5rem;
}

.reports-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.8rem;
  border-top: 1px solid var(--border-soft);
  gap: 0.5rem;
  transition: background-color 0.2s ease;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.reports-list li:first-child {
  border-top: 1px solid var(--border-soft);
}

.reports-list li:hover {
  background-color: rgba(79, 149, 218, 0.06);
}

.report-main {
  display: flex;
  flex-direction: column;
}

.report-title {
  font-weight: 700;
  letter-spacing: 0.02rem;
  color: var(--c-navy);
}

.report-meta {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Botón/enlace de ver/descargar */
.report-link {
  white-space: nowrap;
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2rem;
  border: 1px solid transparent;
  color: #e2f3ff;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(120deg, rgba(3, 15, 38, 0.95), rgba(9, 28, 66, 0.8)) padding-box,
             linear-gradient(120deg, #1b4dd8, var(--c-sky)) border-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 20px rgba(79, 149, 218, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.report-link:hover {
  background: linear-gradient(120deg, #1b4dd8, var(--c-sky));
  color: #04102b;
  box-shadow: 0 15px 30px rgba(79, 149, 218, 0.35), 0 0 25px rgba(79, 149, 218, 0.5);
  transform: translateY(-1px) scale(1.02);
}

/* Botón de historial (emoji) */
.report-link--history {
  padding: 0.55rem 1rem;
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.history-back-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--card-bg-2);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.history-back-btn:hover {
  background: var(--card-bg);
  border-color: var(--c-sky);
  transform: translateY(-1px);
}

/* Mensaje vacío */
.empty-state {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Botón hamburguesa para móviles */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  width: clamp(40px, 6vw, 44px); /* Ancho proporcional */
  height: clamp(40px, 6vw, 44px); /* Alto proporcional */
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vw, 5px); /* Gap proporcional */
  transition: all 0.2s ease;
  margin-right: clamp(0.5rem, 1.5vw, 1rem); /* Margen derecho proporcional */
  margin-left: 15px;
}

.mobile-menu-toggle:hover {
  border-color: var(--c-primary);
  background: rgba(130, 27, 14, 0.08);
}

.mobile-menu-toggle span {
  display: block;
  width: clamp(20px, 3.5vw, 24px); /* Ancho proporcional */
  height: clamp(2.5px, 0.4vw, 3px); /* Alto proporcional */
  background: var(--c-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay para móviles */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsivo básico - Tablet y móvil */
@media screen and (max-width: 1024px) {
  .portal-content {
    padding: 1.5rem;
  }

  .portal-card--wide {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  /* Navbar responsive */
  .portal-navbar {
    height: clamp(70px, 12vw, 80px); /* Altura proporcional */
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .theme-switch {
    height: clamp(40px, 6.5vw, 44px); /* Altura proporcional */
    padding-top: clamp(10px, 1.8vw, 12px); /* Padding proporcional */
  }

  .user-menu__trigger {
    width: clamp(40px, 6.5vw, 44px); /* Ancho proporcional */
    height: clamp(40px, 6.5vw, 44px); /* Alto proporcional */
  }

  /* Ajustar separador del navbar */
  .navbar-spacer {
    height: 80px;
  }

  /* Layout responsive */
  .portal-layout {
    flex-direction: column;
    margin-top: 0;
  }

  /* Overlay responsive */
  .sidebar-overlay {
    top: 80px;
  }

  /* Sidebar responsive */
  .portal-sidebar {
    position: fixed !important;
    top: 84px; /* 80px (navbar) + 4px (borde inferior) para que no se solape */
    left: -220px;
    width: 220px;
    height: calc(100vh - 84px);
    z-index: 999; /* Menor que el navbar (1000) para que no se superponga */
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-right: 1px solid var(--border-soft);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-top: 0; /* Asegurar que no hay margen adicional */
  }

  .portal-sidebar.active {
    left: 0;
  }

  .portal-content {
    width: 100%;
    padding: 1.5rem 1rem;
    margin-top: 0;
  }

  .portal-card--wide {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  /* Títulos responsive */
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .tab-panel h3 {
    font-size: 1.5rem;
  }

  /* Tabs responsive */
  .tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
  }

  /* Reports list responsive */
  .reports-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .reports-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .report-link {
    margin-top: 0;
    width: 100%;
    text-align: center;
  }

  /* Sidebar buttons responsive */
  .sidebar-btn {
    font-size: 0.75rem;
    padding: 0.65rem 0.95rem;
  }

  .sidebar-logo {
    padding: 10px;
  }

  .sidebar-logo img {
    max-height: 80px;
  }

  /* User menu dropdown responsive */
  .user-menu__dropdown {
    right: 0;
    min-width: 180px;
  }

  /* Upload logo responsive */
  .upload-logo-page {
    padding: 0 1rem;
  }

  .upload-logo__dropzone {
    padding: 2rem 1.5rem;
  }

  .upload-logo__dropzone-icon {
    font-size: 2.5rem;
  }

  .upload-logo__preview {
    min-height: 120px;
    padding: 1rem;
  }

  /* Formularios responsive */
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input[type="number"],
  select,
  textarea {
    height: 3rem;
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .upload-report__select,
  .upload-report__input {
    height: 3rem;
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .upload-report__select {
    padding-right: 2.5rem;
  }

  /* Client features grid responsive */
  .client-feature__grid {
    grid-template-columns: 1fr;
  }

  /* Account settings responsive */
  .account-settings__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* Toast responsive */
  .toast {
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

@media screen and (max-width: 600px) {
  .portal-card {
    padding: 1.5rem 1rem;
  }

  @media screen and (max-width: 480px) {
    .portal-navbar__title {
      display: none; /* Ocultar texto en móviles muy pequeños */
    }
  }

  .portal-content {
    padding: 1rem 0.75rem;
  }

  .portal-card--wide {
    padding: 1.25rem 0.75rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .tab-panel h3 {
    font-size: 1.3rem;
  }

  .reports-list li {
    padding: 0.85rem;
  }

  .report-link {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  button,
  button[type="submit"],
  input[type="submit"] {
    height: 3rem;
    font-size: 0.85rem;
  }

  .sidebar-btn {
    font-size: 0.7rem;
    padding: 0.6rem 0.85rem;
  }
}

@media screen and (max-width: 400px) {
  .portal-card {
    padding: 1.25rem 0.75rem;
    border-radius: 8px;
  }

  /* Los valores proporcionales con clamp ya se aplican desde las reglas base */

  .theme-switch label {
    width: 56px;
    height: 30px;
  }

  .user-menu__trigger {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.1rem;
  }
}

/* ==== NAVBAR SUPERIOR ==== */
.portal-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;

  /* claro en vez de oscuro */
  background: var(--card-bg);
  border-bottom: 4px solid var(--c-primary);
  display: flex;
  align-items: center;
  padding: 0;
  z-index: 1000;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(6px);
}

/* Separador del navbar */
.navbar-spacer {
  height: 100px;
}

.portal-navbar__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: 0.18rem;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem); /* Tamaño de fuente proporcional - aumentado */
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: none;
  transition: opacity 0.2s ease;
  padding-left: clamp(0.75rem, 2.5vw, 2rem); /* Padding proporcional - aumentado */
}

.portal-navbar__brand:hover {
  opacity: 0.8;
  border-bottom: none;
}

.portal-navbar__logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.portal-navbar__title {
  display: inline-block;
}

/* enlaces del navbar */
.portal-navbar__links a {
  margin-left: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border-bottom: none;
  border: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--c-navy);
}

.portal-navbar__links a:hover {
  background: rgba(130,27,14,0.08);
  color: var(--c-primary);
  border-color: rgba(130,27,14,0.4);
}

/* usuario */
.portal-navbar__user {
  margin-left: 1rem;
  color: var(--text-soft);
}

/* contenedor de acciones (tema + menú usuario) */
.portal-navbar__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem); /* Gap proporcional */
  padding-right: clamp(0.75rem, 4vw, 3.5rem); /* Padding derecho proporcional */
}

/* ==== TABS ==== */

.tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--c-navy);
  padding: 0.45rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  background: rgba(79,149,218,0.12);
  border-color: var(--c-sky);
}

.tab-btn.active {
  background: rgba(0,32,96,0.08);
  border-color: rgba(0,32,96,0.3);
  color: var(--c-navy);
}

/* paneles */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- LAYOUT CON SIDEBAR ---- */

.portal-layout {
  display: flex;
  min-height: calc(100vh - 100px);
  margin-top: 10px;
}

/* Barra lateral clara */
.portal-sidebar {
  width: 220px;
  background: var(--card-bg);
  border-right: 1px solid var(--border-soft);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(6px);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Botones del sidebar */
.sidebar-btn {
  position: relative;
  background: linear-gradient(135deg, rgba(13,45,89,0.85), rgba(18,83,168,0.85));
  border: 1px solid rgba(65,143,255,0.55);
  border-radius: 12px;
  color: var(--c-sky);
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16rem;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 18px rgba(10,40,90,0.25);
  overflow: hidden;
  isolation: isolate;
}

.sidebar-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(111,196,255,0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.sidebar-btn:hover {
  border-color: rgba(111,196,255,0.9);
  background: linear-gradient(135deg, rgba(18,83,168,0.95), rgba(32,132,255,0.95));
  box-shadow: 0 10px 24px rgba(10,40,90,0.35);
  transform: translateY(-1px);
}

.sidebar-btn:hover::after {
  opacity: 1;
}

.sidebar-btn.active {
  background: linear-gradient(135deg, rgba(18,83,168,1), rgba(7,29,66,1));
  border-color: rgba(111,196,255,1);
  color: #e8f4ff;
  box-shadow: 0 12px 28px rgba(7,29,66,0.45);
}

/* Separador en el sidebar */
.sidebar-separator {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(65,143,255,0.4), 
    rgba(79,149,218,0.8), 
    rgba(65,143,255,0.4)
  );
  margin: 1.5rem 0;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(65,143,255,0.3);
}

/* Zona de contenido */
.portal-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Tarjeta dashboard ocupa el área */
.portal-card--wide {
  width: 100%;
  max-width: 1200px;
  min-height: calc(100vh - 100px - 4rem);
}

/* =========================
   SWITCH DE TEMA (tipo iOS)
========================= */
.theme-switch {
  display: inline-flex;
  align-items: center;
  user-select: none;
  height: 50px;
  justify-content: center;
  padding-top: 18px;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch label {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;

  /* fondo del carril */
  background: rgba(0, 32, 96, 0.12);
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: background-color .25s ease, border-color .25s ease;
}

/* iconitos */
.theme-switch__icon {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
  transform: translateY(-0.5px);
  transition: opacity .25s ease, transform .25s ease;
}

/* bolita */
.theme-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;

  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

/* estado ON (oscuro) */
.theme-switch input:checked + label {
  background: rgba(79,149,218,0.25);
  border-color: rgba(79,149,218,0.6);
}

.theme-switch input:checked + label .theme-switch__thumb {
  transform: translateX(30px);
  background: var(--c-cream);
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

/* micro-animación de iconos */
.theme-switch input:checked + label .theme-switch__icon--sun {
  opacity: 0.45;
  transform: scale(0.95);
}
.theme-switch input:checked + label .theme-switch__icon--moon {
  opacity: 1;
  transform: scale(1.05);
}

/* foco accesible */
.theme-switch input:focus + label {
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.12),
    0 0 0 3px var(--focus-ring);
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-logo {
  display: grid;
  place-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 12px;
}

.sidebar-btn--link {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--c-navy);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-btn--link:hover {
  background: rgba(79,149,218,0.12);
  border-color: var(--c-sky);
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nav-top {
  flex-grow: 1;  /* ocupa todo el espacio vertical libre */
}

/* Sidebar ocupa toda la altura visible - solo en pantallas grandes */
@media screen and (min-width: 769px) {
  .portal-sidebar {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);  /* altura real: pantalla menos navbar */
    position: sticky;
    top: 110px;
    align-self: flex-start;
    overflow-y: auto;
  }
}

/* El nav crece y empuja lo de abajo */
.sidebar-nav.nav-top{
  flex: 1;
}

.toast{
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 10px;
  background: #1f2937;
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all .25s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.toast--success{
  background: #0f766e; /* verde/teal */
}

.toast--show{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SISTEMA DE NOTIFICACIONES POP-UP
========================= */

.notification-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  max-width: 90%;
  width: 100%;
  max-width: 500px;
}

.notification {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.notification--show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.notification__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
  min-height: 56px;
}

.notification__message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.notification__close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  top: 0;
}

.notification__close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.8);
}

/* Tipos de notificación */
.notification--success {
  background: #10b981;
  border-color: #059669;
}

.notification--success .notification__message {
  color: white;
}

.notification--success .notification__close {
  color: rgba(255, 255, 255, 0.8);
}

.notification--success .notification__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.notification--warning {
  background: #f59e0b;
  border-color: #d97706;
}

.notification--warning .notification__message {
  color: white;
}

.notification--warning .notification__close {
  color: rgba(255, 255, 255, 0.8);
}

.notification--warning .notification__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.notification--error {
  background: #ef4444;
  border-color: #dc2626;
}

.notification--error .notification__message {
  color: white;
}

.notification--error .notification__close {
  color: rgba(255, 255, 255, 0.8);
}

.notification--error .notification__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.notification--info {
  background: #3b82f6;
  border-color: #2563eb;
}

.notification--info .notification__message {
  color: white;
}

.notification--info .notification__close {
  color: rgba(255, 255, 255, 0.8);
}

.notification--info .notification__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Modo oscuro */
.theme-dark .notification {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .notification--success {
  background: #059669;
  border-color: #047857;
}

.theme-dark .notification--warning {
  background: #d97706;
  border-color: #b45309;
}

.theme-dark .notification--error {
  background: #dc2626;
  border-color: #b91c1c;
}

.theme-dark .notification--info {
  background: #2563eb;
  border-color: #1d4ed8;
}

.theme-dark .notification__message {
  color: white;
}

.theme-dark .notification__close {
  color: rgba(255, 255, 255, 0.7);
}

.theme-dark .notification__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .notification-container {
    top: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    max-width: calc(100% - 20px);
    width: auto;
  }

  .notification {
    max-width: 100%;
  }

  .notification__content {
    padding: 14px 16px;
  }

  .notification__message {
    font-size: 13px;
  }
}

/* =========================
   MENÚ DESPLEGABLE DE USUARIO
========================= */
.portal-navbar__user-menu {
  position: relative;
}

.user-menu__trigger {
  background: transparent;
  border: 2px solid var(--border-soft);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  overflow: hidden;
}

.user-menu__trigger:hover {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.user-menu__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-menu__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow-1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
  backdrop-filter: blur(6px);
}

.user-menu__dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: none;
  border-radius: 0;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.user-menu__item:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.user-menu__item:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom: none;
}

.user-menu__item:hover {
  background: rgba(79, 149, 218, 0.12);
  color: var(--c-primary);
}

.user-menu__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.user-menu__version {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--c-navy);
  opacity: 0.7;
}

.user-menu__version-label {
  font-weight: 500;
}

.user-menu__version-value {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--c-primary);
  opacity: 1;
}

/* =========================
   PÁGINA SUBIR LOGO
========================= */
.upload-logo-page {
  max-width: 700px;
  margin: 0 auto;
}

.upload-logo__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.upload-logo__header h2 {
  margin-bottom: 0.5rem;
  color: var(--c-navy);
}

.upload-logo__subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* Logo actual */
.upload-logo__current {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--card-bg-2);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  transition: opacity 0.3s ease;
}

.upload-logo__current h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.85rem;
}

.upload-logo__preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 2px dashed var(--border-soft);
  min-height: 150px;
}

.upload-logo__preview-img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Formulario */
.upload-logo__form-wrapper {
  margin-bottom: 2rem;
}

/* Dropzone */
.upload-logo__dropzone {
  position: relative;
  border: 2px dashed var(--border-soft);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--card-bg-2);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.upload-logo__dropzone:hover {
  border-color: var(--c-sky);
  background: rgba(79, 149, 218, 0.05);
}

.upload-logo__dropzone--dragover {
  border-color: var(--c-primary);
  background: rgba(130, 27, 14, 0.08);
  transform: scale(1.02);
}

.upload-logo__dropzone-content {
  pointer-events: none;
}

.upload-logo__dropzone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.upload-logo__dropzone-text {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.upload-logo__dropzone-main {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-navy);
  display: block;
}

.upload-logo__dropzone-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  display: block;
}

.upload-logo__dropzone-formats {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.upload-logo__file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Preview nuevo logo */
.upload-logo__preview-new {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(79, 149, 218, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(79, 149, 218, 0.3);
  animation: fadeIn 0.3s ease;
}

.upload-logo__preview-new h3 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

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

/* Botones */
.upload-logo__actions {
  margin-top: 1.5rem;
}

.upload-logo__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.upload-logo__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.upload-logo__submit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(130, 27, 14, 0.3);
}

.upload-logo__submit-icon {
  font-size: 1.1rem;
}

/* Información */
.upload-logo__info {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--card-bg-2);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.upload-logo__info h3 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.upload-logo__info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upload-logo__info-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.upload-logo__info-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

/* Estilos adicionales para formularios dinámicos */
form > div {
  margin-bottom: 1.8rem;
}

form > div > label {
  display: block;
  color: var(--c-navy);
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

/* Estilos para clases específicas de upload-report */
.upload-report__field {
  margin-bottom: 1.8rem;
}

.upload-report__label {
  display: block;
  color: var(--c-navy);
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.upload-report__select,
.upload-report__input {
  width: 100%;
  height: 3.25rem;
  padding: 0 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--border-soft);
  background-color: var(--card-bg-2);
  color: var(--text-main);
  font-size: 1rem;
  outline: 0;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.upload-report__select {
  padding-right: 3rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23002060' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

body.theme-dark .upload-report__select {
  background-color: var(--card-bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cdd9ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.upload-report__select:hover,
.upload-report__input:hover {
  border-color: rgba(79,149,218,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.upload-report__select:focus,
.upload-report__input:focus {
  background-color: var(--card-bg-2);
  border-color: var(--c-sky);
  box-shadow: 0 0 0 4px var(--focus-ring), 0 4px 12px rgba(79,149,218,0.15);
  transform: translateY(-1px);
  color: var(--text-main);
}

body.theme-dark .upload-report__select:focus {
  background-color: var(--card-bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cdd9ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.upload-report__input::placeholder {
  color: rgba(11,22,51,0.45);
  font-size: 0.95rem;
}

body.theme-dark .upload-report__input::placeholder {
  color: rgba(245,247,250,0.5);
}

.client-feature__section {
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--card-bg-2);
  margin-bottom: 2rem;
}

.client-feature__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--c-navy);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.85rem;
}

.client-feature__header small {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.client-feature__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.client-feature__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-feature__item input {
  accent-color: var(--c-primary);
}

.client-feature__item:hover {
  border-color: rgba(79,149,218,0.5);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.client-feature__empty {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Ajustes de cuenta */
.account-settings {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.account-settings__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-settings__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.account-settings__header h2 {
  margin: 0;
}

.account-settings__meta {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 600;
  color: var(--text-strong);
}

.form-field input {
  border: 1px solid rgba(0, 32, 96, 0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: rgba(255,255,255,0.9);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  border-color: rgba(0, 32, 96, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 32, 96, 0.1);
  outline: none;
}

.form-field small {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(130, 27, 14, 0.25);
}

.btn--primary:hover {
  background: #73160d;
}

.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid rgba(130, 27, 14, 0.35);
}

.btn--ghost:hover {
  border-color: var(--c-primary);
  color: #73160d;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .upload-logo__dropzone {
    padding: 2rem 1.5rem;
  }

  .upload-logo__dropzone-icon {
    font-size: 2.5rem;
  }

  .upload-logo__preview {
    min-height: 120px;
    padding: 1rem;
  }

  input[type="email"],
  input[type="password"],
  input[type="text"],
  input[type="number"],
  select,
  textarea {
    height: 3rem;
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .upload-report__select,
  .upload-report__input {
    height: 3rem;
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .upload-report__select {
    padding-right: 2.5rem;
  }

  .client-feature__grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

