@charset "UTF-8";
/** Media Queries **/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  overflow-x: hidden;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  overflow-x: hidden;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  font-size: 1.6rem;
  line-height: 1.8;
}

p {
  color: #000000;
  font-size: 2rem;
}

.contenedor {
  width: 95%;
  max-width: 120rem;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

img,
picture {
  width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  margin: 2.5rem 0;
  font-weight: 300;
  text-align: center;
}

h1 {
  font-size: 3.8rem;
}

h2 {
  font-size: 3.4rem;
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 2.6rem;
}

.seccion {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.contenido-centrado {
  max-width: 80rem;
}

.alinear-derecha {
  display: flex;
  justify-content: flex-end;
}

.w-100 {
  width: 100%;
}

.boton-amarillo {
  background-color: #e2df0c;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 3rem;
  text-align: center;
  margin-top: 2.5rem;
  display: inline-block;
  border: none;
}
.boton-amarillo:hover {
  background-color: rgb(201.7857142857, 199.1071428571, 10.7142857143);
  cursor: pointer;
}

.boton-amarillo-block {
  background-color: #e2df0c;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 3rem;
  text-align: center;
  margin-top: 2.5rem;
  display: block;
  border: none;
}
.boton-amarillo-block:hover {
  background-color: rgb(201.7857142857, 199.1071428571, 10.7142857143);
  cursor: pointer;
}

.boton-naranja {
  background-color: #d44a0a;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 3rem;
  text-align: center;
  margin-top: 2.5rem;
  display: inline-block;
  border: none;
}
.boton-naranja:hover {
  background-color: rgb(187.6486486486, 65.5, 8.8513513514);
  cursor: pointer;
}

.boton-verde {
  background-color: #71B100;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 3rem;
  text-align: center;
  margin-top: 2.5rem;
  display: inline-block;
  border: none;
}
.boton-verde:hover {
  background-color: rgb(96.7203389831, 151.5, 0);
  cursor: pointer;
}

.boton-verde-oscuro {
  background-color: #16a34a;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 3rem;
  text-align: center;
  margin-top: 2.5rem;
  display: block;
  border: none;
}
.boton-verde-oscuro:hover {
  background-color: rgb(18.9675675676, 140.5324324324, 63.8);
  cursor: pointer;
}

.boton-rojo-block {
  background-color: rgb(185, 5, 5);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 3rem;
  text-align: center;
  margin-top: 2.5rem;
  display: block;
  border: none;
  width: 100%;
}
.boton-rojo-block:hover {
  background-color: rgb(160.1710526316, 4.3289473684, 4.3289473684);
  cursor: pointer;
}

.boton-verde-block {
  background-color: #71B100;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 3rem;
  text-align: center;
  margin-top: 2.5rem;
  display: block;
  border: none;
}
.boton-verde-block:hover {
  background-color: rgb(96.7203389831, 151.5, 0);
  cursor: pointer;
}

.dark-mode {
  background-color: #000;
}
.dark-mode body.dark-mode {
  background-color: #000 !important;
}
.dark-mode p {
  color: #FFFFFF;
}
.dark-mode a, .dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode label, .dark-mode legend {
  color: #e1e1e1;
}
.dark-mode .anuncio,
.dark-mode .resumen-propiedad {
  background-color: #333333;
  border: 1px solid #333333;
}
.dark-mode .anuncio .precio,
.dark-mode .resumen-propiedad .precio {
  color: #71B100;
}
.dark-mode .anuncio .icono,
.dark-mode .resumen-propiedad .icono {
  filter: invert(100%);
}
.dark-mode .texto-nosotros blockquote {
  color: #FFFFFF;
}
.dark-mode .formulario label,
.dark-mode .formulario legend,
.dark-mode .formulario p {
  color: #e1e1e1;
}
.dark-mode .formulario input:not([type=submit]),
.dark-mode .formulario textarea,
.dark-mode .formulario select {
  background-color: #333333;
  border: 1px solid #333333;
  color: #FFFFFF;
}

.dark-mode-boton {
  width: 4rem;
  height: 4rem;
  background-image: url("/build/img/dark-mode.svg");
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
}

.dark-mode .dark-mode-boton {
  background-image: url("/build/img/light-mode.svg");
}

/* ===== Dosificación (Dark) ===== */
.dark-mode {
  /* Contenedor general */
  /* Chips de tipo de mezcla */
  /* Tarjeta de agregado + campos */
  /* Panel cálculo */
  /* Curvas */
  /* Tabla de especificaciones y combinadas */
  /* Zebra rows: alternar negro y gris en modo oscuro */
  /* Toggles (checkbox) y masa de pastilla */
  /* Botón "Agregar Propiedades de Calidad" y controles de calidad */
}
.dark-mode .mix-dose {
  color: #FFFFFF;
}
.dark-mode .chip {
  background: #121212;
  color: #FFFFFF;
  border: 1px solid #d44a0a;
}
.dark-mode .chip:hover {
  background: rgba(212, 74, 10, 0.18);
}
.dark-mode .chip.chip--active {
  background: #d44a0a;
  color: #000000;
}
.dark-mode .agg-card {
  background: #000000;
  border: 1px solid #d44a0a;
  color: #FFFFFF;
}
.dark-mode .agg-card__name {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.dark-mode .agg-card .agg-field span {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}
.dark-mode .agg-card .agg-field input[type=number], .dark-mode .agg-card__slider .agg-card__slider-val {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}
.dark-mode .agg-card__label {
  color: #FFFFFF;
  opacity: 0.9;
}
.dark-mode .calc__panel {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.dark-mode .curves__card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.dark-mode .curves__plot {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dark-mode .spec-results__head {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.dark-mode .spec-results__head--ok {
  background: rgba(29, 122, 54, 0.18);
  border-color: rgba(29, 122, 54, 0.45);
  color: #b2f5c0;
}
.dark-mode .spec-results__head--bad {
  background: rgba(199, 36, 36, 0.18);
  border-color: rgba(199, 36, 36, 0.45);
  color: #ffb3b3;
}
.dark-mode .spec-table thead th {
  background: #121212;
  color: #FFFFFF;
}
.dark-mode .spec-table tbody tr:nth-child(odd) {
  background: #000000;
}
.dark-mode .spec-table tbody tr:nth-child(even) {
  background: #121212;
}
.dark-mode .spec-table tr.fail {
  /* Mantener apariencia neutra (sin filas rojizas) en modo oscuro */
  background: transparent;
}
.dark-mode .spec-table td.ok {
  color: #59d27b;
}
.dark-mode .spec-table td.bad {
  color: #ff7a7a;
}
.dark-mode #combo-toggle .pill__toggle,
.dark-mode .pill__toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: #000000;
  color: #FFFFFF;
}
.dark-mode #combo-toggle .pill__toggle input[type=checkbox],
.dark-mode .pill__toggle input[type=checkbox] {
  border-color: #d44a0a;
  background: #000000;
}
.dark-mode #combo-toggle .pill__toggle input[type=checkbox]:checked,
.dark-mode .pill__toggle input[type=checkbox]:checked {
  background: #d44a0a;
  border-color: #d44a0a;
}
.dark-mode #combo-toggle .pill__toggle input[type=checkbox]:focus-visible,
.dark-mode .pill__toggle input[type=checkbox]:focus-visible {
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.28);
}
.dark-mode .pill__mass input[type=number] {
  background: #121212;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.dark-mode .pill-table tfoot .pill-total {
  background: rgba(242, 183, 5, 0.2);
}
.dark-mode .quality__actions .quality__toggle,
.dark-mode .btn.quality__toggle {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #d44a0a;
}
.dark-mode .quality__actions .quality__toggle:hover,
.dark-mode .btn.quality__toggle:hover {
  background: rgba(212, 74, 10, 0.18);
  color: #FFFFFF;
}
.dark-mode .quality__row .quality__label {
  color: #FFFFFF;
}
.dark-mode .quality__row .quality__select,
.dark-mode .quality__select,
.dark-mode .quality-type {
  background: #121212;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.dark-mode .quality-grid,
.dark-mode .quality {
  color: #FFFFFF;
}
.dark-mode .quality-field {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dark-mode .quality-field .q-val,
.dark-mode .quality-field .q-max {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.dark-mode .quality-max span {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dark-mode {
  background-color: #000;
}
.dark-mode p {
  color: #FFFFFF;
}
.dark-mode a, .dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode label, .dark-mode legend {
  color: #e1e1e1;
}
.dark-mode .anuncio,
.dark-mode .resumen-propiedad {
  background-color: #333333;
  border: 1px solid #333333;
}
.dark-mode .anuncio .precio,
.dark-mode .resumen-propiedad .precio {
  color: #71B100;
}
.dark-mode .anuncio .icono,
.dark-mode .resumen-propiedad .icono {
  filter: invert(100%);
}
.dark-mode .texto-nosotros blockquote {
  color: #FFFFFF;
}
.dark-mode .formulario label,
.dark-mode .formulario legend,
.dark-mode .formulario p {
  color: #e1e1e1;
}
.dark-mode .formulario input:not([type=submit]),
.dark-mode .formulario textarea,
.dark-mode .formulario select {
  background-color: #333333;
  border: 1px solid #333333;
  color: #FFFFFF;
}

.dark-mode-boton {
  width: 4rem;
  height: 4rem;
  background-image: url("/build/img/dark-mode.svg");
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
}

.dark-mode .dark-mode-boton {
  background-image: url("/build/img/light-mode.svg");
}

.dark-mode .capa-header {
  color: #FFFFFF;
}
.dark-mode .capa {
  background: rgba(39, 39, 39, 0.2117647059);
}
.dark-mode .tituloejes, .dark-mode legend, .dark-mode p, .dark-mode h3 {
  color: #d44a0a;
}
.dark-mode .capa-title {
  color: #FFFFFF;
}
.dark-mode fieldset {
  border: 0.2rem solid;
  border-color: #d44a0a;
}
.dark-mode .deterioro-check {
  color: #000000;
}
.dark-mode .bloque-formulario {
  background-color: #000000;
}
.dark-mode input[type=checkbox] {
  accent-color: #d44a0a;
}
.dark-mode .icono-ayuda {
  background: #d44a0a;
}
.dark-mode .btn-modelo {
  background-color: rgba(39, 39, 39, 0.2117647059);
  color: #FFFFFF;
  border-color: #d44a0a;
}
.dark-mode .btn-modelo:hover {
  background-color: #ff7a00;
}
.dark-mode .btn-modelo.activo {
  background-color: #d44a0a;
  color: #000000;
  border-color: #d44a0a;
}
.dark-mode .formularioPersonalizado input {
  background-color: #333333;
  border-color: #e1e1e1;
  color: #FFFFFF;
}
.dark-mode table {
  color: #FFFFFF;
  background-color: #333333;
  border: 1px solid #d44a0a th, td;
  border-color: #FFFFFF;
  border-border-color: #e1e1e1;
}
.dark-mode table thead {
  background-color: #000000;
}
.dark-mode table tbody tr:nth-child(even) {
  background-color: #000000;
}
.dark-mode table tbody tr:nth-child(odd) {
  background-color: #333333;
}
.dark-mode #pantalla-cargando .contenido-cargando {
  color: #000000;
}
.dark-mode #pantalla-cargando .contenido-cargando p {
  color: #000000;
}

.dark-mode .nombre-espectro {
  color: #ffb300;
  text-shadow: 1px 2px 8px #000000, 0 0 2px rgba(255, 255, 255, 0.2666666667);
}
.dark-mode .pbv-title {
  color: #d44a0a;
}
.dark-mode .pbv-container {
  background-color: #000000;
  border: 2px solid #d44a0a;
}
.dark-mode .pbv-grafica {
  background-color: #333333;
  border: #000000;
}
.dark-mode .pbv-avanzadas {
  background-color: #333333;
  border: 1px solid #333333;
}
.dark-mode .pbv-eje-inputs input {
  background-color: #333333;
  border: 1px solid #e1e1e1;
  color: #FFFFFF;
}
.dark-mode .pbv-input {
  background-color: #333333;
  border: 1px solid #333333;
  color: #FFFFFF;
}
.dark-mode .pa-chat {
  background: var(--panel-bg);
}
.dark-mode .pa-input {
  background: var(--chip-bg);
  color: #FFFFFF;
}
.dark-mode .pa-fin-titles strong {
  color: var(--texto);
}
.dark-mode .pa-fin-titles span {
  color: #FFFFFF;
}
.dark-mode .pa-fin-logo {
  background: #000000;
}
.dark-mode .pa-chat__actions button {
  color: #FFFFFF;
}
.dark-mode .pbv-avanzadas p {
  color: #FFFFFF;
}
.dark-mode .pbv-eje-inputs label {
  color: #FFFFFF;
}
.dark-mode .toggle-avanzadas label {
  color: #d44a0a;
}

body.dark-mode,
.dark-mode body,
.dark-mode main,
.dark-mode section,
.dark-mode .contenedor-principal {
  background-color: #000 !important;
}

body.dark-mode .contenedor-espectros {
  background: #000 !important;
}

.dark-mode {
  /* Si quieres zebra */
}
.dark-mode .pg-input, .dark-mode .pg-card, .dark-mode .pg-kpi, .dark-mode .pg-stat {
  background: #000000;
  border: 1px solid #d44a0a;
  color: #FFFFFF;
}
.dark-mode .pg-panel {
  border: 0.2rem solid #d44a0a;
}
.dark-mode .pg-big {
  color: #ff6a00;
}
.dark-mode .pg-big.orange {
  color: #ff6a00;
}
.dark-mode .pg-title-mini {
  color: naranjaOscuro;
}
.dark-mode .pg-panel-title {
  color: #FFFFFF;
}
.dark-mode .pg-stat-label, .dark-mode .pg-kpi-label, .dark-mode .pg-summary {
  color: #FFFFFF;
}
.dark-mode .pg-table th, .dark-mode .dark-mode table tbody tr:nth-child(odd), .dark-mode .dark-mode table tbody tr:nth-child(even) {
  background: #121212;
  color: #FFFFFF;
  border-color: #d44a0a;
}
.dark-mode .pg-table td {
  border-bottom: none;
}
.dark-mode .pg-pdf-btn {
  background: #d44a0a;
  color: #FFFFFF;
  border: 0.1rem solid #d44a0a;
  font-weight: 700;
}
.dark-mode .pg-pdf-btn:hover {
  background-color: #d44a0a;
}
.dark-mode .pg-ico--cold {
  color: #08d8e7;
}
.dark-mode .pg-container {
  background-color: #000000;
}
.dark-mode .pg-chip, .dark-mode .pg-chip.orange {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #d44a0a;
}
.dark-mode .pg-title-mini {
  color: #FFFFFF;
}
.dark-mode .pg-input[type=number] {
  color: #FFFFFF;
  background: #000000;
  border: 1px solid #d44a0a;
}
.dark-mode .pg-input[type=number]:focus {
  border-color: #d44a0a;
  box-shadow: 0 0 0 0.2rem rgba(212, 74, 10, 0.25);
  outline: 0;
}
.dark-mode .pg-input[type=number]::-webkit-inner-spin-button, .dark-mode .pg-input[type=number]::-webkit-outer-spin-button {
  /* no hay color directo; usamos filter + opacidad */
  filter: invert(0.85) saturate(0) contrast(1.1);
  opacity: 0.7;
}
.dark-mode .pg-input[type=number]:hover::-webkit-inner-spin-button, .dark-mode .pg-input[type=number]:hover::-webkit-outer-spin-button {
  opacity: 0.95;
}
.dark-mode .pg-table {
  /* Importante para que se vean los bordes y radios del thead */
  border-collapse: separate;
  border-spacing: 0;
}
.dark-mode .pg-table thead th {
  background: #121212;
  color: #FFFFFF;
  border-top: 2px solid #d44a0a;
  border-bottom: 2px solid #d44a0a;
}
.dark-mode .pg-table thead th:first-child {
  border-left: 2px solid #d44a0a;
  border-top-left-radius: 0.6rem;
}
.dark-mode .pg-table thead th:last-child {
  border-right: 2px solid #d44a0a;
  border-top-right-radius: 0.6rem;
}
.dark-mode .pg-table-wrap {
  border: 0.1px solid #d44a0a;
  /* marco exterior */
  border-radius: 0.6rem;
  overflow: hidden;
  /* recorta las esquinas del thead */
}
.dark-mode .pg-table {
  width: 100%;
  border-collapse: collapse;
  /* evita doble borde entre celdas */
}
.dark-mode .pg-table th,
.dark-mode .pg-table td {
  border: 1px solid #d44a0a;
  /* cuadrícula interna */
  color: #FFFFFF;
}
.dark-mode .pg-table thead th {
  background: #000000;
}
.dark-mode .pg-table tbody tr:nth-child(even) {
  background: #000000;
}
.dark-mode .pg-table tbody tr:nth-child(odd) {
  background: #000000;
}

.dark-mode .aashto-entry-hub {
  border: 1px solid rgba(212, 74, 10, 0.16);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(18, 18, 18, 0.96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.dark-mode .aashto-entry-hub .tituloejes {
  color: #ff6a00;
  text-shadow: none;
}
.dark-mode .aashto-entry-hub__intro,
.dark-mode .aashto-entry-hub__compact {
  border-color: rgba(212, 74, 10, 0.22);
  background: rgba(9, 9, 11, 0.86);
  color: #e1e1e1;
  box-shadow: none;
}
.dark-mode .aashto-entry-hub__intro::before {
  background: #ff6a00;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.16);
}
.dark-mode .aashto-entry-hub__compact-label {
  color: rgba(255, 255, 255, 0.7);
}
.dark-mode .aashto-entry-hub__compact-value {
  color: #FFFFFF;
}
.dark-mode .aashto-entry-hub__change {
  border-color: rgba(212, 74, 10, 0.9);
  background: rgba(212, 74, 10, 0.12);
  color: #ff6a00;
  box-shadow: none;
}
.dark-mode .aashto-entry-hub__change:hover,
.dark-mode .aashto-entry-hub__change:focus-visible {
  background: rgba(212, 74, 10, 0.22);
  border-color: #ff6a00;
  color: #FFFFFF;
}
.dark-mode .aashto-entry-card {
  border: 1px solid rgba(212, 74, 10, 0.14);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(18, 18, 18, 0.93));
  color: #FFFFFF;
  box-shadow: none;
}
.dark-mode .aashto-entry-card:hover,
.dark-mode .aashto-entry-card:focus-visible {
  border-color: rgba(255, 106, 0, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.18);
}
.dark-mode .aashto-entry-card.is-active {
  border-color: #ff6a00;
  background: linear-gradient(180deg, rgba(212, 74, 10, 0.1), rgba(18, 18, 18, 0.94));
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.18);
}
.dark-mode .aashto-entry-card::after {
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.3), rgba(255, 106, 0, 0.9), rgba(255, 106, 0, 0.16));
}
.dark-mode .aashto-entry-card__title {
  color: #FFFFFF;
}
.dark-mode .aashto-entry-card__step {
  border-color: rgba(255, 106, 0, 0.24);
  background: rgba(212, 74, 10, 0.16);
  color: #ff6a00;
  box-shadow: none;
}
.dark-mode .aashto-entry-card__eyebrow,
.dark-mode .aashto-entry-card__cta {
  color: #ff6a00;
}
.dark-mode .aashto-entry-card__eyebrow {
  color: #ffb27d;
}
.dark-mode .aashto-entry-card__footer {
  border-color: rgba(212, 74, 10, 0.2);
}
.dark-mode .aashto-entry-card__list span::before {
  background: #ff6a00;
  box-shadow: none;
}
.dark-mode .aashto-entry-card__text,
.dark-mode .aashto-entry-card__list span,
.dark-mode .aashto-entry-card__hint {
  color: #e1e1e1;
}
.dark-mode #aashto93App .aashto93-page-header {
  border: none;
  background: transparent;
  box-shadow: none;
}
.dark-mode #aashto93App .aashto93-page-title {
  color: #FFFFFF;
  text-shadow: none;
}
.dark-mode #aashto93App .aashto93-page-subtitle,
.dark-mode #aashto93App .aashto93-intro,
.dark-mode #aashto93App .aashto93-result-kpi,
.dark-mode #aashto93App .aashto93-mi-help-intro,
.dark-mode #aashto93App .aashto93-mi-help-source,
.dark-mode #aashto93App .aashto93-add-layer-head p,
.dark-mode #aashto93App .aashto93-a-help,
.dark-mode #aashto93App .aashto93-iso-note,
.dark-mode #aashto93App .aashto93-xsec-empty,
.dark-mode #aashto93App .aashto93-layer-suggestion,
.dark-mode #aashto93App .aashto93-proposals-head p,
.dark-mode #aashto93App .aashto93-proposals-meta {
  color: #e1e1e1;
}
.dark-mode #aashto93App #aashto93CardParams,
.dark-mode #aashto93App #aashto93CardLayers,
.dark-mode #aashto93App .aashto93-proposals {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(18, 18, 18, 0.94));
  border-color: rgba(212, 74, 10, 0.72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dark-mode #aashto93App #aashto93CardParams > legend,
.dark-mode #aashto93App #aashto93CardLayers > legend {
  color: #ff6a00;
  text-shadow: none;
}
.dark-mode #aashto93App .aashto93-feedback {
  border-color: rgba(212, 74, 10, 0.34);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(0, 0, 0, 0.92));
  color: #e1e1e1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
.dark-mode #aashto93App .aashto93-topic-card,
.dark-mode #aashto93App .aashto93-result-card,
.dark-mode #aashto93App .aashto93-layer-row,
.dark-mode #aashto93App .aashto93-mi-help,
.dark-mode #aashto93App .aashto93-add-layer-form,
.dark-mode #aashto93App .aashto93-layer-chart,
.dark-mode #aashto93App .aashto93-setup-chart,
.dark-mode #aashto93App .aashto93-summary,
.dark-mode #aashto93App .aashto93-proposal-card {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(0, 0, 0, 0.92));
  border-color: rgba(212, 74, 10, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dark-mode #aashto93App .aashto93-topic-card h3,
.dark-mode #aashto93App .aashto93-result-title,
.dark-mode #aashto93App .aashto93-add-layer-head h4,
.dark-mode #aashto93App .aashto93-proposals-head h3,
.dark-mode #aashto93App .aashto93-proposal-card-head h4,
.dark-mode #aashto93App .aashto93-layer-row h3,
.dark-mode #aashto93App .aashto93-layer-title-text,
.dark-mode #aashto93App .aashto93-layer-chart-title {
  color: #FFFFFF;
}
.dark-mode #aashto93App .aashto93-proposal-card-head p,
.dark-mode #aashto93App .aashto93-proposal-kpis,
.dark-mode #aashto93App .aashto93-proposal-chip,
.dark-mode #aashto93App .aashto93-xsec-legend-item,
.dark-mode #aashto93App .aashto93-xsec-scale,
.dark-mode #aashto93App .aashto93-xsec-ai,
.dark-mode #aashto93App .aashto93-meta,
.dark-mode #aashto93App .aashto93-tools-label,
.dark-mode #aashto93App .aashto93-hint,
.dark-mode #aashto93App .aashto93-add-layer-cta-sub {
  color: #e1e1e1;
}
.dark-mode #aashto93App .aashto93-proposal-kpis strong {
  color: #ff6a00;
}
.dark-mode #aashto93App .aashto93-proposals-meta {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e1e1e1;
}
.dark-mode #aashto93App .aashto93-meta,
.dark-mode #aashto93App .aashto93-add-layer-grid .col,
.dark-mode #aashto93App .aashto93-a-calc-panel,
.dark-mode #aashto93App .aashto93-iso-wrap {
  background: rgba(0, 0, 0, 0.66);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-mode #aashto93App .aashto93-mi-table,
.dark-mode #aashto93App .aashto93-mi-table thead th,
.dark-mode #aashto93App .aashto93-mi-table tbody th,
.dark-mode #aashto93App .aashto93-mi-table td {
  background: rgba(0, 0, 0, 0.92);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-mode #aashto93App .aashto93-mi-table thead th {
  color: #ff6a00;
}
.dark-mode #aashto93App .aashto93-mi-link,
.dark-mode #aashto93App .aashto93-chart-tab,
.dark-mode #aashto93App .aashto93-unit-btn,
.dark-mode #aashto93App .aashto93-btn--ghost,
.dark-mode #aashto93App .aashto93-layer-ctrl.is-danger {
  background: rgba(0, 0, 0, 0.88);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.dark-mode #aashto93App .aashto93-mi-link:hover,
.dark-mode #aashto93App .aashto93-chart-tab:hover,
.dark-mode #aashto93App .aashto93-btn--ghost:hover {
  border-color: rgba(255, 106, 0, 0.75);
  color: #ff6a00;
}
.dark-mode #aashto93App .aashto93-chart-tab.is-active,
.dark-mode #aashto93App .aashto93-unit-btn.is-active {
  border-color: rgba(255, 106, 0, 0.88);
  background: rgba(212, 74, 10, 0.18);
  color: #ff6a00;
}
.dark-mode #aashto93App .aashto93-add-layer-cta {
  background: rgba(212, 74, 10, 0.08);
  border-color: rgba(255, 106, 0, 0.42);
  color: #FFFFFF;
  box-shadow: none;
}
.dark-mode #aashto93App .aashto93-add-layer-cta:hover,
.dark-mode #aashto93App .aashto93-add-layer-cta.is-open {
  background: rgba(212, 74, 10, 0.14);
  border-color: rgba(255, 106, 0, 0.78);
}
.dark-mode #aashto93App .aashto93-add-layer-cta-title,
.dark-mode #aashto93App .aashto93-mi-link,
.dark-mode #aashto93App .aashto93-a-toggle,
.dark-mode #aashto93App .aashto93-proposal-badge {
  color: #ff6a00;
}
.dark-mode #aashto93App .aashto93-add-layer-cta-icon,
.dark-mode #aashto93App .aashto93-a-suggested,
.dark-mode #aashto93App .aashto93-layer-chip,
.dark-mode #aashto93App .aashto93-proposal-badge {
  background: rgba(212, 74, 10, 0.18);
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: none;
}
.dark-mode #aashto93App .aashto93-proposal-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.dark-mode #aashto93App .aashto93-add-layer-grid label,
.dark-mode #aashto93App .aashto93-form-grid label,
.dark-mode #aashto93App .aashto93-layer-grid label,
.dark-mode #aashto93App .aashto93-mi-label,
.dark-mode #aashto93App .aashto93-ai-label,
.dark-mode #aashto93App .aashto93-proposal-mini-layer,
.dark-mode #aashto93App .aashto93-proposal-mini-scale {
  color: #FFFFFF;
}
.dark-mode #aashto93App .aashto93-kpis,
.dark-mode #aashto93App .aashto93-kpis span,
.dark-mode #aashto93App .aashto93-result-kpi {
  color: #e1e1e1;
}
.dark-mode #aashto93App .aashto93-kpis strong,
.dark-mode #aashto93App .aashto93-result-kpi strong {
  color: #FFFFFF;
}
.dark-mode #aashto93App .aashto93-form-grid input,
.dark-mode #aashto93App .aashto93-form-grid select,
.dark-mode #aashto93App .aashto93-add-layer-grid select,
.dark-mode #aashto93App .aashto93-add-layer-color,
.dark-mode #aashto93App .aashto93-layer-grid input,
.dark-mode #aashto93App .aashto93-layer-grid select {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}
.dark-mode #aashto93App .aashto93-form-grid input:focus,
.dark-mode #aashto93App .aashto93-form-grid select:focus,
.dark-mode #aashto93App .aashto93-add-layer-grid select:focus,
.dark-mode #aashto93App .aashto93-layer-grid input:focus,
.dark-mode #aashto93App .aashto93-layer-grid select:focus {
  border-color: rgba(255, 106, 0, 0.8);
  box-shadow: 0 0 0 2px rgba(212, 74, 10, 0.24);
  outline: none;
}
.dark-mode #aashto93App .aashto93-result-card {
  border-left-color: rgba(255, 106, 0, 0.78);
}
.dark-mode #aashto93App .aashto93-state {
  background: rgba(255, 255, 255, 0.08);
  color: #e1e1e1;
}
.dark-mode #aashto93App .aashto93-state.is-ok,
.dark-mode #aashto93App .aashto93-message.is-ok {
  background: rgba(15, 139, 76, 0.16);
  color: #58c084;
}
.dark-mode #aashto93App .aashto93-state.is-warn,
.dark-mode #aashto93App .aashto93-message.is-warn {
  background: rgba(212, 74, 10, 0.16);
  color: #ffb27d;
}
.dark-mode #aashto93App .aashto93-message {
  color: #e1e1e1;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  padding: 0.75rem 0.9rem;
}
.dark-mode #aashto93App .aashto93-layer-contrib {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(18, 18, 18, 0.92));
  border-color: rgba(255, 106, 0, 0.36);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dark-mode #aashto93App .aashto93-a-suggested {
  color: #FFFFFF;
}
.dark-mode #aashto93App .aashto93-a-source,
.dark-mode #aashto93App .aashto93-a-source.is-default,
.dark-mode #aashto93App .aashto93-a-source.is-manual {
  background: rgba(255, 255, 255, 0.08);
  color: #e1e1e1;
}
.dark-mode #aashto93App .aashto93-a-source.is-modulus {
  background: rgba(212, 74, 10, 0.18);
  color: #ff6a00;
}
.dark-mode #aashto93App .aashto93-layer-row.is-top-contributor,
.dark-mode #aashto93App .aashto93-proposal-card.is-selected,
.dark-mode #aashto93App .aashto93-proposal-card.is-recommended {
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.35);
}
.dark-mode #aashto93App .aashto93-layer-ctrl--arrow {
  color: #e1e1e1;
}
.dark-mode #aashto93App .aashto93-layer-ctrl--arrow:hover {
  color: #ff6a00;
}
.dark-mode #aashto93App .aashto93-layer-chart, .dark-mode #aashto93App .aashto93-setup-chart {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(0, 0, 0, 0.96));
  border-color: rgba(255, 106, 0, 0.38);
}
.dark-mode #aashto93App .aashto93-layer-chart-head {
  border-top-color: rgba(255, 106, 0, 0.38);
}
.dark-mode #aashto93App .aashto93-layer-chart-title {
  background: #121212;
  color: #ff6a00;
}
.dark-mode #aashto93App .aashto93-iso-wrap,
.dark-mode #aashto93App .aashto93-proposal-mini-chart {
  background: rgba(0, 0, 0, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-mode #aashto93App .aashto93-xsec-scale {
  border-right-color: rgba(255, 255, 255, 0.12);
}
.dark-mode #aashto93App .aashto93-xsec-subgrade-pill {
  background: rgba(0, 0, 0, 0.42);
  color: #FFFFFF;
}
.dark-mode #aashto93App .aashto93-progress {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.dark-mode #aashto93App .aashto93-progress-bar {
  background: linear-gradient(90deg, #f3a13d, #1f9d61);
}
.dark-mode #aashto93App .aashto93-layer-suggestion,
.dark-mode #aashto93App #aashto93LayerSuggestion {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(18, 18, 18, 0.94));
  border-color: rgba(255, 106, 0, 0.44);
  color: #f7d6bf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dark-mode #formDisenoAASHTO #W18DisenoFuente {
  background: rgba(0, 0, 0, 0.82);
  border-color: rgba(212, 74, 10, 0.24);
  color: #FFFFFF;
}
.dark-mode #formDisenoAASHTO .aashto-design-bridge__status {
  color: #e1e1e1;
}
.dark-mode .aashto-result-panel__shell {
  border-color: rgba(255, 136, 52, 0.28);
  background: radial-gradient(circle at top right, rgba(255, 131, 45, 0.16), transparent 34%), linear-gradient(180deg, rgba(6, 6, 6, 0.94), rgba(24, 14, 9, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.32);
}
.dark-mode .aashto-result-card__badge {
  background: #fff1e7;
  color: #d44a0a;
  box-shadow: 0 10px 24px rgba(212, 74, 10, 0.18);
}
.dark-mode .aashto-result-card__eyebrow {
  color: #ff9f67;
}
.dark-mode .aashto-result-card__title,
.dark-mode .aashto-result-card__metric-value {
  color: #f8fafc;
}
.dark-mode .aashto-result-card__text {
  color: #cbd5e1;
}
.dark-mode .aashto-result-card__metric {
  background: linear-gradient(180deg, rgba(72, 34, 13, 0.78), rgba(54, 23, 8, 0.92));
  border-color: rgba(255, 136, 52, 0.26);
}
.dark-mode .aashto-result-card__metric-label {
  color: #ffb27d;
}
.dark-mode .aashto-result-card__metric-note {
  color: #f0c7a7;
}
.dark-mode .aashto-result-btn--ghost {
  color: #ffd2b3;
  border-color: rgba(255, 136, 52, 0.38);
  background: rgba(255, 136, 52, 0.05);
}
.dark-mode .aashto-result-btn--ghost:hover,
.dark-mode .aashto-result-btn--ghost:focus-visible {
  background: rgba(255, 136, 52, 0.18);
  color: #fff3eb;
}
.dark-mode .aashto-validation-msg.is-info,
.dark-mode .aashto-traffic-field-error.is-info {
  color: #fdba74;
}
.dark-mode .aashto-traffic-field-error {
  color: #f87171;
}
.dark-mode #aashtoCalcView input.is-invalid,
.dark-mode #aashtoCalcView select.is-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}
.dark-mode #aashtoCalcView input.is-adjusted,
.dark-mode #aashtoCalcView select.is-adjusted {
  border-color: rgba(255, 166, 92, 0.95) !important;
  box-shadow: 0 0 0 2px rgba(255, 166, 92, 0.2);
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .hide-desktop {
    display: none !important;
  }
}

.show-mobile {
  display: none !important;
}
@media (max-width: 768px) {
  .show-mobile {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .px-mobile {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 768px) {
  .py-mobile {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

@media (max-width: 768px) {
  .text-mobile-sm {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  .text-mobile-md {
    font-size: 1.4rem !important;
  }
}

.container-responsive {
  padding: 0 2.75rem;
}
@media (max-width: 768px) {
  .container-responsive {
    padding: 0 1.5rem;
  }
}
@media (max-width: 480px) {
  .container-responsive {
    padding: 0 1rem;
  }
}

/** UI **/
.header {
  background-image: image-set(url("../img/header.jpg") type("image/jpeg"));
  background-color: #000000;
  padding: 1rem 0 3rem 0;
}
.header.inicio {
  background-position: center center;
  background-size: cover;
}
@media (min-width: 768px) {
  .header.inicio {
    min-height: 70rem;
  }
}
@media (min-width: 768px) {
  .header.inicio .contenido-header {
    min-height: 70rem;
  }
}

.contenido-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contenido-header h1 {
  text-align: left;
  color: #FFFFFF;
  font-weight: 700;
  line-height: 2;
  max-width: 60rem;
}

.boton-inicia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 0.8rem;
  border: 1.5px solid #ff7a00;
  color: #FFFFFF;
  background: #d44a0a;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform, box-shadow, filter;
}
.boton-inicia:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0.6rem #ff7a00, 0 0 1.2rem #d44a0a, 0 0 2.4rem #d44a0a;
  filter: drop-shadow(0 0 0.6rem #d44a0a);
}
.boton-inicia:active {
  transform: scale(1.03);
  box-shadow: 0 0 0.4rem #ff7a00, 0 0 0.9rem #d44a0a;
}
.boton-inicia:focus-visible {
  outline: 2px solid #ff7a00;
  outline-offset: 3px;
  box-shadow: 0 0 0.6rem #ff7a00, 0 0 1.2rem #d44a0a;
}

.header {
  background-color: #000;
  padding: 1rem 0 3rem;
}

.hero {
  position: relative;
  aspect-ratio: 16/9;
  /* evita saltos de layout (CLS) */
  min-height: 56rem;
  /* altura en desktop */
  overflow: clip;
  background: #000;
  /* mientras carga */
}

@media (max-width: 768px) {
  .hero {
    aspect-ratio: 9/16;
    min-height: 80vh;
  }
}
.hero__media,
.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 2rem;
  height: 100%;
  padding: 3rem 0;
}

/* Estructura base del hero (reutiliza la que ya tienes) */
.hero.hero--seq {
  position: relative;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 3;
}

/* Capas ocupan todo y respetan recortes transparentes de cada imagen */
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transform: translateY(14px) scale(1.01);
  filter: blur(1px);
  will-change: transform, opacity, filter;
  animation: fadeIn 900ms ease forwards;
}

/* Orden z: montañas al fondo, carretera medio, robot enfrente */
.layer-montanas {
  z-index: 0;
  animation-delay: 0ms;
}

.layer-carretera {
  z-index: 1;
  animation-delay: 600ms;
}

/* Efectos “como video” (opcionales y suaves) */
.layer-montanas {
  animation: fadeIn 900ms ease forwards 0ms, drift 28s linear 0.6s infinite alternate;
}

.layer-carretera {
  animation: fadeIn 900ms ease forwards 600ms, glow 3.6s ease-in-out 1.6s infinite;
}

/* brillo barrido sobre la carretera */
.layer-carretera::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: shimmer 5.5s ease-in-out 2.2s infinite;
}

/* Robot: aparece (1x) -> crece -> regresa a 1x, y luego loops */
/* Robot: aparece -> crece (más lento) -> regresa, y luego loops */
.layer-robot {
  z-index: 2;
  transform-origin: 50% 55%;
  filter: drop-shadow(0 0 0.6rem rgba(255, 140, 0, 0.35));
  will-change: transform, opacity, filter;
  /* 1) appearGrowShrink ahora dura 2400ms (antes 1800ms)
     2) flotación/halo arrancan DESPUÉS: 1200 + 2400 + 200 ≈ 3800ms
  */
  animation: appearGrowShrink 2400ms cubic-bezier(0.2, 0.8, 0.2, 1) 1200ms forwards, floatY 7s ease-in-out 3800ms infinite alternate, halo 2.8s ease-in-out 3800ms infinite;
}

/* Aparece en 1x, sube a 1.45x y se mantiene un poco, luego vuelve a 1x */
@keyframes appearGrowShrink {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(1);
    filter: blur(1px);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  /* visible */
  75% {
    opacity: 1;
    transform: translateY(-2px) scale(1.1);
  }
  /* más tiempo grande */
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  /* vuelve a 1x */
}
/* Overlay global para legibilidad del texto */
/* 1) fadeIn termina dejando transform “neutro” */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* estado final estable */
    filter: blur(0);
  }
}
/* 2) Loops que arrancan en el estado actual (sin jalón) */
@keyframes driftCenter {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1.2%);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}
/* Montañas: primero fadeIn, luego driftCenter DESPUÉS de fadeIn */
.layer-montanas {
  animation: fadeIn 900ms ease forwards 0ms, driftCenter 28s linear 1000ms infinite;
  /* delay >= 900ms */
}

/* Carretera: igual idea; glow y shimmer no mueven posición */
.layer-carretera {
  animation: fadeIn 900ms ease forwards 600ms, glow 3.6s ease-in-out 1600ms infinite;
  /* empieza tras fadeIn */
}

.layer-carretera::after {
  /* shimmer no toca transform del elemento principal; OK */
  animation: shimmer 5.5s ease-in-out 1800ms infinite;
}

@keyframes popInRobotBig {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(1.45);
    filter: blur(1.2px);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(0.97);
    filter: blur(0);
  }
  /* overshoot */
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
/* ya los tienes, los repito por claridad */
@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}
@keyframes halo {
  0%, 100% {
    filter: drop-shadow(0 0 0.6rem rgba(255, 140, 0, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 1.1rem rgba(255, 140, 0, 0.48));
  }
}
.hero__content h1 {
  color: #FFFFFF;
  font-weight: 700;
  text-align: left;
}

.hero__title-plate {
  display: inline-block;
  padding: clamp(0.6rem, 1.2vw, 1rem) clamp(0.9rem, 1.6vw, 1.4rem);
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(3px) saturate(0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  color: #fff;
  line-height: 1.15;
  text-wrap: balance;
  /* contorno/sombra para letras sobre brillo */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.95);
  /* si quieres un contorno fino:
   -webkit-text-stroke: 0.6px rgba(0,0,0,.6); */
}

.footer {
  padding: 2.5rem 0;
  background-color: #000000;
  margin-bottom: 0;
}
.footer .contenedor-footer {
  padding-top: 2.5rem;
}
.footer .navegacion {
  visibility: visible;
  opacity: 1;
  height: auto;
}
.footer .copyright {
  color: #FFFFFF;
  text-align: center;
}

.derecha {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) {
  .derecha {
    align-items: flex-end;
  }
}
.derecha .dark-mode-boton {
  width: 5rem;
  height: 4rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  border: none;
}
.derecha .dark-mode-boton:hover {
  cursor: pointer;
}
@media (min-width: 768px) {
  .derecha .dark-mode-boton {
    margin-top: 0;
  }
}

.barra {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
}
.barra img {
  width: 30rem;
}
@media (min-width: 768px) {
  .barra {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.navegacion {
  visibility: hidden;
  opacity: 0;
  height: 0;
  transition: visibility 0.3s ease-in-out, opacity 0.5s linear, height 0.5s linear;
}
@media (min-width: 768px) {
  .navegacion {
    display: flex;
    align-items: center;
    opacity: 1;
    visibility: visible;
  }
}
.navegacion a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 2.2rem;
  display: block;
  text-align: center;
}
@media (min-width: 768px) {
  .navegacion a {
    margin-right: 2rem;
    font-size: 1.8rem;
  }
  .navegacion a:last-of-type {
    margin-right: 0;
  }
}
.navegacion a:hover {
  color: #ff6a00;
}

/** Menu de hamburguesa **/
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}
.mobile-menu img {
  width: 5rem;
}

.mostrar {
  visibility: visible;
  opacity: 1;
  height: auto;
}

/* Estilos para la navegación */
.navegacion ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navegacion .menu-item {
  position: relative;
  cursor: pointer;
}

.navegacion,
.navegacion ul,
.navegacion .menu-item {
  overflow: visible;
}

/* Ocultar el submenu por defecto */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -5rem;
  background: black;
  color: white;
  padding: 1rem;
  list-style: none;
  width: 20rem;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  z-index: 5100;
  background-color: #000;
  pointer-events: auto;
}

.submenu li {
  padding: 10px;
}

.submenu li a {
  color: white;
  text-decoration: none;
  display: block;
}

.submenu li:hover {
  background: #444;
}

/* Mostrar el submenú de "Cálculos" */
.menu-calculos.activo > .submenu {
  display: block;
  opacity: 1;
  visibility: visible;
  overflow: visible;
}

/* Mostrar el submenú de "Teoría de Burmister" */
.submenu-burmister.activo > .submenu {
  display: block;
  opacity: 1;
  visibility: visible;
  overflow: visible;
}

.submenu-burmister {
  position: relative;
}
.submenu-burmister > .submenu {
  position: absolute;
  top: 0;
  left: 19.05rem;
}
@media (min-width: 768px) {
  .submenu-burmister > .submenu {
    left: -19.05rem;
    top: 0;
  }
}

.menu-item.activo > .submenu {
  display: block;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .barra {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-top: 2rem;
    padding-bottom: 0.5rem;
  }
  .barra > a {
    align-self: center;
  }
  .mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .derecha {
    width: 100%;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .derecha .dark-mode-boton {
    margin: 0;
  }
  .navegacion {
    position: absolute;
    top: calc(100% + 1.2rem);
    left: 50%;
    width: calc(100vw - 3rem);
    max-width: 34rem;
    max-height: calc(100dvh - 16rem);
    padding: 0.8rem;
    border: 1px solid rgba(255, 122, 0, 0.24);
    border-radius: 1.6rem;
    background: rgba(0, 0, 0, 0.96);
    box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(1.2rem);
    -webkit-backdrop-filter: blur(1.2rem);
    height: auto;
    transform: translateX(-50%) translateY(-0.8rem);
    transform-origin: top center;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    overflow: hidden;
    overflow-y: auto;
  }
  .navegacion.mostrar {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .navegacion ul {
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .navegacion > ul > li {
    width: 100%;
  }
  .navegacion .menu-item {
    width: 100%;
    overflow: visible;
  }
  .navegacion a {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1.6rem;
    line-height: 1.3;
    text-align: center;
    border-radius: 0.9rem;
  }
  .navegacion > ul > li > a {
    background: rgba(255, 255, 255, 0.03);
  }
  .navegacion > ul > li > a:hover {
    background: rgba(255, 122, 0, 0.12);
  }
  .submenu,
  .submenu-burmister > .submenu {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 0.45rem;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    box-sizing: border-box;
  }
  .submenu li {
    padding: 0;
  }
  .submenu li + li {
    margin-top: 0.25rem;
  }
  .submenu li a {
    padding: 0.75rem 0.85rem;
    font-size: 1.4rem;
    text-align: center;
    border-radius: 0.75rem;
  }
  .submenu li:hover {
    background: transparent;
  }
  .submenu li a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  .navegacion .cerrar-sesion,
  .navegacion .iniciar-sesion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
  }
  .cerrar-sesion::after,
  .iniciar-sesion::after {
    display: inline;
    position: static;
    opacity: 1;
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 1.6rem;
    pointer-events: none;
    white-space: normal;
  }
  /* Fix especificidad: .navegacion ul (0,1,1) sobreescribía .submenu (0,1,0)
     haciendo que los submenús ocultos ocuparan espacio con visibility:hidden */
  .navegacion ul.submenu {
    display: none;
  }
  /* Cuando está activo, mostrar como bloque (no flex) */
  .menu-calculos.activo > .submenu,
  .submenu-burmister.activo > .submenu,
  .menu-item.activo > .submenu {
    display: block;
    overflow: hidden;
  }
  /* Fix: li del submenu como bloque, no como flex-items */
  .submenu > li {
    display: block;
    width: 100%;
  }
}
.header {
  position: relative;
  z-index: 5000;
  isolation: isolate;
}

.cerrar-sesion {
  color: #ffb200;
  font-weight: bold;
  transition: color 0.2s;
}

.cerrar-sesion:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .navegacion {
    width: calc(100vw - 2rem);
    max-width: 32rem;
  }
  .navegacion a {
    font-size: 1.4rem !important;
    padding: 0.8rem 0.9rem !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
  }
}
.iniciar-sesion {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}
.iniciar-sesion .icono-iniciar {
  display: inline-flex;
  align-items: center;
  color: #e2df0c;
  transition: color 0.2s;
}
.iniciar-sesion .icono-iniciar svg {
  width: 2.2rem;
  height: 2.2rem;
}
.iniciar-sesion::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  font-size: 1.3rem;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.iniciar-sesion:hover .icono-iniciar {
  color: #ff6a00;
}
.iniciar-sesion:hover::after {
  opacity: 1;
}

.cerrar-sesion {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}
.cerrar-sesion .icono-cerrar {
  display: inline-flex;
  align-items: center;
  color: #e2df0c;
  transition: color 0.2s;
}
.cerrar-sesion .icono-cerrar svg {
  width: 2.2rem;
  height: 2.2rem;
}
.cerrar-sesion::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  font-size: 1.3rem;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cerrar-sesion:hover .icono-cerrar {
  color: #ff6a00;
}
.cerrar-sesion:hover::after {
  opacity: 1;
}

@media (min-width: 768px) {
  .iconos-nosotros {
    display: grid;
    gap: 4rem;
    grid-template-columns: repeat(3, 1fr);
  }
}
.icono {
  background: #FFFFFF;
  border: 2px solid #d44a0a;
  border-radius: 2rem;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 0 0.8rem rgba(255, 122, 0, 0.18), 0 0 2.2rem rgba(255, 122, 0, 0.12);
  transition: box-shadow 0.25s ease;
}
.icono:hover, .icono:focus-visible {
  box-shadow: 0 0 1.6rem rgba(255, 122, 0, 0.55), 0 0 3.8rem rgba(255, 122, 0, 0.42), 0 0 6.2rem rgba(255, 122, 0, 0.28);
}
.icono img {
  height: 10rem;
}
.icono h3 {
  text-transform: uppercase;
  text-align: center;
  color: #d44a0a;
  font-weight: 700;
  font-size: 2.5rem;
}
.icono p {
  text-align: justify;
  color: #d44a0a;
}
.icono:last-child p {
  margin-right: 0;
}

.dark-mode .icono {
  border: 2px solid #000000;
  background: rgba(39, 39, 39, 0.2117647059);
}

@media (min-width: 768px) {
  .contenedor-anuncios {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
}
.anuncio {
  background-color: rgb(237.75, 237.75, 237.75);
  border: 1px solid rgb(199.5, 199.5, 199.5);
  margin-bottom: 2rem;
}
.anuncio .contenido-anuncio {
  padding: 2rem;
}
.anuncio h3, .anuncio p {
  margin: 0;
}

.precio {
  color: #71B100;
  font-weight: 700;
  font-size: 3rem;
}

.iconos-caracteristicas {
  display: flex;
  list-style: none;
  padding: 0;
  max-width: 40rem;
}
.iconos-caracteristicas li {
  flex: 1;
  display: flex;
}
.iconos-caracteristicas li img {
  flex: 0 0 3rem;
  margin-right: 1rem;
}
.iconos-caracteristicas li p {
  font-weight: 900;
}

.titulo-contacto {
  margin: 0;
}

.imagen-contacto {
  background-image: url("../img/encuentra.jpg");
  background-position: center center;
  background-size: cover;
  padding: 10rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.imagen-contacto h2 {
  font-size: 4rem;
  font-weight: 900;
  color: #FFFFFF;
}
.imagen-contacto p {
  font-size: 1.8rem;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .seccion-inferior {
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 2rem;
  }
}
.entrada-blog {
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .entrada-blog {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 2rem;
  }
}
.entrada-blog:last-of-type {
  margin-bottom: 0;
}

.informacion-meta span {
  color: #d44a0a;
}

.texto-entrada a {
  color: #000000;
  margin-top: 2rem;
  display: block;
}
@media (min-width: 768px) {
  .texto-entrada a {
    margin-top: 0;
  }
}
.texto-entrada h4 {
  margin: 0;
  line-height: 1.4;
}
.texto-entrada h4::after {
  content: "";
  display: block;
  width: 15rem;
  height: 0.5rem;
  background-color: #d44a0a;
  margin-top: 1rem;
}

.justificado {
  text-align: justify;
}

.testimonial {
  background-color: #d44a0a;
  color: #FFFFFF;
  font-size: 2.4rem;
  padding: 2rem;
  border-radius: 2rem;
  position: relative;
  overflow: visible;
  will-change: transform, box-shadow;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
  box-shadow: 0 0 1.2rem rgba(255, 122, 0, 0.28), 0 0 3.2rem rgba(255, 122, 0, 0.18), 0 0 5.4rem rgba(255, 122, 0, 0.1);
  animation: breathe 6s ease-in-out infinite;
}
.testimonial:hover, .testimonial:focus-visible, .testimonial:focus-within {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 0 2.4rem rgba(255, 122, 0, 0.65), 0 0 6.2rem rgba(255, 122, 0, 0.48), 0 0 9.5rem rgba(255, 122, 0, 0.36);
  animation: testi-neon-pulse 1.6s ease-in-out infinite alternate;
}
.testimonial:active {
  transform: translateY(-2px) scale(1.03);
  transition-duration: 0.12s;
}
.testimonial blockquote {
  position: relative;
  padding-left: 5rem;
}
.testimonial blockquote::before {
  content: "";
  position: absolute;
  left: -2rem;
  width: 6rem;
  height: 8rem;
  display: block;
  background-image: url(../img/comilla.svg);
  background-repeat: no-repeat;
  background-size: contain;
}
.testimonial p {
  text-align: right;
  color: #FFFFFF;
}

@media (min-width: 1024px) {
  .testimonial:hover,
  .testimonial:focus-visible,
  .testimonial:focus-within {
    transform: translateY(-8px) scale(1.08);
  }
}
@keyframes testi-neon-pulse {
  0% {
    box-shadow: 0 0 1.6rem rgba(255, 122, 0, 0.48), 0 0 4rem rgba(255, 122, 0, 0.34), 0 0 6rem rgba(255, 122, 0, 0.26);
  }
  100% {
    box-shadow: 0 0 2.2rem rgba(255, 122, 0, 0.7), 0 0 5.4rem rgba(255, 122, 0, 0.5), 0 0 8rem rgba(255, 122, 0, 0.38);
  }
}
@keyframes breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.015);
  }
}
.testimoniales h3 {
  font-size: 3rem;
}

.formulario p {
  font-size: 1.4rem;
  color: #333333;
  margin: 2rem 0 0 0;
}
.formulario legend {
  font-size: 2rem;
  color: #333333;
}
.formulario label {
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}
.formulario input:not([type=submit]),
.formulario textarea,
.formulario select {
  padding: 1rem;
  display: block;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 1rem;
  margin-bottom: 2rem;
}
.formulario textarea {
  height: 20rem;
}
.formulario .forma-contacto {
  max-width: 30rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.formulario input[type=radio] {
  margin: 0;
  width: auto;
}

.formulariounam {
  max-width: 130rem;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
}

.formulariounam[hidden] {
  display: none;
}

fieldset {
  padding: 2rem;
  margin-bottom: 0;
  border-radius: 0.8rem;
  border: 2px solid #d44a0a;
}

h3 {
  font-size: 1.7rem;
  margin: 1rem 0;
  text-align: left;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10rem;
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
  justify-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: stretch;
  }
}

.col {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centra los elementos */
  text-align: center;
  /* Centra el texto del label */
  width: 100%;
}

label {
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.fila {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

input {
  width: 12rem;
  padding: 0.5rem;
  font-size: 1.4rem;
  text-align: center;
  border-radius: 0.7rem;
  border: 0.2rem solid #808080;
}

.botones {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

button {
  display: block;
  margin: 2rem auto 0;
  padding: 1.7rem;
  border-radius: 5px;
  background-color: #d44a0a;
  cursor: pointer;
  font-size: 1.4rem;
  color: #FFFFFF;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 0.15rem rgba(255, 122, 0, 0.6), 0 0 0.35rem rgba(255, 122, 0, 0.45);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}
button:hover, button:focus-visible {
  box-shadow: 0 0 0.4rem rgba(255, 122, 0, 0.85), 0 0 1rem rgba(255, 122, 0, 0.75), 0 0 1.8rem rgba(255, 122, 0, 0.6), inset 0 0 0.35rem rgba(255, 122, 0, 0.65);
  transform: translateY(-1px);
  outline: 2px solid rgba(255, 122, 0, 0.5);
  outline-offset: 2px;
}
button:active {
  transform: translateY(0);
  box-shadow: 0 0 0.25rem rgba(255, 122, 0, 0.9), 0 0 0.8rem rgba(255, 122, 0, 0.7), inset 0 0 0.25rem rgba(255, 122, 0, 0.6);
}

p {
  text-align: left;
  margin-top: 0;
  font-size: 1.8rem;
}

legend {
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: 0.3rem;
  font-weight: 700;
}

select {
  width: 12rem;
  padding: 0.5rem;
  font-size: 1.4rem;
  text-align: center;
  border-radius: 0.7rem;
  border: 0.2rem solid #808080;
}

.mensajeunam {
  padding-left: 5rem;
}

.mensajeunam {
  display: grid;
  place-items: center;
  text-align: center;
  width: 100%;
  min-height: 5rem;
}

.tituloejes {
  font-size: 3.5rem;
  margin-bottom: 4rem;
  font-weight: 700;
}

#articulos {
  font-size: 3rem;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

.pagina {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main {
  flex-grow: 1;
}

.boton-diseño {
  display: flex;
  justify-content: center;
  padding: 1.5rem 3rem;
}

#continuarDisenoAashtoForm {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1rem;
}

#resultadoAASHTOPanel {
  margin: 1.2rem auto 2rem;
  padding: 0.8rem 1rem 1.4rem;
  gap: 1.2rem;
}

#resultadoAASHTO {
  text-align: center;
}

#resultadoAASHTO p {
  margin: 0;
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  line-height: 1.35;
  text-align: center;
}

#pdfBtnAASHTO {
  margin-top: 1.2rem;
}

#datosVehicularesaashtoForm > fieldset > button[type=submit] {
  min-width: 17rem;
  margin-top: 2.4rem;
  border-radius: 1.2rem;
}

#continuarDisenoAashtoForm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
}

#resultadoAASHTOPanel {
  width: 100%;
  max-width: none;
  margin: 2.2rem 0 2.8rem;
  padding-left: 0;
  min-height: auto;
}

#resultadoAASHTO {
  text-align: center;
}

.aashto-result-panel__shell {
  display: grid;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(212, 74, 10, 0.16);
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 241, 0.94));
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.aashto-result-panel__content {
  width: 100%;
}

.aashto-result-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.aashto-result-card {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}

.aashto-result-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.aashto-result-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #fff1e7;
  color: #d44a0a;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aashto-result-card__copy {
  display: grid;
  gap: 0.45rem;
  max-width: 54rem;
  justify-items: center;
}

.aashto-result-card__title {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1.1;
  color: #111827;
}

.aashto-result-card__text {
  margin: 0;
  max-width: 46rem;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #475569;
  text-align: center;
}

.aashto-result-card__metric {
  display: grid;
  gap: 0.3rem;
  width: min(100%, 60rem);
  margin: 0 auto;
  padding: 1.2rem 1.4rem;
  border-radius: 1.5rem;
  background: rgba(255, 220, 195, 0.45);
  border: 1px solid rgba(212, 74, 10, 0.14);
  justify-items: center;
}

.aashto-result-card__metric-label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.aashto-result-card__metric-value {
  font-size: clamp(3.6rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #111827;
}

.aashto-result-card__eyebrow {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.aashto-result-card__metric-note {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
  color: #64748b;
}

.aashto-result-card.is-loading .aashto-result-card__badge {
  background: #e0f2fe;
  color: #0369a1;
}

.aashto-result-card.is-error .aashto-result-card__badge {
  background: #fee2e2;
  color: #b91c1c;
}

.aashto-result-btn {
  min-width: 21rem;
  margin: 0;
  padding: 1.25rem 2rem;
  border-radius: 1.2rem;
}

.aashto-result-btn--primary {
  background: #d44a0a;
  color: #FFFFFF;
}

.aashto-result-btn--ghost {
  background: transparent;
  color: #d44a0a;
  border: 1px solid rgba(212, 74, 10, 0.24);
  box-shadow: none;
}

.aashto-result-btn--ghost:hover,
.aashto-result-btn--ghost:focus-visible {
  background: rgba(255, 220, 195, 0.45);
  color: #d44a0a;
}

#pdfBtnAASHTO {
  margin-top: 0;
}

#pdfBtnAASHTO:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  #resultadoAASHTOPanel {
    width: 100%;
    margin: 1.6rem auto 2rem;
  }
  .aashto-result-panel__shell {
    padding: 1.3rem;
    border-radius: 1.6rem;
  }
  .aashto-result-card__metric-value {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }
  .aashto-result-btn {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .formulariounam {
    padding: 0.75rem;
  }
  .formulariounam fieldset {
    padding: 1rem 0.75rem;
  }
  .formulariounam input,
  .formulariounam select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .formulariounam .col label {
    text-align: left;
    font-size: 1.2rem;
    hyphens: auto;
  }
}
/* ───────────────────────────────
   ░ GENERAL
──────────────────────────────── */
p {
  text-align: left;
  margin-top: 2rem;
  font-size: 1.8rem;
  font-weight: normal;
}

/* ───────────────────────────────
   ░ FORMULARIO DE DETERIORO
──────────────────────────────── */
.deterioro-check {
  width: fit-content;
  margin: 2rem auto;
  text-align: center;
}

.deterioro-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
}

.bloque-formulario {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 2px solid #d44a0a;
  border-radius: 0.8rem;
  background-color: white;
}

/* ───────────────────────────────
   ░ BOTONES MODELOS DE DETERIORO
──────────────────────────────── */
.botones-modelo {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .botones-modelo {
    display: flex;
    flex-wrap: wrap;
  }
}
.btn-modelo {
  padding: 0.6rem 1.2rem;
  border: 0.1rem solid #444;
  border-radius: 0.6rem;
  background-color: #fff;
  cursor: pointer;
  color: #000000;
  transition: all 0.2s ease-in-out;
}

.btn-modelo:hover {
  background-color: #ff7a00;
}

.btn-modelo.activo {
  background-color: #d44a0a;
  color: white;
  font-weight: bold;
  border-color: #222;
}

/* ───────────────────────────────
   ░ TABLA DE RESULTADOS
──────────────────────────────── */
.tabla-wrapper {
  width: 100%;
  max-width: 130rem;
  margin: 2rem auto;
  padding: 0 2rem;
  overflow-x: auto;
  box-sizing: border-box;
}

.tabla-resultados, .tabla-deterioro {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 1.6rem;
  box-sizing: border-box;
  margin: 0;
}

.tabla-resultados th, .tabla-deterioro th,
.tabla-resultados td, .tabla-deterioro td {
  border: 0.1rem solid gray;
  white-space: nowrap;
}

/* ───────────────────────────────
   ░ ESTRUCTURA DE CAPAS
──────────────────────────────── */
.capas {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.capa-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.capa {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(225, 225, 225, 0.3294117647);
  border-radius: 0.8rem;
  padding-bottom: 2rem;
}

.capa-title {
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #1f2937;
  font-size: 2rem;
}
@media (min-width: 768px) {
  .capa-title {
    text-align: left;
  }
}

.capa-fields {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  justify-items: center;
}
@media (min-width: 768px) {
  .capa-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 4 columnas para Material, Espesor, Módulo, Poisson */
    gap: 1rem;
    justify-items: stretch;
    align-items: start;
  }
}

/* ───────────────────────────────
   ░ ÚLTIMA CAPA: SUBRASANTE
──────────────────────────────── */
.capa-fields.centrado {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-items: center;
  gap: 1rem;
}
.capa-fields.centrado .field-material {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.capa-fields.centrado .field-material label {
  text-align: center;
  width: 100%;
}
@media (min-width: 768px) {
  .capa-fields.centrado .field-material {
    align-items: start;
    text-align: left;
  }
  .capa-fields.centrado .field-material label {
    text-align: left;
  }
}
@media (min-width: 768px) {
  .capa-fields.centrado {
    grid-template-columns: repeat(3, 1fr);
    /* Igual que las otras capas */
    justify-items: start;
    gap: 1rem;
  }
}

.ultimo-espesor {
  background: #eee;
  color: #999;
  text-align: center;
}

.field-material select {
  width: 100%;
  min-width: 16rem;
}
@media (min-width: 768px) {
  .field-material select {
    max-width: 14rem;
  }
}
@media (min-width: 1024px) {
  .field-material select {
    max-width: 22rem;
  }
}

/* ───────────────────────────────
   ░ TÍTULO DE CADA CAPA
──────────────────────────────── */
.capa-title {
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #1f2937;
  font-size: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .capa-title {
    text-align: left;
    margin-left: 0;
  }
}

.field-placeholder {
  visibility: hidden;
}

/* ───────────────────────────────
   ░ CAMPOS INDIVIDUALES
──────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  flex: 1 1 200px;
}
@media (min-width: 480px) {
  .field {
    width: 100%;
    max-width: 240px;
    flex: center;
  }
}

h4 {
  font-size: 1.9rem;
  margin: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  h4 {
    text-align: left;
  }
}

.btn-agregar-carga {
  margin: 4rem auto 0;
  padding: 1rem;
}

.col-eliminar {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
}

.eliminar-carga {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: red;
  box-shadow: none;
}

.eliminar-carga img {
  width: 2.4rem;
  height: 2.4rem;
  filter: brightness(0) saturate(100%) invert(13%) sepia(96%) saturate(6362%) hue-rotate(359deg) brightness(99%) contrast(104%);
}

.seleccion-capas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

/* ───────────────────────────────
   ░ CENTRADO DE INPUTS EN MÓVIL
──────────────────────────────── */
input {
  width: 12rem;
}

@media (min-width: 480px) {
  .field {
    align-items: center;
  }
}
@media (min-width: 480px) {
  .field label {
    text-align: center;
  }
}
@media (min-width: 480px) {
  .field input,
  .field select {
    display: block;
    margin: 0.4rem auto;
    min-width: 12rem;
    max-width: 90%;
  }
}

.analisis-numerico {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
  .analisis-numerico {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Solo centrar el label de “Material” en la Subrasante */
.capa-fields.centrado .field-material {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.capa-fields.centrado .field-material label {
  text-align: center;
  width: 100%;
}

/* El overlay */
/* ===== Overlay de carga (centrado absoluto) ===== */
#pantalla-cargando {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Contenido: spinner + texto */
#pantalla-cargando .contenido-cargando {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

#pantalla-cargando .contenido-cargando p {
  margin: 0.75rem 0 0;
  text-align: center;
}

/* Spinner */
#pantalla-cargando .spinner {
  width: 80px;
  height: 80px;
  border: 10px solid #ccc;
  border-top: 10px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
#exportarExcelBtn {
  background-color: #16a34a;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  float: right;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
  margin-bottom: 2rem;
}

#exportarExcelBtn:hover {
  background-color: #15803d;
}

input.error {
  border: 2px solid red;
  background-color: #ffecec;
}

.ayuda-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.icono-ayuda {
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  background: #d44a0a;
  color: #000000;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  line-height: 1.8rem;
  box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.12);
  transition: background 0.2s;
}

.icono-ayuda:hover,
.ayuda-tooltip:hover .icono-ayuda {
  background: #ff6a00;
  color: #FFFFFF;
}

input[type=checkbox] {
  accent-color: #d44a0a;
}

.tooltip-text {
  visibility: hidden;
  width: 230px;
  background-color: #333;
  color: #FFFFFF;
  text-align: left;
  border-radius: 5px;
  padding: 10px 12px;
  position: absolute;
  z-index: 100;
  left: 120%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.25s;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ayuda-tooltip:hover .tooltip-text,
.ayuda-tooltip:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-left {
  left: auto !important;
  right: 0;
  transform: none;
}

@media (max-width: 600px) {
  .tooltip-text,
  .tooltip-left {
    width: min(22rem, 100vw - 2rem);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - 2rem);
    min-width: unset;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.botones-modelo {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.botones-modelo .boton-ayuda {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Forzar títulos de capa a la izquierda ===== */
.capa {
  align-items: stretch;
  /* el contenedor deja de centrar */
  text-align: left;
}

.capa-header {
  display: flex;
  justify-content: flex-start;
  /* contenido a la izquierda */
  padding: 0 1.5rem;
  /* alinea con los campos */
}

.capas .capa .capa-header .capa-title {
  width: auto;
  /* quita 100% */
  text-align: left !important;
  /* anula centrados previos */
  margin: 1.5rem 0 1rem 0;
  /* margenes limpios */
}

/* 1) Que el contenedor no quite ancho a la tabla */
#resultadoBurmister {
  display: block;
  /* anula el grid de .mensajeunam */
  padding: 0;
  /* antes: 0 2rem */
  max-width: 130rem;
  margin: 2rem auto;
  overflow-x: auto;
  box-sizing: border-box;
}

/* 2) El wrapper de la tabla sin padding lateral */
.tabla-wrapper {
  width: 100%;
  max-width: 130rem;
  margin: 0 auto;
  padding: 0;
  /* antes: 0 2rem */
  overflow-x: auto;
  box-sizing: border-box;
}

/* 3) La tabla ocupa todo el ancho disponible */
#resultadoBurmister table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  box-sizing: border-box;
}

/* (opcional) espacio interno en celdas para que no se pegue al borde */
#resultadoBurmister th,
#resultadoBurmister td {
  padding: 0.8rem 1rem;
  white-space: nowrap;
  /* o normal, como prefieras */
  word-break: break-word;
}

/** Media Queries **/
/* ========================================
   PBV Container - Contenedor principal
======================================== */
.pbv-container {
  max-width: 80rem;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
  text-align: center;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 0.1rem, transparent 0.1rem), linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0.1rem, transparent 0.1rem);
  background-size: 2.4rem 2.4rem;
}

.pbv-title {
  font-size: 3rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 2rem;
}

/* ========================================
   Formulario y controles
======================================== */
.pbv-filtro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
}

.pbv-options {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.pbv-options .pbv-filtro {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 1.6rem;
}
.pbv-options .pbv-input-group {
  display: contents;
}
.pbv-options .pbv-input {
  min-width: 26rem;
  width: 100%;
}
.pbv-options #btnFiltro {
  justify-self: end;
  white-space: nowrap;
}

.pbv-label {
  margin: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #333333;
  font-size: 1.5rem;
}

.pbv-input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pbv-input-group-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pbv-input {
  padding: 0 2rem;
  font-size: 1.5rem;
  border-radius: 0.6rem;
  border: 0.1rem solid #e1e1e1;
  height: 3.8rem;
  width: 20rem;
  text-align: center;
  background: #FFFFFF;
  color: #333333;
}

/* ========================================
   Botones
======================================== */
.pbv-upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid #d44a0a;
  border-radius: 0.7rem;
  background: rgba(212, 74, 10, 0.06);
  color: #d44a0a;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 2rem;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 0 0.12rem rgba(255, 122, 0, 0.45), inset 0 0 0.12rem rgba(255, 122, 0, 0.25);
}
.pbv-upload-btn:hover, .pbv-upload-btn:focus-visible {
  color: #FFFFFF;
  background: #d44a0a;
  border-color: #ff7a00;
  transform: translateY(-1px);
  box-shadow: 0 0 0.5rem rgba(255, 122, 0, 0.9), 0 0 1.4rem rgba(255, 122, 0, 0.75), 0 0 2.6rem rgba(255, 122, 0, 0.55), inset 0 0 0.6rem rgba(255, 122, 0, 0.35);
  text-shadow: 0 0 0.35rem rgba(255, 255, 255, 0.75);
  animation: pbv-neon-pulse 1.6s ease-in-out infinite;
}
.pbv-upload-btn:focus-visible {
  outline: 2px solid rgba(255, 122, 0, 0.6);
  outline-offset: 3px;
}

.pbv-button {
  background-color: #d44a0a;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0 2rem;
  font-size: 1.5rem;
  border: none;
  border-radius: 0.6rem;
  height: 3.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  margin: 0;
}
.pbv-button:hover {
  background-color: #d44a0a;
}

.pbv-clean-btn {
  background-color: #f1f1f1;
  color: #333333;
  font-size: 1.5rem;
  padding: 0.8rem 1rem;
  border: 0.1rem solid #e1e1e1;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.pbv-clean-btn:hover {
  background-color: #e4e4e4;
}

.boton-verde-oscuro {
  font-size: 1.5rem;
  background: #16a34a;
  color: #FFFFFF;
}

.pbv-hidden-input {
  display: none;
}

/* ========================================
   Gráfica
======================================== */
.pbv-grafica {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem auto 0;
  border-radius: 1rem;
  background-color: #FFFFFF;
  padding: 3rem;
  border: 0.1rem solid #e1e1e1;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 0.1rem, transparent 0.1rem), linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 0.1rem, transparent 0.1rem);
  background-size: 2.4rem 2.4rem;
}

#graficaPBV {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Opciones avanzadas
======================================== */
.toggle-avanzadas {
  margin-top: 1rem;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.toggle-avanzadas label {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333333;
}

.pbv-avanzadas {
  margin-top: 1rem;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #FFFFFF;
  border-radius: 1rem;
  border: 0.1rem solid #e1e1e1;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 0.1rem, transparent 0.1rem), linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 0.1rem, transparent 0.1rem);
  background-size: 2.4rem 2.4rem;
}
.pbv-avanzadas p {
  text-align: center;
  font-size: 2.2rem;
  margin-top: 0;
  font-weight: 700;
  color: #333333;
}

.pbv-eje-inputs label {
  display: flex;
  justify-content: space-between;
  font-size: 1.7rem;
  margin-top: 0.5rem;
  color: #333333;
}
.pbv-eje-inputs label input {
  font-size: 1.5rem;
}
.pbv-eje-inputs input {
  font-size: 1.5rem;
}

/* ========================================
   Utilidades
======================================== */
.nombre-archivo {
  font-size: 1.2rem;
  color: #333333;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========================================
   Animaciones
======================================== */
@keyframes pa-glow {
  0% {
    box-shadow: 0 0 1rem #ff6a00, 0 0 2.4rem rgba(212, 74, 10, 0.35), inset 0 0 1.8rem rgba(255, 106, 0, 0.08);
  }
  100% {
    box-shadow: 0 0 1.8rem #ff6a00, 0 0 4.6rem rgba(212, 74, 10, 0.55), inset 0 0 3.4rem rgba(255, 106, 0, 0.16);
  }
}
@keyframes pbv-neon-pulse {
  0%, 100% {
    box-shadow: 0 0 0.45rem rgba(255, 122, 0, 0.85), 0 0 1.2rem rgba(255, 122, 0, 0.7), 0 0 2.2rem rgba(255, 122, 0, 0.5), inset 0 0 0.5rem rgba(255, 122, 0, 0.3);
    transform: translateY(-1px) scale(1);
  }
  50% {
    box-shadow: 0 0 0.75rem #ff7a00, 0 0 1.9rem rgba(255, 122, 0, 0.9), 0 0 3.2rem rgba(255, 122, 0, 0.7), inset 0 0 0.7rem rgba(255, 122, 0, 0.45);
    transform: translateY(-2px) scale(1.015);
  }
}
@keyframes pa-ring {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  10% {
    opacity: 1;
  }
  60%, 100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
@keyframes pa-wiggle {
  0% {
    transform: translateZ(0) rotate(0deg);
  }
  25% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes halo-fosfo {
  0% {
    box-shadow: 0 0 2.2rem rgba(255, 106, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 4.4rem #ff6a00;
  }
}
/* ========================================
   Media queries
======================================== */
@media (max-width: 480px) {
  .pbv-options .pbv-filtro {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }
  .pbv-options .pbv-input {
    min-width: 0;
  }
  .pbv-options #btnFiltro {
    justify-self: stretch;
  }
}
.layer-card {
  border: 1px solid var(--border, #2f2f2f);
  border-left-width: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.2rem 1.4rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.aashto-design-bridge {
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(13, 166, 243, 0.2);
  border-left: 4px solid #d44a0a;
  border-radius: 12px;
  background: rgba(13, 166, 243, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.aashto-entry-hub {
  margin-top: 1rem;
  margin-bottom: 1.8rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  width: min(100%, 132rem);
  max-width: 132rem;
  box-sizing: border-box;
  border: 1px solid rgba(212, 74, 10, 0.1);
  border-radius: 2.4rem;
  background: radial-gradient(circle at top right, rgba(255, 220, 195, 0.2), transparent 30%), linear-gradient(180deg, #fffdfb 0%, #fff8f1 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  overflow: visible;
}

.aashto-entry-hub .tituloejes {
  margin: 0;
  max-width: 8.5ch;
  font-size: clamp(3.6rem, 4.8vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.aashto-entry-hub__header {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
  min-width: 0;
}

.aashto-entry-hub__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(32rem, 0.88fr);
  gap: 1.4rem 2.2rem;
  align-items: end;
  min-width: 0;
}

.aashto-entry-hub__intro {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 1.3rem 1.45rem 1.3rem 3.5rem;
  border: 1px solid rgba(212, 74, 10, 0.1);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  color: #526173;
  font-size: 1.28rem;
  line-height: 1.68;
  text-align: left;
  overflow-wrap: anywhere;
  backdrop-filter: blur(10px);
}

.aashto-entry-hub__intro::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #d44a0a;
  box-shadow: 0 0 0 4px rgba(212, 74, 10, 0.1);
}

.aashto-entry-hub__compact {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  box-sizing: border-box;
  border: 1px solid rgba(212, 74, 10, 0.1);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.aashto-entry-hub__compact-copy {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.aashto-entry-hub__compact-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.aashto-entry-hub__compact-value {
  font-size: 1.34rem;
  line-height: 1.35;
  color: #121212;
  overflow-wrap: anywhere;
}

.aashto-entry-hub__change {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 74, 10, 0.18);
  border-radius: 999px;
  background: rgba(255, 220, 195, 0.28);
  color: #d44a0a;
  padding: 0.9rem 1.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.aashto-entry-hub__change:hover,
.aashto-entry-hub__change:focus-visible {
  background: rgba(255, 220, 195, 0.66);
  border-color: rgba(212, 74, 10, 0.38);
}

.aashto-entry-hub__change:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.aashto-entry-hub.is-collapsed {
  padding-bottom: clamp(1.25rem, 2.2vw, 1.6rem);
}

.aashto-entry-hub.is-collapsed .aashto-entry-hub__header {
  margin-bottom: 0.95rem;
}

.aashto-entry-hub.is-collapsed .aashto-entry-hub__intro,
.aashto-entry-hub.is-collapsed .aashto-entry-cards {
  display: none;
}

.aashto-entry-hub.is-collapsed .aashto-entry-hub__compact {
  display: flex;
}

.aashto-entry-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.aashto-entry-card {
  appearance: none;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 1.55rem 1.6rem;
  border-radius: 1.9rem;
  border: 1px solid rgba(212, 74, 10, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 247, 0.92));
  color: #121212;
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "step eyebrow" "title title" "text text" "list list" "footer footer";
  gap: 0.9rem 1rem;
  align-content: start;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
}

.aashto-entry-card > * {
  min-width: 0;
}

.aashto-entry-card::after {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(212, 74, 10, 0.12), rgba(212, 74, 10, 0.36), rgba(212, 74, 10, 0.08));
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.aashto-entry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 74, 10, 0.42);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.aashto-entry-card:hover::after,
.aashto-entry-card:focus-visible::after,
.aashto-entry-card.is-active::after {
  transform: scaleX(1);
}

.aashto-entry-card:focus-visible {
  outline: none;
  border-color: rgba(212, 74, 10, 0.72);
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.12), 0 18px 32px rgba(15, 23, 42, 0.1);
}

.aashto-entry-card.is-active {
  border-color: rgba(212, 74, 10, 0.78);
  background: linear-gradient(180deg, rgba(255, 220, 195, 0.26), rgba(255, 255, 255, 0.96));
  box-shadow: 0 0 0 2px rgba(212, 74, 10, 0.08), 0 18px 34px rgba(212, 74, 10, 0.1);
}

.aashto-entry-card__step {
  grid-area: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 74, 10, 0.18);
  background: rgba(255, 220, 195, 0.54);
  color: #d44a0a;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: none;
}

.aashto-entry-card__eyebrow {
  grid-area: eyebrow;
  align-self: center;
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d532c;
}

.aashto-entry-card__title {
  grid-area: title;
  font-size: 1.95rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.aashto-entry-card__text {
  grid-area: text;
  font-size: 1.28rem;
  line-height: 1.62;
  color: #526173;
  overflow-wrap: anywhere;
}

.aashto-entry-card__list {
  grid-area: list;
  display: grid;
  gap: 0.6rem;
  padding-top: 0.05rem;
}

.aashto-entry-card__list span {
  position: relative;
  padding-left: 1.55rem;
  font-size: 1.22rem;
  color: #334155;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.aashto-entry-card__list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #d44a0a;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.08);
}

.aashto-entry-card__footer {
  grid-area: footer;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 74, 10, 0.1);
  display: grid;
  gap: 0.45rem;
}

.aashto-entry-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.24rem;
  font-weight: 700;
  color: #d44a0a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aashto-entry-card__hint {
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .aashto-entry-hub {
    padding: 1.2rem;
    border-radius: 2rem;
  }
  .aashto-entry-hub .tituloejes {
    font-size: clamp(3rem, 10vw, 4rem);
    max-width: none;
  }
  .aashto-entry-hub__header,
  .aashto-entry-hub__heading {
    gap: 1rem;
  }
  .aashto-entry-hub__heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .aashto-entry-hub__intro {
    padding: 1.08rem 1.05rem 1.08rem 3rem;
    font-size: 1.22rem;
  }
  .aashto-entry-hub__intro::before {
    left: 1.05rem;
    top: 1.23rem;
  }
  .aashto-entry-cards {
    grid-template-columns: 1fr;
  }
  .aashto-entry-hub__compact {
    align-items: flex-start;
    flex-direction: column;
  }
  .aashto-entry-hub__change {
    width: 100%;
    justify-content: center;
  }
  .aashto-entry-card {
    padding: 1.25rem 1.15rem;
    gap: 0.85rem 0.85rem;
  }
  .aashto-entry-card__title {
    font-size: 1.8rem;
  }
  .aashto-design-bridge {
    grid-template-columns: 1fr;
  }
  .aashto-design-bridge__actions {
    justify-content: flex-start;
  }
}
.aashto-design-bridge__title {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
}

.aashto-design-bridge__meta {
  margin: 0;
  font-size: 1.25rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.aashto-design-bridge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.aashto-design-bridge__ghost {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(248, 250, 252, 0.28);
}

.aashto-design-bridge__status {
  display: block;
  margin-top: 0.55rem;
  color: #cbd5e1;
  font-size: 1.2rem;
  line-height: 1.45;
}

.layer-1 {
  border-color: #d44a0a;
}

.layer-2 {
  border-color: #e1e1e1;
}

.layer-3 {
  border-color: #d4b59f;
}

.layer-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.layer-head h3 {
  font-size: 2rem;
  margin: 0;
}

.badge {
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
}

.layer-1 .badge {
  color: #d44a0a;
  border: 2px solid #d44a0a;
}

.layer-2 .badge {
  color: #e1e1e1;
  border: 2px solid #e1e1e1;
}

.layer-3 .badge {
  color: #d4b59f;
  border: 2px solid #d4b59f;
}

.layer-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.layer-body label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: #e8e8e8;
  font-size: 1.2rem;
  text-align: center;
}
.layer-body label span {
  color: #e8e8e8;
}

/* Grupo input + unidad tipo chip */
.input-unit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.input-unit .unit {
  color: #9aa4b2;
  font-size: 1.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

/* Ajustes visuales AASHTO 93 sobre la base de formulariounam */
#aashto93App .botones {
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

#aashto93App .aashto93-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 28rem;
  text-align: left;
}

#aashto93App .aashto93-step.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#aashto93App .aashto93-pill {
  display: inline-block;
  margin-left: auto;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  background: #f2f4f7;
  color: #5f6876;
  font-size: 1.2rem;
  font-weight: 600;
}

#aashto93App .aashto93-pill:not(.is-muted) {
  background: #fff1e7;
  color: #d44a0a;
}

#aashto93App .aashto93-form-grid,
#aashto93App .aashto93-toolbar {
  grid-template-columns: 1fr;
  max-width: 100%;
}

#aashto93App .aashto93-form-grid {
  gap: 1rem 1.4rem;
}

#aashto93App .aashto93-intro {
  margin: 0 0 1.2rem;
  font-size: 1.7rem;
  line-height: 1.35;
  color: #334155;
}

#aashto93App .aashto93-page-header {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.9rem;
  align-items: center;
}

#aashto93App .aashto93-page-heading {
  justify-self: center;
  text-align: center;
}

#aashto93App .aashto93-page-title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #1f2937;
  text-align: center;
}

#aashto93App .aashto93-sticky-status {
  position: static;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(212, 74, 10, 0.16);
  border-left: 4px solid rgba(212, 74, 10, 0.72);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.95rem;
  width: min(100%, 72rem);
  font-size: 1.2rem;
  color: #334155;
}

#aashto93App .aashto93-sticky-status.is-ok {
  border-left-color: #0f8b4c;
}

#aashto93App .aashto93-sticky-status.is-warn {
  border-left-color: #b96a00;
}

#aashto93App .aashto93-param-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1rem;
}

#aashto93App .aashto93-preset-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

#aashto93App .aashto93-tools-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #475569;
}

#aashto93App .aashto93-preset,
#aashto93App .aashto93-btn--ghost {
  margin: 0;
  padding: 0.8rem 1.1rem;
  font-size: 1.2rem;
}

#aashto93App .aashto93-btn--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

#aashto93App .aashto93-preset.is-active {
  box-shadow: 0 0 0 2px rgba(212, 74, 10, 0.22);
}

#aashto93App .aashto93-topic-grid {
  display: grid;
  gap: 1rem;
}

#aashto93App .aashto93-topic-card {
  border: 1px solid #dde3eb;
  border-left: 4px solid rgba(212, 74, 10, 0.45);
  border-radius: 0.9rem;
  background: #fff;
  padding: 1rem 1rem 0.9rem;
}

#aashto93App .aashto93-topic-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  color: #334155;
}

#aashto93App .aashto93-topic-card .aashto93-form-grid {
  gap: 0.9rem 1rem;
}

#aashto93App .aashto93-topic-card .col {
  display: grid;
  align-content: start;
  grid-template-rows: minmax(4.4rem, auto) auto minmax(0, auto);
}

#aashto93App .aashto93-topic-card--transito .aashto93-form-grid {
  grid-template-columns: 1fr;
}

#aashto93App .aashto93-topic-card--serviciabilidad .aashto93-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#aashto93App .aashto93-topic-card--subrasante .aashto93-form-grid {
  grid-template-columns: 1fr;
}

#aashto93App .aashto93-topic-card--subrasante .aashto93-inline-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, auto);
  align-items: center;
  width: 100%;
  max-width: 20rem;
  flex-wrap: nowrap;
}

#aashto93App .aashto93-topic-card--subrasante .aashto93-inline-inputs input,
#aashto93App .aashto93-topic-card--subrasante .aashto93-inline-inputs select {
  max-width: none;
}

#aashto93App .aashto93-unit-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  min-width: 11rem;
}

#aashto93App .aashto93-unit-btn {
  margin: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid #aeb6c4;
  border-radius: 0.6rem;
  background: #fff;
  color: #334155;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

#aashto93App .aashto93-unit-btn.is-active {
  border-color: rgba(212, 74, 10, 0.7);
  background: rgba(212, 74, 10, 0.12);
  color: #d44a0a;
}

#aashto93App .aashto93-top-layout {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

#aashto93App .aashto93-param-panel {
  min-width: 0;
}

#aashto93App .aashto93-form-grid .col {
  align-items: flex-start;
  text-align: left;
}

#aashto93App .aashto93-form-grid label {
  font-size: 1.25rem;
  font-weight: 600;
}

#aashto93App .aashto93-form-grid input,
#aashto93App .aashto93-form-grid select {
  width: 100%;
  max-width: 18rem;
}

#aashto93App .aashto93-inline-inputs {
  width: 100%;
  justify-content: flex-start;
  gap: 0.7rem;
}

#aashto93App .aashto93-inline-inputs input,
#aashto93App .aashto93-inline-inputs select {
  width: 100%;
}

#aashto93App .aashto93-inline-inputs input {
  max-width: 12rem;
}

#aashto93App .aashto93-inline-inputs select {
  max-width: 8.5rem;
}

#aashto93App .aashto93-meta {
  justify-content: flex-start;
  gap: 0.8rem 1.6rem;
  margin: 1.1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid #dbe1ea;
  border-radius: 0.8rem;
  background: #f8fafc;
  font-size: 1.3rem;
  color: #4b5563;
}

#aashto93App .aashto93-primary-action {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

#aashto93App .aashto93-btn--primary {
  margin: 0;
}

#aashto93App .aashto93-mobile-cta {
  display: none;
}

#aashto93App .aashto93-hint {
  margin-top: 0.35rem;
  font-size: 1.2rem;
  line-height: 1.35;
  color: #64748b;
}

#aashto93App .aashto93-feedback {
  margin: 0 0 1rem;
  width: 100%;
  max-width: none;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid #d6dce5;
  border-left-width: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  font-size: 1.2rem;
  color: #334155;
}

#aashto93App #aashto93CardParams > legend {
  font-size: clamp(2.4rem, 3vw, 3rem);
  letter-spacing: 0.03em;
}

#aashto93App .aashto93-feedback.is-ok {
  border-color: rgba(15, 139, 76, 0.35);
  background: rgba(15, 139, 76, 0.1);
  color: #0f8b4c;
}

#aashto93App .aashto93-feedback.is-warn {
  border-color: rgba(185, 106, 0, 0.35);
  background: rgba(185, 106, 0, 0.1);
  color: #9a5a05;
}

#aashto93App .aashto93-feedback.is-error {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

#aashto93App input.is-invalid,
#aashto93App select.is-invalid {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.14);
}

#aashtoCalcView input.is-invalid,
#aashtoCalcView select.is-invalid {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.16);
}

#aashtoCalcView input.is-adjusted,
#aashtoCalcView select.is-adjusted {
  border-color: rgba(212, 74, 10, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(212, 74, 10, 0.18);
}

#aashto93App .aashto93-error {
  display: none;
  margin-top: 0.25rem;
  font-size: 1.2rem;
  color: #b42318;
}

#aashto93App .aashto93-error.is-visible {
  display: block;
}

#aashto93App .aashto93-sn-value {
  margin: 0.3rem 0 0.8rem;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1;
  text-align: center;
  color: #d44a0a;
}

#aashto93App .aashto93-sn-value.is-pending {
  color: #a1a1aa;
}

#resultadoAASHTOPanel[hidden],
#aashtoResultActions[hidden],
#continuarDisenoAashtoForm[hidden],
#pdfBtnAASHTO[hidden],
#aashtoResultActions:empty {
  display: none !important;
}

#resultadoAASHTOPanel {
  width: min(100%, 130rem);
  max-width: 130rem;
  margin: 2.2rem auto 2.8rem;
  padding: 0 2rem;
  box-sizing: border-box;
  min-height: auto;
}

#resultadoAASHTO {
  text-align: center;
}

.aashto-result-panel__shell {
  display: grid;
  gap: 1.2rem;
  width: 100%;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(212, 74, 10, 0.14);
  border-radius: 1.8rem;
  background: radial-gradient(circle at top right, rgba(255, 220, 195, 0.24), transparent 28%), linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 243, 0.95));
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.07);
}

.aashto-result-panel__content {
  width: 100%;
}

.aashto-result-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.aashto-result-card {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}

.aashto-result-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.aashto-result-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #fff1e7;
  color: #d44a0a;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aashto-result-card__eyebrow {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.aashto-result-card__copy {
  display: grid;
  gap: 0.45rem;
  max-width: 54rem;
  justify-items: center;
}

.aashto-result-card__title {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1.1;
  color: #111827;
}

.aashto-result-card__text {
  margin: 0;
  max-width: 46rem;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #475569;
  text-align: center;
}

.aashto-result-card__metric {
  display: grid;
  gap: 0.3rem;
  width: min(100%, 60rem);
  margin: 0 auto;
  padding: 1.2rem 1.4rem;
  border-radius: 1.5rem;
  background: rgba(255, 220, 195, 0.38);
  border: 1px solid rgba(212, 74, 10, 0.14);
  justify-items: center;
}

.aashto-result-card__metric-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.aashto-result-card__metric-value {
  font-size: clamp(3.6rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.aashto-result-card__metric-note {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
  color: #64748b;
}

.aashto-result-card.is-loading .aashto-result-card__badge {
  background: #e0f2fe;
  color: #0369a1;
}

.aashto-result-card.is-error .aashto-result-card__badge {
  background: #fee2e2;
  color: #b91c1c;
}

.aashto-result-btn {
  min-width: 21rem;
  margin: 0;
  padding: 1.25rem 2rem;
  border-radius: 1.2rem;
}

.aashto-result-btn--primary {
  background: #d44a0a;
  color: #FFFFFF;
}

.aashto-result-btn--ghost {
  background: transparent;
  color: #d44a0a;
  border: 1px solid rgba(212, 74, 10, 0.24);
  box-shadow: none;
}

.aashto-result-btn--ghost:hover,
.aashto-result-btn--ghost:focus-visible {
  background: rgba(255, 220, 195, 0.45);
  color: #d44a0a;
}

#pdfBtnAASHTO {
  margin-top: 0;
}

#pdfBtnAASHTO:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  #resultadoAASHTOPanel {
    width: 100%;
    margin: 1.6rem auto 2rem;
  }
  .aashto-result-panel__shell {
    padding: 1.3rem;
    border-radius: 1.6rem;
  }
  .aashto-result-panel__actions {
    justify-content: stretch;
  }
  .aashto-result-card__metric-value {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }
  .aashto-result-btn {
    width: 100%;
    min-width: 0;
  }
}
#aashto93App .aashto93-result-badges {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

#aashto93App .aashto93-result-card {
  margin: 0;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(212, 74, 10, 0.25);
  border-left: 4px solid rgba(212, 74, 10, 0.6);
  border-radius: 0.9rem;
  background: #fff;
}

#aashto93App .aashto93-result-title {
  margin: 0;
  text-align: center;
  font-size: 1.9rem;
  color: #334155;
}

#aashto93App .aashto93-result-kpi {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 1.3rem;
  color: #475569;
}

#aashto93App .aashto93-state {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.85rem;
  border-radius: 99px;
  font-size: 1.2rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}

#aashto93App .aashto93-state.is-ok {
  background: rgba(15, 139, 76, 0.14);
  color: #0f8b4c;
}

#aashto93App .aashto93-state.is-warn {
  background: rgba(185, 106, 0, 0.14);
  color: #9a5a05;
}

#aashto93App .aashto93-layer-row {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(212, 74, 10, 0.2);
  border-left: 4px solid var(--layer-accent, rgba(212, 74, 10, 0.6));
  border-radius: 0.8rem;
  background: #fff;
}

#aashto93App .aashto93-layers-layout {
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

#aashto93App .aashto93-layers-main {
  min-width: 0;
}

#aashto93App .aashto93-layers {
  display: grid;
  gap: 0.9rem;
}

#aashto93App .aashto93-layer-toolbar {
  margin: 0 0 0.9rem;
  display: flex;
  justify-content: flex-start;
}

#aashto93App .aashto93-mi-help {
  margin: 0 0 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #dbe1ea;
  border-left: 4px solid rgba(212, 74, 10, 0.5);
  border-radius: 0.8rem;
  background: #f8fafc;
}

#aashto93App .aashto93-mi-help summary {
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  color: #334155;
}

#aashto93App .aashto93-mi-help[open] summary {
  margin-bottom: 0.65rem;
}

#aashto93App .aashto93-mi-help-intro {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: #475569;
}

#aashto93App .aashto93-mi-table-wrap {
  overflow-x: auto;
}

#aashto93App .aashto93-mi-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  background: #fff;
}

#aashto93App .aashto93-mi-table th,
#aashto93App .aashto93-mi-table td {
  padding: 0.55rem 0.6rem;
  border: 1px solid #cfd8e3;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.25;
}

#aashto93App .aashto93-mi-table thead th {
  background: #eef2f7;
  font-weight: 700;
  color: #334155;
}

#aashto93App .aashto93-mi-table tbody th {
  background: #f8fafc;
  text-align: left;
  font-weight: 700;
  color: #334155;
}

#aashto93App .aashto93-mi-help-source {
  margin: 0.55rem 0 0;
  font-size: 1.2rem;
  color: #64748b;
}

#aashto93App .aashto93-mi-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

#aashto93App .aashto93-mi-link {
  margin: 0;
  padding: 0.1rem 0.45rem;
  border: 1px solid #b7c1d1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 1.2rem;
  line-height: 1.1;
  cursor: pointer;
}

#aashto93App .aashto93-mi-link:hover {
  border-color: rgba(212, 74, 10, 0.6);
  color: #d44a0a;
}

#aashto93App .aashto93-add-layer-cta {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 2px dashed rgba(212, 74, 10, 0.45);
  border-radius: 0.9rem;
  background: #fff7f2;
  color: #7a4f2b;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#aashto93App .aashto93-add-layer-cta:hover {
  border-color: rgba(212, 74, 10, 0.85);
  box-shadow: 0 0 0 2px rgba(212, 74, 10, 0.14);
}

#aashto93App .aashto93-add-layer-cta.is-open {
  border-style: solid;
  border-color: rgba(212, 74, 10, 0.85);
  background: #fff1e7;
}

#aashto93App .aashto93-add-layer-cta-icon {
  width: 2.2rem;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 74, 10, 0.5);
  background: #fff;
  color: #d44a0a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

#aashto93App .aashto93-add-layer-cta-copy {
  display: grid;
  gap: 0.2rem;
}

#aashto93App .aashto93-add-layer-cta-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #6f3f14;
}

#aashto93App .aashto93-add-layer-cta-sub {
  font-size: 1.2rem;
  color: #845d3f;
}

#aashto93App .aashto93-add-layer-form {
  margin: 0 0 0.9rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid #dbe1ea;
  border-left: 4px solid rgba(212, 74, 10, 0.55);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

#aashto93App .aashto93-add-layer-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

#aashto93App .aashto93-add-layer-head h4 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1f2d44;
}

#aashto93App .aashto93-add-layer-head p {
  margin: 0;
  color: #51627d;
  font-size: 1.2rem;
}

#aashto93App .aashto93-add-layer-grid {
  max-width: 100%;
  grid-template-columns: 1fr;
  gap: 0.7rem 0.9rem;
}

#aashto93App .aashto93-add-layer-grid .col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem 0.65rem;
  border: 1px solid #e4e9f2;
  border-radius: 0.7rem;
  background: #f8fafd;
}

#aashto93App .aashto93-add-layer-grid label {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2b3a52;
}

#aashto93App .aashto93-add-layer-grid select,
#aashto93App .aashto93-add-layer-grid input[type=color] {
  margin: 0;
}

#aashto93App .aashto93-add-layer-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  justify-content: flex-end;
  align-items: center;
}

#aashto93App .aashto93-add-layer-actions .aashto93-btn {
  margin: 0;
  min-width: 10.4rem;
}

#aashto93App .aashto93-add-layer-color {
  width: 100%;
  height: 3.2rem;
  padding: 0.2rem;
  border-radius: 0.6rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
}

#aashto93App .aashto93-add-layer-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

#aashto93App .aashto93-add-layer-color::-webkit-color-swatch,
#aashto93App .aashto93-add-layer-color::-moz-color-swatch {
  border: 0;
  border-radius: 0.45rem;
}

#aashto93App .aashto93-layer-row h3 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  font-weight: 700;
}

#aashto93App .aashto93-layer-title {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#aashto93App .aashto93-layer-title-text {
  display: inline-flex;
  align-items: center;
}

#aashto93App .aashto93-layer-color {
  width: 1.9rem;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

#aashto93App .aashto93-layer-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

#aashto93App .aashto93-layer-color::-webkit-color-swatch,
#aashto93App .aashto93-layer-color::-moz-color-swatch {
  border: 1px solid #cbd5e1;
  border-radius: 50%;
}

#aashto93App .aashto93-layer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  justify-content: flex-end;
  align-items: center;
}

#aashto93App .aashto93-layer-ctrl {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 1.2rem;
}

#aashto93App .aashto93-layer-ctrl--arrow {
  width: auto;
  min-width: 2.2rem;
  padding: 0 0.15rem;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1.9rem;
  line-height: 1;
  text-align: center;
  box-shadow: none;
}

#aashto93App .aashto93-layer-ctrl--arrow:hover {
  background: transparent;
  color: #000;
}

#aashto93App .aashto93-layer-ctrl--arrow:disabled {
  opacity: 0.35;
}

#aashto93App .aashto93-layer-ctrl.is-danger {
  background: #fff;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.35);
}

/* Copia del estilo de Burmister para eliminar */
#aashto93App .aashto93-layer-controls .eliminar-carga {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 0 0.25rem;
  cursor: pointer;
  box-shadow: none;
  line-height: 1;
}

#aashto93App .aashto93-layer-controls .eliminar-carga img {
  width: 2.4rem;
  height: 2.4rem;
  filter: brightness(0) saturate(100%) invert(13%) sepia(96%) saturate(6362%) hue-rotate(359deg) brightness(99%) contrast(104%);
}

#aashto93App .aashto93-layer-controls .eliminar-carga:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#aashto93App .aashto93-layer-grid {
  max-width: 100%;
  grid-template-columns: 1fr;
}

#aashto93App .aashto93-layer-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(212, 74, 10, 0.12);
  color: #d44a0a;
  font-size: 1.2rem;
  font-weight: 700;
}

#aashto93App .aashto93-layer-row.is-top-contributor {
  box-shadow: 0 0 0 2px rgba(212, 74, 10, 0.13);
}

#aashto93App .aashto93-layer-contrib {
  min-height: 3rem;
  display: grid;
  place-items: center;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.8rem;
  padding-left: 0.8rem;
  border: 1px dashed #c8ccd2;
  border-radius: 0.7rem;
  background: #f8fafc;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#aashto93App .aashto93-ai-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#aashto93App .aashto93-a-source {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  background: #eef2f7;
  color: #475569;
}

#aashto93App .aashto93-a-source.is-default {
  background: #eef2f7;
  color: #475569;
}

#aashto93App .aashto93-a-source.is-manual {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

#aashto93App .aashto93-a-source.is-modulus {
  background: rgba(212, 74, 10, 0.12);
  color: #d44a0a;
}

#aashto93App .aashto93-a-tools {
  margin-top: 0.45rem;
}

#aashto93App .aashto93-a-toggle {
  border: 0;
  background: transparent;
  color: #d44a0a;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
}

#aashto93App .aashto93-a-toggle:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

#aashto93App .aashto93-a-calc-panel {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #dde3eb;
  border-radius: 0.9rem;
  background: #f8fafc;
}

#aashto93App .aashto93-a-calc-grid {
  max-width: 100%;
  grid-template-columns: 1fr;
  gap: 0.8rem 1rem;
}

#aashto93App .aashto93-a-suggested {
  min-height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  border: 1px dashed rgba(212, 74, 10, 0.35);
  background: #fff7f1;
  color: #7c2d12;
  font-weight: 700;
}

#aashto93App .aashto93-a-help {
  margin: 0.8rem 0 0;
  font-size: 1.2rem;
  color: #64748b;
}

#aashto93App .aashto93-a-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-start;
}

#aashto93App .aashto93-layer-chart, #aashto93App .aashto93-setup-chart {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem 1.3rem;
  border: 2px solid rgba(212, 74, 10, 0.35);
  border-radius: 1.2rem;
  background: #f4f4f5;
}

#aashto93App .aashto93-layer-chart-head {
  border-top: 2px solid rgba(212, 74, 10, 0.35);
  margin: 0.5rem 0 1rem;
}

#aashto93App .aashto93-layer-chart-title {
  display: inline-block;
  transform: translateY(-55%);
  padding: 0 0.8rem;
  margin-left: 0.8rem;
  background: #f4f4f5;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  font-weight: 700;
  color: #d44a0a;
}

#aashto93App .aashto93-chart-tabs {
  margin: -0.1rem 0 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

#aashto93App .aashto93-chart-tab {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid #b7c1d1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: all 0.2s ease;
}

#aashto93App .aashto93-chart-tab:hover {
  border-color: #7a8aa3;
}

#aashto93App .aashto93-chart-tab.is-active {
  border-color: rgba(212, 74, 10, 0.72);
  background: rgba(212, 74, 10, 0.13);
  color: #d44a0a;
}

#aashto93App .aashto93-iso-wrap {
  padding: 0.45rem;
  border: 1px solid #dbe1ea;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#aashto93App .aashto93-iso-svg {
  width: 100%;
  height: auto;
  display: block;
}

#aashto93App .aashto93-iso-note {
  margin: 0.35rem 0 0;
  text-align: right;
  font-size: 1.2rem;
  color: #64748b;
}

#aashto93App .aashto93-xsec-rows {
  display: grid;
  gap: 0;
}

#aashto93App .aashto93-xsec-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 9rem;
  align-items: stretch;
  min-height: var(--row-h, 40px);
}

#aashto93App .aashto93-xsec-scale,
#aashto93App .aashto93-xsec-ai {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #64748b;
}

#aashto93App .aashto93-xsec-scale {
  border-right: 1px solid #cfd4dc;
}

#aashto93App .aashto93-xsec-layer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  color: var(--layer-text-color, #fff);
  background: var(--layer-color, #4b5563);
}

#aashto93App .aashto93-xsec-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.06) 100%);
}

#aashto93App .aashto93-xsec-layer--granular::before,
#aashto93App .aashto93-xsec-layer--subbase::before,
#aashto93App .aashto93-xsec-layer--treated::before {
  background: none;
}

#aashto93App .aashto93-xsec-layer--asphalt {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.28), rgba(10, 10, 10, 0.4)), var(--layer-color, #23262b);
}

#aashto93App .aashto93-xsec-layer--asphalt::before {
  background: none;
}

#aashto93App .aashto93-xsec-layer--asphalt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 44%);
  opacity: 0.35;
}

#aashto93App .aashto93-xsec-row:first-child .aashto93-xsec-layer {
  border-top: 3px solid #d44a0a;
}

#aashto93App .aashto93-xsec-layer--subgrade {
  background: #6a482b;
}

#aashto93App .aashto93-xsec-layer--subgrade::before {
  display: none;
}

#aashto93App .aashto93-xsec-subgrade-pill {
  padding: 0.35rem 1rem;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

#aashto93App .aashto93-xsec-legend {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.4rem;
}

#aashto93App .aashto93-xsec-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.35rem;
  color: #475569;
}

#aashto93App .aashto93-xsec-legend-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--dot-color, #4b5563);
}

#aashto93App .aashto93-xsec-empty {
  text-align: center;
  padding: 1rem 0.5rem;
  color: #6b7280;
  font-size: 1.35rem;
}

#aashto93App .aashto93-progress {
  margin-top: 0.7rem;
  height: 0.9rem;
  border-radius: 99px;
  overflow: hidden;
  background: #e5e7eb;
}

#aashto93App .aashto93-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f3a13d, #0f8b4c);
  transition: width 0.2s ease;
}

#aashto93App .aashto93-message {
  padding-left: 0;
  min-height: auto;
  margin-top: 0.8rem;
  font-size: 1.4rem;
}

#aashto93App .aashto93-message.is-ok {
  color: #0f8b4c;
  font-weight: 600;
}

#aashto93App .aashto93-message.is-warn {
  color: #b96a00;
  font-weight: 600;
}

#aashto93App .aashto93-layer-suggestion {
  margin-top: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px dashed rgba(212, 74, 10, 0.35);
  background: #fffbf7;
  font-size: 1.25rem;
  color: #7a4f2b;
}

@media (max-width: 900px) {
  #aashto93App .aashto93-page-header {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    padding: 0;
  }
  #aashto93App .aashto93-page-title {
    font-size: clamp(2.4rem, 7vw, 3.2rem);
  }
  #aashto93App .aashto93-sticky-status {
    width: 100%;
    border-radius: 0.6rem;
    margin-bottom: 0;
  }
  #aashto93App .aashto93-feedback {
    margin-left: 0;
    max-width: 100%;
  }
  #aashto93App .aashto93-param-tools {
    justify-content: center;
  }
  #aashto93App .aashto93-tools-label {
    width: 100%;
    text-align: center;
  }
  #aashto93App .aashto93-topic-card {
    padding: 0.9rem 0.9rem 0.8rem;
  }
  #aashto93App .aashto93-topic-card--transito .aashto93-form-grid,
  #aashto93App .aashto93-topic-card--serviciabilidad .aashto93-form-grid {
    grid-template-columns: 1fr;
  }
  #aashto93App .aashto93-layer-controls {
    justify-content: flex-end;
  }
  #aashto93App .aashto93-mobile-cta {
    display: flex;
    position: sticky;
    bottom: 0.6rem;
    z-index: 7;
    margin-top: 0.9rem;
    padding: 0.5rem;
    border: 1px solid #d6dce5;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.95);
    justify-content: center;
  }
  #aashto93App .aashto93-mobile-cta .aashto93-btn {
    width: 100%;
    margin: 0;
  }
  #aashto93App .aashto93-top-layout {
    grid-template-columns: 1fr;
  }
  #aashto93App .aashto93-form-grid .col {
    align-items: center;
    text-align: center;
  }
  #aashto93App .aashto93-form-grid input,
  #aashto93App .aashto93-form-grid select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  #aashto93App .aashto93-form-grid label {
    text-align: center;
    width: 100%;
  }
  #aashto93App .aashto93-inline-inputs,
  #aashto93App .aashto93-meta,
  #aashto93App .aashto93-primary-action {
    justify-content: center;
  }
  #aashto93App .aashto93-btn--primary {
    width: min(100%, 28rem);
  }
  #aashto93App .aashto93-xsec-row {
    grid-template-columns: 6.2rem minmax(0, 1fr) 6.2rem;
  }
  #aashto93App .aashto93-xsec-layer {
    font-size: 1.25rem;
  }
  #aashto93App .aashto93-xsec-scale,
  #aashto93App .aashto93-xsec-ai {
    font-size: 1.2rem;
  }
  #aashto93App .aashto93-chart-tabs {
    justify-content: flex-start;
    margin-top: 0.2rem;
  }
  #aashto93App .aashto93-iso-wrap {
    padding: 0.25rem;
  }
  #aashto93App .aashto93-iso-note {
    text-align: left;
  }
}
@media (min-width: 768px) {
  #aashto93App .aashto93-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #aashto93App .aashto93-topic-card:nth-child(3) {
    grid-column: 1/-1;
  }
  #aashto93App .aashto93-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #aashto93App .aashto93-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #aashto93App .aashto93-top-layout {
    grid-template-columns: minmax(0, 2.4fr) minmax(28rem, 1fr);
    gap: 1.8rem;
  }
  #aashto93App .aashto93-result-card {
    position: sticky;
    top: 1rem;
  }
  #aashto93App .aashto93-layer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #aashto93App .aashto93-add-layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  #aashto93App .aashto93-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #aashto93App .aashto93-topic-card:nth-child(3) {
    grid-column: auto;
  }
  #aashto93App .aashto93-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #aashto93App .aashto93-layer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  #aashto93App .aashto93-add-layer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #aashto93App .aashto93-layers-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(33rem, 1fr);
    gap: 1.4rem;
  }
  #aashto93App .aashto93-layer-chart, #aashto93App .aashto93-setup-chart {
    margin-top: 0;
    position: sticky;
    top: 1rem;
  }
}
@media (max-width: 900px) {
  #aashto93App.aashto93-hints-collapsed .aashto93-hint {
    display: none;
  }
  #aashto93App .aashto93-form-grid {
    grid-template-columns: 1fr;
  }
  #aashto93App .aashto93-top-layout {
    grid-template-columns: 1fr;
  }
  #aashto93App .aashto93-result-card {
    position: static;
  }
  #aashto93App .aashto93-add-layer-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  #aashto93App .aashto93-add-layer-actions .aashto93-btn {
    min-width: 0;
  }
}
.aashto93-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1rem 0 0.5rem;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.aashto93-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, #2f2f2f);
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}
.aashto93-step.is-active {
  opacity: 1;
  background: rgba(212, 74, 10, 0.1);
  border-color: #d44a0a;
}
.aashto93-step.is-active .aashto93-step-num {
  background: #d44a0a;
  color: #fff;
}
.aashto93-step + .aashto93-step::before {
  content: "→";
  margin-right: 0.8rem;
  color: var(--text-muted, #666);
  font-size: 1.2rem;
}

.aashto93-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border, #2f2f2f);
  color: var(--text-muted, #aaa);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.aashto93-step-label {
  font-size: 1.3rem;
  font-weight: 600;
}

.aashto93-step--structure {
  justify-content: center;
  text-align: center;
}

.aashto93-step-badge {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(212, 74, 10, 0.15);
  color: #d44a0a;
}
.aashto93-step-badge.is-muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted, #888);
}

.aashto93-structure-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 1.4rem 0 0;
  background: transparent;
  border: none;
}

.aashto93-structure-cta-desc {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-secondary, #ccc);
  flex: 1;
  min-width: 180px;
}

.aashto93-structure-cta .aashto93-btn {
  margin: 0;
}

.aashto93-proposals {
  margin: 1.2rem 0 1.4rem;
  padding: 1.2rem;
  border: 1px solid #dde3eb;
  border-radius: 1rem;
  background: #fff;
}

.aashto93-proposal-applied {
  margin: 0 0 1rem;
}

.aashto93-proposals-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.aashto93-proposals-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.8rem;
  color: #1f2937;
}
.aashto93-proposals-head p {
  margin: 0;
  font-size: 1.25rem;
  color: #64748b;
}

.aashto93-proposals-meta {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe1ea;
  color: #475569;
  font-size: 1.2rem;
  font-weight: 600;
}

.aashto93-proposal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.aashto93-proposal-card {
  border: 1px solid #dde3eb;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.aashto93-proposal-card.is-recommended {
  border-color: rgba(212, 74, 10, 0.4);
  box-shadow: 0 12px 28px rgba(212, 74, 10, 0.12);
}

.aashto93-proposal-card.is-selected {
  border-color: rgba(212, 74, 10, 0.75);
  box-shadow: 0 0 0 2px rgba(212, 74, 10, 0.18);
}

.aashto93-proposal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.aashto93-proposal-card-head h4 {
  margin: 0 0 0.2rem;
  font-size: 1.55rem;
  color: #1f2937;
}
.aashto93-proposal-card-head p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: #64748b;
}

.aashto93-proposal-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(212, 74, 10, 0.12);
  color: #d44a0a;
  font-size: 1.2rem;
  font-weight: 700;
}

.aashto93-proposal-kpis {
  display: grid;
  gap: 0.4rem;
  font-size: 1.2rem;
  color: #334155;
}
.aashto93-proposal-kpis strong {
  color: #0f172a;
}

.aashto93-proposal-mini-chart {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  border: 1px solid #dde3eb;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.aashto93-proposal-mini-row {
  min-height: var(--mini-row-h, 26px);
  border-radius: 0.7rem;
  background: var(--mini-layer-color, #94a3b8);
  color: var(--mini-layer-text, #ffffff);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.65rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.aashto93-proposal-mini-row.is-asphalt::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.35;
  pointer-events: none;
}

.aashto93-proposal-mini-row.is-subgrade {
  --mini-layer-color: #6a482b;
  --mini-layer-text: #ffffff;
  min-height: 24px;
}

.aashto93-proposal-mini-scale,
.aashto93-proposal-mini-layer {
  position: relative;
  z-index: 1;
}

.aashto93-proposal-mini-scale {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.aashto93-proposal-mini-layer {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.aashto93-proposal-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.aashto93-proposal-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 1.2rem;
  font-weight: 600;
}

.aashto93-proposal-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

/* === CHAT IA AASHTO === */
.pa-chat-config-wrapper {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.pa-chat-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.7rem 1.4rem;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  border-bottom: 0.1rem solid rgba(212, 74, 10, 0.18);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.pa-chat-config-header:hover {
  background: rgba(255, 255, 255, 0.65);
}
.pa-chat-config-header:focus-visible {
  outline: 0.2rem solid rgba(255, 106, 0, 0.5);
  outline-offset: -0.2rem;
}

.pa-chat-config-title {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-config-chevron {
  color: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

[aria-expanded=false] .pa-config-chevron {
  transform: rotate(180deg);
}

.pa-chat-config {
  padding: 1.2rem 1.4rem 1rem;
  border-bottom: 0.1rem solid rgba(212, 74, 10, 0.14);
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pa-chat-config.pa-chat-config--collapsed {
  display: none;
}

.selector-label {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 0.5rem;
}

.modo-selector {
  display: flex;
  gap: 0.8rem;
}

.flujo-selector {
  display: flex;
  gap: 0.5rem;
}

.modo-btn {
  flex: 1;
  padding: 0.9rem 1.4rem;
  border: 0.15rem solid rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  line-height: 1.3;
}
.modo-btn:hover {
  border-color: #ff6a00;
  background: rgba(255, 106, 0, 0.08);
  color: #111;
}
.modo-btn.activo {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  box-shadow: 0 0.3rem 1rem rgba(255, 106, 0, 0.38);
  transform: translateY(-0.1rem);
}

.flujo-btn {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.6rem;
  border: 0.15rem solid rgba(0, 0, 0, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.65);
  color: #444;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  line-height: 1.25;
}
.flujo-btn:hover {
  border-color: #ff6a00;
  background: rgba(255, 106, 0, 0.08);
  color: #111;
}
.flujo-btn.activo {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0.2rem 0.8rem rgba(255, 106, 0, 0.35);
}

.pa-reset-toast {
  background: #fffbeb;
  border: 1.5px solid #fbbf24;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 1.2rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pa-reset-toast__btns {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.pa-reset-toast__btn--limpiar {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
.pa-reset-toast__btn--limpiar:hover {
  opacity: 0.85;
}
.pa-reset-toast__btn--continuar {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
}
.pa-reset-toast__btn--continuar:hover {
  background: #e2e8f0;
}

.pa-action-bubble {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 4px;
}
.pa-action-bubble p {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #0369a1;
  font-weight: 500;
}

.pa-action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pa-action-btn {
  padding: 7px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pa-action-btn:hover {
  opacity: 0.85;
}
.pa-action-btn--pdf {
  background: #1e40af;
  color: #fff;
}
.pa-action-btn--email {
  background: #f1f5f9;
  color: #1e40af;
  border: 1.5px solid #bfdbfe;
}

.propuesta-capas {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
}
.propuesta-capas th {
  background: #1e40af;
  color: #fff;
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
}
.propuesta-capas td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #374151;
}
.propuesta-capas tr:last-child td {
  border-bottom: none;
}
.propuesta-capas tr:nth-child(even) td {
  background: #f8fafc;
}
.propuesta-capas .capa-carpeta td:first-child {
  border-left: 3px solid #f59e0b;
}
.propuesta-capas .capa-base td:first-child {
  border-left: 3px solid #10b981;
}
.propuesta-capas .capa-subbase td:first-child {
  border-left: 3px solid #6366f1;
}

.propuesta-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e40af;
  margin: 12px 0 4px;
}

.sn-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}

@media (max-width: 480px) {
  .modo-selector,
  .flujo-selector {
    flex-direction: column;
  }
  .modo-btn,
  .flujo-btn {
    width: 100%;
    text-align: center;
  }
  .pa-action-btns {
    flex-direction: column;
  }
  .pa-action-btn {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 900px) {
  #aashtoCalcView #transitoFormaashto .grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  #aashto93App .aashto93-topic-card.aashto93-topic-card--serviciabilidad .aashto93-form-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #aashto93App .aashto93-layer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  #aashto93App .aashto93-step {
    min-width: 0;
    width: 100%;
  }
  #aashto93App .aashto93-topic-card--subrasante .aashto93-inline-inputs {
    max-width: 100%;
    grid-template-columns: 1fr minmax(10rem, auto);
  }
  .aashto93-structure-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .aashto93-structure-cta-desc {
    min-width: 0;
  }
  .aashto93-structure-cta .aashto93-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  #aashtoCalcView #transitoFormaashto .grid {
    grid-template-columns: 1fr;
  }
  #aashtoCalcView #transitoFormaashto .col {
    border-top: 1px solid rgba(212, 74, 10, 0.18);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
  }
  #aashtoCalcView #transitoFormaashto .col:first-child {
    border-top: none;
    padding-top: 0;
  }
  #aashto93App .aashto93-xsec-row {
    grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
  }
  #aashto93App .aashto93-xsec-scale,
  #aashto93App .aashto93-xsec-ai {
    font-size: 1.2rem;
  }
  #aashto93App .aashto93-xsec-layer {
    font-size: 1.2rem;
    padding: 0 0.4rem;
  }
  #aashto93App .aashto93-add-layer-actions .aashto93-btn {
    flex: 1;
    min-width: 0;
  }
  .aashto-entry-hub__compact {
    align-items: stretch;
  }
}
.aashto93-structure-choice {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 0 0.8rem;
  width: min(100%, 130rem);
  margin: 0 auto;
}

.aashto93-structure-choice__title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.6rem;
  color: #111827;
}

.aashto93-structure-choice__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 600px) {
  .aashto93-structure-choice__cards {
    grid-template-columns: 1fr;
  }
}

.aashto93-choice-card {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
  padding: 1.8rem 1.4rem;
  border-radius: 1.4rem;
  border: 1.5px solid rgba(212, 74, 10, 0.22);
  background: rgba(255, 220, 195, 0.22);
  cursor: pointer;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.aashto93-choice-card:hover, .aashto93-choice-card:focus-visible {
  border-color: #d44a0a;
  background: rgba(255, 220, 195, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.22);
  outline: none;
}
.aashto93-choice-card:active {
  transform: translateY(1px);
}

.aashto93-choice-card__icon {
  font-size: 2.4rem;
  line-height: 1;
}

.aashto93-choice-card__label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.aashto93-choice-card__desc {
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.4;
  max-width: 24rem;
}

.a93-stage4-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2.4rem 0 1.6rem;
}
.a93-stage4-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(212, 74, 10, 0.15);
}
.a93-stage4-divider__label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d44a0a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  background: rgba(255, 220, 195, 0.4);
  padding: 0.3rem 1rem;
  border-radius: 99px;
}

.a93-stage-nav--with-step .a93-stage-nav__step {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d44a0a;
  background: rgba(255, 220, 195, 0.55);
  border-radius: 99px;
  padding: 0.25rem 0.9rem;
  letter-spacing: 0.02em;
}

.a93-context-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0;
  padding: 0.9rem 1.4rem;
  margin-bottom: 2rem;
  background: rgba(255, 220, 195, 0.18);
  border: 1px solid rgba(212, 74, 10, 0.14);
  border-radius: 1rem;
}
@media (max-width: 540px) {
  .a93-context-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .a93-context-band .a93-context-band__sep {
    display: none;
  }
}

.a93-context-band__item {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0 1rem;
}

.a93-context-band__sep {
  width: 1px;
  height: 1.6rem;
  background: rgba(212, 74, 10, 0.2);
  flex-shrink: 0;
}

.a93-context-band__key {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.a93-context-band__val {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

.a93-sn-hero {
  text-align: center;
  padding: 1.6rem 1rem 2rem;
}
.a93-sn-hero__label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.3rem;
}
.a93-sn-hero__value {
  font-size: clamp(3.8rem, 7vw, 5.6rem);
  font-weight: 700;
  color: #d44a0a;
  line-height: 1;
  margin: 0 0 1rem;
}
.a93-sn-hero__caption {
  font-size: 1.4rem;
  color: #475569;
  max-width: 44rem;
  margin: 0 auto;
  line-height: 1.5;
}

.aashto93-choice-card--primary {
  border-color: rgba(212, 74, 10, 0.5);
  background: rgba(255, 220, 195, 0.38);
}
.aashto93-choice-card--primary:hover, .aashto93-choice-card--primary:focus-visible {
  border-color: #d44a0a;
  background: rgba(255, 220, 195, 0.65);
}
.aashto93-choice-card--primary .aashto93-choice-card__icon {
  margin-top: 0.4rem;
}

.aashto93-choice-card__badge {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: #d44a0a;
  border-radius: 99px;
  padding: 0.2rem 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.a93-choice-cards--stage4 {
  width: min(100%, 90rem);
  margin: 0 auto;
}

.a93-choice-footer {
  display: flex;
  align-items: center;
  padding: 1.6rem 0 0.4rem;
  border-top: 1px solid rgba(212, 74, 10, 0.1);
  margin-top: 0.8rem;
}

.aashto93-custom-structure-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(212, 74, 10, 0.12);
  margin-top: 1.2rem;
}
@media (max-width: 540px) {
  .aashto93-custom-structure-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .aashto93-custom-structure-footer button {
    width: 100%;
    justify-content: center;
  }
}

.aashto93-btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(212, 74, 10, 0.3);
  color: #d44a0a;
  border-radius: 0.8rem;
  padding: 0.75rem 1.3rem;
  font-size: 1.3rem;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.aashto93-btn-ghost-sm:hover, .aashto93-btn-ghost-sm:focus-visible {
  background: rgba(255, 220, 195, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
  outline: none;
}

.aashto93-layer-setup {
  display: grid;
  gap: 2rem;
  padding: 0.4rem 0 2rem;
  width: min(100%, 136rem);
  margin: 0 auto;
}

.aashto93-setup-header {
  padding: 1.4rem 2rem;
  background: #FFFFFF;
  border: 0.1rem solid rgba(212, 74, 10, 0.1);
  border-radius: 1rem;
  box-shadow: 0 0.2rem 1rem rgba(15, 23, 42, 0.05);
}

.aashto93-setup-header__top {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.aashto93-setup-header__title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.aashto93-setup-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.7rem;
  border: 0.15rem solid rgba(212, 74, 10, 0.22);
  background: transparent;
  color: #d44a0a;
  font-size: 1.25rem;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s;
}
.aashto93-setup-back-btn__arrow {
  font-size: 1.1em;
  line-height: 1;
}
.aashto93-setup-back-btn:hover {
  background: rgba(255, 220, 195, 0.45);
  border-color: #d44a0a;
}
.aashto93-setup-back-btn:focus-visible {
  outline: 0.2rem solid #d44a0a;
  outline-offset: 0.2rem;
}

.aashto93-setup-header__title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
  text-align: left;
}

.aashto93-setup-header__sub {
  font-size: 1.25rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
  text-align: left;
}

.aashto93-setup-context-band {
  display: none;
}

.aashto93-layer-setup__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .aashto93-layer-setup__body {
    grid-template-columns: minmax(0, 1fr) minmax(36rem, 42rem);
    gap: 2.4rem;
  }
}
@media (min-width: 1180px) {
  .aashto93-layer-setup__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(40rem, 46rem);
  }
}

.aashto93-layer-setup__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.aashto93-setup-layers {
  display: grid;
  gap: 1rem;
}

.aashto93-setup-toolbar {
  margin-bottom: 0.2rem;
}

.aashto93-setup-card {
  display: grid;
  border-radius: 0.8rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.07);
  border-left: 0.4rem solid var(--layer-accent, #d44a0a);
  background: #FFFFFF;
  box-shadow: 0 0.2rem 0.8rem rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.aashto93-setup-card:hover {
  box-shadow: 0 0.4rem 1.6rem rgba(15, 23, 42, 0.09);
}

.aashto93-setup-card__header {
  padding: 1rem 1.4rem;
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.06);
  background: #f8fafc;
}

.aashto93-setup-card__header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aashto93-setup-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #d44a0a;
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  box-shadow: 0 0.2rem 0.6rem rgba(212, 74, 10, 0.3);
}

.aashto93-setup-card__type-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.aashto93-setup-card__color-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.aashto93-setup-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.aashto93-setup-card__type-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.aashto93-setup-card__color-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
  line-height: 1;
}

.aashto93-setup-card__lbl {
  font-size: 1.2rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.aashto93-setup-type {
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 1.35rem;
  border-radius: 0.6rem;
  border: 0.15rem solid rgba(212, 74, 10, 0.18);
  background: #FFFFFF;
  color: #111827;
  cursor: pointer;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
  max-width: 30rem;
}
.aashto93-setup-type:focus {
  border-color: #d44a0a;
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.22);
  outline: none;
}
.aashto93-setup-type:disabled {
  opacity: 0.55;
  cursor: default;
  background: #f1f5f9;
}

.aashto93-setup-color {
  width: 4.2rem;
  min-width: 4.2rem;
  height: 4.2rem;
  padding: 0.28rem;
  border-radius: 0.95rem;
  border: 0.1rem solid rgba(212, 74, 10, 0.18);
  background: #FFFFFF;
  box-shadow: 0 0.1rem 0.45rem rgba(15, 23, 42, 0.06);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.aashto93-setup-color:hover {
  transform: translateY(-0.05rem);
  border-color: rgba(212, 74, 10, 0.34);
  box-shadow: 0 0.35rem 1rem rgba(212, 74, 10, 0.12);
}
.aashto93-setup-color:focus-visible {
  outline: 0.2rem solid rgba(212, 74, 10, 0.24);
  outline-offset: 0.15rem;
}

.aashto93-setup-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.aashto93-setup-color::-webkit-color-swatch,
.aashto93-setup-color::-moz-color-swatch {
  border: 0;
  border-radius: 0.7rem;
}

.aashto93-setup-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.6rem;
  border: 0.1rem solid rgba(239, 68, 68, 0.25);
  background: transparent;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
  z-index: 1;
}
.aashto93-setup-remove:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0.35rem 1.2rem rgba(239, 68, 68, 0.18);
  transform: translateY(-0.1rem);
}
.aashto93-setup-remove:disabled {
  opacity: 0;
  pointer-events: none;
}

.aashto93-setup-remove img {
  width: 2.1rem;
  height: 2.1rem;
  filter: brightness(0) saturate(100%) invert(13%) sepia(96%) saturate(6362%) hue-rotate(359deg) brightness(99%) contrast(104%);
}

.aashto93-setup-remove::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 0.7rem;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  opacity: 0;
  transform: translateY(-0.2rem);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 0.6rem 1.6rem rgba(15, 23, 42, 0.18);
}

.aashto93-setup-remove:hover:not(:disabled)::after,
.aashto93-setup-remove:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.aashto93-setup-card__body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aashto93-setup-card__coeffs-row {
  display: grid;
  grid-template-columns: minmax(24rem, 30rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.6rem 2rem;
}
@media (max-width: 960px) {
  .aashto93-setup-card__coeffs-row {
    grid-template-columns: 1fr;
  }
}

.aashto93-setup-card__mode-block {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 1.1rem 1.2rem;
  border: 0.1rem solid rgba(212, 74, 10, 0.1);
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: inset 0 0 0 0.1rem rgba(255, 255, 255, 0.45);
}

.aashto93-setup-card__mode-hint {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 42rem;
}

.aashto93-setup-am-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
  background: linear-gradient(180deg, #edf2f7 0%, #f8fafc 100%);
  border-radius: 1.6rem;
  padding: 0.22rem;
  width: min(100%, 22.5rem);
  border: 0.1rem solid rgba(203, 213, 225, 0.9);
  box-shadow: inset 0 0.1rem 0.2rem rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.aashto93-setup-am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 1.35rem;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  cursor: pointer;
  color: #526277;
  box-shadow: none;
  text-align: center;
  line-height: 1.15;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  margin: 0;
}
.aashto93-setup-am-btn.is-active {
  background: linear-gradient(180deg, #e76416 0%, #d44a0a 100%);
  color: #FFFFFF;
  box-shadow: 0 0.15rem 0.45rem rgba(212, 74, 10, 0.18);
}
.aashto93-setup-am-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.7);
  color: #d44a0a;
}
.aashto93-setup-am-btn:focus-visible {
  outline: 0.2rem solid #d44a0a;
  outline-offset: 0.2rem;
}

.aashto93-setup-am-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(12.5rem, 0.68fr);
  gap: 1.2rem;
  align-items: stretch;
  min-width: 0;
}
@media (max-width: 780px) {
  .aashto93-setup-am-fields {
    grid-template-columns: 1fr;
  }
}

.aashto93-setup-am-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.9rem 1rem 1rem;
  border: 0.1rem solid rgba(212, 74, 10, 0.1);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 243, 0.92) 100%);
  box-shadow: 0 0.1rem 0.4rem rgba(15, 23, 42, 0.04);
}
.aashto93-setup-am-field--na {
  opacity: 0.55;
  pointer-events: none;
}

.aashto93-setup-am-field--ai {
  min-width: 0;
}

.aashto93-setup-am-field__lbl {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.aashto93-setup-am-field__lbl sub {
  font-size: 0.82em;
}

.aashto93-setup-am-field__unit {
  font-size: 1.2rem;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  color: #9ca3af;
}

.aashto93-setup-am-na-badge {
  display: inline-block;
  font-size: 1.2rem;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  color: #9ca3af;
  background: #f1f5f9;
  border: 0.1rem solid rgba(0, 0, 0, 0.07);
  border-radius: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-style: italic;
  line-height: 1;
}

.aashto93-setup-am-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: #111827;
  background: rgba(255, 220, 195, 0.45);
  border: 0.1rem solid rgba(212, 74, 10, 0.14);
  border-radius: 0.7rem;
  padding: 0.35rem 1rem;
  min-width: 0;
  width: min(100%, 13.5rem);
  min-height: 4.4rem;
  text-align: center;
  line-height: 1.25;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
}
.aashto93-setup-am-val--na {
  color: #9ca3af;
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

.aashto93-setup-input {
  width: min(100%, 13.5rem);
  padding: 0.45rem 0.7rem;
  min-height: 4.4rem;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  border-radius: 0.7rem;
  border: 0.2rem solid #d44a0a;
  text-align: center;
  background: #FFFFFF;
  color: #111827;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.aashto93-setup-input:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 0.3rem rgba(255, 122, 0, 0.22);
  outline: none;
}

.aashto93-setup-calc-input,
.aashto93-setup-calc-select {
  width: 100%;
  max-width: 100%;
}

.aashto93-setup-a-calc-panel {
  margin-top: 0.2rem;
}

.aashto93-setup-am-field .aashto93-ai-label,
.aashto93-setup-am-field .aashto93-mi-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.aashto93-setup-am-field .aashto93-a-source {
  margin-left: auto;
}

.aashto93-setup-am-field .aashto93-mi-link {
  white-space: nowrap;
  flex-shrink: 0;
}

.aashto93-setup-am-field .aashto93-a-tools {
  margin-top: 0.75rem;
}

.aashto93-setup-am-field .aashto93-setup-am-val {
  width: min(100%, 12rem);
  min-height: 3.9rem;
  padding: 0.25rem 0.85rem;
  font-size: 1.7rem;
}

.aashto93-setup-am-field .aashto93-setup-input {
  width: min(100%, 12rem);
  min-height: 3.9rem;
  padding: 0.3rem 0.65rem;
  font-size: 1.65rem;
}

.aashto93-setup-a-entry-note {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
  line-height: 1.45;
  color: #64748b;
  max-width: 42rem;
}

.aashto93-setup-asphalt-note {
  font-size: 1.2rem;
  color: #9ca3af;
  margin: 0;
  font-style: italic;
}

.aashto93-setup-insert-between {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.2rem 0;
}
.aashto93-setup-insert-between::before, .aashto93-setup-insert-between::after {
  content: "";
  flex: 1;
  height: 0.1rem;
  background: rgba(212, 74, 10, 0.1);
}

.aashto93-setup-insert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  border: 0.15rem dashed rgba(212, 74, 10, 0.28);
  background: transparent;
  color: #d44a0a;
  font-size: 1.2rem;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s;
}
.aashto93-setup-insert-btn:hover, .aashto93-setup-insert-btn:focus-visible {
  background: rgba(255, 220, 195, 0.5);
  border-color: #d44a0a;
  border-style: solid;
  outline: none;
}

.aashto93-setup-insert-icon {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.aashto93-setup-add-end {
  display: flex;
  justify-content: center;
  padding: 0.6rem 0;
}

.aashto93-setup-add-row {
  display: flex;
  justify-content: center;
  margin-top: 0.2rem;
}

.aashto93-setup-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border: 0.1rem solid rgba(212, 74, 10, 0.14);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #fffdfa 0%, #fff6ef 100%);
  box-shadow: 0 0.2rem 1rem rgba(15, 23, 42, 0.05);
  margin-top: 0.8rem;
}
@media (max-width: 540px) {
  .aashto93-setup-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .aashto93-setup-footer > * {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.aashto93-setup-footer__primary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 100%;
}
@media (max-width: 540px) {
  .aashto93-setup-footer__primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
}

.aashto93-setup-editor-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0.15rem solid rgba(212, 74, 10, 0.22);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 1.4rem;
  min-height: 4.4rem;
  font-size: 1.25rem;
  color: #d44a0a;
  cursor: pointer;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s;
}
.aashto93-setup-editor-link:hover {
  background: rgba(255, 220, 195, 0.45);
  border-color: #d44a0a;
}
.aashto93-setup-editor-link:focus-visible {
  outline: 0.2rem solid #d44a0a;
  outline-offset: 0.2rem;
}

.aashto93-setup-footer .aashto93-btn-ghost-sm,
.aashto93-setup-footer .aashto93-result-btn {
  min-height: 4.4rem;
  padding: 0 1.6rem;
}

.aashto93-setup-footer .aashto93-result-btn {
  min-width: 24rem;
}

.aashto93-setup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  align-self: start;
}
@media (min-width: 900px) {
  .aashto93-setup-sidebar {
    position: sticky;
    top: 8rem;
  }
}

.aashto93-setup-sn-summary {
  background: #FFFFFF;
  border: 0.1rem solid rgba(212, 74, 10, 0.12);
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 0.2rem 1rem rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.aashto93-setup-sn-summary__eyebrow {
  font-size: 1.2rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.aashto93-setup-sn-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 220, 195, 0.25);
  border: 0.1rem solid rgba(212, 74, 10, 0.12);
  border-radius: 0.7rem;
  padding: 0.8rem 1.2rem;
}
.aashto93-setup-sn-hero__label {
  font-size: 1.3rem;
  color: #374151;
}
.aashto93-setup-sn-hero__val {
  font-size: 2.4rem;
  font-weight: 700;
  color: #d44a0a;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
  line-height: 1;
}

.aashto93-setup-sn-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.aashto93-setup-sn-row__label {
  font-size: 1.3rem;
  color: #374151;
}
.aashto93-setup-sn-row__val {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  font-family: "Raleway", system-ui, -apple-system, sans-serif;
}
.aashto93-setup-sn-row__val--req {
  color: #d44a0a;
}

.aashto93-setup-sn-note {
  font-size: 1.2rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.4;
}

.aashto93-setup-chart-panel {
  background: #FFFFFF;
  border: 0.1rem solid rgba(212, 74, 10, 0.12);
  border-radius: 1rem;
  padding: 1.4rem 1.6rem 1.6rem;
  box-shadow: 0 0.2rem 1rem rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.aashto93-setup-chart-panel__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.aashto93-setup-chart {
  min-height: 28rem;
  margin-top: 0;
  padding: 1.2rem 1.4rem 1.5rem;
}
.aashto93-setup-chart .aashto93-xsec-row {
  grid-template-columns: minmax(0, 1fr) 6.6rem;
}
.aashto93-setup-chart .aashto93-xsec-scale {
  display: none;
}
.aashto93-setup-chart .aashto93-xsec-ai {
  font-size: 1.2rem;
}
.aashto93-setup-chart .aashto93-xsec-layer {
  font-size: 1.55rem;
  padding: 0 1.2rem;
}
.aashto93-setup-chart .aashto93-xsec-legend {
  justify-content: center;
}

.dark-mode .pa-chat-config-header {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 106, 0, 0.18);
}
.dark-mode .pa-chat-config-header:hover {
  background: rgba(255, 106, 0, 0.12);
}
.dark-mode .pa-chat-config-title {
  color: rgba(255, 255, 255, 0.85);
}
.dark-mode .pa-config-chevron {
  color: rgba(255, 255, 255, 0.45);
}
.dark-mode .pa-chat-config {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 106, 0, 0.14);
}
.dark-mode .selector-label {
  color: rgba(255, 255, 255, 0.45);
}
.dark-mode .modo-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}
.dark-mode .modo-btn:hover {
  background: rgba(255, 106, 0, 0.15);
  color: #fff;
}
.dark-mode .modo-btn.activo {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  box-shadow: 0 0.3rem 1.2rem rgba(255, 106, 0, 0.5);
}
.dark-mode .flujo-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}
.dark-mode .flujo-btn:hover {
  background: rgba(255, 106, 0, 0.12);
  color: #fff;
}
.dark-mode .flujo-btn.activo {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  box-shadow: 0 0.2rem 0.8rem rgba(255, 106, 0, 0.45);
}
.dark-mode .pa-reset-toast {
  background: #1c1500;
  border-color: #d97706;
  color: #fde68a;
}
.dark-mode .pa-reset-toast__btn--limpiar {
  background: #dc2626;
}
.dark-mode .pa-reset-toast__btn--continuar {
  background: #181818;
  color: rgba(255, 255, 255, 0.75);
  border-color: #333333;
}
.dark-mode .pa-reset-toast__btn--continuar:hover {
  background: #222222;
}
.dark-mode .pa-action-bubble {
  background: #111111;
  border-color: #333333;
}
.dark-mode .pa-action-bubble p {
  color: #7dd3fc;
}
.dark-mode .propuesta-capas th {
  background: #222222;
}
.dark-mode .propuesta-capas td {
  color: rgba(255, 255, 255, 0.75);
  border-color: #333333;
}
.dark-mode .propuesta-capas tr:nth-child(even) td {
  background: #181818;
}
.dark-mode .propuesta-header {
  color: #60a5fa;
}
.dark-mode .sn-badge {
  background: #222222;
  color: #7dd3fc;
}
.dark-mode .aashto93-structure-choice__title {
  color: rgba(255, 255, 255, 0.88);
}
.dark-mode .aashto93-choice-card {
  background: rgba(212, 74, 10, 0.08);
  border-color: rgba(255, 122, 0, 0.2);
}
.dark-mode .aashto93-choice-card:hover, .dark-mode .aashto93-choice-card:focus-visible {
  background: rgba(212, 74, 10, 0.2);
  border-color: rgba(255, 122, 0, 0.55);
}
.dark-mode .aashto93-choice-card__label {
  color: rgba(255, 255, 255, 0.85);
}
.dark-mode .aashto93-choice-card__desc {
  color: #94a3b8;
}
.dark-mode .a93-context-band {
  background: rgba(212, 74, 10, 0.07);
  border-color: rgba(255, 122, 0, 0.14);
}
.dark-mode .a93-context-band__val {
  color: rgba(255, 255, 255, 0.88);
}
.dark-mode .a93-context-band__key {
  color: #94a3b8;
}
.dark-mode .a93-sn-hero__value {
  color: #ff7a00;
}
.dark-mode .a93-sn-hero__label,
.dark-mode .a93-sn-hero__caption {
  color: #94a3b8;
}
.dark-mode .aashto93-choice-card--primary {
  background: rgba(212, 74, 10, 0.15);
  border-color: rgba(255, 122, 0, 0.4);
}
.dark-mode .aashto93-choice-card--primary:hover, .dark-mode .aashto93-choice-card--primary:focus-visible {
  background: rgba(212, 74, 10, 0.28);
  border-color: #ff7a00;
}
.dark-mode .aashto93-choice-card__badge {
  background: #ff7a00;
  color: #1a0a00;
}
.dark-mode .a93-stage-nav--with-step .a93-stage-nav__step {
  background: rgba(212, 74, 10, 0.2);
  color: #ff7a00;
}
.dark-mode .a93-choice-footer {
  border-color: rgba(255, 122, 0, 0.12);
}
.dark-mode .aashto93-custom-structure-footer {
  border-color: rgba(255, 122, 0, 0.15);
}
.dark-mode .aashto93-btn-ghost-sm {
  color: #ff7a00;
  border-color: rgba(255, 122, 0, 0.3);
}
.dark-mode .aashto93-btn-ghost-sm:hover, .dark-mode .aashto93-btn-ghost-sm:focus-visible {
  background: rgba(212, 74, 10, 0.25);
}
.dark-mode .aashto93-setup-header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(18, 18, 18, 0.94));
  border-color: rgba(212, 74, 10, 0.72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dark-mode .aashto93-setup-header__title {
  color: rgba(255, 255, 255, 0.92);
}
.dark-mode .aashto93-setup-header__sub {
  color: #94a3b8;
}
.dark-mode .aashto93-setup-context-band {
  display: none;
}
.dark-mode .aashto93-setup-back-btn {
  border-color: rgba(255, 122, 0, 0.28);
  color: #ff7a00;
}
.dark-mode .aashto93-setup-back-btn:hover {
  background: rgba(212, 74, 10, 0.2);
  border-color: rgba(255, 122, 0, 0.5);
}
.dark-mode .aashto93-setup-card {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(0, 0, 0, 0.92));
  border-color: rgba(212, 74, 10, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dark-mode .aashto93-setup-remove {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(255, 255, 255, 0.02);
}
.dark-mode .aashto93-setup-remove:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.58);
}
.dark-mode .aashto93-setup-remove::after {
  background: rgba(10, 10, 10, 0.96);
  color: #fee2e2;
}
.dark-mode .aashto93-setup-card__header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.dark-mode .aashto93-setup-card__type-label {
  color: #64748b;
}
.dark-mode .aashto93-setup-card__color-label {
  color: #64748b;
}
.dark-mode .aashto93-setup-card__lbl {
  color: #64748b;
}
.dark-mode .aashto93-setup-card__num {
  box-shadow: 0 0.2rem 0.6rem rgba(212, 74, 10, 0.4);
}
.dark-mode .aashto93-setup-color {
  background: #111111;
  border-color: rgba(255, 122, 0, 0.22);
  box-shadow: none;
}
.dark-mode .aashto93-setup-color:hover {
  border-color: rgba(255, 122, 0, 0.42);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.4);
}
.dark-mode .aashto93-setup-type {
  background: #111111;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 122, 0, 0.22);
}
.dark-mode .aashto93-setup-type:disabled {
  background: #181818;
}
.dark-mode .aashto93-setup-am-toggle {
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.92) 0%, rgba(24, 24, 24, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0.1rem 0.2rem rgba(255, 255, 255, 0.03);
}
.dark-mode .aashto93-setup-card__mode-block {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.82) 0%, rgba(24, 24, 24, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 0.1rem rgba(255, 255, 255, 0.02);
}
.dark-mode .aashto93-setup-am-field {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.86) 0%, rgba(24, 24, 24, 0.94) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.dark-mode .aashto93-setup-am-btn {
  color: #94a3b8;
}
.dark-mode .aashto93-setup-am-btn.is-active {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #fff7ed;
  box-shadow: 0 0.15rem 0.45rem rgba(212, 74, 10, 0.28);
}
.dark-mode .aashto93-setup-am-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ff7a00;
}
.dark-mode .aashto93-setup-am-val {
  background: rgba(212, 74, 10, 0.18);
  border-color: rgba(255, 122, 0, 0.16);
  color: rgba(255, 255, 255, 0.9);
}
.dark-mode .aashto93-setup-am-val--na {
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
}
.dark-mode .aashto93-setup-am-na-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #64748b;
}
.dark-mode .aashto93-setup-am-field__lbl {
  color: #94a3b8;
}
.dark-mode .aashto93-setup-input {
  background: #111111;
  color: rgba(255, 255, 255, 0.9);
  border-color: #ff7a00;
}
.dark-mode .aashto93-setup-input:focus {
  box-shadow: 0 0 0 0.3rem rgba(255, 122, 0, 0.18);
}
.dark-mode .aashto93-setup-insert-btn {
  color: #ff7a00;
  border-color: rgba(255, 122, 0, 0.28);
}
.dark-mode .aashto93-setup-insert-btn:hover, .dark-mode .aashto93-setup-insert-btn:focus-visible {
  background: rgba(212, 74, 10, 0.22);
  border-color: #ff7a00;
}
.dark-mode .aashto93-setup-insert-between::before, .dark-mode .aashto93-setup-insert-between::after {
  background: rgba(255, 122, 0, 0.16);
}
.dark-mode .aashto93-setup-footer {
  border-top-color: rgba(255, 122, 0, 0.12);
}
.dark-mode .aashto93-setup-editor-link {
  color: #ff7a00;
  border-color: rgba(255, 122, 0, 0.28);
}
.dark-mode .aashto93-setup-editor-link:hover {
  background: rgba(212, 74, 10, 0.2);
  border-color: rgba(255, 122, 0, 0.5);
}
.dark-mode .aashto93-setup-card__mode-hint {
  color: #94a3b8;
}
.dark-mode .aashto93-setup-a-entry-note {
  color: #94a3b8;
}
.dark-mode .aashto93-setup-footer {
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.92) 0%, rgba(11, 11, 11, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-mode .aashto93-setup-sn-summary {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(18, 18, 18, 0.94));
  border-color: rgba(212, 74, 10, 0.72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dark-mode .aashto93-setup-sn-summary__eyebrow {
  color: #475569;
}
.dark-mode .aashto93-setup-sn-hero {
  background: rgba(212, 74, 10, 0.14);
  border-color: rgba(255, 122, 0, 0.18);
}
.dark-mode .aashto93-setup-sn-hero__label {
  color: #94a3b8;
}
.dark-mode .aashto93-setup-sn-hero__val {
  color: #ff7a00;
}
.dark-mode .aashto93-setup-sn-row__label {
  color: #94a3b8;
}
.dark-mode .aashto93-setup-sn-row__val {
  color: rgba(255, 255, 255, 0.9);
}
.dark-mode .aashto93-setup-sn-row__val--req {
  color: #ff7a00;
}
.dark-mode .aashto93-setup-sn-note {
  color: #475569;
}
.dark-mode .aashto93-setup-chart-panel {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(0, 0, 0, 0.92));
  border-color: rgba(212, 74, 10, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dark-mode .aashto93-setup-chart-panel__title {
  color: #888888;
}
.dark-mode .a93-terminal-msg {
  color: #86efac;
}
.dark-mode .aashto-composition-indicator {
  color: rgba(255, 255, 255, 0.9);
}
.dark-mode .aashto-comp-total {
  color: #ff7a00;
}
.dark-mode .aashto93-layer-chart, .dark-mode .aashto93-setup-chart {
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(0, 0, 0, 0.92));
  border-color: rgba(212, 74, 10, 0.28);
}
.dark-mode .aashto93-layer-chart-title {
  background: #181818;
  color: #ff7a00;
}
.dark-mode .aashto93-layer-chart-head {
  border-top-color: rgba(255, 122, 0, 0.25);
}
.dark-mode .aashto93-chart-tab {
  background: #111111;
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-mode .aashto93-chart-tab:hover {
  border-color: rgba(255, 122, 0, 0.5);
}
.dark-mode .aashto93-chart-tab.is-active {
  border-color: rgba(255, 122, 0, 0.72);
  background: rgba(212, 74, 10, 0.18);
  color: #ff7a00;
}
.dark-mode .aashto93-iso-wrap {
  background: linear-gradient(180deg, #111111 0%, #181818 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-mode .aashto93-iso-note {
  color: #64748b;
}
.dark-mode .aashto93-xsec-legend-item {
  color: #94a3b8;
}
.dark-mode .aashto93-xsec-scale {
  color: #94a3b8;
}
.dark-mode .aashto93-xsec-ai {
  color: #94a3b8;
}
.dark-mode .aashto93-xsec-empty {
  color: #64748b;
}
.dark-mode .aashto93-progress {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode .aashto93-setup-calc-input,
.dark-mode .aashto93-setup-calc-select {
  background: #111111;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 122, 0, 0.22);
}
.dark-mode .aashto93-setup-calc-input:focus,
.dark-mode .aashto93-setup-calc-select:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.18);
}
.dark-mode .aashto93-setup-card__body {
  background: #181818;
}
.dark-mode .aashto93-a-calc-panel {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-mode .aashto93-a-suggested {
  background: rgba(212, 74, 10, 0.12);
  border-color: rgba(255, 122, 0, 0.25);
  color: #ff7a00;
}
.dark-mode .aashto93-a-help {
  color: #64748b;
}
.dark-mode .aashto93-a-source {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}
.dark-mode .aashto93-a-source.is-manual {
  background: rgba(15, 118, 110, 0.18);
  color: #2dd4bf;
}
.dark-mode .aashto93-a-source.is-modulus {
  background: rgba(212, 74, 10, 0.18);
  color: #ff7a00;
}
.dark-mode .aashto93-layer-contrib {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}
.dark-mode .aashto93-layer-suggestion {
  background: rgba(212, 74, 10, 0.1);
  border-color: rgba(255, 122, 0, 0.22);
  color: #fbbf24;
}
.dark-mode .aashto93-mi-help {
  background: #181818;
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-mode .aashto93-mi-help summary {
  color: rgba(255, 255, 255, 0.85);
}
.dark-mode .aashto93-mi-help-intro {
  color: #94a3b8;
}
.dark-mode .aashto93-mi-help-source {
  color: #888888;
}
.dark-mode .aashto93-mi-table {
  background: #111111;
}
.dark-mode .aashto93-mi-table th, .dark-mode .aashto93-mi-table td {
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-mode .aashto93-mi-table thead th {
  background: #222222;
  color: rgba(255, 255, 255, 0.85);
}
.dark-mode .aashto93-mi-table tbody th {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
}
.dark-mode .aashto93-mi-table td {
  color: rgba(255, 255, 255, 0.7);
}
.dark-mode .aashto93-mi-link {
  background: #111111;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.12);
}
.dark-mode .aashto93-mi-link:hover {
  border-color: rgba(255, 122, 0, 0.5);
  color: #ff7a00;
}
.dark-mode .a93-stage-nav {
  border-bottom-color: rgba(255, 122, 0, 0.12);
}
.dark-mode .a93-stage-nav .a93-stage-nav__label {
  color: #64748b;
}
.dark-mode .a93-stage-context {
  color: #94a3b8;
}
.dark-mode .a93-stage-context strong {
  color: #ff7a00;
}
.dark-mode .aashto-validation-msg {
  color: #f87171;
}
.dark-mode .aashto-comp-total.is-complete {
  color: #4ade80;
}
.dark-mode .aashto-comp-total.is-warn {
  color: #fbbf24;
}
.dark-mode .aashto-comp-total.is-error {
  color: #f87171;
}

#a93Stage3[hidden], #a93Stage4[hidden], #a93Stage5[hidden], #a93Stage6[hidden], #a93Stage7[hidden] {
  display: none;
}

.a93-stage-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0 1.4rem;
  border-bottom: 1px solid rgba(212, 74, 10, 0.1);
  margin-bottom: 1.6rem;
}
.a93-stage-nav .a93-stage-nav__label {
  font-size: 1.3rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.a93-stage-header {
  text-align: center;
  padding: 0.8rem 0 1.2rem;
}

.a93-stage-context {
  font-size: 1.6rem;
  color: #475569;
}
.a93-stage-context strong {
  color: #d44a0a;
  font-size: 2rem;
}

.a93-terminal-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 0.2rem solid rgba(212, 74, 10, 0.2);
  text-align: center;
}

.a93-terminal-msg {
  font-size: 1.6rem;
  color: #166534;
  font-weight: 700;
}

.aashto-composition-indicator {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  margin-bottom: 0.8rem;
  width: 100%;
}

.aashto-composition-label {
  color: inherit;
  font-size: 1em;
}

.aashto-comp-total {
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1;
  color: #d44a0a;
}
.aashto-comp-total.is-complete {
  color: #166534;
}
.aashto-comp-total.is-warn {
  color: #92400e;
}
.aashto-comp-total.is-error {
  color: #dc2626;
}

.aashto-validation-msg {
  color: #dc2626;
  font-size: 1.3rem;
  text-align: center;
  min-height: 1.8rem;
  display: block;
}
.aashto-validation-msg.is-info {
  color: #b45309;
}

.aashto-validation-msg--panel {
  margin: 0.2rem auto 1rem;
  max-width: 72rem;
}

.aashto-traffic-field-error {
  display: block;
  min-height: 1.8rem;
  margin-top: 0.45rem;
  font-size: 1.2rem;
  line-height: 1.35;
  text-align: center;
  color: #b42318;
}
.aashto-traffic-field-error.is-info {
  color: #b45309;
}

#formDisenoAASHTO .aashto93-error,
#resultadoDisenoAASHTO .aashto93-error {
  display: none;
  margin-top: 0.25rem;
  font-size: 1.2rem;
  color: #b42318;
}
#formDisenoAASHTO .aashto93-error.is-visible,
#resultadoDisenoAASHTO .aashto93-error.is-visible {
  display: block;
}

#resultadoDisenoAASHTO .aashto93-feedback {
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid #d6dce5;
  border-left-width: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  font-size: 1.3rem;
  color: #334155;
  margin-top: 1.6rem;
}
#resultadoDisenoAASHTO .aashto93-feedback.is-error {
  border-color: rgba(180, 35, 24, 0.45);
  background: rgba(180, 35, 24, 0.06);
  color: #b42318;
}
#resultadoDisenoAASHTO .aashto-diseno-sn {
  padding: 1rem 1.4rem;
  margin: 1.6rem 0 1.2rem;
  background: linear-gradient(135deg, rgba(212, 74, 10, 0.08), rgba(255, 122, 0, 0.04));
  border: 1px solid rgba(212, 74, 10, 0.25);
  border-radius: 0.8rem;
  font-size: 1.6rem;
  color: #334155;
}
#resultadoDisenoAASHTO .aashto-diseno-sn strong {
  font-size: 2.4rem;
  color: #d44a0a;
  margin-left: 0.5rem;
}
#resultadoDisenoAASHTO .aashto-diseno-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
  margin-top: 0.8rem;
}
#resultadoDisenoAASHTO .aashto-diseno-tabla th {
  background: #d44a0a;
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
}
#resultadoDisenoAASHTO .aashto-diseno-tabla td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
#resultadoDisenoAASHTO .aashto-diseno-tabla tbody tr:hover {
  background: rgba(212, 74, 10, 0.04);
}

.dark-mode #resultadoDisenoAASHTO .aashto93-feedback {
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}
.dark-mode #resultadoDisenoAASHTO .aashto93-feedback.is-error {
  border-color: rgba(180, 35, 24, 0.5);
  background: rgba(180, 35, 24, 0.12);
  color: #fca5a5;
}
.dark-mode #resultadoDisenoAASHTO .aashto-diseno-sn {
  background: rgba(212, 74, 10, 0.12);
  border-color: rgba(255, 122, 0, 0.3);
  color: rgba(255, 255, 255, 0.85);
}
.dark-mode #resultadoDisenoAASHTO .aashto-diseno-sn strong {
  color: #ff7a00;
}
.dark-mode #resultadoDisenoAASHTO .aashto-diseno-tabla th {
  background: rgba(212, 74, 10, 0.85);
}
.dark-mode #resultadoDisenoAASHTO .aashto-diseno-tabla td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}
.dark-mode #resultadoDisenoAASHTO .aashto-diseno-tabla tbody tr:hover {
  background: rgba(255, 122, 0, 0.06);
}

#aashto93App .aashto93-nota-normativa {
  margin: 1.4rem 0 0;
  padding: 0.9rem 1.2rem;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid #e2e8f0;
  border-left: 3px solid #d44a0a;
  border-radius: 0.6rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #64748b;
}
#aashto93App .aashto93-nota-normativa strong {
  color: #334155;
}

#resultadoDisenoAASHTO .aashto-diseno-nota {
  margin-top: 1.2rem;
  padding: 0.85rem 1.1rem;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid #e2e8f0;
  border-left: 3px solid #d44a0a;
  border-radius: 0.6rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #64748b;
}
#resultadoDisenoAASHTO .aashto-diseno-nota strong {
  color: #334155;
}

.dark-mode #aashto93App .aashto93-nota-normativa,
.dark-mode #resultadoDisenoAASHTO .aashto-diseno-nota {
  background: rgba(18, 18, 18, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: #ff7a00;
  color: #94a3b8;
}
.dark-mode #aashto93App .aashto93-nota-normativa strong,
.dark-mode #resultadoDisenoAASHTO .aashto-diseno-nota strong {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
  #aashtoCalcView,
  #aashto93App,
  #resultadoAASHTOPanel,
  .aashto-entry-hub,
  .aashto-entry-hub__header,
  .aashto-entry-hub__heading,
  .aashto-entry-hub__compact,
  .aashto-entry-cards,
  .aashto-entry-card,
  .aashto-result-panel__shell,
  #aashto93App .aashto93-page-header,
  #aashto93App .aashto93-top-layout,
  #aashto93App .aashto93-topic-grid,
  #aashto93App .aashto93-topic-card,
  #aashto93App .aashto93-result-card,
  #aashto93App .aashto93-layers-layout,
  #aashto93App .aashto93-layers-main,
  #aashto93App .aashto93-layer-row,
  #aashto93App .aashto93-layer-grid,
  #aashto93App .aashto93-layer-chart,
  #aashto93App .aashto93-proposals,
  #aashto93App .aashto93-proposals-head,
  #aashto93App .aashto93-proposal-card,
  #aashto93App .aashto93-mi-help,
  #aashto93App .aashto93-mi-table-wrap,
  .aashto93-structure-choice,
  .aashto93-structure-choice__cards,
  .aashto93-choice-card,
  .aashto93-setup-header,
  .aashto93-setup-header__top,
  .aashto93-setup-header__title-group,
  .aashto93-setup-sidebar,
  .aashto93-setup-sn-summary,
  .aashto93-setup-chart-panel,
  .aashto93-setup-chart,
  .aashto93-setup-footer,
  .aashto93-setup-footer__primary,
  .a93-stage4-divider,
  .a93-terminal-state {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  #aashtoCalcView,
  #aashto93App,
  #resultadoAASHTOPanel,
  .aashto-entry-hub {
    overflow-x: hidden;
    overflow-x: clip;
  }
  #aashto93App .aashto93-mi-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #aashto93App .aashto93-topic-card--subrasante .aashto93-inline-inputs,
  #aashto93App .aashto93-inline-inputs {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #aashto93App .aashto93-unit-toggle {
    width: 100%;
    min-width: 0;
  }
  #aashto93App .aashto93-inline-inputs input,
  #aashto93App .aashto93-inline-inputs select,
  #aashto93App .aashto93-topic-card--subrasante .aashto93-inline-inputs input,
  #aashto93App .aashto93-topic-card--subrasante .aashto93-inline-inputs select,
  #aashto93App .aashto93-form-grid input,
  #aashto93App .aashto93-form-grid select {
    min-width: 0;
    max-width: 100%;
  }
  #aashto93App .aashto93-meta,
  .aashto-composition-indicator,
  .aashto93-proposals-head,
  .a93-stage4-divider,
  .aashto93-setup-header__top,
  .aashto93-setup-footer__primary {
    flex-wrap: wrap;
  }
  #aashto93App .aashto93-step {
    min-width: 0;
    width: 100%;
  }
  .aashto-entry-hub__compact-value,
  .aashto-entry-card__title,
  .aashto-entry-card__text,
  .aashto-entry-card__hint,
  #aashto93App .aashto93-result-kpi,
  #aashto93App .aashto93-proposals-meta,
  #aashto93App .aashto93-layer-title-text,
  .aashto93-choice-card__desc,
  .a93-terminal-msg {
    overflow-wrap: anywhere;
  }
}
/** Media Queries **/
.modulos {
  padding: 4rem 0 6rem;
}
.modulos .modulos__titulo {
  font-weight: 700;
  font-size: 4rem;
  margin-bottom: 3rem;
}
.modulos .modulos__intro {
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.modulos .modulos__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
  .modulos .modulos__grid {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .modulos .modulos__grid {
    display: grid;
    gap: 2.4rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tarjeta */
.modulo-card {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 2rem 2.2rem;
  border-radius: 1.2rem;
  min-height: 150px;
  /* Fondo y CUADRO */
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  /* ← cuadro más visible */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 10px 28px rgba(0, 0, 0, 0.28);
  /* sombra para “tarjeta” */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.modulo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 183, 5, 0.6);
  /* resalta el cuadro al hover */
  box-shadow: 0 0 0 1px rgba(242, 183, 5, 0.35) inset, 0 12px 32px rgba(0, 0, 0, 0.45);
}
.modulo-card__title {
  color: #FFFFFF;
  font-size: 3rem;
  line-height: 1.2;
  margin: 0 0 0.8rem 0;
}
.modulo-card__desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.45rem;
  line-height: 1.55;
  margin: 0;
}
.modulo-card__line {
  display: block;
  height: 0.6rem;
  width: 82%;
  margin-top: 1.4rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

/* ===== Layout y grid global ===== */
.pg-container {
  max-width: 80rem;
  margin: 4rem auto;
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
  /* cuadriculado sutil como en espectros */
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 0.1rem, transparent 0.1rem), linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0.1rem, transparent 0.1rem);
  background-size: 2.4rem 2.4rem;
}

.pg-page {
  background: transparent !important;
  background-image: none !important;
}

/* si quieres un “halo” extra alrededor del panel (opcional) */
.pg-container--lift {
  position: relative;
}

.pg-container--lift::before {
  content: "";
  position: absolute;
  inset: -1.2rem;
  border-radius: 2rem;
  pointer-events: none;
  background: radial-gradient(28rem 18rem at 10% 10%, rgba(0, 0, 0, 0.06), transparent 60%), radial-gradient(30rem 20rem at 90% 20%, rgba(0, 0, 0, 0.05), transparent 60%), radial-gradient(26rem 18rem at 50% 100%, rgba(0, 0, 0, 0.06), transparent 60%);
  filter: blur(10px);
  z-index: -1;
}

/* en impresión: sin sombras/halo para que no “ensucie” el PDF */
@media print {
  .pg-container {
    box-shadow: none !important;
    background-image: none !important;
  }
  .pg-container--lift::before {
    display: none !important;
  }
}
.pg-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  margin-top: 1rem;
}

.pg-panel-title {
  margin: 0.2rem 0 1rem;
  font-weight: 700;
}

/* Oculto hasta calcular */
.is-hidden {
  display: none;
}

/* ---------- Form (inputs largos) ---------- */
.pg-form {
  display: grid;
  gap: 0.8rem;
}

.pg-label {
  font-weight: 700;
}

.pg-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa3af 50%), linear-gradient(135deg, #9aa3af 50%, transparent 50%), linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px), 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5rem 100%;
  background-repeat: no-repeat;
}

.pg-input::placeholder {
  color: #9aa3af;
}

.pg-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 74, 6, 0.15);
}

.pg-calc-btn {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: #d44a0a;
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
}
.pg-calc-btn:hover {
  background-color: #d44a0a;
}

/* ---------- Resultados ---------- */
.pg-top-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .pg-top-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.pg-card {
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.pg-chip {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #0b2a59;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pg-chip.orange {
  background: #fff3e7;
  color: #ff8a00;
}

.pg-title-mini {
  color: #4b5563;
  margin-bottom: 0.35rem;
}

.pg-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0b2a59;
}

.pg-big.orange {
  color: #ff8a00;
}

.pg-h3 {
  margin: 0.25rem 0 1rem;
}

/* KPIs */
.pg-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 720px) {
  .pg-kpis {
    grid-template-columns: 1fr;
  }
}
.pg-kpi {
  background: #e1e1e1;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 1rem;
}

.pg-kpi-label {
  color: #4b5563;
}

.pg-kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
}

/* stats y tablas */
.pg-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 720px) {
  .pg-stats {
    grid-template-columns: 1fr;
  }
}
.pg-stat {
  background: #f3f6fa;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 1rem;
}

.pg-stat-label {
  color: #4b5563;
}

.pg-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.pg-stat-value.orange {
  color: #ff8a00;
}

.pg-table-wrap {
  overflow: auto;
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.pg-table th,
.pg-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eef1f4;
  text-align: center;
}

.pg-table th {
  font-weight: 700;
  color: #000000;
  background: #fafbfc;
  text-align: center;
}

.pg-table td.center,
.pg-table th.center {
  text-align: center;
}

/* desplegables */
.pg-accordion {
  border-top: 1px dashed #eaeef2;
  margin-top: 0.6rem;
  padding-top: 0.4rem;
}

.pg-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

.pg-summary .chev {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.pg-accordion[open] .pg-summary .chev {
  transform: rotate(-135deg) translateY(1px);
}

/* acciones */
.pg-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.pg-pdf-btn {
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  color: #000000;
}

.pg-pdf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Soporte de saltos para html2pdf ===== */
@media print {
  .html2pdf__page-break {
    page-break-before: always;
    break-before: page;
  }
}
/* ===== Plantilla PDF (#pg-print) tipografía simple ===== */
#pg-print {
  display: none;
}

#pg-print h1 {
  margin: 0 0 12px;
}

#pg-print h2 {
  margin: 10px 0 6px;
}

#pg-print h3 {
  margin: 10px 0 6px;
}

#pg-print table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0;
}

#pg-print th,
#pg-print td {
  border: 1px solid #ddd;
  padding: 6px 8px;
}

.pg-calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: #d34a06;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.pg-calc-btn .icon-drop {
  width: 1.1em;
  height: 1.1em;
  fill: #111;
  /* negra */
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  /* evita “bold” en algunos navegadores al escalar */
}

.pg-calc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pg-calc-btn:hover:not(:disabled) {
  filter: brightness(0.95);
}

.pg-calc-btn:active:not(:disabled) {
  transform: translateY(1px);
}

/* Base para TODOS los iconos de títulos */
.pg-ico {
  width: 1.3em;
  height: 1.3em;
  margin-right: 0.45rem;
  vertical-align: -0.15em;
  /* alinea con el texto */
  flex: 0 0 auto;
}

/* Variantes de color */
.pg-ico--hot {
  color: #ff8a00;
}

/* naranja */
.pg-ico--cold {
  color: #0b2a59;
}

/* azul oscuro */
/* Opcional: modo oscuro/impresión */
@media (prefers-color-scheme: dark) {
  .pg-ico--cold {
    color: #9ec3ff;
  }
}
@media print {
  .pg-ico {
    color: #111;
  }
}
/* estado base */
.pg-calc-btn {
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  will-change: transform, box-shadow, filter;
}

/* glow fosforescente */
.pg-calc-btn:hover:not(:disabled),
.pg-calc-btn:focus-visible {
  transform: translateY(-1px);
  /* combo: borde + halo cercano + halo lejano */
  box-shadow: 0 0 0 0.16rem rgba(212, 74, 10, 0.35), 0 0 1.2rem rgba(212, 74, 10, 0.7), 0 0 2.4rem rgba(212, 74, 10, 0.45);
  filter: saturate(1.1);
  outline: 0;
}

/* efecto “latido” opcional (neón suave) */
@keyframes pulse-neon {
  0%, 100% {
    box-shadow: 0 0 0 0.16rem rgba(212, 74, 10, 0.35), 0 0 1rem rgba(212, 74, 10, 0.55), 0 0 2rem rgba(212, 74, 10, 0.35);
  }
  50% {
    box-shadow: 0 0 0 0.16rem rgba(212, 74, 10, 0.45), 0 0 1.6rem rgba(212, 74, 10, 0.85), 0 0 3.2rem rgba(212, 74, 10, 0.55);
  }
}
.pg-calc-btn:hover:not(:disabled) {
  animation: pulse-neon 1.4s ease-in-out infinite;
}

/* accesibilidad */
.pg-calc-btn:focus-visible {
  outline: 2px solid rgba(212, 74, 10, 0.6);
  outline-offset: 2px;
}

/* respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  .pg-calc-btn,
  .pg-calc-btn:hover {
    animation: none;
    transform: none;
  }
}
/* ---------- Tarjetas de resultados ---------- */
.pg-top-cards .pg-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.2s ease;
  will-change: transform, box-shadow;
  /* mantiene tu fondo actual; solo insinuamos el borde */
  border-color: rgba(212, 74, 10, 0.6);
}

.pg-top-cards .pg-card:hover,
.pg-top-cards .pg-card:focus-within {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 0 0 0.14rem rgba(212, 74, 10, 0.35), 0 0 1.2rem rgba(212, 74, 10, 0.7), 0 0 2.4rem rgba(212, 74, 10, 0.45);
  /* brillo lejano */
  border-color: #d44a0a;
}

.pg-top-cards .pg-card:active {
  transform: translateY(-1px) scale(1.005);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  /* apaga un poco al presionar */
}

/* ---------- Botón: Descargar PDF ---------- */
.pg-pdf-btn {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.22s ease, filter 0.2s ease;
  will-change: transform, box-shadow;
  border: 1px solid #d44a0a;
  /* sin cambiar fondo */
}

.pg-pdf-btn:hover:not(:disabled),
.pg-pdf-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 0.14rem rgba(212, 74, 10, 0.35), 0 0 1.2rem rgba(212, 74, 10, 0.7), 0 0 2.4rem rgba(212, 74, 10, 0.45);
  /* brillo lejano */
  outline: 0;
}

.pg-pdf-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.pg-pdf-btn:disabled {
  box-shadow: none !important;
  filter: none !important;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .pg-top-cards .pg-card,
  .pg-pdf-btn {
    transition: none;
  }
  .pg-top-cards .pg-card:hover,
  .pg-top-cards .pg-card:focus-within,
  .pg-pdf-btn:hover,
  .pg-pdf-btn:focus-visible {
    transform: none;
  }
}
.imagen {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 1rem rgba(255, 106, 0, 0.35);
}
.imagen img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}
.imagen:hover {
  transform: scale(1.05);
  box-shadow: 0 0 1.6rem rgba(255, 106, 0, 0.6), 0 0 3.6rem rgba(255, 106, 0, 0.35);
}
.imagen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.imagen:hover::after {
  opacity: 1;
}

/** Media Queries **/
/* ========================================
   Chat widget
======================================== */
.pa-chat {
  --chat-w: clamp(36rem, 26vw, 48rem);
  --chat-h: 65vh;
  position: fixed;
  right: 2.4rem;
  bottom: 10rem;
  width: var(--chat-w);
  height: var(--chat-h);
  display: none;
  grid-template-rows: auto auto 1fr auto;
  background: rgba(245, 195, 159, 0.3803921569);
  color: #FFFFFF;
  border-radius: 1.8rem;
  overflow: hidden;
  z-index: 10000;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.45), 0 0 0 0.1rem rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(1.4rem) saturate(120%);
  -webkit-backdrop-filter: blur(1.4rem) saturate(120%);
}
.pa-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 1.8rem;
  border: 0.2rem solid #ff6a00;
  box-shadow: 0 0 1.4rem #ff6a00, 0 0 3.6rem rgba(212, 74, 10, 0.45), inset 0 0 2.8rem rgba(255, 106, 0, 0.12);
  animation: pa-glow 2.6s ease-in-out infinite alternate;
}
.pa-chat.open {
  display: grid;
}

.pa-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.12), rgba(255, 106, 0, 0) 40%), rgba(255, 255, 255, 0.02);
  border-bottom: 0.1rem solid rgba(255, 106, 0, 0.22);
}

.pa-fin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  max-width: max-content;
}

.pa-fin-logo {
  width: 7rem;
  height: 7rem;
  flex: 0 0 7rem;
  border-radius: 50%;
  background: #d44a0a;
  object-fit: contain;
  box-shadow: 0 0 1.2rem rgba(255, 106, 0, 0.35);
  margin-right: 1rem;
}

.pa-fin-titles {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  flex: 0 0 auto;
  min-width: 0;
  width: fit-content;
  max-width: 22rem;
  white-space: nowrap;
}
.pa-fin-titles strong {
  display: inline-block;
  font-size: 1.4rem;
  line-height: 1.05;
  padding: 0.2rem 0.6rem;
  border-radius: 0.9rem;
  background: rgba(255, 106, 0, 0.1);
  box-shadow: 0 0 0 0.1rem rgba(255, 106, 0, 0.22) inset;
  color: #000000;
}
.pa-fin-titles span {
  font-weight: 700;
  display: inline;
  font-size: 1.2rem;
  color: #000000;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-chat__actions button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
  color: #000000;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.08s ease;
}
.pa-chat__actions button:hover {
  opacity: 1;
  transform: translateY(-0.1rem);
}

.pa-chat__body {
  padding: 1.4rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pa-chat__body::-webkit-scrollbar {
  width: 1rem;
}
.pa-chat__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
}

.pa-msg {
  padding: 1rem 1.2rem;
  line-height: 1.45;
  max-width: 86%;
  word-wrap: break-word;
  font-size: 1.45rem;
  animation: pa-msg-in 0.18s ease both;
}

.pa-user,
.pa-msg--user {
  align-self: flex-end;
  background: #ff6a00;
  color: #FFFFFF;
  border-radius: 1.6rem 1.6rem 0.3rem 1.6rem;
  box-shadow: 0 0.3rem 0.8rem rgba(212, 74, 10, 0.4);
}

.pa-bot,
.pa-msg--assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.75);
  color: #222;
  border: 0.1rem solid rgba(212, 74, 10, 0.15);
  border-left: 0.3rem solid #ff6a00;
  border-radius: 1.6rem 1.6rem 1.6rem 0.3rem;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.08);
}

.pa-typing,
.pa-msg--typing {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 0.1rem solid rgba(255, 255, 255, 0.12) !important;
  border-left: 0.3rem solid rgba(255, 106, 0, 0.6) !important;
  border-radius: 1.6rem 1.6rem 1.6rem 0.3rem !important;
  padding: 0.9rem 1.2rem !important;
  display: flex !important;
  gap: 0.45rem;
  align-items: center;
}
.pa-typing span,
.pa-msg--typing span {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  animation: pa-dot-bounce 0.9s ease-in-out infinite;
}
.pa-typing span:nth-child(2),
.pa-msg--typing span:nth-child(2) {
  animation-delay: 0.18s;
}
.pa-typing span:nth-child(3),
.pa-msg--typing span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes pa-msg-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pa-dot-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-0.5rem);
    opacity: 1;
  }
}
.pa-chat__foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 0.1rem solid rgba(255, 106, 0, 0.18);
}

.pa-input {
  margin: 0;
  flex: 1;
  height: 4.2rem;
  border: 0.15rem solid rgba(255, 106, 0, 0.25);
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: #000000;
  border-radius: 2.2rem;
  padding: 0 1.4rem;
  font-size: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pa-input:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 0.25rem rgba(255, 106, 0, 0.22);
}
.pa-input::placeholder {
  color: rgba(212, 74, 10, 0.55);
  font-style: italic;
}

.pa-send {
  margin: 0;
  border: 0;
  height: 4.2rem;
  min-width: 4.2rem;
  border-radius: 2.2rem;
  background: #ff6a00;
  color: #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.8rem 2rem rgba(212, 74, 10, 0.35);
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.pa-send:hover {
  background-color: #d44a0a;
  transform: scale(1.04);
}
.pa-send:active {
  transform: translateY(0.1rem);
  opacity: 0.9;
}

/* ========================================
   Chat toggle button
======================================== */
.pa-chat__toggle {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 9999;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 2rem 0.6rem rgba(255, 102, 0, 0.8);
  transition: transform 0.08s ease, background-color 0.2s ease, color 0.2s ease;
}
.pa-chat__toggle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 3px solid rgba(255, 122, 0, 0.85);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  animation: pa-ring 2.2s ease-out infinite;
}
.pa-chat__toggle:hover::after, .pa-chat__toggle:focus-visible::after {
  opacity: 1;
}
.pa-chat__toggle.show-help {
  animation: pa-wiggle 0.6s ease-in-out 1;
}

.pa-toggle-chatlogo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 0 0.2rem rgba(0, 0, 0, 0.25));
}

.pa-toggle-icon {
  display: none;
  height: 2rem;
  color: #FFFFFF;
}

.pa-chat.open + .pa-chat__toggle {
  height: 5rem;
  width: 5rem;
  right: 2rem;
  bottom: 2rem;
  background: #ff6a00;
}
.pa-chat.open + .pa-chat__toggle .pa-toggle-chatlogo {
  display: none;
}
.pa-chat.open + .pa-chat__toggle .pa-toggle-icon {
  display: block;
}

.pa-help-bubble {
  position: fixed;
  right: 7.2rem;
  bottom: 2rem;
  transform: translateY(0) translateX(8px);
  background: #ff7a00;
  color: #111;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 0.8rem;
  box-shadow: 0 0 0.35rem rgba(255, 122, 0, 0.85), 0 0.3rem 1rem rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 9998;
}
.pa-help-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ff7a00;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.pa-chat__toggle.show-help ~ .pa-help-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(0);
}

/* ========================================
   Media queries
======================================== */
@media (max-width: 768px) {
  .pa-chat {
    --chat-h: 70vh;
    right: max(1.2rem, env(safe-area-inset-right));
    left: max(1.2rem, env(safe-area-inset-left));
    bottom: 1.2rem;
    width: auto;
    height: var(--chat-h);
    max-width: calc(100vw - max(1.2rem, env(safe-area-inset-left)) - max(1.2rem, env(safe-area-inset-right)));
  }
  .pa-chat__head,
  .pa-chat__foot,
  .pa-fin-brand,
  .pa-fin-titles {
    min-width: 0;
  }
  .pa-fin-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 3.6rem);
  }
  .pa-fin-logo {
    width: 5.2rem;
    height: 5.2rem;
    flex: 0 0 5.2rem;
    margin-right: 0.6rem;
  }
  .pa-fin-titles {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
  .pa-fin-titles strong,
  .pa-fin-titles span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .pa-chat__foot {
    gap: 0.6rem;
  }
  .pa-send {
    margin: 0;
    flex: 0 0 4.2rem;
  }
  .pa-chat__toggle {
    right: 1.2rem;
    bottom: 1.2rem;
    width: 4.4rem;
    height: 4.4rem;
  }
  .pa-chat.open + .pa-chat__toggle {
    right: 1.2rem;
    bottom: calc(1.2rem + var(--chat-h) + 1.2rem);
  }
  .pa-help-bubble {
    display: none;
  }
}
@media (max-width: 480px) {
  .pa-chat {
    --chat-h: min(72vh, 62rem);
    right: max(0.8rem, env(safe-area-inset-right));
    left: max(0.8rem, env(safe-area-inset-left));
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    max-width: calc(100vw - max(0.8rem, env(safe-area-inset-left)) - max(0.8rem, env(safe-area-inset-right)));
  }
  .pa-chat__head,
  .pa-chat__body,
  .pa-chat__foot {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}
#pa-chat.open ~ .pa-help-bubble {
  display: none !important;
}

#pa-chat.open ~ #pa-chat-toggle,
#pa-chat.open ~ #pa-chat-toggle.show-help,
#pa-chat.open ~ #pa-chat-toggle:hover,
#pa-chat.open ~ #pa-chat-toggle:focus,
#pa-chat.open ~ #pa-chat-toggle:focus-visible {
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
  outline: 0 !important;
}

#pa-chat.open ~ #pa-chat-toggle::before,
#pa-chat.open ~ #pa-chat-toggle::after {
  opacity: 0 !important;
  animation: none !important;
  pointer-events: none;
}

.pa-chat.open {
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35), 0 0 0 0.1rem rgba(255, 255, 255, 0.06) inset;
}

.pa-chat__toggle--pavmanager {
  bottom: 8rem;
}

/* Sección Sistema Mezclas */
.mixsys {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  color: #333333;
}
.mixsys__container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.mixsys__title {
  font-weight: 900;
  margin: 0 0 0.25rem;
}
.mixsys__subtitle {
  text-align: center;
  color: #333333;
  opacity: 0.75;
  margin: 0 0 1.8rem;
  font-size: 2.2rem;
}
.mixsys__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
@media (max-width: 768px) {
  .mixsys__grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas */
.tool-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: clamp(1rem, 2.2vw, 1.25rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tool-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
}
.tool-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ffdcc3;
  color: #d44a0a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.tool-card__svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.tool-card__title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #121212;
}
.tool-card__desc {
  margin: 0.1rem 0 0;
  color: #333333;
  opacity: 0.8;
  font-size: 1.4rem;
}
.tool-card__list {
  margin: 2rem 1.2rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}
.tool-card__list li {
  list-style: disc;
  color: #333333;
  font-weight: 400;
  font-size: 1.4rem;
}
.tool-card__actions {
  margin-top: 0.4rem;
}
.tool-card h3 {
  font-size: 2rem;
}

/* Botón */
.btn {
  --py: .8rem;
  --px: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--py) var(--px);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn--dark {
  color: #FFFFFF;
  background: #333333;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.btn--dark:hover {
  transform: translateY(-1px);
  background: #d44a0a;
}
.btn--dark:active {
  transform: translateY(0);
}

/* Ajustes finos en móvil */
@media (max-width: 480px) {
  .tool-card__icon {
    width: 48px;
    height: 48px;
  }
  .tool-card__svg {
    width: 24px;
    height: 24px;
  }
}
.dark-mode .tool-card {
  border: 1px solid rgba(212, 74, 10, 0.3);
}
.dark-mode .tool-card__list li {
  color: #FFFFFF;
}
.dark-mode .tool-card__icon {
  background: #000000;
}

/* ====== CONTENEDOR GENERAL ====== */
.mix-type {
  border: 1px solid #d44a0a;
  border-radius: 0.8rem;
  padding: 1rem;
}

.mix-dose {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  color: #333333;
}
.mix-dose__container {
  width: min(1150px, 92%);
  margin-inline: auto;
}
.mix-dose__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mix-dose__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffdcc3;
  color: #d44a0a;
}
.mix-dose__svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.mix-dose__title {
  margin: 2rem 0 0 0;
  font-weight: 900;
  font-size: 3rem;
  color: #121212;
}
.mix-dose__subtitle {
  margin: 0.15rem 0 0;
  opacity: 0.8;
}

/* ====== CHIPS TIPO MEZCLA ====== */
.mix-type__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
@media (max-width: 768px) {
  .mix-type__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .mix-type__grid {
    grid-template-columns: 1fr;
  }
}

.chip {
  appearance: none;
  border: 1px solid #d44a0a;
  background: #FFFFFF;
  color: #333333;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover {
  background: #ff6a00;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.chip--active {
  background: #d44a0a;
  color: #FFFFFF;
}

/* ====== AGREGADOS ====== */
.agg {
  margin-top: 1rem;
}
.agg__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.agg__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.agg__empty {
  border: 1px dashed #d44a0a;
  border-radius: 12px;
  padding: 2.4rem 1rem;
  text-align: center;
  color: #333333;
  background: #FFFFFF;
}
.agg__empty p {
  margin: 0 0 1rem;
  opacity: 0.8;
}
.agg__list {
  display: grid;
  gap: 1rem;
}

/* ====== TARJETA DE AGREGADO ====== */
.agg-card {
  background: #FFFFFF;
  border: 1px solid #d44a0a;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.agg-card__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0;
}
.agg-card__name {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  background: #f6f7f9;
  font-weight: 700;
}
.agg-card__remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: red;
  box-shadow: none;
  width: 2.4rem;
  height: 2.4rem;
  filter: brightness(0) saturate(100%) invert(13%) sepia(96%) saturate(6362%) hue-rotate(359deg) brightness(99%) contrast(104%);
  margin: 0 2rem;
}
.agg-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.agg-card .agg-field {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.agg-card .agg-field span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  padding: 0 0.8rem;
  background: #f6f7f9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: #333333;
  font-weight: 700;
}
.agg-card .agg-field input[type=number] {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.8rem;
  background: #FFFFFF;
}
.agg-card__footer {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}
.agg-card__label {
  color: #333333;
  opacity: 0.9;
  font-weight: 700;
  display: block;
  text-align: center;
}
.agg-card__slider {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 0.6rem;
}
.agg-card__slider input[type=range] {
  accent-color: #d44a0a;
  height: 6px;
  background: #e1e1e1;
  border-radius: 999px;
}
.agg-card__slider .agg-card__slider-val {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  text-align: center;
}

/* ====== CÁLCULO ====== */
.calc__panel {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.2rem 0.6rem 0.8rem;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.calc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.4rem;
  font-weight: 700;
  cursor: default;
}

.calc__icon {
  font-size: 2rem;
  display: block;
  margin: 0 auto;
}

.calc__actions {
  padding: 0.6rem;
}

.btn--full {
  width: 100%;
}

/* ====== TOGGLES (checkbox personalizados) ====== */
#combo-toggle {
  margin: 1rem 0 0.4rem;
}

.pill__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #FFFFFF;
  color: #333333;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pill__toggle:hover {
  background: rgba(245, 195, 159, 0.3803921569);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.pill__toggle input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d44a0a;
  border-radius: 6px;
  background: #FFFFFF;
  display: inline-grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.pill__toggle input[type=checkbox]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.35); /* $ambar */
}
.pill__toggle input[type=checkbox]::after {
  content: "";
  width: 6px;
  height: 12px;
  border: 3px solid transparent;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  position: absolute;
  top: 0px;
  left: 6px;
}
.pill__toggle input[type=checkbox]:checked {
  background: #d44a0a;
  border-color: #d44a0a;
}
.pill__toggle input[type=checkbox]:checked::after {
  border-color: #FFFFFF;
}
.pill__toggle input[type=checkbox]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pill__mass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  font-weight: 700;
}
.pill__mass input[type=number] {
  width: 110px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

/* ====== CURVAS ====== */
.curves__card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.8rem 0.8rem 1rem;
  margin-top: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.curves__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.curves__head h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.curves__icon {
  font-size: 1.1rem;
}

.curves__plot {
  height: 60rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.curves__legend {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: #333333;
  opacity: 0.9;
}
.curves__legend li {
  margin: 0.25rem 0;
}

/* ====== BOTONES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s;
}
.btn--dark {
  color: #FFFFFF;
  background: #d44a0a;
}
.btn--dark:hover {
  color: #000000;
  background: #ff6a00;
  transform: translateY(-1px);
}
.btn--dark:active {
  transform: translateY(0);
}
.btn--light {
  background: #d44a0a;
  color: #333333;
  margin: 2rem 0 0.5rem 0.7rem;
}
.btn--light:hover {
  background: rgba(245, 195, 159, 0.3803921569);
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
  .agg-field {
    grid-template-columns: 100px 1fr;
  }
}
@media (max-width: 480px) {
  .mix-dose__head {
    grid-template-columns: 1fr;
  }
  .agg-field {
    grid-template-columns: 90px 1fr;
  }
}
.spec-results {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.spec-results__head {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.spec-results__head--ok {
  background: #f0fff5;
  border-color: #b8e6c7;
  color: #165d2b;
}

.spec-results__head--bad {
  background: #fff5f5;
  border-color: #f0c2c2;
  color: #7a1d1d;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.spec-table thead th {
  background: #f7f7f9;
  font-weight: 600;
}

.spec-table tr.fail {
  background: #fff4f4;
}

.spec-table td.ok {
  color: #1d7a36;
  font-weight: 600;
}

.spec-table td.bad {
  color: #c72424;
  font-weight: 600;
}

/* ===== EXTENSIONES NUEVAS (manteniendo tu sistema de variables) ===== */
/* Totales + botón calcular */
.agg__totals {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .btn--full-sm {
    width: 100%;
  }
}

/* Nota de dosificación (verde/rojo) */
.blend-note {
  font-weight: 700;
  color: #333333;
}
.blend-note--ok {
  color: #1d7a36;
}
.blend-note--bad {
  color: #c72424;
}

/* Propiedades de calidad (details) */
.agg-props {
  margin-top: 0.8rem;
}
.agg-props summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.4rem 0.2rem;
  color: #333333;
}
.agg-props summary:hover {
  color: #d44a0a;
}
.agg-props__row {
  margin: 0.6rem 0;
}
.agg-props__row select {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}
.agg-props__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
@media (max-width: 768px) {
  .agg-props__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.agg-props__grid input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}
.agg-props__panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0.4rem 0;
}
.agg-props__panel h4 {
  grid-column: 1/-1;
  margin: 0.2rem 0 0.4rem;
  font-weight: 700;
  color: #333333;
}
.agg-props__panel input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}
@media (max-width: 768px) {
  .agg-props__panel {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .agg-props__panel {
    grid-template-columns: 1fr;
  }
}

/* Curvas: mantenemos tu tarjeta; solo definimos altura si no la tenías */
.curves__plot {
  height: 40rem;
}

/* Propiedades combinadas */
.combined {
  margin-top: 1rem;
}
.combined__extra {
  margin-top: 0.6rem;
}
.combined__extra label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.combined__extra label input {
  width: 110px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

/* Slider (respetando tu línea visual) */
.agg-card__slider input[type=range] {
  --rangeFill: #d44a0a;
}

/* ===== Panel de cálculo / nota de dosificación ===== */
.calc__panel {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.2rem 0.6rem 0.8rem;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.calc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.4rem;
  font-weight: 700;
  cursor: default;
}

/* ===== Calidad (plegable en cada tarjeta) ===== */
.quality__actions {
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.quality {
  margin-top: 0.8rem;
}

.quality__row {
  margin-bottom: 0.6rem;
}

.quality__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quality__select {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #f6f7f9;
}

.quality__title {
  margin: 0.6rem 0 0.4rem;
  font-weight: 700;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.6rem;
}

.quality-field {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.quality-field > label {
  font-weight: 700;
}

.quality-field .q-val,
.quality-field .q-max {
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

.quality-max {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 0.35rem;
}

.quality-max span {
  display: inline-grid;
  place-items: center;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.4rem;
  background: #f6f7f9;
  font-weight: 700;
  color: #333333;
}

/* ===== Tabla de combinadas ===== */
#combo-props {
  margin-top: 1rem;
}

/* ===== Curvas (altura grande ya la tienes) ===== */
.curves__plot {
  height: 60rem;
}

/* Mantener botones/estilos existentes */
.btn--full {
  width: 100%;
}

/* Responsive ajustes para calidad */
@media (max-width: 768px) {
  .quality-grid {
    grid-template-columns: 1fr;
  }
  .quality-field {
    grid-template-columns: 1fr 120px 110px;
  }
}
/* -------- Ajuste: propiedades en UNA sola columna -------- */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* una sola columna */
  gap: 0.6rem;
}

/* Mantener estilo de cada fila de propiedad */
.quality-field {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  /* label | valor | Máx */
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.quality-field > label {
  font-weight: 700;
}

.quality-field .q-val,
.quality-field .q-max {
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

.quality-max {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 0.35rem;
}

.quality-max span {
  display: inline-grid;
  place-items: center;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.4rem;
  background: #f6f7f9;
  font-weight: 700;
  color: #333333;
}

/* -------- Pastilla: resaltado del total -------- */
.pill-table tfoot .pill-total {
  background: #fff59a;
  /* amarillo suave */
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

/* Responsive leve (por si hace falta) */
@media (max-width: 768px) {
  .quality-field {
    grid-template-columns: 1fr 120px 110px;
  }
}
/* ===== Propiedades: fila limpia con botón "Calcular" ===== */
.prop-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto 140px;
  /* label | valor | botón | Máx */
  gap: 0.6rem;
  align-items: center;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  margin: 0.6rem 0;
}

.prop-row__label {
  font-weight: 700;
  color: #333333;
}

.prop-row__value {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
  width: 100%;
}

.prop-row__calc-btn {
  height: 38px;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #eef1f4;
  cursor: pointer;
}

.prop-row__max {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 0.35rem;
}

.prop-row__max > span {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #f6f7f9;
  font-weight: 700;
  color: #333333;
}

.prop-row__max input {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

/* Panel de cálculo (abre debajo en toda la fila) */
.prop-row__calc {
  grid-column: 1/-1;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.7rem 0.7rem;
}

.prop-row__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.prop-row__grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.prop-row__grid input {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

.prop-row__do {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ff6a00;
  cursor: pointer;
  padding: 0 1rem;
}

/* Responsive: en tablet/móvil apilar */
@media (max-width: 1024px) {
  .prop-row {
    grid-template-columns: 1fr 1fr;
  }
  .prop-row__calc-btn {
    justify-self: start;
  }
  .prop-row__max {
    grid-column: 1/-1;
  }
}
@media (max-width: 480px) {
  .prop-row {
    grid-template-columns: 1fr;
  }
  .prop-row__max {
    grid-column: 1;
  }
}
/* Pastilla: no tocar estilos; solo se mostrará cuando cumpla */
/* Contenedor de cada propiedad */
.prop-row {
  display: grid;
  grid-template-columns: 1fr 220px 120px;
  /* etiqueta | valor | Máx */
  gap: 12px;
  align-items: center;
}

/* Texto de la etiqueta (lado izquierdo) */
.prop-row__label {
  font-weight: 600;
  min-width: 0;
  /* evita desbordes */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Input de valor (centro) */
.prop-row__value {
  width: 100%;
  box-sizing: border-box;
}

/* Bloque Máx (derecha) */
.prop-row__max {
  justify-self: end;
  /* pega el bloque a la derecha */
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.prop-row__max > span {
  /* la pill "Máx" */
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f2f2f6;
  border: 1px solid #e5e7eb;
  font-weight: 600;
}

.prop-row__max .q-max {
  width: 80px;
  /* ancho fijo del número de Máx */
  box-sizing: border-box;
}

/* Asegura que los inputs no rompan el layout */
.prop-row input[type=number] {
  max-width: 100%;
  min-width: 0;
}

/* Evita que el card tenga padding que provoque overflow visual */
.quality__panel,
.agg-card {
  overflow: hidden;
}

/* Responsive (tablets/móvil): apila en 2 y 1 columnas */
@media (max-width: 1024px) {
  .prop-row {
    grid-template-columns: 1fr 1fr;
    /* etiqueta | valor */
  }
  .prop-row__max {
    justify-self: start;
    grid-column: 1/-1;
    /* mover Máx a la línea de abajo */
  }
}
@media (max-width: 640px) {
  .prop-row {
    grid-template-columns: 1fr;
    /* todo en una columna */
  }
  .prop-row__label {
    white-space: normal;
  }
}
/* Deja quality-grid en una sola columna (ya lo tenías) */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

/* Alineación por fila */
.quality-field {
  display: grid;
  grid-template-columns: 1fr 160px 130px;
  /* etiqueta | valor | Máx */
  align-items: center;
  gap: 0.6rem;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.quality-field > label {
  font-weight: 700;
  min-width: 0;
  /* evita overflow del texto largo */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-field .q-val {
  height: 38px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

/* Bloque “Máx + número” fijo y alineado a la derecha */
.quality-max {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.quality-max span {
  display: inline-grid;
  place-items: center;
  height: 38px;
  padding: 0 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #f6f7f9;
  font-weight: 700;
  color: #333333;
}

.quality-max .q-max {
  width: 80px;
  /* ancho constante del número Máx */
  height: 38px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .quality-field {
    grid-template-columns: 1fr 150px 120px;
  }
}
@media (max-width: 480px) {
  .quality-field {
    grid-template-columns: 1fr;
  }
  .quality-max {
    justify-content: flex-start;
  }
}
.agg-card {
  overflow: hidden;
}

/* ====== CONTENEDOR GENERAL ====== */
.mix-type {
  border: 1px solid #d44a0a;
  border-radius: 0.8rem;
  padding: 1rem;
}

.mix-dose {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  color: #333333;
}
.mix-dose__container {
  width: min(1150px, 92%);
  margin-inline: auto;
}
.mix-dose__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mix-dose__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffdcc3;
  color: #d44a0a;
}
.mix-dose__svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.mix-dose__title {
  margin: 2rem 0 0 0;
  font-weight: 900;
  font-size: 3rem;
  color: #121212;
}
.mix-dose__subtitle {
  margin: 0.15rem 0 0;
  opacity: 0.8;
}

/* ====== CHIPS TIPO MEZCLA ====== */
.mix-type__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
@media (max-width: 768px) {
  .mix-type__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .mix-type__grid {
    grid-template-columns: 1fr;
  }
}

.chip {
  appearance: none;
  border: 1px solid #d44a0a;
  background: #FFFFFF;
  color: #333333;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover {
  background: #ff6a00;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.chip--active {
  background: #d44a0a;
  color: #FFFFFF;
}

/* ====== AGREGADOS ====== */
.agg {
  margin-top: 1rem;
}
.agg__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.agg__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.agg__empty {
  border: 1px dashed #d44a0a;
  border-radius: 12px;
  padding: 2.4rem 1rem;
  text-align: center;
  color: #333333;
  background: #FFFFFF;
}
.agg__empty p {
  margin: 0 0 1rem;
  opacity: 0.8;
}
.agg__list {
  display: grid;
  gap: 1rem;
}

/* ====== TARJETA DE AGREGADO ====== */
.agg-card {
  background: #FFFFFF;
  border: 1px solid #d44a0a;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.agg-card__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0;
}
.agg-card__name {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  background: #f6f7f9;
  font-weight: 700;
}
.agg-card__remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: red;
  box-shadow: none;
  width: 2.4rem;
  height: 2.4rem;
  filter: brightness(0) saturate(100%) invert(13%) sepia(96%) saturate(6362%) hue-rotate(359deg) brightness(99%) contrast(104%);
  margin: 0 2rem;
}
.agg-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.agg-card .agg-field {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.agg-card .agg-field span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  padding: 0 0.8rem;
  background: #f6f7f9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: #333333;
  font-weight: 700;
}
.agg-card .agg-field input[type=number] {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.8rem;
  background: #FFFFFF;
}
.agg-card__footer {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}
.agg-card__label {
  color: #333333;
  opacity: 0.9;
  font-weight: 700;
  display: block;
  text-align: center;
}
.agg-card__slider {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 0.6rem;
}
.agg-card__slider input[type=range] {
  accent-color: #d44a0a;
  height: 6px;
  background: #e1e1e1;
  border-radius: 999px;
}
.agg-card__slider .agg-card__slider-val {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  text-align: center;
}

/* ====== CÁLCULO ====== */
.calc__panel {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.2rem 0.6rem 0.8rem;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.calc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.4rem;
  font-weight: 700;
  cursor: default;
}

.calc__icon {
  font-size: 2rem;
  display: block;
  margin: 0 auto;
}

.calc__actions {
  padding: 0.6rem;
}

.btn--full {
  width: 100%;
}

/* ====== TOGGLES (checkbox personalizados) ====== */
#combo-toggle {
  margin: 1rem 0 0.4rem;
}

.pill__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #FFFFFF;
  color: #333333;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pill__toggle:hover {
  background: rgba(245, 195, 159, 0.3803921569);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.pill__toggle input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d44a0a;
  border-radius: 6px;
  background: #FFFFFF;
  display: inline-grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.pill__toggle input[type=checkbox]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.35); /* $ambar */
}
.pill__toggle input[type=checkbox]::after {
  content: "";
  width: 6px;
  height: 12px;
  border: 3px solid transparent;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  position: absolute;
  top: 0px;
  left: 6px;
}
.pill__toggle input[type=checkbox]:checked {
  background: #d44a0a;
  border-color: #d44a0a;
}
.pill__toggle input[type=checkbox]:checked::after {
  border-color: #FFFFFF;
}
.pill__toggle input[type=checkbox]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pill__mass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  font-weight: 700;
}
.pill__mass input[type=number] {
  width: 110px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

/* ====== CURVAS ====== */
.curves__card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.8rem 0.8rem 1rem;
  margin-top: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.curves__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.curves__head h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.curves__icon {
  font-size: 1.1rem;
}

.curves__plot {
  height: 60rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.curves__legend {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: #333333;
  opacity: 0.9;
}
.curves__legend li {
  margin: 0.25rem 0;
}

/* ====== BOTONES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s;
}
.btn--dark {
  color: #FFFFFF;
  background: #d44a0a;
}
.btn--dark:hover {
  color: #000000;
  background: #ff6a00;
  transform: translateY(-1px);
}
.btn--dark:active {
  transform: translateY(0);
}
.btn--light {
  background: #d44a0a;
  color: #333333;
  margin: 2rem 0 0.5rem 0.7rem;
}
.btn--light:hover {
  background: rgba(245, 195, 159, 0.3803921569);
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
  .agg-field {
    grid-template-columns: 100px 1fr;
  }
}
@media (max-width: 480px) {
  .mix-dose__head {
    grid-template-columns: 1fr;
  }
  .agg-field {
    grid-template-columns: 90px 1fr;
  }
}
.spec-results {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.spec-results__head {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.spec-results__head--ok {
  background: #f0fff5;
  border-color: #b8e6c7;
  color: #165d2b;
}

.spec-results__head--bad {
  background: #fff5f5;
  border-color: #f0c2c2;
  color: #7a1d1d;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.spec-table thead th {
  background: #f7f7f9;
  font-weight: 600;
}

.spec-table tr.fail {
  background: #fff4f4;
}

.spec-table td.ok {
  color: #1d7a36;
  font-weight: 600;
}

.spec-table td.bad {
  color: #c72424;
  font-weight: 600;
}

/* ===== EXTENSIONES NUEVAS (manteniendo tu sistema de variables) ===== */
/* Totales + botón calcular */
.agg__totals {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .btn--full-sm {
    width: 100%;
  }
}

/* Nota de dosificación (verde/rojo) */
.blend-note {
  font-weight: 700;
  color: #333333;
}
.blend-note--ok {
  color: #1d7a36;
}
.blend-note--bad {
  color: #c72424;
}

/* Propiedades de calidad (details) */
.agg-props {
  margin-top: 0.8rem;
}
.agg-props summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.4rem 0.2rem;
  color: #333333;
}
.agg-props summary:hover {
  color: #d44a0a;
}
.agg-props__row {
  margin: 0.6rem 0;
}
.agg-props__row select {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}
.agg-props__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
@media (max-width: 768px) {
  .agg-props__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.agg-props__grid input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}
.agg-props__panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0.4rem 0;
}
.agg-props__panel h4 {
  grid-column: 1/-1;
  margin: 0.2rem 0 0.4rem;
  font-weight: 700;
  color: #333333;
}
.agg-props__panel input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}
@media (max-width: 768px) {
  .agg-props__panel {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .agg-props__panel {
    grid-template-columns: 1fr;
  }
}

/* Curvas: mantenemos tu tarjeta; solo definimos altura si no la tenías */
.curves__plot {
  height: 40rem;
}

/* Propiedades combinadas */
.combined {
  margin-top: 1rem;
}
.combined__extra {
  margin-top: 0.6rem;
}
.combined__extra label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.combined__extra label input {
  width: 110px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

/* Slider (respetando tu línea visual) */
.agg-card__slider input[type=range] {
  --rangeFill: #d44a0a;
}

/* ===== Panel de cálculo / nota de dosificación ===== */
.calc__panel {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.2rem 0.6rem 0.8rem;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.calc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.4rem;
  font-weight: 700;
  cursor: default;
}

/* ===== Calidad (plegable en cada tarjeta) ===== */
.quality__actions {
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.quality {
  margin-top: 0.8rem;
}

.quality__row {
  margin-bottom: 0.6rem;
}

.quality__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quality__select {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #f6f7f9;
}

.quality__title {
  margin: 0.6rem 0 0.4rem;
  font-weight: 700;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.6rem;
}

.quality-field {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.quality-field > label {
  font-weight: 700;
}

.quality-field .q-val,
.quality-field .q-max {
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

.quality-max {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 0.35rem;
}

.quality-max span {
  display: inline-grid;
  place-items: center;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.4rem;
  background: #f6f7f9;
  font-weight: 700;
  color: #333333;
}

/* ===== Tabla de combinadas ===== */
#combo-props {
  margin-top: 1rem;
}

/* ===== Curvas (altura grande ya la tienes) ===== */
.curves__plot {
  height: 60rem;
}

/* Mantener botones/estilos existentes */
.btn--full {
  width: 100%;
}

/* Responsive ajustes para calidad */
@media (max-width: 768px) {
  .quality-grid {
    grid-template-columns: 1fr;
  }
  .quality-field {
    grid-template-columns: 1fr 120px 110px;
  }
}
/* -------- Ajuste: propiedades en UNA sola columna -------- */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* una sola columna */
  gap: 0.6rem;
}

/* Mantener estilo de cada fila de propiedad */
.quality-field {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  /* label | valor | Máx */
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.quality-field > label {
  font-weight: 700;
}

.quality-field .q-val,
.quality-field .q-max {
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

.quality-max {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 0.35rem;
}

.quality-max span {
  display: inline-grid;
  place-items: center;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.4rem;
  background: #f6f7f9;
  font-weight: 700;
  color: #333333;
}

/* -------- Pastilla: resaltado del total -------- */
.pill-table tfoot .pill-total {
  background: #fff59a;
  /* amarillo suave */
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

/* Responsive leve (por si hace falta) */
@media (max-width: 768px) {
  .quality-field {
    grid-template-columns: 1fr 120px 110px;
  }
}
/* ===== Propiedades: fila limpia con botón "Calcular" ===== */
.prop-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto 140px;
  /* label | valor | botón | Máx */
  gap: 0.6rem;
  align-items: center;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  margin: 0.6rem 0;
}

.prop-row__label {
  font-weight: 700;
  color: #333333;
}

.prop-row__value {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
  width: 100%;
}

.prop-row__calc-btn {
  height: 38px;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #eef1f4;
  cursor: pointer;
}

.prop-row__max {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 0.35rem;
}

.prop-row__max > span {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #f6f7f9;
  font-weight: 700;
  color: #333333;
}

.prop-row__max input {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

/* Panel de cálculo (abre debajo en toda la fila) */
.prop-row__calc {
  grid-column: 1/-1;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.7rem 0.7rem;
}

.prop-row__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.prop-row__grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.prop-row__grid input {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

.prop-row__do {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ff6a00;
  cursor: pointer;
  padding: 0 1rem;
}

/* Responsive: en tablet/móvil apilar */
@media (max-width: 1024px) {
  .prop-row {
    grid-template-columns: 1fr 1fr;
  }
  .prop-row__calc-btn {
    justify-self: start;
  }
  .prop-row__max {
    grid-column: 1/-1;
  }
}
@media (max-width: 480px) {
  .prop-row {
    grid-template-columns: 1fr;
  }
  .prop-row__max {
    grid-column: 1;
  }
}
/* Pastilla: no tocar estilos; solo se mostrará cuando cumpla */
/* Contenedor de cada propiedad */
.prop-row {
  display: grid;
  grid-template-columns: 1fr 220px 120px;
  /* etiqueta | valor | Máx */
  gap: 12px;
  align-items: center;
}

/* Texto de la etiqueta (lado izquierdo) */
.prop-row__label {
  font-weight: 600;
  min-width: 0;
  /* evita desbordes */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Input de valor (centro) */
.prop-row__value {
  width: 100%;
  box-sizing: border-box;
}

/* Bloque Máx (derecha) */
.prop-row__max {
  justify-self: end;
  /* pega el bloque a la derecha */
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.prop-row__max > span {
  /* la pill "Máx" */
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f2f2f6;
  border: 1px solid #e5e7eb;
  font-weight: 600;
}

.prop-row__max .q-max {
  width: 80px;
  /* ancho fijo del número de Máx */
  box-sizing: border-box;
}

/* Asegura que los inputs no rompan el layout */
.prop-row input[type=number] {
  max-width: 100%;
  min-width: 0;
}

/* Evita que el card tenga padding que provoque overflow visual */
.quality__panel,
.agg-card {
  overflow: hidden;
}

/* Responsive (tablets/móvil): apila en 2 y 1 columnas */
@media (max-width: 1024px) {
  .prop-row {
    grid-template-columns: 1fr 1fr;
    /* etiqueta | valor */
  }
  .prop-row__max {
    justify-self: start;
    grid-column: 1/-1;
    /* mover Máx a la línea de abajo */
  }
}
@media (max-width: 640px) {
  .prop-row {
    grid-template-columns: 1fr;
    /* todo en una columna */
  }
  .prop-row__label {
    white-space: normal;
  }
}
/* Deja quality-grid en una sola columna (ya lo tenías) */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

/* Alineación por fila */
.quality-field {
  display: grid;
  grid-template-columns: 1fr 160px 130px;
  /* etiqueta | valor | Máx */
  align-items: center;
  gap: 0.6rem;
  background: #f9fafb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.quality-field > label {
  font-weight: 700;
  min-width: 0;
  /* evita overflow del texto largo */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-field .q-val {
  height: 38px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

/* Bloque “Máx + número” fijo y alineado a la derecha */
.quality-max {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.quality-max span {
  display: inline-grid;
  place-items: center;
  height: 38px;
  padding: 0 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #f6f7f9;
  font-weight: 700;
  color: #333333;
}

.quality-max .q-max {
  width: 80px;
  /* ancho constante del número Máx */
  height: 38px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .quality-field {
    grid-template-columns: 1fr 150px 120px;
  }
}
@media (max-width: 480px) {
  .quality-field {
    grid-template-columns: 1fr;
  }
  .quality-max {
    justify-content: flex-start;
  }
}
.agg-card {
  overflow: hidden;
}

.prod-report {
  padding: clamp(2rem, 4vw, 3rem) 0;
  color: #333333;
}
.prod-report__container {
  width: min(1150px, 92%);
  margin-inline: auto;
}

.prod-report__title {
  margin: 2rem 0 0 0;
  font-weight: 900;
  font-size: 3rem;
  color: #121212;
}

.prod-report__icon {
  margin-right: 0.4rem;
  font-size: 0.95em;
  line-height: 1;
  vertical-align: -2px;
  color: #d44a0a;
}

.rp-section {
  margin-top: 1rem;
}
.rp-section h3 {
  font-weight: 900;
  font-size: 2.5rem;
}

/* Sombras y fondo para mejorar jerarquía visual */
.prod-report .mix-type {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  margin-bottom: 2.5rem;
}

/* Caja para la tabla granulométrica */
.rp-section .table-wrap {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 0.8rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ====== Datos de Obra y Ensayo ====== */
.mix-type h3 {
  font-weight: 700;
}

.rp-info {
  margin-bottom: 2.5rem;
}

.rp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rp-card {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.rp-card h3 {
  margin: 0 0 0.6rem;
  color: #000000;
  font-weight: 700;
}

.rp-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin: 0.5rem 0;
}
.rp-field span {
  font-weight: 700;
  color: #333333;
}
.rp-field input[type=text],
.rp-field input[type=date],
.rp-field input[type=number] {
  width: 100%;
  display: block;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
  color: #333333;
}
.rp-field input[type=text]:focus,
.rp-field input[type=date]:focus,
.rp-field input[type=number]:focus {
  border-color: #d44a0a;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.2);
  outline: 0;
}

@media (max-width: 768px) {
  .rp-cards {
    grid-template-columns: 1fr;
  }
}
.rp-hint {
  margin: 0.2rem 0 0.8rem;
  opacity: 0.8;
}

.rp-table {
  /* Diferenciar la fila P200 */
}
.rp-table input[type=number] {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}
.rp-table input[type=number][disabled] {
  background: #f6f7f9;
  color: #333333;
  opacity: 0.9;
  cursor: not-allowed;
}
.rp-table tr:last-child td:first-child {
  font-weight: 700;
}
.rp-table tfoot td {
  font-weight: 700;
}
.rp-table tfoot tr {
  border-top: 2px solid #d44a0a;
}
.rp-table .rp-total-label {
  color: #d44a0a;
}
.rp-table .rp-total {
  color: #d44a0a;
}
.rp-table .rp-ppas {
  font-weight: 700;
}

.curves__card {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 0.8rem 0.8rem 1rem;
  margin-top: 1.2rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.curves__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.curves__head h3 {
  margin: 0;
  font-weight: 700;
}

.curves__plot {
  height: 60rem;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* ====== Contenido de Cemento Asfáltico ====== */
.rp-binder {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.rp-binder h3 {
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.rp-binder__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.rp-binder .rp-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin: 0.4rem 0;
}
.rp-binder .rp-field span {
  font-weight: 700;
  color: #333333;
}
.rp-binder .rp-field input[type=number] {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 0.6rem;
  background: #FFFFFF;
}
.rp-binder__results {
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 0.8rem;
  background: #f9fafb;
}
.rp-binder__results h4 {
  margin: 0 0 0.5rem;
  color: #d44a0a;
}
.rp-binder__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rp-binder__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
}
.rp-binder__list strong {
  min-width: 5ch;
  text-align: right;
}
.rp-binder__pct strong {
  color: #d44a0a;
  font-weight: 900;
}

@media (max-width: 768px) {
  .rp-binder__grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Dark Mode (estilo similar a dosificación) ===== */
.dark-mode .prod-report {
  color: #FFFFFF;
}
.dark-mode .prod-report__title {
  color: #FFFFFF;
}
.dark-mode .prod-report .mix-type,
.dark-mode .rp-card,
.dark-mode .rp-binder,
.dark-mode .rp-section .table-wrap,
.dark-mode .curves__card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.dark-mode .rp-field span {
  color: #FFFFFF;
}
.dark-mode .rp-field input[type=text],
.dark-mode .rp-field input[type=date],
.dark-mode .rp-field input[type=number],
.dark-mode .rp-table input[type=number] {
  background: #121212;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.dark-mode .rp-table input[type=number][disabled],
.dark-mode .rp-table input[type=number][readonly] {
  background: #000000;
  color: #FFFFFF;
  opacity: 0.9;
}
.dark-mode .rp-binder__results {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121212;
}
.dark-mode .curves__plot {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lab-tests {
  color: #333333;
  min-height: 100vh;
}
.lab-tests__back {
  width: min(1100px, 94%);
  margin: 0 auto 1.5rem;
}
.lab-tests__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.4rem;
  color: rgba(18, 18, 18, 0.75);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}
.lab-tests__back-link:hover {
  color: #ff6a00;
  transform: translateX(-2px);
}
.lab-tests__header {
  text-align: center;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  width: min(1100px, 94%);
}
.lab-tests__header h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
}
.lab-tests__header p {
  color: rgba(51, 51, 51, 0.75);
  font-size: 1.6rem;
  margin: 0;
}
.lab-tests__section {
  width: min(1120px, 94%);
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(17, 23, 39, 0.08);
  border: 1px solid rgba(212, 74, 10, 0.08);
}
.lab-tests__section-header {
  margin-bottom: 1.5rem;
}
.lab-tests__section-header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
}
.lab-tests__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 1100px) {
  .lab-tests__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .lab-tests__grid {
    grid-template-columns: 1fr;
  }
}

.lab-test-card {
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, white 0%, rgba(255, 220, 195, 0.35) 120%);
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: clamp(1.2rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2.6rem);
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.lab-test-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(212, 74, 10, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.lab-test-card:focus-visible {
  outline: 2px solid rgba(212, 74, 10, 0.4);
  outline-offset: 4px;
}
.lab-test-card:hover, .lab-test-card:focus-visible {
  border-color: rgba(212, 74, 10, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18);
}
.lab-test-card:hover:before, .lab-test-card:focus-visible:before {
  opacity: 1;
}
.lab-test-card--active {
  border-color: rgba(212, 74, 10, 0.9);
  background: rgba(255, 220, 195, 0.6);
}
.lab-test-card--active:before {
  opacity: 1;
}
.lab-test-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(212, 74, 10, 0.15);
  color: #d44a0a;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.25);
}
.lab-test-card__icon svg {
  width: 26px;
  height: 26px;
}
.lab-test-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lab-test-card__title {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
}
.lab-test-card__desc {
  font-size: 1.4rem;
  color: rgba(51, 51, 51, 0.7);
}

.lab-test-card--span {
  grid-column: span 2;
}
@media (max-width: 1100px) {
  .lab-test-card--span {
    grid-column: auto;
  }
}

.lab-test-runner {
  width: min(1180px, 96%);
  margin: clamp(2rem, 3vw, 4rem) auto clamp(3rem, 4vw, 5rem);
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.lab-form-shell {
  max-width: 100%;
}

.lab-form__controls {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.lab-form__back {
  background: rgba(212, 74, 10, 0.1);
  border: 1px solid rgba(212, 74, 10, 0.4);
  color: #d44a0a;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lab-form__back:hover {
  background: #d44a0a;
  color: #FFFFFF;
  transform: translateX(-2px);
}

.lab-form {
  background: #FFFFFF;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 24px;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.09);
}
.lab-form--placeholder {
  text-align: center;
  border-style: dashed;
  color: rgba(51, 51, 51, 0.8);
}
.lab-form h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
}

.lab-form__help {
  margin: 0 0 1.5rem;
  color: rgba(51, 51, 51, 0.75);
  font-size: 1.8rem;
}

.lab-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lab-form__row--wide-first {
  grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 768px) {
  .lab-form__row--wide-first {
    grid-template-columns: 1fr;
  }
}

.lab-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 2rem;
}
.lab-form__field label {
  font-size: 1.4rem;
  color: rgba(51, 51, 51, 0.95);
  letter-spacing: 0.01em;
}
.lab-form__field input {
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1.2rem;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(51, 51, 51, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.lab-form__field input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.25);
  transform: translateY(-1px);
}
.lab-form__field input::placeholder {
  color: rgba(51, 51, 51, 0.5);
  font-weight: 400;
}

.lab-form__field--compact {
  font-size: 1.5rem;
  font-weight: 600;
}

.lab-form__input--full {
  width: 100%;
}

.lab-form__input--half {
  width: 50%;
}
@media (max-width: 768px) {
  .lab-form__input--half {
    width: 100%;
  }
}

.forma-particula__info-title {
  text-align: center;
  padding: 1rem;
  font-weight: 700;
  background: rgba(212, 74, 10, 0.06);
  min-width: 180px;
}
.forma-particula__info-title small {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0.35rem;
}

.lab-form__group {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(51, 51, 51, 0.1);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  background: rgba(51, 51, 51, 0.02);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}
.lab-form__group h3 {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  color: #333333;
  font-weight: 700;
}

.lab-form__table {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.lab-form__table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}
.lab-form__table th,
.lab-form__table td {
  border: 1px solid rgba(51, 51, 51, 0.15);
  padding: 0.6rem;
  text-align: left;
  font-size: 1.4rem;
}
.lab-form__table th {
  background: rgba(51, 51, 51, 0.05);
}
.lab-form__table input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.4rem;
}
.lab-form__table input:focus {
  outline: none;
}

.lab-form__info-table {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(51, 51, 51, 0.18);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}
.lab-form__info-table table {
  width: 100%;
  border-collapse: collapse;
}
.lab-form__info-table th,
.lab-form__info-table td {
  padding: 0.85rem 1.2rem;
  font-size: 1.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(51, 51, 51, 0.12);
}
.lab-form__info-table th {
  width: 35%;
  font-weight: 700;
  background: rgba(51, 51, 51, 0.05);
  color: #333333;
}
.lab-form__info-table td {
  background: rgba(255, 255, 255, 0.95);
}
.lab-form__info-table tr:last-child th,
.lab-form__info-table tr:last-child td {
  border-bottom: none;
}
.lab-form__info-table input,
.lab-form__info-table select {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  padding: 0.6rem 0;
  color: #333333;
}
.lab-form__info-table input:focus,
.lab-form__info-table select:focus {
  outline: none;
  box-shadow: none;
}

.lab-form__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .lab-form__actions {
    flex-direction: row;
  }
}

.lab-form__btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 1rem 1.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lab-form__btn:hover {
  transform: translateY(-1px);
}

.lab-form__btn--primary {
  background: #d44a0a;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(212, 74, 10, 0.3);
}
.lab-form__btn--primary:hover {
  background: #ff6a00;
}

.lab-form__btn--secondary {
  background: rgba(212, 74, 10, 0.08);
  color: #d44a0a;
  border: 1px solid rgba(212, 74, 10, 0.3);
}
.lab-form__btn--secondary:hover {
  background: rgba(212, 74, 10, 0.12);
}

.lab-form__results {
  min-height: 3.2rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 74, 10, 0.08), rgba(255, 106, 0, 0.12));
  color: #333333;
  font-size: 1.4rem;
  border: 1px solid rgba(212, 74, 10, 0.15);
}
.lab-form__results:empty {
  display: none;
}

@media (max-width: 768px) {
  .lab-tests {
    padding-bottom: 4rem;
  }
  .lab-test-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .lab-test-card__icon {
    width: 50px;
    height: 50px;
  }
  .lab-test-card__title {
    font-size: 1.6rem;
  }
}
.dark-mode table {
  background-color: #000000;
}
.dark-mode .lab-tests {
  background: #000000;
  color: #FFFFFF;
}
.dark-mode .lab-tests__back-link {
  color: rgba(255, 255, 255, 0.85);
}
.dark-mode .lab-tests__back-link:hover {
  color: #ff6a00;
}
.dark-mode .lab-tests__header h1 {
  color: #FFFFFF;
}
.dark-mode .lab-tests__header p {
  color: rgba(255, 255, 255, 0.7);
}
.dark-mode .lab-tests__section {
  background: #000000;
  border: 1px solid rgba(212, 74, 10, 0.3);
}
.dark-mode .lab-test-card {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  box-shadow: none;
}
.dark-mode .lab-test-card:hover, .dark-mode .lab-test-card:focus-visible {
  border-color: rgba(212, 74, 10, 0.6);
  background: #121212;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.dark-mode .lab-test-card--active {
  background: rgba(212, 74, 10, 0.25);
  border-color: rgba(212, 74, 10, 0.6);
}
.dark-mode .lab-test-card__title {
  color: #FFFFFF;
}
.dark-mode .lab-test-card__desc {
  color: rgba(255, 255, 255, 0.7);
}
.dark-mode .lab-test-card__icon {
  color: #ff6a00;
  background: rgba(212, 74, 10, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.35);
}
.dark-mode .lab-form {
  background: #000000;
  border: 1px solid rgba(212, 74, 10, 0.3);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.dark-mode .lab-form h2 {
  color: #FFFFFF;
}
.dark-mode .lab-form__help {
  color: rgba(255, 255, 255, 0.7);
}
.dark-mode .lab-form__field {
  color: #FFFFFF;
}
.dark-mode .lab-form__field label {
  color: rgba(255, 255, 255, 0.95);
}
.dark-mode .lab-form__field input,
.dark-mode .lab-form__field select {
  background: #121212;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
.dark-mode .lab-form__field input:focus,
.dark-mode .lab-form__field select:focus {
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.4);
}
.dark-mode .lab-form__field input::placeholder,
.dark-mode .lab-form__field select::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.dark-mode .lab-form__info-table {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #000000;
}
.dark-mode .lab-form__info-table th,
.dark-mode .lab-form__info-table td {
  border-color: rgba(255, 255, 255, 0.15);
}
.dark-mode .lab-form__info-table th {
  background: #000000;
  color: #FFFFFF;
}
.dark-mode .lab-form__info-table td {
  background: #000000;
}
.dark-mode .lab-form__info-table input,
.dark-mode .lab-form__info-table select {
  background: #121212;
  color: #FFFFFF;
  border: none;
}
.dark-mode .lab-form__info-table input:focus,
.dark-mode .lab-form__info-table select:focus {
  background: #121212;
  box-shadow: none;
}
.dark-mode .lab-form__table th,
.dark-mode .lab-form__table td {
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}
.dark-mode .lab-form__table th {
  background: #000000;
  color: #FFFFFF;
}
.dark-mode .lab-form__table td {
  background: #000000;
}
.dark-mode .lab-form__table input {
  background: #121212;
  color: #FFFFFF;
  border: none;
}
.dark-mode .lab-form__table input:focus {
  background: #121212;
}
.dark-mode .lab-form__table input[readonly] {
  background: #000000;
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}
.dark-mode .lab-form__results {
  background: rgba(212, 74, 10, 0.3);
  border: 1px solid rgba(212, 74, 10, 0.4);
  color: #FFFFFF;
}
.dark-mode .lab-form__back {
  background: rgba(212, 74, 10, 0.2);
  border: 1px solid rgba(212, 74, 10, 0.4);
  color: #FFFFFF;
}
.dark-mode .lab-form__back:hover {
  background: #d44a0a;
  color: #FFFFFF;
}
.dark-mode .lab-form__btn--primary {
  background: #d44a0a;
  color: #FFFFFF;
}
.dark-mode .lab-form__btn--primary:hover {
  background: #ff6a00;
}
.dark-mode .lab-form__btn--secondary {
  background: rgba(212, 74, 10, 0.15);
  border: 1px solid rgba(212, 74, 10, 0.4);
  color: #FFFFFF;
}
.dark-mode .lab-form__btn--secondary:hover {
  background: rgba(212, 74, 10, 0.25);
}
.dark-mode .lab-form__group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000000;
}
.dark-mode .lab-form__group h3 {
  color: #FFFFFF;
}
.dark-mode .forma-particula__info-title {
  background: rgba(212, 74, 10, 0.15);
  color: #FFFFFF;
}
.dark-mode .forma-particula__info-title small {
  color: rgba(255, 255, 255, 0.7);
}

.lab-tests--hidden {
  display: none !important;
}

/** Paginas Internas **/
@media (min-width: 768px) {
  .contenido-nosotros {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

.texto-nosotros blockquote {
  font-weight: 900;
  font-size: 2.2rem;
  margin: 3rem 0 0 0;
  padding-left: 1rem 0 3rem 0;
}

.alerta {
  padding: 0.5rem;
  text-align: center;
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  margin: 1rem 0;
}
.alerta.error {
  background-color: rgb(185, 5, 5);
}
.alerta.exito {
  background-color: #71B100;
}

table.propiedades {
  margin-top: 4rem;
  width: 100%;
  border-spacing: 0;
}
table.propiedades thead {
  background-color: #71B100;
}
table.propiedades thead th {
  color: #FFFFFF;
  padding: 2rem;
}
table.propiedades .imagen-tabla {
  width: 10rem;
}

.imagen-small {
  width: 10rem;
}

/** Login y Registro **/
/** Media Queries **/
.acciones {
  margin-top: 5rem;
}
@media (min-width: 768px) {
  .acciones {
    display: flex;
    justify-content: space-between;
  }
}
.acciones a {
  color: #FFFFFF;
  display: block;
  margin-bottom: 2.5rem;
  text-align: center;
}

.alerta {
  padding: 1.25rem;
  color: #FFFFFF;
  width: 100%;
  display: block;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
}
.alerta.error {
  background-color: rgb(185, 5, 5);
}
.alerta.exito {
  background-color: #71B100;
}

/** Media Queries **/
.boton-login {
  background-color: #f2b705;
  padding: 1.5rem 4rem;
  color: #000000;
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 400;
  display: inline-block;
  font-weight: 700;
  border: none;
  transition-property: background-color;
  transition-duration: 0.3s;
  text-align: center;
  display: block;
  width: 100%;
  margin: 5rem 0;
}
@media (min-width: 768px) {
  .boton-login {
    width: auto;
  }
}
.boton-login:hover {
  background-color: rgb(192.032388664, 145.2145748988, 3.967611336);
  cursor: pointer;
}

.boton-regresa {
  background-color: #f2b705;
  padding: 1.5rem 4rem;
  color: #000000;
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 400;
  display: inline-block;
  font-weight: 700;
  border: none;
  transition-property: background-color;
  transition-duration: 0.3s;
  text-align: center;
  display: block;
  width: 100%;
  margin: 5rem 0;
  display: inline-block;
  margin: 0;
}
@media (min-width: 768px) {
  .boton-regresa {
    width: auto;
  }
}
.boton-regresa:hover {
  background-color: rgb(192.032388664, 145.2145748988, 3.967611336);
  cursor: pointer;
}

/** Media Queries **/
.formulario-login {
  margin-top: 5rem;
  width: 100%;
}

.campo {
  width: 100%;
  margin-bottom: 2rem;
}

.campo input {
  width: 100%;
  box-sizing: border-box;
}

.input-con-icono {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-con-icono input {
  width: 100%;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.icono-password {
  position: absolute;
  right: 1.2rem;
  top: 35%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.icono-password svg {
  height: 2.5rem;
  width: 2.5rem;
  display: block;
}

.formulario input[type=checkbox] {
  all: revert;
  accent-color: #d44a0a;
}

.formulario label a {
  color: #f2b705;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.formulario label a:hover,
.formulario label a:focus {
  color: #d44a0a;
  text-decoration-thickness: 2px;
}

.formulario label a:visited {
  color: #d44a0a;
}

.texto-aviso {
  margin: 0;
}

.texto-aviso p {
  font-size: 1.4rem;
  line-height: 1.55;
  color: #dfe3e6;
  max-width: 760px;
  text-align: justify;
}

/* Títulos del aviso */
.texto-aviso h2 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 1.1rem 0 0.5rem;
  color: #FFFFFF;
  font-weight: 700;
  text-align: left;
}

.texto-aviso h3 {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  text-align: right;
}

/* Responsive: aún más compacto en móviles */
@media (max-width: 768px) {
  .texto-aviso {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
  .texto-aviso h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
  }
}
/** Media Queries **/
.imagen-login {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background-image: url("/build/img/login.jpg");
  background-size: cover;
  background-position: center center;
}
@media (min-width: 768px) {
  .imagen-login {
    height: auto;
  }
}

/** Media Queries **/
.formulario-login {
  margin-top: 5rem;
  width: 100%;
}

.campo {
  width: 100%;
  margin-bottom: 2rem;
}

.campo input {
  width: 100%;
  box-sizing: border-box;
}

.input-con-icono {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-con-icono input {
  width: 100%;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.icono-password {
  position: absolute;
  right: 1.2rem;
  top: 35%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.icono-password svg {
  height: 2.5rem;
  width: 2.5rem;
  display: block;
}

.formulario input[type=checkbox] {
  all: revert;
  accent-color: #d44a0a;
}

.formulario label a {
  color: #f2b705;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.formulario label a:hover,
.formulario label a:focus {
  color: #d44a0a;
  text-decoration-thickness: 2px;
}

.formulario label a:visited {
  color: #d44a0a;
}

.texto-aviso {
  margin: 0;
}

.texto-aviso p {
  font-size: 1.4rem;
  line-height: 1.55;
  color: #dfe3e6;
  max-width: 760px;
  text-align: justify;
}

/* Títulos del aviso */
.texto-aviso h2 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 1.1rem 0 0.5rem;
  color: #FFFFFF;
  font-weight: 700;
  text-align: left;
}

.texto-aviso h3 {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  text-align: right;
}

/* Responsive: aún más compacto en móviles */
@media (max-width: 768px) {
  .texto-aviso {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
  .texto-aviso h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
  }
}
.boton-login {
  background-color: #f2b705;
  padding: 1.5rem 4rem;
  color: #000000;
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 400;
  display: inline-block;
  font-weight: 700;
  border: none;
  transition-property: background-color;
  transition-duration: 0.3s;
  text-align: center;
  display: block;
  width: 100%;
  margin: 5rem 0;
}

@media (min-width: 768px) {
  .boton-login {
    width: auto;
  }
}
.boton-login:hover {
  background-color: rgb(192.032388664, 145.2145748988, 3.967611336);
  cursor: pointer;
}

.boton-regresa {
  background-color: #f2b705;
  padding: 1.5rem 4rem;
  color: #000000;
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: 400;
  display: inline-block;
  font-weight: 700;
  border: none;
  transition-property: background-color;
  transition-duration: 0.3s;
  text-align: center;
  display: block;
  width: 100%;
  margin: 5rem 0;
  display: inline-block;
  margin: 0;
}

@media (min-width: 768px) {
  .boton-regresa {
    width: auto;
  }
}
.boton-regresa:hover {
  background-color: rgb(192.032388664, 145.2145748988, 3.967611336);
  cursor: pointer;
}

.acciones {
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .acciones {
    display: flex;
    justify-content: space-between;
  }
}
.acciones a {
  color: #FFFFFF;
  display: block;
  margin-bottom: 2.5rem;
  text-align: center;
}

.alerta {
  padding: 1.25rem;
  color: #FFFFFF;
  width: 100%;
  display: block;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
}

.alerta.error {
  background-color: rgb(185, 5, 5);
}

.alerta.exito {
  background-color: #71B100;
}

.campo label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #fff;
  font-size: 1.5rem;
}

.campo input,
.campo select {
  width: 100%;
  height: 4.5rem;
  padding: 1.2rem 1.4rem;
  border: none;
  border-radius: 1rem;
  background: #f3f7ff;
  color: #222;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  appearance: none;
  outline: none;
  box-shadow: none;
  transition: box-shadow 0.3s;
}

.campo input:focus,
.campo select:focus {
  outline: 2px solid #0d6efd;
}

/* Flecha personalizada para select */
.campo {
  position: relative;
}

.campo select {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 1L7 7L13 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 2.2rem 1.2rem;
  padding-right: 3.2rem;
}

/** PavManager **/
.pavmanager-app {
  min-height: 100vh;
  display: flex;
  background: #FFFFFF;
  color: #121212;
}

.pavmanager-main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2.75rem;
  overflow-x: auto;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .pavmanager-main {
    padding: 2rem 1.5rem;
  }
}
@media (max-width: 480px) {
  .pavmanager-main {
    padding: 1.5rem 1rem;
  }
}

.pavmanager-section {
  padding: 0;
}

.pm-section-title {
  font-size: 3.5rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: #121212;
  line-height: 1.1;
}

.pm-section-description {
  font-size: 1.6rem;
  color: #333333;
  margin: 0;
  line-height: 1.4;
}

.pm-hero {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.pm-hero__title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.pm-hero__subtitle {
  font-size: 1rem;
  color: #333333;
  max-width: 720px;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 1024px) {
  .pm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .pm-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.pm-card {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 1.2rem 1.25rem;
}

.pm-card--tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pm-card--tile:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 74, 10, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.pm-card--tile .pm-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.pm-card--tile .pm-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.3rem;
}
.pm-card--tile .pm-card__text {
  margin: 0.2rem 0 0;
  color: #333333;
  font-size: 1.2rem;
}

.pm-card--table {
  padding: 0;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid #e1e1e1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pm-dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1200px) {
  .pm-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.pm-dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pm-dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 2rem;
}

.pm-stack {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
@media (max-width: 1100px) {
  .pm-stack {
    grid-template-columns: 1fr;
  }
}

.pm-widget {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.15rem;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.pm-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.pm-widget__title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}
.pm-widget__link {
  font-size: 0.85rem;
  color: #d44a0a;
  text-decoration: none;
  font-weight: 600;
}

.pm-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pm-metric {
  background: #e1e1e1;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 1.2rem 1.1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pm-metric__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pm-metric__label {
  font-size: 0.88rem;
  color: #333333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pm-metric__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.pm-metric__value {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: #121212;
  line-height: 1;
}

.pm-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pm-list__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e1e1e1;
}
.pm-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pm-list__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}
.pm-list__meta {
  margin: 0.15rem 0 0;
  color: #333333;
  font-size: 0.85rem;
}

.pm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pm-pill--urgente, .pm-pill--danger {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.pm-pill--alta, .pm-pill--warning {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
}
.pm-pill--media, .pm-pill--medium {
  background: #fef9c3;
  color: #ca8a04;
  border-color: #fde68a;
}
.pm-pill--baja, .pm-pill--low {
  background: #dcfce7;
  color: #16a34a;
  border-color: #86efac;
}

.pm-files {
  display: grid;
  gap: 0.65rem;
}
.pm-files__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e1e1e1;
}
.pm-files__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pm-files__item > div:nth-child(2) {
  min-width: 0;
  overflow: hidden;
}
.pm-files__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pm-files__name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-files__meta {
  color: #333333;
  font-size: 0.82rem;
  margin: 0.1rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-files__time {
  font-size: 0.85rem;
  color: #333333;
  flex-shrink: 0;
  text-align: right;
}

.pm-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.pm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border-radius: 16px;
  overflow: hidden;
}
.pm-table thead th {
  background: #e1e1e1;
  color: #333333;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e1e1e1;
}
.pm-table tbody td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #e1e1e1;
  color: #121212;
}
.pm-table tbody tr:hover {
  background: rgb(230.1, 230.1, 230.1);
}
.pm-table tbody tr:last-child td {
  border-bottom: none;
}

.pm-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
}
.pm-status::before {
  content: none;
}
.pm-status--en-progreso {
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
}
.pm-status--en-pausa {
  background: rgb(250.2857142857, 249.1071428571, 166.2142857143);
  color: rgb(129.1428571429, 127.4285714286, 6.8571428571);
}
.pm-status--finalizado {
  background: rgb(217.5762711864, 255, 151.5);
  color: #16a34a;
}

.pm-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #FFFFFF;
  color: #d44a0a;
  box-shadow: 0 10px 28px rgba(212, 74, 10, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pm-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(212, 74, 10, 0.2);
}
.pm-button:focus-visible {
  outline: 2px solid #d44a0a;
  outline-offset: 2px;
}
.pm-button--primary {
  background: #d44a0a;
  color: #FFFFFF;
  border-color: #d44a0a;
}
.pm-button--primary:hover {
  background: rgb(182.7783783784, 63.8, 8.6216216216);
}
.pm-button--ghost {
  background: transparent;
  border-color: #e1e1e1;
  color: #333333;
  box-shadow: none;
}
.pm-button--ghost:hover {
  background: #e1e1e1;
  border-color: rgb(212.25, 212.25, 212.25);
}

.pm-divider {
  width: 100%;
  height: 1px;
  background: #e1e1e1;
}

.pm-meta {
  color: #333333;
  font-size: 1.3rem;
}

.pm-header {
  margin-bottom: 2rem;
}
.pm-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .pm-header__top {
    flex-direction: column;
    gap: 1rem;
  }
}
.pm-header__title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #000000;
}
@media (max-width: 768px) {
  .pm-header__title {
    font-size: 2.2rem;
  }
}
@media (max-width: 480px) {
  .pm-header__title {
    font-size: 2rem;
  }
}
.pm-header__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .pm-header__actions {
    width: 100%;
  }
  .pm-header__actions .pm-btn {
    flex: 1;
    min-width: 120px;
  }
}
@media (max-width: 480px) {
  .pm-header__actions {
    flex-direction: column;
  }
  .pm-header__actions .pm-btn {
    width: 100%;
  }
}

.pm-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (max-width: 768px) {
  .pm-stack {
    gap: 1.5rem;
  }
}
.pm-stack--single {
  max-width: 100%;
}

@media (max-width: 480px) {
  .pm-btn {
    padding: 0.875rem 1.25rem;
    font-size: 1.4rem;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pm-card,
  .pm-widget {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .pm-card,
  .pm-widget {
    padding: 1.25rem;
    border-radius: 8px;
  }
}

.pavmanager-sidebar {
  width: 260px;
  flex-shrink: 0;
  height: 100vh;
  max-height: 100vh;
  background: #f6f7f9;
  border-right: 1px solid #e1e1e1;
  box-shadow: 12px 0 34px rgba(212, 74, 10, 0.05);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  transition: width 0.25s ease, padding 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
.pavmanager-sidebar.collapsed {
  width: 70px;
  padding: 1.6rem 0.6rem;
}
.pavmanager-sidebar.collapsed .pavmanager-logo-text,
.pavmanager-sidebar.collapsed .pavmanager-nav__label,
.pavmanager-sidebar.collapsed .pavmanager-user__info,
.pavmanager-sidebar.collapsed .pavmanager-user__icon {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}
.pavmanager-sidebar.collapsed .pavmanager-sidebar__header {
  justify-content: center;
}
.pavmanager-sidebar.collapsed .pavmanager-logo-img {
  display: none;
}
.pavmanager-sidebar.collapsed .pavmanager-sidebar__toggle {
  margin-left: 0;
}
.pavmanager-sidebar.collapsed .pavmanager-nav__item {
  justify-content: center;
  padding: 0.65rem;
}
.pavmanager-sidebar.collapsed .pavmanager-user {
  justify-content: center;
  padding: 0.65rem;
}
.pavmanager-sidebar__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e1e1e1;
}
.pavmanager-sidebar__toggle {
  background: transparent;
  border: none;
  color: #333333;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.2s ease;
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.pavmanager-sidebar__toggle:hover {
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
}
.pavmanager-sidebar__toggle svg {
  transition: transform 0.3s ease;
}
.pavmanager-sidebar__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.pavmanager-sidebar::-webkit-scrollbar {
  width: 8px;
}
.pavmanager-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.pavmanager-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: background 0.2s ease;
}
.pavmanager-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.pavmanager-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pavmanager-logo-text {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease, width 0.3s ease;
  white-space: nowrap;
}

.pavmanager-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pavmanager-nav__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333333;
  margin: 0.4rem 0 0.25rem;
  padding-left: 0.6rem;
}
.pavmanager-nav__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  color: #333333;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  font-size: 1.4rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.pavmanager-nav__item:hover {
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
}
.pavmanager-nav__item--active {
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(212, 74, 10, 0.15);
}
.pavmanager-nav__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pavmanager-nav__icon svg {
  width: 20px;
  height: 20px;
}
.pavmanager-nav__label {
  font-size: 1.4rem;
  transition: opacity 0.3s ease, width 0.3s ease;
  white-space: nowrap;
}

.pavmanager-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}
.pavmanager-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e1e1e1;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: #333333;
}
.pavmanager-user__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: opacity 0.3s ease, width 0.3s ease;
  white-space: nowrap;
}
.pavmanager-user__name {
  font-weight: 600;
  font-size: 1.3rem;
}
.pavmanager-user__role {
  font-size: 1.2rem;
  color: #333333;
}

.workspace-chevron {
  margin-left: auto;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.pavmanager-user-menu__item:hover .workspace-chevron {
  opacity: 0.8;
  transform: translateX(0.2rem);
}

.workspace-selector-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 1.2rem;
  box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  z-index: 1001;
  max-height: 45rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.workspace-selector-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.workspace-selector-menu__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.workspace-selector-menu__back {
  background: none;
  border: none;
  color: #667eea;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  transition: all 0.2s ease;
}
.workspace-selector-menu__back:hover {
  color: #5568d3;
}
.workspace-selector-menu__back svg {
  flex-shrink: 0;
}
.workspace-selector-menu__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3748;
}
.workspace-selector-menu__current {
  padding: 1.2rem 1.5rem;
  background: rgba(102, 126, 234, 0.05);
  border-bottom: 1px solid #e2e8f0;
}
.workspace-selector-menu__label {
  display: block;
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.workspace-selector-menu__name {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
}
.workspace-selector-menu__divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.5rem 0;
}
.workspace-selector-menu__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem;
  max-height: 30rem;
}
.workspace-selector-menu__loading, .workspace-selector-menu__empty, .workspace-selector-menu__error {
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 1.4rem;
}
.workspace-selector-menu__error {
  color: #ef4444;
}
.workspace-selector-menu__create {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: #667eea;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-top: 1px solid #e2e8f0;
}
.workspace-selector-menu__create:hover {
  background: rgba(102, 126, 234, 0.05);
}
.workspace-selector-menu__create svg {
  flex-shrink: 0;
}
.workspace-selector-menu__item {
  margin: 0;
  padding: 0;
}
.workspace-selector-menu__item--active .workspace-selector-menu__item__btn {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
}
.workspace-selector-menu__btn {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 0.8rem;
  transition: all 0.2s ease;
  text-align: left;
}
.workspace-selector-menu__btn:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.workspace-selector-menu__info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.workspace-selector-menu__name-text {
  font-size: 1.4rem;
  font-weight: 500;
  color: #2d3748;
}
.workspace-selector-menu__role {
  font-size: 1.2rem;
  color: #64748b;
}
.workspace-selector-menu__check {
  font-size: 1.6rem;
  color: #667eea;
  font-weight: 600;
}

.pavmanager-mobile-toggle {
  display: none;
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  background: #d44a0a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.875rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212, 74, 10, 0.25);
  transition: all 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 768px) {
  .pavmanager-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.pavmanager-mobile-toggle:hover {
  background: rgb(187.6486486486, 65.5, 8.8513513514);
  box-shadow: 0 6px 16px rgba(212, 74, 10, 0.35);
  transform: translateX(-50%) translateY(-2px);
}
.pavmanager-mobile-toggle:active {
  transform: translateX(-50%) translateY(0);
}
.pavmanager-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.pavmanager-mobile-toggle,
.pavmanager-sidebar-overlay {
  display: none !important;
}

.pavmanager-sidebar__footer {
  position: relative;
}

.pavmanager-user {
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.pavmanager-user:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.pavmanager-user__icon {
  margin-left: auto;
  opacity: 0.7;
  transition: transform 0.2s;
}

.pavmanager-user.active .pavmanager-user__icon {
  transform: rotate(180deg);
}

.pavmanager-user-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0.5rem;
  right: 0.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.pavmanager-user-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pavmanager-user-menu__header {
  padding: 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.pavmanager-user-menu__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.25rem;
}

.pavmanager-user-menu__email {
  font-size: 0.8rem;
  color: #6b7280;
  word-break: break-all;
}

.pavmanager-user-menu__divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.25rem 0;
}

.pavmanager-user-menu__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.pavmanager-user-menu__item:hover {
  background-color: #f3f4f6;
}

.pavmanager-user-menu__item--danger {
  color: #ef4444;
}

.pavmanager-user-menu__item--danger:hover {
  background-color: #fee2e2;
}

.pavmanager-user-menu__item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.pavmanager-nav__item-wrapper {
  position: relative;
}

.pavmanager-nav__item--expandable {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #64748b;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.pavmanager-nav__item--expandable:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}
.pavmanager-nav__item--expandable:focus {
  outline: none;
}
.pavmanager-nav__item--expandable--expanded {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}
.pavmanager-nav__item--expandable--expanded .pavmanager-nav__chevron {
  transform: rotate(90deg);
}
.pavmanager-nav__item--expandable--active {
  background: rgba(102, 126, 234, 0.15);
  color: #ffffff;
}

.pavmanager-nav__chevron {
  margin-left: auto;
  opacity: 0.6;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.pavmanager-nav__submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 0 8px 8px;
  border-left: 2px solid rgba(102, 126, 234, 0.3);
  margin-left: 0.5rem;
}
.pavmanager-nav__submenu--visible {
  max-height: 600px;
  opacity: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.pavmanager-nav__submenu-loading,
.pavmanager-nav__submenu-empty,
.pavmanager-nav__submenu-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
}

.pavmanager-nav__submenu-error {
  color: #fca5a5;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-tiny {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pavmanager-nav__submenu-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pavmanager-nav__submenu-section {
  padding: 0.5rem 0;
}
.pavmanager-nav__submenu-section + .pavmanager-nav__submenu-section {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.pavmanager-nav__submenu-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}
.pavmanager-nav__submenu-title svg {
  opacity: 0.8;
  flex-shrink: 0;
  color: #e2e8f0;
}

.pavmanager-nav__subitem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}
.pavmanager-nav__subitem:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.pavmanager-nav__subitem--favorite {
  padding-left: 1.5rem;
  border-left: 3px solid var(--fav-color, #fbbf24);
  background: rgba(251, 191, 36, 0.1);
}
.pavmanager-nav__subitem--favorite .pavmanager-nav__subitem-star {
  color: #fbbf24;
  margin-left: auto;
  font-size: 0.875rem;
}

.pavmanager-nav__subitem-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.pavmanager-nav__subitem-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pavmanager-nav__dept-item {
  margin: 0.25rem 0;
}

.pavmanager-nav__dept-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  transition: background 0.2s ease;
}
.pavmanager-nav__dept-header:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.pavmanager-nav__dept-toggle {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s ease;
  border-radius: 4px;
}
.pavmanager-nav__dept-toggle svg {
  transition: transform 0.2s ease;
}
.pavmanager-nav__dept-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.pavmanager-nav__dept-toggle[data-expanded=true] svg {
  transform: rotate(90deg);
}

.pavmanager-nav__dept-spacer {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: inline-block;
}

.pavmanager-nav__dept-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border-radius: 6px;
  border-left: 2px solid var(--dept-color, #3b82f6);
  background: rgba(255, 255, 255, 0.02);
}
.pavmanager-nav__dept-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-left-width: 3px;
}
.pavmanager-nav__dept-link--child {
  font-size: 0.8125rem;
  padding: 0.375rem 0.625rem;
  margin-left: 0.5rem;
}

.pavmanager-nav__dept-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.pavmanager-nav__dept-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.pavmanager-nav__dept-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.375rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #f1f5f9;
}

.pavmanager-nav__dept-favorite {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  border-radius: 4px;
  opacity: 0;
}
.pavmanager-nav__dept-header:hover .pavmanager-nav__dept-favorite {
  opacity: 1;
}
.pavmanager-nav__dept-favorite.is-favorite {
  opacity: 1;
  color: #fbbf24;
}
.pavmanager-nav__dept-favorite:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.pavmanager-nav__dept-children {
  padding-left: 1.5rem;
  margin-top: 0.25rem;
  animation: slideDown 0.2s ease-out;
}

.pavmanager-nav__dept-children-loading,
.pavmanager-nav__dept-children-empty,
.pavmanager-nav__dept-children-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.pavmanager-nav__dept-child {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.125rem 0;
}
.pavmanager-nav__dept-child:hover .pavmanager-nav__dept-favorite {
  opacity: 1;
}

.pavmanager-nav__submenu-empty-inline {
  padding: 1rem 1.5rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  text-align: center;
  font-style: italic;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pavmanager-sidebar.collapsed .pavmanager-nav__item--expandable .pavmanager-nav__label,
.pavmanager-sidebar.collapsed .pavmanager-nav__item--expandable .pavmanager-nav__chevron {
  display: none;
}
.pavmanager-sidebar.collapsed .pavmanager-nav__submenu {
  display: none !important;
}

@media (max-width: 768px) {
  .pavmanager-nav__submenu--visible {
    max-height: 400px;
  }
  .pavmanager-nav__dept-link {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
  }
  .pavmanager-nav__subitem {
    font-size: 0.8125rem;
    padding: 0.5rem 1.25rem 0.5rem 2rem;
  }
  .pavmanager-nav__submenu-title {
    font-size: 0.7rem;
    padding: 0.375rem 1.25rem;
  }
  .pavmanager-nav__dept-badge {
    font-size: 0.625rem;
    min-width: 18px;
    height: 18px;
  }
}
.pavmanager-nav__submenu--visible::-webkit-scrollbar {
  width: 6px;
}
.pavmanager-nav__submenu--visible::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.pavmanager-nav__submenu--visible::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.pavmanager-nav__submenu--visible::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.pavmanager-nav__item--expandable:focus,
.pavmanager-nav__dept-toggle:focus,
.pavmanager-nav__dept-favorite:focus {
  outline: 2px solid rgba(102, 126, 234, 0.5);
  outline-offset: 2px;
}

.pavmanager-nav__subitem:focus,
.pavmanager-nav__dept-link:focus {
  outline: 2px solid rgba(102, 126, 234, 0.5);
  outline-offset: -2px;
}

.pavmanager-nav__submenu-empty-icon,
.pavmanager-nav__submenu-error-icon {
  font-size: 1.5rem;
  opacity: 0.5;
}

.pavmanager-nav__submenu-empty-text,
.pavmanager-nav__submenu-error-text {
  font-size: 0.8125rem;
}

.pavmanager-dashboard {
  padding: 0;
}

.pm-hero {
  margin-bottom: 3rem;
}
.pm-hero__title {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  color: #0f172a;
  line-height: 1.1;
}
.pm-hero__subtitle {
  font-size: 2.2rem;
  color: #333333;
  margin: 0;
  max-width: 800px;
  line-height: 1.4;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1200px) {
  .pm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .pm-grid {
    grid-template-columns: 1fr;
  }
}

.pm-card {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.pm-card--hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-color: rgba(212, 74, 10, 0.3);
}
.pm-card--hover:hover .pm-card__icon--primary {
  background: #d44a0a;
  color: #ffffff;
  transform: scale(1.05);
}
.pm-card--hover:active {
  transform: translateY(-2px);
}
.pm-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.pm-card__icon svg {
  width: 3.6rem;
  height: 3.6rem;
}
.pm-card__icon--primary {
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
}
.pm-card__title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.pm-card__description {
  font-size: 1.4rem;
  color: #333333;
  margin: 0;
  line-height: 1.4;
}

/* Dashboard Stats Grid */
.pm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pm-stat-card {
  background: #FFFFFF;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pm-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d44a0a;
}
.pm-stat-card--blue .pm-stat-card__icon {
  background: #e3f2fd;
}
.pm-stat-card--green .pm-stat-card__icon {
  background: #e8f5e9;
}
.pm-stat-card--orange .pm-stat-card__icon {
  background: #ffdcc3;
}
.pm-stat-card--purple .pm-stat-card__icon {
  background: rgba(245, 195, 159, 0.3803921569);
}

.pm-stat-card__icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.pm-stat-card__value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #d44a0a;
}

.pm-stat-card__label {
  font-size: 1.3rem;
  color: #333333;
  font-weight: 500;
}

/* Dashboard Grid */
.pm-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pm-chart-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Lists */
.pm-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pm-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.pm-list-item:hover {
  background: #ffdcc3;
  border-color: #d44a0a;
}

.pm-list-item__content {
  flex: 1;
}

.pm-list-item__title {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: #212529;
}

.pm-list-item__subtitle {
  font-size: 1.3rem;
  color: #6c757d;
}

/* Task List */
.pm-task-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pm-task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.pm-task-item:hover {
  background: #f8f9fa;
  border-color: #d44a0a;
}

.pm-task-item__checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #d44a0a;
}

.pm-task-item__content {
  flex: 1;
  min-width: 0;
}

.pm-task-item__title {
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: #212529;
}
.pm-task-item__title--done {
  text-decoration: line-through;
  opacity: 0.6;
}

.pm-task-item__meta {
  font-size: 1.3rem;
  color: #6c757d;
}

.pm-task-item__badges {
  display: flex;
  gap: 0.5rem;
}

/* Activity List */
.pm-activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-activity-item {
  display: flex;
  gap: 0.75rem;
}

.pm-activity-item__icon {
  font-size: 1.5rem;
}

.pm-activity-item__content {
  flex: 1;
}

.pm-activity-item__text {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: #212529;
}
.pm-activity-item__text a {
  color: #d44a0a;
  text-decoration: none;
  font-weight: 500;
}
.pm-activity-item__text a:hover {
  text-decoration: underline;
}

.pm-activity-item__time {
  font-size: 1.3rem;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .pm-stats-grid {
    grid-template-columns: 1fr;
  }
  .pm-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .pm-dashboard-layout {
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .pm-dashboard-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pm-dashboard-widget__chart {
    height: 250px;
  }
}
@media (max-width: 480px) {
  .pm-dashboard-widget__chart {
    height: 200px;
  }
}

.pm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .pm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .pm-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .pm-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pm-stat-card {
    padding: 1.25rem;
  }
  .pm-stat-card__value {
    font-size: 2.2rem;
  }
  .pm-stat-card__label {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .pm-hero__title {
    font-size: 3.5rem;
  }
  .pm-hero__subtitle {
    font-size: 1.8rem;
  }
}
@media (max-width: 480px) {
  .pm-hero__title {
    font-size: 2.8rem;
  }
  .pm-hero__subtitle {
    font-size: 1.5rem;
  }
}

.pavmanager-tooltip {
  position: fixed;
  background: #1f2937;
  color: #ffffff;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 1.2rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 9999;
}
.pavmanager-tooltip--visible {
  opacity: 1;
}

.pm-header {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 0;
}
.pm-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .pm-header__top {
    flex-direction: column;
  }
}
.pm-header__title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: #121212;
  text-align: left;
}
.pm-header__description {
  font-size: 1.5rem;
  color: #333333;
  margin: 0;
  max-width: 780px;
}
.pm-header__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pm-btn,
.pm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(212, 74, 10, 0.2);
  color: #FFFFFF;
  background: #d44a0a;
  margin: 0;
}
.pm-btn--primary,
.pm-button--primary {
  background: #d44a0a;
  color: #FFFFFF;
  border-color: #d44a0a;
  font-size: 1.5rem;
}
.pm-btn--primary:hover,
.pm-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(212, 74, 10, 0.3);
  background: rgb(192.5189189189, 67.2, 9.0810810811);
}
.pm-btn--primary:active,
.pm-button--primary:active {
  transform: translateY(0);
}
.pm-btn--ghost,
.pm-button--ghost {
  background: #e1e1e1;
  color: #333333;
  border-color: #e1e1e1;
  box-shadow: none;
}
.pm-btn--ghost:hover,
.pm-button--ghost:hover {
  background: rgb(217.35, 217.35, 217.35);
  border-color: rgb(212.25, 212.25, 212.25);
}
.pm-btn--ghost:active,
.pm-button--ghost:active {
  transform: translateY(0);
}

.pm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  text-align: center;
  min-height: 480px;
  gap: 1.25rem;
  background: #f6f7f9;
  border: 1px dashed #e1e1e1;
  border-radius: 18px;
}
.pm-empty-state__icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  box-shadow: inset 0 0 0 1px rgba(212, 74, 10, 0.15);
}
.pm-empty-state__text {
  font-size: 1.5rem;
  margin: 0;
  color: #333333;
  max-width: 520px;
  line-height: 1.5;
}

.pm-projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-project-item {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.18s ease;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.pm-project-item:hover {
  border-color: rgba(212, 74, 10, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.pm-project-item__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffdcc3, #ff6a00);
  box-shadow: 0 0 0 6px rgba(255, 106, 0, 0.3);
}
.pm-project-item__indicator--orange {
  background: linear-gradient(135deg, #ffdcc3, #ff7a00);
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.3);
}
.pm-project-item__indicator--green {
  background: linear-gradient(135deg, rgb(189.9152542373, 255, 75), #71B100);
  box-shadow: 0 0 0 6px rgba(113, 177, 0, 0.25);
}
.pm-project-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.pm-project-item__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #121212;
  margin: 0;
}
.pm-project-item__subtitle {
  font-size: 0.93rem;
  color: #333333;
  margin: 0;
}
.pm-project-item__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
  border: 1px solid rgba(212, 74, 10, 0.2);
}
.pm-project-item__status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(212, 74, 10, 0.15);
}
.pm-project-item__status--pausado {
  background: rgb(250.2857142857, 249.1071428571, 166.2142857143);
  color: rgb(129.1428571429, 127.4285714286, 6.8571428571);
  border-color: rgba(226, 223, 12, 0.25);
}
.pm-project-item__status--pausado::before {
  box-shadow: 0 0 0 4px rgba(226, 223, 12, 0.15);
}
.pm-project-item__status--completado {
  background: rgb(217.5762711864, 255, 151.5);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.2);
}
.pm-project-item__status--completado::before {
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}
.pm-project-item__dates {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #333333;
  white-space: nowrap;
}
.pm-project-item__dates svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.pm-project-item__progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 150px;
}
.pm-project-item__progress-bar {
  flex: 1;
  height: 7px;
  background: #e1e1e1;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.pm-project-item__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgb(244.3243243243, 97, 28.6756756757) 0%, #d44a0a 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.pm-project-item__progress-fill--orange {
  background: linear-gradient(90deg, #ff6a00 0%, #d44a0a 100%);
}
.pm-project-item__progress-fill--green {
  background: linear-gradient(90deg, rgb(145.5593220339, 228, 0) 0%, #16a34a 100%);
}
.pm-project-item__progress-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #333333;
  min-width: 42px;
  text-align: right;
}

@media (max-width: 1200px) {
  .pm-project-item {
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
  }
  .pm-project-item__status, .pm-project-item__dates, .pm-project-item__progress {
    grid-column: 2;
  }
}
@media (max-width: 768px) {
  .pm-header__title {
    font-size: 1.9rem;
  }
  .pm-project-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.2rem 1.3rem;
  }
  .pm-project-item__indicator {
    display: none;
  }
  .pm-project-item__content {
    grid-column: 1;
  }
  .pm-project-item__status, .pm-project-item__dates, .pm-project-item__progress {
    grid-column: 1;
    justify-self: start;
  }
  .pm-project-item__progress {
    width: 100%;
  }
}
.pm-table-wrapper {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
}

.pm-table-responsive {
  overflow-x: auto;
  min-width: 100%;
}

.pm-projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}
.pm-projects-table thead {
  background: #f6f7f9;
  border-bottom: 1px solid #e1e1e1;
}
.pm-projects-table thead th {
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: #333333;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pm-projects-table thead th:first-child {
  padding-left: 2rem;
}
.pm-projects-table thead th:last-child {
  padding-right: 2rem;
}
.pm-projects-table tbody tr {
  border-bottom: 1px solid #e1e1e1;
  transition: background 0.15s ease;
}
.pm-projects-table tbody tr:hover {
  background: #f6f7f9;
}
.pm-projects-table tbody tr:last-child {
  border-bottom: none;
}
.pm-projects-table tbody td {
  padding: 1.4rem 1.5rem;
  color: #121212;
  vertical-align: middle;
}
.pm-projects-table tbody td:first-child {
  padding-left: 2rem;
  font-weight: 700;
}
.pm-projects-table tbody td:last-child {
  padding-right: 2rem;
}

.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pm-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}
.pm-badge--progreso {
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
  border-color: rgba(212, 74, 10, 0.2);
}
.pm-badge--pausado {
  background: rgb(250.2857142857, 249.1071428571, 166.2142857143);
  color: rgb(129.1428571429, 127.4285714286, 6.8571428571);
  border-color: rgba(226, 223, 12, 0.25);
}
.pm-badge--pausado::before {
  box-shadow: 0 0 0 4px rgba(226, 223, 12, 0.15);
}
.pm-badge--completado {
  background: rgb(217.5762711864, 255, 151.5);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.2);
}
.pm-badge--completado::before {
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.pm-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pm-link-action {
  color: #d44a0a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: color 0.15s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: none;
}
.pm-link-action svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.pm-link-action:hover {
  color: rgb(163.2972972973, 57, 7.7027027027);
  text-decoration: underline;
}
.pm-link-action--danger {
  color: rgb(185, 5, 5);
}
.pm-link-action--danger:hover {
  color: rgb(135.3421052632, 3.6578947368, 3.6578947368);
}

/* Estilos para formulario de editar proyecto */
.pm-card--form {
  padding: 2.5rem;
}

.pm-form-edit {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pm-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pm-form-label {
  font-weight: 600;
  font-size: 1.5rem;
  color: #333333;
}

.pm-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.pm-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

/* Chips de equipos */
.pm-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 20px;
  padding: 0.5rem 0.75rem;
  font-size: 1.3rem;
}
.pm-team-chip__name {
  color: #1976d2;
  font-weight: 500;
}
.pm-team-chip__badge {
  color: #ffa726;
  margin-left: 0.25rem;
}
.pm-team-chip__remove {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  font-size: 3rem;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
  margin: 0;
  box-shadow: none;
}
.pm-team-chip__remove:hover {
  color: #b71c1c;
}

/* Formulario para agregar equipo */
.pm-add-team-box {
  background-color: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 1.5rem;
}

.pm-add-team-form {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.pm-add-team-form select {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1.4rem;
}
.pm-add-team-form select:focus {
  outline: none;
  border-color: #d44a0a;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.1);
}

@media (max-width: 900px) {
  .pm-projects-table {
    font-size: 1.2rem;
  }
  .pm-projects-table thead th,
  .pm-projects-table tbody td {
    padding: 1rem 1.2rem;
  }
  .pm-projects-table thead th:first-child,
  .pm-projects-table tbody td:first-child {
    padding-left: 1.5rem;
  }
  .pm-projects-table thead th:last-child,
  .pm-projects-table tbody td:last-child {
    padding-right: 1.5rem;
  }
  .pm-projects-table thead th {
    font-size: 1rem;
  }
  .pm-card--form {
    padding: 1.5rem;
  }
  .pm-form-actions {
    flex-direction: column;
  }
  .pm-form-actions .pm-btn {
    width: 100%;
  }
  .pm-add-team-form {
    flex-direction: column;
  }
  .pm-add-team-form select {
    width: 100%;
  }
}
.pm-selected-tags-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  margin-bottom: 1rem;
}
.pm-selected-tags-edit.has-teams {
  border-color: #d96830;
  border-style: solid;
  background: #fef8f5;
}
.pm-selected-tags-edit__empty {
  color: #888;
  font-size: 1.35rem;
  font-style: italic;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.pm-tag-edit {
  background-color: #fff;
  border: 1px solid #d96830;
  color: #333;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
.pm-tag-edit:hover {
  background-color: #fff3e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.pm-tag-edit__badge {
  color: #d96830;
  margin-left: 0.25rem;
}
.pm-tag-edit__remove {
  background: #d96830;
  border: none;
  color: white;
  cursor: pointer;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}
.pm-tag-edit__remove svg {
  display: block;
  flex-shrink: 0;
}
.pm-tag-edit__remove:hover {
  background: #b85520;
  transform: scale(1.1);
}

.pm-add-team-box-edit {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
}
.pm-add-team-box-edit .pm-input {
  flex: 1;
  min-width: 0;
}
.pm-add-team-box-edit .pm-btn {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .pm-add-team-box-edit {
    flex-direction: column;
  }
  .pm-add-team-box-edit .pm-input,
  .pm-add-team-box-edit .pm-btn {
    width: 100%;
  }
}

.pm-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
}

.pm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: none;
  margin: 0;
}
.pm-checkbox-label:hover {
  background: rgba(247.4056603774, 209.4339622642, 182.0943396226, 0.3803921569);
  border-color: rgba(212, 74, 10, 0.3);
}
.pm-checkbox-label:has(input:checked) {
  background: rgba(245, 195, 159, 0.3803921569);
  border-color: #d44a0a;
}
.pm-checkbox-label input[type=checkbox] {
  accent-color: #d44a0a;
}

@media (min-width: 901px) {
  .pm-projects-table thead th,
  .pm-projects-table tbody td {
    padding: 0.9rem 1rem;
    font-size: 1.25rem;
  }
  .pm-projects-table td:first-child,
  .pm-projects-table th:first-child {
    min-width: 180px;
  }
  .pm-projects-table .pm-col-asignado {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pm-projects-table .pm-col-fechas {
    min-width: 100px;
    white-space: nowrap;
  }
  .pm-projects-table td:last-child,
  .pm-projects-table th:last-child {
    width: 60px;
    text-align: center;
  }
}
.pm-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}
@media (max-width: 1200px) {
  .pm-kanban-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .pm-kanban-board {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pm-kanban-column {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pm-kanban-column__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.pm-kanban-column__title {
  font-size: 1.7rem;
  font-weight: 700;
}
.pm-kanban-column__count {
  font-size: 1.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #FFFFFF;
  color: #333333;
  font-weight: 600;
}
.pm-kanban-column__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pm-kanban-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: grab;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pm-kanban-card:hover {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.pm-kanban-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}
.pm-kanban-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.pm-kanban-card__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e5e7eb;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
}
.pm-kanban-card__description {
  font-size: 1.2rem;
  color: #333333;
  margin: 0;
}
.pm-kanban-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
}
.pm-kanban-card__date {
  color: #333333;
}
.pm-kanban-card__footer {
  font-size: 1.2rem;
  color: #333333;
}

.pm-kanban-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: #333333;
  font-size: 0.85rem;
}
.pm-kanban-empty__text {
  margin: 0;
}

/* Estilos para formularios de equipos (invitaciones, etc.) */
.pm-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-card--wide {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.pm-stack--single {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pm-widget--wide {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  min-width: 220px;
}

.pm-action-form {
  margin: 0;
  display: flex;
  align-items: center;
}

.pm-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 38px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.2rem;
  min-width: 96px;
  justify-content: center;
  border: 1px solid #e1e1e1;
  background: #e1e1e1;
  color: #333333;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: none;
  line-height: 1;
  box-sizing: border-box;
}
.pm-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}
.pm-action-btn--ghost {
  background: #FFFFFF;
  border-color: #e1e1e1;
}
.pm-action-btn--primary {
  background: #FFFFFF;
  color: #d44a0a;
  border-color: #d44a0a;
}
.pm-action-btn--primary:hover {
  background: #d44a0a;
  color: #FFFFFF;
}
.pm-action-btn--danger {
  background: #FFFFFF;
  color: #ff0000;
  border-color: #ff0000;
  margin: 0;
}
.pm-action-btn--danger:hover {
  background: #ff0000;
  color: #FFFFFF;
  border-color: #ff0000;
  font-weight: 700;
}

@media (max-width: 768px) {
  .pm-actions {
    gap: 0.4rem;
    justify-content: flex-start;
  }
  .pm-action-btn {
    width: 100%;
    justify-content: center;
  }
}
.pm-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  align-items: flex-end;
}

.pm-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 180px;
}
.pm-form__field .pm-input {
  width: 100%;
}

.pm-form__field--wide {
  flex: 2 1 260px;
}

.pm-form__label {
  font-weight: 600;
  color: #333333;
  font-size: 1.5rem;
}

.pm-form__actions {
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
}
.pm-form__actions .pm-btn {
  min-width: 120px;
}

@media (max-width: 768px) {
  .pm-form__row {
    flex-direction: column;
    align-items: stretch;
  }
  .pm-form__actions {
    justify-content: flex-start;
  }
}
.pm-alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.4;
}

.pm-alert--success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.pm-alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.pm-alert--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Inputs y form básicos (si no los tienes ya) */
.pm-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.pm-form-label {
  font-size: 1.2rem;
  color: #4b5563;
}

.pm-input {
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
}

.pm-input:focus {
  border-color: #d44a0a;
  box-shadow: 0 0 0 1px rgba(212, 74, 10, 0.15);
}

/* Estilos para la gestión de miembros de equipos */
/* Select de rol mejorado */
.pm-select-rol {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1.3rem;
  color: #374151;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 110px;
}
.pm-select-rol:hover {
  border-color: #d44a0a;
  background-color: #fef2f2;
}
.pm-select-rol:focus {
  outline: none;
  border-color: #d44a0a;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.1);
}

/* Botón Cambiar mejorado */
.pm-btn-cambiar {
  padding: 0.5rem 1rem;
  background-color: #d44a0a;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin: 0;
}
.pm-btn-cambiar:hover {
  background-color: rgb(187.6486486486, 65.5, 8.8513513514);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(212, 74, 10, 0.2);
}
.pm-btn-cambiar:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Botón eliminar mejorado */
.pm-btn-eliminar {
  width: 3.6rem;
  height: 2.6rem;
  padding: 0;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.pm-btn-eliminar:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}
.pm-btn-eliminar:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.pm-btn-eliminar svg {
  display: block;
}

.pm-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pm-template-card {
  background: #FFFFFF;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.pm-template-card:hover {
  border-color: #d44a0a;
  box-shadow: 0 4px 12px rgba(212, 74, 10, 0.1);
  transform: translateY(-2px);
}

.pm-template-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pm-template-card__icon {
  font-size: 3rem;
  line-height: 1;
}

.pm-template-card__category {
  font-size: 1.3rem;
  padding: 0.4rem 0.8rem;
}

.pm-pill--desarrollo {
  background: #e8f5e9;
  color: #71B100;
  border: 1px solid #a5d6a7;
}

.pm-pill--marketing {
  background: #fff3e0;
  color: #ff6a00;
  border: 1px solid #ffb74d;
}

.pm-pill--investigacion {
  background: #f3e5f5;
  color: #9c27b0;
  border: 1px solid #ce93d8;
}

.pm-pill--construccion {
  background: #efebe9;
  color: #795548;
  border: 1px solid #bcaaa4;
}

.pm-pill--otro {
  background: #e1e1e1;
  color: #333333;
  border: 1px solid #e1e1e1;
}

.pm-template-card__title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}
.pm-template-card__title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.2s;
}
.pm-template-card__title a:hover {
  color: #d44a0a;
}

.pm-template-card__description {
  color: #333333;
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.pm-template-card__meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e1e1e1;
}

.pm-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: #333333;
}
.pm-meta-item svg {
  stroke: #333333;
}
.pm-meta-item--public {
  color: #08d8e7;
}
.pm-meta-item--public svg {
  stroke: #08d8e7;
}

.pm-template-card__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e1e1e1;
}

.pm-btn--sm {
  font-size: 1.3rem;
  padding: 0.6rem 1.2rem;
}

.pm-template-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.pm-template-icon-large {
  font-size: 5rem;
  line-height: 1;
}

.pm-template-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.pm-badge--public {
  background: #e3f2fd;
  color: #08d8e7;
  border: 1px solid #90caf9;
  font-size: 1.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
}

.pm-header__breadcrumb {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333333;
}

.pm-breadcrumb-link {
  color: #d44a0a;
  text-decoration: none;
}
.pm-breadcrumb-link:hover {
  text-decoration: underline;
}

.pm-breadcrumb-separator {
  margin: 0 0.5rem;
  color: #333333;
}

.pm-template-content {
  margin-top: 2rem;
}

.pm-template-content__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pm-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.pm-task-section {
  margin-bottom: 3rem;
}

.pm-task-section__title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d44a0a;
}

.pm-tasks-table-wrapper {
  background: #FFFFFF;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  overflow: hidden;
}

.pm-tasks-table {
  width: 100%;
  border-collapse: collapse;
}
.pm-tasks-table thead th {
  text-align: left;
  padding: 1.2rem;
  background: #e1e1e1;
  border-bottom: 2px solid #e1e1e1;
  font-weight: 600;
  color: #333333;
  font-size: 1.3rem;
  text-transform: uppercase;
}
.pm-tasks-table tbody td {
  padding: 1.2rem;
  border-bottom: 1px solid #e1e1e1;
  font-size: 1.3rem;
  color: #212529;
  vertical-align: top;
}
.pm-tasks-table tbody tr:last-child td {
  border-bottom: none;
}
.pm-tasks-table tbody tr:hover {
  background-color: #e1e1e1;
}

.pm-task-info strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #212529;
}

.pm-task-desc {
  margin: 0;
  font-size: 1.3rem;
  color: #333333;
  line-height: 1.5;
}

.pm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pm-modal--wide {
  max-width: 800px;
}

.pm-empty-state--sm {
  padding: 3rem;
}

.pm-use-template-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.pm-template-preview {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.pm-preview-card {
  background: #FFFFFF;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pm-preview-icon {
  font-size: 4rem;
  line-height: 1;
}

.pm-preview-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 0.5rem 0;
}

.pm-preview-desc {
  font-size: 1.3rem;
  color: #333333;
  line-height: 1.6;
  margin: 0;
}

.pm-preview-meta {
  padding-top: 1rem;
  border-top: 1px solid #e1e1e1;
}

.pm-use-template-form {
  background: #FFFFFF;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  padding: 2.5rem;
}

.pm-form-section {
  margin-bottom: 3rem;
}
.pm-form-section:last-of-type {
  margin-bottom: 2rem;
}

.pm-form-section__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333333;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e1e1e1;
}

.pm-field {
  margin-bottom: 1.5rem;
}

.pm-field__label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.5rem;
}

.pm-field__hint {
  font-weight: 400;
  color: #333333;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.pm-field__input,
.pm-field__textarea,
.pm-field__select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1.3rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.pm-field__input:focus,
.pm-field__textarea:focus,
.pm-field__select:focus {
  outline: none;
  border-color: #d44a0a;
}

.pm-field__textarea {
  resize: vertical;
  min-height: 100px;
}

.pm-field__select[multiple] {
  min-height: 120px;
}

.pm-field__checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  color: #333333;
  cursor: pointer;
}
.pm-field__checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.pm-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pm-selected-tags .pm-tag {
  background-color: #ffdcc3;
  border: 1px solid #ff6a00;
  color: #212529;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
}
.pm-selected-tags .pm-tag button {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}
.pm-selected-tags .pm-tag button:hover {
  color: #c62828;
}

.pm-form-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  padding-top: 2rem;
  border-top: 2px solid #e1e1e1;
}

.pm-button--lg {
  font-size: 1.5rem;
  padding: 1rem 2rem;
}

@media (max-width: 1024px) {
  .pm-use-template-content {
    grid-template-columns: 1fr;
  }
  .pm-template-preview {
    position: static;
  }
}
@media (max-width: 768px) {
  .pm-templates-grid {
    grid-template-columns: 1fr;
  }
  .pm-template-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pm-btn--sm {
    width: 100%;
  }
  .pm-template-header {
    flex-direction: column;
  }
  .pm-template-icon-large {
    font-size: 3.5rem;
  }
  .pm-form-grid {
    grid-template-columns: 1fr;
  }
  .pm-tasks-table thead {
    display: none;
  }
  .pm-tasks-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
  }
  .pm-tasks-table tbody td {
    display: block;
    text-align: right;
    padding: 0.8rem;
  }
  .pm-tasks-table tbody td:before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: #333333;
  }
  .pm-use-template-form {
    padding: 1.5rem;
  }
  .pm-form-actions {
    flex-direction: column;
  }
  .pm-button--lg {
    width: 100%;
  }
}
.pm-status-bar {
  background: #e1e1e1;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.pm-status-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pm-status-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.2s;
  background: #FFFFFF;
  color: #424242;
}
.pm-status-btn:hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
  transform: translateY(-1px);
}
.pm-status-btn--por_hacer.pm-status-btn--active {
  background: #757575;
  color: #FFFFFF;
  border-color: #757575;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.pm-status-btn--en_progreso.pm-status-btn--active {
  background: #08d8e7;
  color: #FFFFFF;
  border-color: #08d8e7;
  box-shadow: 0 2px 4px rgba(13, 166, 243, 0.3);
}
.pm-status-btn--en_revision.pm-status-btn--active {
  background: #ff6a00;
  color: #FFFFFF;
  border-color: #ff6a00;
  box-shadow: 0 2px 4px rgba(255, 106, 0, 0.3);
}
.pm-status-btn--hecha.pm-status-btn--active {
  background: #388e3c;
  color: #FFFFFF;
  border-color: #388e3c;
  box-shadow: 0 2px 4px rgba(56, 142, 60, 0.3);
}

.pm-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.pm-file-card {
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.pm-file-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pm-file-card__preview {
  width: 100%;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e1e1e1;
}
.pm-file-card__preview--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.pm-file-icon {
  font-size: 1.6rem;
  font-weight: bold;
  color: #666;
  padding: 0.75rem;
  background: #e3f2fd;
  border-radius: 6px;
}

.pm-file-card__info {
  padding: 0.5rem;
}

.pm-file-card__name {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-file-card__meta {
  font-size: 1.1rem;
  color: #333333;
  margin: 0;
}

.pm-file-card__actions {
  padding: 0.35rem 0.5rem;
  border-top: 1px solid #e1e1e1;
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}
.pm-file-card__actions .pm-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pm-upload-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
}

.pm-upload-dropzone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
}
.pm-upload-dropzone.drag-over {
  border-color: #08d8e7;
  background: #e3f2fd;
}

.pm-upload-dropzone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pm-upload-dropzone__icon {
  font-size: 3rem;
  margin: 0;
}

.pm-upload-dropzone__text {
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

.pm-upload-dropzone__hint {
  font-size: 1.3rem;
  color: #333333;
  margin: 0.5rem 0 1rem 0;
}

.pm-file-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: #FFFFFF;
  border-radius: 6px;
}

.pm-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pm-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.pm-detail-item:last-child {
  border-bottom: none;
}

.pm-detail-item__label {
  font-weight: 500;
  color: #333333;
  font-size: 1.3rem;
}

.pm-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}
.pm-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-lightbox__image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.pm-lightbox__close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pm-lightbox__close:hover {
  opacity: 0.7;
}

.pm-field-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}
.pm-field-group .pm-field {
  margin-bottom: 0;
}

.pm-field {
  margin-bottom: 1.5rem;
}

.pm-field__label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.5rem;
}

.pm-field__input,
.pm-field__textarea,
.pm-field__select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1.3rem;
  transition: border-color 0.2s;
}
.pm-field__input:focus,
.pm-field__textarea:focus,
.pm-field__select:focus {
  outline: none;
  border-color: #d44a0a;
}

.pm-field__textarea {
  resize: vertical;
  min-height: 100px;
}

.pm-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1.3rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.pm-input:focus {
  outline: none;
  border-color: #d44a0a;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.pm-btn--primary {
  background: #d44a0a;
  color: #FFFFFF;
}
.pm-btn--primary:hover {
  background: rgb(173.0378378378, 60.4, 8.1621621622);
}
.pm-btn--secondary {
  background: #e1e1e1;
  color: #333333;
  border: 1px solid #e1e1e1;
}
.pm-btn--secondary:hover {
  background: rgb(212.25, 212.25, 212.25);
}
.pm-btn--danger {
  background: #ffebee;
  color: #dc3545;
  border: 1px solid #ef9a9a;
}
.pm-btn--danger:hover {
  background: #ffcdd2;
}
.pm-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 1.3rem;
}

.pm-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #e5ddd5;
  border-radius: 8px;
  max-height: 350px;
  overflow-y: auto;
}

.pm-list__item {
  display: flex;
  flex-direction: column;
  max-width: 50%;
  width: fit-content;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pm-list__item {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}
.pm-list__item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px;
  border-color: transparent transparent #FFFFFF transparent;
}
.pm-list__item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pm-list__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d44a0a;
  margin: 0 0 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.pm-list__title::before {
  content: "👤";
  font-size: 1.2rem;
}

.pm-list__meta {
  font-size: 1rem;
  color: #667781;
  margin: 0 0 0.4rem 0;
  font-weight: 400;
}

.pm-list__text {
  font-size: 1.25rem;
  color: #111b21;
  line-height: 1.35;
  margin: 0;
  word-wrap: break-word;
}

.pm-meta {
  font-size: 1.3rem;
  color: #667781;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
}

.pm-comment-form {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f0f2f5;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pm-comment-form__label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.pm-comment-form__textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-family: inherit;
  line-height: 1.4;
  resize: none;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
  min-height: 38px;
}
.pm-comment-form__textarea:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.pm-comment-form__textarea::placeholder {
  color: #8696a0;
}

.pm-comment-form__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.pm-comment-form__actions .pm-btn {
  border-radius: 20px;
  padding: 1rem 2rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.pm-comment-form__actions .pm-btn--primary {
  background: #00a884;
}
.pm-comment-form__actions .pm-btn--primary:hover {
  background: #00916e;
}

.pm-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid #e5e7eb;
}

.pm-reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  position: relative;
}
.pm-reaction:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  transform: scale(1.05);
}
.pm-reaction--active {
  background: #dbeafe;
  border-color: #3b82f6;
}
.pm-reaction--active:hover {
  background: #bfdbfe;
}
.pm-reaction[data-users]:hover::before {
  content: attr(data-users);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  transform: none;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 400;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-reaction[data-users]:hover::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 10px;
  transform: none;
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.82);
  pointer-events: none;
  z-index: 400;
}

.pm-reaction__emoji {
  font-size: 1.3rem;
  line-height: 1;
}

.pm-reaction__count {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  line-height: 1;
}

.pm-reaction-picker {
  position: relative;
  display: inline-block;
}

.pm-reaction-picker__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #9ca3af;
  margin: 0;
}
.pm-reaction-picker__trigger:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
  transform: scale(1.1);
}
.pm-reaction-picker__trigger:active {
  transform: scale(0.95);
}

.pm-reaction-picker__menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: #FFFFFF;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
.pm-reaction-picker__menu.active {
  display: flex;
  gap: 0.5rem;
}

.pm-reaction-picker__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.pm-reaction-picker__emoji:hover {
  background: #f3f4f6;
  transform: scale(1.15);
}
.pm-reaction-picker__emoji:active {
  transform: scale(0.95);
}

.pm-filter-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.pm-filter-tab {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.pm-filter-tab:hover {
  background: #e0e0e0;
  color: #333;
}

.pm-filter-tab--active {
  background: #1976d2;
  color: white;
}

.pm-sort-dropdown {
  position: relative;
  display: inline-block;
}

.pm-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 500;
  color: #555;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.pm-sort-btn:hover {
  background: #ebebeb;
  border-color: #ccc;
}
.pm-sort-btn--active {
  background: #e8f0fe;
  border-color: #1976d2;
  color: #1976d2;
}

.pm-sort-menu {
  display: none;
  position: fixed;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  padding: 0.35rem 0;
  overflow: hidden;
}
.pm-sort-menu--open {
  display: block;
}

.pm-sort-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  color: #333;
  text-decoration: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.1s;
}
.pm-sort-option:hover {
  background: #f5f5f5;
}
.pm-sort-option--active {
  color: #1976d2;
  font-weight: 600;
}

.pm-sort-check {
  display: inline-block;
  width: 14px;
  font-size: 1.1rem;
  flex-shrink: 0;
  text-align: center;
}

.pm-sort-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0.25rem 0;
}

.pm-filter-tab--clear {
  background: transparent;
  border: 1px solid #e0e0e0;
  color: #999;
  font-size: 1.2rem;
}
.pm-filter-tab--clear:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.pm-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  overflow: visible;
}

.pm-ftg {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
}

.pm-ft {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: transparent;
  color: #555;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}
.pm-ft:hover {
  background: #f0f0f0;
  color: #222;
}
.pm-ft--on {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}
.pm-ft--on:hover {
  background: #1565c0;
  color: #fff;
}
.pm-ft--clear {
  color: #aaa;
  border-color: transparent;
}
.pm-ft--clear:hover {
  background: #fee2e2;
  color: #dc2626;
}

.pm-ft-sep {
  width: 1px;
  height: 18px;
  background: #e0e0e0;
  flex-shrink: 0;
  margin: 0 0.2rem;
}

.pm-ft-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.pm-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.25rem 0;
}

.pm-filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.4rem 1rem;
}
.pm-filter-group + .pm-filter-group {
  border-top: 1px solid #f0f0f0;
}

.pm-filter-group__label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #999;
  white-space: nowrap;
  min-width: 6.5rem;
  flex-shrink: 0;
}

.pm-filter-group__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.pm-select--sm {
  padding: 0.4rem 0.75rem;
  font-size: 1.25rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-family: inherit;
}
.pm-select--sm:focus {
  outline: none;
  border-color: #1976d2;
}

.pm-filter-count {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #888;
  background: #f0f0f0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .pm-filter-group__right {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .pm-filter-tab--clear {
    margin-left: 0 !important;
  }
}
.pm-btn--success {
  background: #d44a0a;
  color: white;
}

.pm-btn--success:hover {
  background: #d44a0a;
}

.pm-projects-table td:first-child a {
  color: #111;
  text-decoration: none;
}
.pm-projects-table td:first-child a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .pm-field-group {
    grid-template-columns: 1fr;
  }
  .pm-files-grid {
    grid-template-columns: 1fr;
  }
  .pm-status-buttons {
    flex-direction: column;
  }
  .pm-status-btn {
    min-width: 100%;
  }
  .pm-file-card__preview {
    height: 200px;
  }
}
.pm-calcs-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pm-calc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #e1e1e1;
  border-radius: 8px;
}
.pm-calc-row__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}
.pm-calc-row__icon svg {
  width: 18px;
  height: 18px;
}
.pm-calc-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pm-calc-row__name {
  font-weight: 600;
  font-size: 1.3rem;
  color: #111827;
}
.pm-calc-row__meta {
  font-size: 1.1rem;
  color: #6b7280;
}

/* Tabs */
.pm-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e1e1e1;
}

.pm-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
  font-size: 1.3rem;
}
.pm-tab:hover {
  color: #08d8e7;
  background: #f5f5f5;
}
.pm-tab--active {
  color: #08d8e7;
  border-bottom-color: #08d8e7;
}

.pm-tab-content {
  display: none;
}
.pm-tab-content--active {
  display: block;
}

/* Projects Grid */
.pm-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.pm-project-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #f9f9f9;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.pm-project-card:hover {
  background: #FFFFFF;
  border-color: #08d8e7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pm-project-card__icon {
  font-size: 2rem;
}

.pm-project-card__content {
  flex: 1;
}

.pm-project-card__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1.3rem;
}

.pm-project-card__meta {
  font-size: 1.3rem;
  color: #666;
}

.pm-project-card__arrow {
  font-size: 1.5rem;
  color: #08d8e7;
}

/* Audit List */
.pm-audit-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-audit-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.pm-audit-item__icon {
  font-size: 1.5rem;
}

.pm-audit-item__content {
  flex: 1;
}

.pm-audit-item__text {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.pm-audit-item__meta {
  font-size: 1.3rem;
  color: #999;
}

/* Info Box */
.pm-info-box {
  background: #e3f2fd;
  border-left: 4px solid #08d8e7;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 1.3rem;
}

/* Badge */
.pm-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
}
.pm-badge--danger {
  background: #ffebee;
  color: #c62828;
}
.pm-badge--warning {
  background: #fff3e0;
  color: #ef6c00;
}
.pm-badge--info {
  background: #e3f2fd;
  color: #08d8e7;
}
.pm-badge--neutral {
  background: #f5f5f5;
  color: #666;
}
.pm-badge--light {
  background: #fafafa;
  color: #999;
}

/* Empty Text */
.pm-empty-text {
  text-align: center;
  color: #999;
  padding: 3rem;
  font-size: 1.3rem;
}

/* Table */
.pm-table {
  width: 100%;
  border-collapse: collapse;
}
.pm-table thead th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid #e1e1e1;
  font-weight: 600;
  color: #666;
  font-size: 1.3rem;
  text-transform: uppercase;
}
.pm-table tbody td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.3rem;
}

/* Configuration Grid */
.pm-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Configuration Card */
.pm-config-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #FFFFFF;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  cursor: pointer;
}
.pm-config-card:hover {
  border-color: #08d8e7;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(25, 118, 210, 0.15);
}
.pm-config-card:hover .pm-config-card__arrow {
  transform: translateX(4px);
}
.pm-config-card--disabled {
  opacity: 0.6;
  cursor: default;
}
.pm-config-card--disabled:hover {
  border-color: #e1e1e1;
  transform: none;
  box-shadow: none;
}
.pm-config-card--disabled .pm-config-card__arrow {
  display: none;
}

.pm-config-card__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.pm-config-card__content {
  flex: 1;
}

.pm-config-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333333;
}

.pm-config-card__description {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.pm-config-card__arrow {
  font-size: 1.5rem;
  color: #08d8e7;
  flex-shrink: 0;
  transition: transform 0.3s;
}

/* Info Grid */
.pm-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.pm-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pm-info-item__label {
  font-size: 1.3rem;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pm-info-item__value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
}

.pm-form--inline {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}
@media (max-width: 768px) {
  .pm-form--inline {
    flex-direction: column;
    align-items: stretch;
  }
  .pm-form--inline .pm-form__field {
    width: 100%;
  }
  .pm-form--inline .pm-form__actions {
    width: 100%;
  }
  .pm-form--inline .pm-form__actions .pm-btn {
    width: 100%;
  }
}
.pm-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .pm-form__row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .pm-input,
  .pm-select {
    font-size: 1.6rem;
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 768px) {
  .pm-config-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .pm-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .pm-info-grid {
    grid-template-columns: 1fr;
  }
}

.pm-welcome--split {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}
.pm-welcome--split .pm-welcome__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
}
.pm-welcome--split .pm-welcome__visual {
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  min-height: 100vh;
}
.pm-welcome--split .pm-welcome__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
.pm-welcome--split .pm-welcome__visual-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  height: 100%;
}
.pm-welcome--split .pm-welcome__illustration {
  width: 100%;
  height: 100%;
  background: url("/build/img/fondo_bienvenida.svg") center/cover no-repeat;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.pm-welcome--split .pm-welcome__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}
.pm-welcome--split .pm-welcome__decor {
  display: none;
}
.pm-welcome--split .decor-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6rem);
  opacity: 0.5;
}
.pm-welcome--split .decor-blob--1 {
  top: -10rem;
  right: -10rem;
  width: 40rem;
  height: 40rem;
  background: rgba(255, 255, 255, 0.2);
}
.pm-welcome--split .decor-blob--2 {
  bottom: -15rem;
  left: -15rem;
  width: 40rem;
  height: 40rem;
  background: rgba(138.9459459459, 48.5, 6.5540540541, 0.5);
}
.pm-welcome--split .decor-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 0.1rem, transparent 0.1rem), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0.1rem, transparent 0.1rem);
  background-size: 4rem 4rem;
}
.pm-welcome--split .pm-welcome__content {
  padding: 4rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  background: #FFFFFF;
  animation: fadeIn 0.6s ease-out;
}
.pm-welcome--split .pm-welcome__header {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.pm-welcome--split .pm-welcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  background: rgba(212, 74, 10, 0.1);
  border: 0.1rem solid rgba(212, 74, 10, 0.2);
  border-radius: 99.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #d44a0a;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}
.pm-welcome--split .pm-welcome__badge svg {
  width: 1.6rem;
  height: 1.6rem;
}
.pm-welcome--split .pm-welcome__title {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: #121212;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}
.pm-welcome--split .pm-welcome__title .highlight {
  background: linear-gradient(135deg, #d44a0a, rgb(163.2972972973, 57, 7.7027027027));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.pm-welcome--split .pm-welcome__description {
  font-size: 1.5rem;
  color: #333333;
  line-height: 1.6;
  max-width: 48rem;
  margin: 0;
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
  font-weight: 700;
}
.pm-welcome--split .pm-welcome__actions {
  display: grid;
  gap: 1.2rem;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}
.pm-welcome--split .action-card {
  background: #FFFFFF;
  border: 0.2rem solid #e1e1e1;
  border-radius: 1.6rem;
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.pm-welcome--split .action-card:hover {
  border-color: #d44a0a;
  transform: translateX(0.4rem);
  box-shadow: -0.4rem 0 0 #d44a0a;
}
.pm-welcome--split .action-card--primary {
  border-color: #d44a0a;
  background: linear-gradient(135deg, rgba(212, 74, 10, 0.05), #FFFFFF);
  box-shadow: 0 0.4rem 1.2rem rgba(212, 74, 10, 0.1);
}
.pm-welcome--split .action-card--primary::before {
  content: "Recomendado";
  display: inline-block;
  width: fit-content;
  background: #d44a0a;
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
  align-self: flex-start;
}
.pm-welcome--split .action-card .pm-btn--block {
  width: 100%;
}
.pm-welcome--split .action-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.pm-welcome--split .action-card__header h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #121212;
  line-height: 1.3;
}
.pm-welcome--split .action-card__header p {
  margin: 0.4rem 0 0 0;
  color: #333333;
  font-size: 1.3rem;
  line-height: 1.4;
}
.pm-welcome--split .action-card__header > div {
  flex: 1;
}
.pm-welcome--split .action-card__icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
}
.pm-welcome--split .pm-btn--block {
  width: 100%;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 1rem;
  transition: all 0.2s ease;
}
.pm-welcome--split .pm-btn--block svg {
  width: 1.8rem;
  height: 1.8rem;
}
.pm-welcome--split .pm-btn--block:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 2rem rgba(212, 74, 10, 0.25);
}
.pm-welcome--split .pm-welcome__features-mini {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 0.1rem solid #e1e1e1;
  animation: fadeInUp 0.6s ease-out 0.5s backwards;
}
.pm-welcome--split .feature-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  color: #333333;
  font-weight: 600;
}
.pm-welcome--split .feature-mini svg {
  width: 1.8rem;
  height: 1.8rem;
  color: #d44a0a;
  flex-shrink: 0;
}
.pm-welcome--split .feature-mini span {
  white-space: nowrap;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1024px) {
  .pm-welcome--split .pm-welcome__container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .pm-welcome--split .pm-welcome__visual {
    min-height: 40vh;
    padding: 3rem 2rem;
  }
  .pm-welcome--split .pm-welcome__content {
    padding: 3rem 2rem 4rem;
  }
  .pm-welcome--split .pm-welcome__features-mini {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .pm-welcome--split .action-card:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 1.2rem rgba(212, 74, 10, 0.15);
  }
}
@media (max-width: 768px) {
  .pm-welcome--split .pm-welcome__visual {
    min-height: 35vh;
    padding: 2rem 1.5rem;
  }
  .pm-welcome--split .pm-welcome__content {
    padding: 2.5rem 1.5rem 3rem;
    gap: 2rem;
  }
  .pm-welcome--split .pm-welcome__title {
    font-size: 2.4rem;
  }
  .pm-welcome--split .pm-welcome__illustration {
    padding: 1.5rem;
    border-radius: 1.8rem;
  }
  .pm-welcome--split .action-card {
    padding: 1.5rem 1.6rem;
  }
  .pm-welcome--split .action-card__header h3 {
    font-size: 1.5rem;
  }
  .pm-welcome--split .action-card__header p {
    font-size: 1.25rem;
  }
  .pm-welcome--split .pm-welcome__features-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .pm-welcome--split .pm-welcome__features-mini .feature-mini {
    font-size: 1.15rem;
  }
  .pm-welcome--split .pm-welcome__features-mini .feature-mini svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}
@media (max-width: 480px) {
  .pm-welcome--split .pm-welcome__content {
    padding: 2rem 1.2rem 2.5rem;
  }
  .pm-welcome--split .pm-welcome__badge {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }
  .pm-welcome--split .action-card__icon {
    font-size: 2rem;
  }
}

.dark-mode .pm-welcome--split {
  background: linear-gradient(135deg, #000000 0%, rgb(7.65, 7.65, 7.65) 100%);
}
.dark-mode .pm-welcome--split .pm-welcome__content {
  background: #000000;
}
.dark-mode .pm-welcome--split .pm-welcome__title {
  color: #FFFFFF;
}
.dark-mode .pm-welcome--split .pm-welcome__title .highlight {
  background: linear-gradient(135deg, rgb(244.3243243243, 97, 28.6756756757), #d44a0a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark-mode .pm-welcome--split .pm-welcome__description {
  color: rgba(255, 255, 255, 0.75);
}
.dark-mode .pm-welcome--split .pm-welcome__badge {
  background: rgba(212, 74, 10, 0.15);
  border-color: rgba(212, 74, 10, 0.3);
  color: rgb(244.3243243243, 97, 28.6756756757);
}
.dark-mode .pm-welcome--split .action-card {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-mode .pm-welcome--split .action-card:hover {
  border-color: rgba(212, 74, 10, 0.6);
}
.dark-mode .pm-welcome--split .action-card--primary {
  border-color: rgb(243.8648648649, 90.2, 18.9351351351);
  background: linear-gradient(135deg, rgba(212, 74, 10, 0.12), #121212);
}
.dark-mode .pm-welcome--split .action-card--primary::before {
  background: rgb(243.8648648649, 90.2, 18.9351351351);
}
.dark-mode .pm-welcome--split .action-card__header h3 {
  color: #FFFFFF;
}
.dark-mode .pm-welcome--split .action-card__header p {
  color: rgba(255, 255, 255, 0.7);
}
.dark-mode .pm-welcome--split .pm-welcome__features-mini {
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-mode .pm-welcome--split .feature-mini {
  color: rgba(255, 255, 255, 0.75);
}
.dark-mode .pm-welcome--split .feature-mini svg {
  color: rgb(244.3243243243, 97, 28.6756756757);
}

.pm-welcome__workspaces {
  margin-bottom: 3rem;
}
.pm-welcome__workspaces h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #121212;
}
.pm-welcome__workspaces h2 .count {
  color: #d44a0a;
  font-weight: 600;
}

.workspaces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.workspace-card {
  background: #FFFFFF;
  border: 2px solid #e1e1e1;
  border-radius: 1.2rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.workspace-card:hover {
  border-color: #d44a0a;
  box-shadow: 0 1rem 3rem rgba(212, 74, 10, 0.1);
  transform: translateY(-0.3rem);
}
.workspace-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.workspace-card__header h3 {
  font-size: 1.8rem;
  margin: 0;
  color: #121212;
}
.workspace-card__badge {
  background: #d44a0a;
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.workspace-card__info {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: #333333;
}
.workspace-card .pm-btn--block {
  width: 100%;
}

.pm-welcome__invitations {
  margin-bottom: 3rem;
}
.pm-welcome__invitations h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #121212;
}

.invitations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 2rem;
}

.invitation-card {
  background: #FFFFFF;
  border: 2px solid #f59e0b;
  border-radius: 1.2rem;
  padding: 2rem;
}
.invitation-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.invitation-card__header h3 {
  font-size: 1.8rem;
  margin: 0;
  color: #121212;
}
.invitation-card__badge {
  background: #f59e0b;
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.invitation-card__info {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: #333333;
}
.invitation-card__info p {
  margin: 0.5rem 0;
}
.invitation-card__actions {
  display: flex;
  gap: 1rem;
}

.pm-welcome__create {
  margin-bottom: 3rem;
}

.pm-welcome__empty {
  margin: 4rem 0;
}
.pm-welcome__empty .empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.pm-welcome__empty .empty-state svg {
  color: #cbd5e0;
  margin-bottom: 2rem;
}
.pm-welcome__empty .empty-state h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #121212;
}
.pm-welcome__empty .empty-state p {
  font-size: 1.6rem;
  color: #333333;
  max-width: 50rem;
  margin: 0 auto;
}

.dark-mode .pm-welcome__workspaces h2,
.dark-mode .pm-welcome__invitations h2 {
  color: #FFFFFF;
}
.dark-mode .workspace-card {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-mode .workspace-card:hover {
  border-color: rgba(212, 74, 10, 0.6);
}
.dark-mode .workspace-card__header h3 {
  color: #FFFFFF;
}
.dark-mode .workspace-card__info {
  color: rgba(255, 255, 255, 0.7);
}
.dark-mode .invitation-card {
  background: #121212;
  border-color: rgba(245, 158, 11, 0.5);
}
.dark-mode .invitation-card__header h3 {
  color: #FFFFFF;
}
.dark-mode .invitation-card__info {
  color: rgba(255, 255, 255, 0.7);
}
.dark-mode .pm-welcome__empty .empty-state h3 {
  color: #FFFFFF;
}
.dark-mode .pm-welcome__empty .empty-state p {
  color: rgba(255, 255, 255, 0.75);
}

.pm-info-box {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(13, 166, 243, 0.05);
  border: 1px solid rgba(13, 166, 243, 0.2);
  border-radius: 0.8rem;
  margin-top: 1.5rem;
}

.pm-info-box svg {
  flex-shrink: 0;
  color: #0da6f3;
}

.pm-info-box strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #212529;
}

.pm-info-box p {
  margin: 0;
  font-size: 1.2rem;
  color: #6c757d;
  line-height: 1.5;
}

.pm-info-box p + p {
  margin-top: 0.3rem;
}

#workspace-modal-alerts {
  margin-bottom: 1.5rem;
}

#workspace-modal-alerts .pm-alert {
  margin-bottom: 1rem;
}

#workspace-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pm-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pm-modal-backdrop--open {
  opacity: 1;
  visibility: visible;
}
.pm-modal-backdrop--open .pm-modal {
  transform: translateY(0);
}

.pm-modal {
  background: #FFFFFF;
  border-radius: 1.6rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.3);
  max-width: 60rem;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-2rem);
  transition: transform 0.3s ease;
  margin: 0 auto;
  position: relative;
}
.pm-modal--wide {
  max-width: 80rem;
}

.pm-modal__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 2rem 6rem 2rem 2.4rem;
  border-bottom: 1px solid #e1e1e1;
  flex-shrink: 0;
}

.pm-modal__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #121212;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-right: 3rem;
}

.pm-modal__close {
  background: #d44a0a;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 0.8rem;
  transition: background 0.2s ease, transform 0s;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  margin: 0;
  top: 2rem;
  right: 2rem;
  transform: none;
  box-shadow: 0 2px 8px rgba(212, 74, 10, 0.3);
}
.pm-modal__close:hover {
  background: rgb(173.0378378378, 60.4, 8.1621621622);
  transform: none;
}
.pm-modal__close:active {
  transform: none;
}
.pm-modal__close svg {
  width: 2rem;
  height: 2rem;
}

.pm-modal__body {
  padding: 2.4rem;
  overflow-y: auto;
  flex: 1;
}

.pm-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem 2.4rem;
  border-top: 1px solid #e1e1e1;
  flex-shrink: 0;
}

#workspace-create-form {
  max-width: 100%;
}

#workspace-modal-alerts {
  margin-bottom: 1.6rem;
}

.pm-field {
  margin-bottom: 1.6rem;
}
.pm-field:last-child {
  margin-bottom: 0;
}

.pm-field__label {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 0.8rem;
}

.pm-field__input,
.pm-field__textarea {
  width: 100%;
  padding: 1.2rem 1.6rem;
  font-size: 1.4rem;
  border: 1px solid #e1e1e1;
  border-radius: 0.8rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #FFFFFF;
}
.pm-field__input:focus,
.pm-field__textarea:focus {
  outline: none;
  border-color: #d44a0a;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.1);
}
.pm-field__input::placeholder,
.pm-field__textarea::placeholder {
  color: #333333;
}

.pm-field__textarea {
  resize: vertical;
  min-height: 8rem;
}

.pm-field__help {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: #333333;
}

.pm-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pm-field__label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333333;
  margin: 0;
}
.pm-field__input, .pm-field__textarea, .pm-field__select {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  font-size: 1.2rem;
  color: #121212;
  transition: all 0.18s ease;
  font-family: inherit;
  background: #FFFFFF;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}
.pm-field__input:hover, .pm-field__textarea:hover, .pm-field__select:hover {
  border-color: rgb(214.8, 214.8, 214.8);
}
.pm-field__input:focus, .pm-field__textarea:focus, .pm-field__select:focus {
  outline: none;
  border-color: #d44a0a;
  box-shadow: 0 0 0 4px rgba(212, 74, 10, 0.15);
}
.pm-field__input::placeholder, .pm-field__textarea::placeholder, .pm-field__select::placeholder {
  color: #333333;
}
.pm-field__textarea {
  resize: vertical;
  min-height: 110px;
  max-height: 220px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 768px) {
  .pm-modal-backdrop {
    padding: 1rem;
  }
  .pm-modal {
    max-height: 95vh;
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  .pm-modal--wide {
    max-width: 100%;
  }
  .pm-modal__header {
    padding: 1.6rem 2rem;
  }
  .pm-modal__title {
    font-size: 1.8rem;
  }
  .pm-modal__body {
    padding: 2rem;
  }
  .pm-modal__footer {
    padding: 1.6rem 2rem;
    flex-direction: column-reverse;
  }
  .pm-modal__footer .pm-btn,
  .pm-modal__footer .pm-button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .pm-modal__header {
    padding: 1.4rem 1.6rem;
  }
  .pm-modal__title {
    font-size: 1.45rem;
  }
  .pm-modal__body {
    padding: 1.6rem;
  }
  .pm-modal__footer {
    padding: 1.4rem 1.6rem;
    flex-direction: column;
  }
}
.pm-organization {
  max-width: 1400px;
  margin: 0 auto;
}

.org-section {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.org-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e1e1e1;
}
.org-section__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #121212;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.org-section__title svg {
  color: #d44a0a;
}
.org-section__footer {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #e1e1e1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.org-company-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(212, 74, 10, 0.03), rgba(212, 74, 10, 0.01));
  border: 2px solid rgba(212, 74, 10, 0.15);
  border-radius: 1.2rem;
  transition: all 0.2s ease;
}
.org-company-card:hover {
  border-color: rgba(212, 74, 10, 0.3);
  box-shadow: 0 4px 12px rgba(212, 74, 10, 0.1);
}
.org-company-card__icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.org-company-card__content {
  flex: 1;
  min-width: 0;
}
.org-company-card__content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #121212;
  margin: 0 0 0.5rem 0;
}
.org-company-card__content p {
  font-size: 1.4rem;
  color: #333333;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}
.org-company-card__stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  color: #333333;
  font-weight: 600;
}
.org-company-card__stats span:not(:last-child)::after {
  content: "";
}

.org-tree {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.org-tree-node__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 1rem;
  transition: all 0.18s ease;
}
.org-tree-node__header:hover {
  border-color: rgba(212, 74, 10, 0.3);
  box-shadow: 0 2px 8px rgba(212, 74, 10, 0.08);
}
.org-tree-node__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  transition: all 0.2s ease;
  margin: 0;
  box-shadow: none;
}
.org-tree-node__toggle:hover {
  background: #e1e1e1;
}
.org-tree-node__toggle svg {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.2s ease;
}
.org-tree-node__toggle.collapsed svg {
  transform: rotate(-90deg);
}
.org-tree-node__spacer {
  width: 2.4rem;
  display: inline-block;
}
.org-tree-node__icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.org-tree-node__content {
  flex: 1;
  min-width: 0;
}
.org-tree-node__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 0.3rem;
}
.org-tree-node__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: #333333;
}
.org-tree-node__meta svg {
  width: 1.4rem;
  height: 1.4rem;
}
.org-tree-node__stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.org-tree-node__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.org-tree-node__children {
  margin-left: 4rem;
  margin-top: 0.8rem;
  padding-left: 1.5rem;
  border-left: 2px solid #e1e1e1;
}

.org-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
  padding: 0.4rem 0.8rem;
  background: #e1e1e1;
  border-radius: 0.6rem;
}
.org-stat svg {
  width: 1.4rem;
  height: 1.4rem;
  color: #d44a0a;
}

.org-action-btn {
  background: none;
  border: 1px solid #e1e1e1;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  transition: all 0.18s ease;
  margin: 0;
  box-shadow: none;
}
.org-action-btn:hover {
  background: #e1e1e1;
  border-color: rgb(199.5, 199.5, 199.5);
  color: #121212;
}
.org-action-btn svg {
  width: 1.6rem;
  height: 1.6rem;
}
.org-action-btn--danger:hover {
  background: rgba(185, 5, 5, 0.1);
  border-color: rgba(185, 5, 5, 0.3);
  color: rgb(185, 5, 5);
}

.org-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.org-team-card {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.18s ease;
}
.org-team-card:hover {
  border-color: rgba(212, 74, 10, 0.3);
  box-shadow: 0 4px 12px rgba(212, 74, 10, 0.08);
  transform: translateY(-2px);
}
.org-team-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.org-team-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.org-team-card__actions {
  display: flex;
  gap: 0.5rem;
  position: relative;
}
.org-team-card__menu-btn {
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  color: #333333;
  transition: all 0.15s ease;
  padding: 0;
}
.org-team-card__menu-btn:hover {
  background: rgba(212, 74, 10, 0.1);
  color: #d44a0a;
}
.org-team-card__menu-btn svg {
  width: 1.4rem;
  height: 1.4rem;
}
.org-team-card__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 15rem;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  overflow: hidden;
}
.org-team-card__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(2px);
}
.org-team-card__dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  width: 100% !important;
  padding: 0.9rem 1.2rem !important;
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  color: #333333 !important;
  text-decoration: none !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 0.12s ease !important;
  box-shadow: none !important;
}
.org-team-card__dropdown-item:hover {
  background: rgba(212, 74, 10, 0.06) !important;
  color: #d44a0a !important;
}
.org-team-card__dropdown-item svg {
  width: 1.4rem !important;
  height: 1.4rem !important;
  flex-shrink: 0;
}
.org-team-card__dropdown-item--danger {
  color: rgb(185, 5, 5) !important;
}
.org-team-card__dropdown-item--danger:hover {
  background: rgba(185, 5, 5, 0.08) !important;
  color: rgb(135.3421052632, 3.6578947368, 3.6578947368) !important;
}
.org-team-card__content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #121212;
  margin: 0 0 0.8rem 0;
}
.org-team-card__dept, .org-team-card__leader, .org-team-card__members {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  color: #333333;
  margin-bottom: 0.5rem;
}
.org-team-card__dept svg, .org-team-card__leader svg, .org-team-card__members svg {
  width: 1.4rem;
  height: 1.4rem;
  color: #d44a0a;
  flex-shrink: 0;
}
.org-team-card__members {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e1e1;
  font-weight: 600;
  color: #333333;
}

.org-team-card--clickable {
  cursor: pointer;
}

.org-team-card--clickable:focus-visible {
  outline: 2px solid #d44a0a;
  outline-offset: 3px;
}

.pm-empty-state--compact {
  min-height: auto;
  padding: 3rem 1.5rem;
}
.pm-empty-state--compact .pm-empty-state__icon {
  width: 5rem;
  height: 5rem;
  font-size: 2.4rem;
}
.pm-empty-state--compact .pm-empty-state__text {
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .org-section {
    padding: 1.5rem;
  }
  .org-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .org-company-card {
    flex-direction: column;
    text-align: center;
  }
  .org-company-card__icon {
    margin: 0 auto;
  }
  .org-company-card__stats {
    justify-content: center;
  }
  .org-tree-node__header {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .org-tree-node__stats {
    width: 100%;
    justify-content: flex-start;
  }
  .org-tree-node__actions {
    width: 100%;
    justify-content: flex-end;
  }
  .org-teams-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .org-tree-node__children {
    margin-left: 2rem;
    padding-left: 1rem;
  }
  .org-action-btn {
    padding: 0.5rem;
  }
  .org-action-btn svg {
    width: 1.4rem;
    height: 1.4rem;
  }
}
@keyframes slideDownFast {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUpFast {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.org-dept-teams {
  margin-top: 1rem;
  margin-left: 3rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  display: none;
}
.org-dept-teams.is-expanded {
  display: block;
  animation: slideDownFast 0.2s ease-out forwards;
}
.org-dept-teams.is-collapsing {
  display: block;
  animation: slideUpFast 0.15s ease-in forwards;
}
.org-dept-teams__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e1e1;
}
.org-dept-teams__header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #121212;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.org-dept-teams__header h4:before {
  content: "👥";
  font-size: 1.4rem;
}

.org-teams-grid--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.org-teams-grid--compact .org-team-card {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.pm-btn-org {
  padding: 0.75rem;
  font-size: 1.1rem;
}

.pm-btn--xs {
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
}
.pm-btn--xs svg {
  width: 14px;
  height: 14px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .org-dept-teams {
    margin-left: 1rem;
    padding: 1rem;
  }
  .org-dept-teams__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .org-dept-teams__header h4 {
    font-size: 1rem;
  }
  .org-teams-grid--compact {
    grid-template-columns: 1fr;
  }
}
.org-tree-node__header--clickable {
  cursor: pointer;
}
.org-tree-node__header--clickable:focus {
  outline: 2px solid #d44a0a;
  outline-offset: 2px;
}

body.org-drawer-open {
  overflow: hidden;
}

.org-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.org-drawer--open {
  display: block;
}
.org-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.org-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -12px 0 30px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}
.org-drawer--open .org-drawer__panel {
  transform: translateX(0);
}
.org-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #e1e1e1;
}
.org-drawer__title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.org-drawer__title h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #121212;
}
.org-drawer__eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333333;
}
.org-drawer__subtitle {
  font-size: 1.1rem;
  color: #333333;
  margin-top: 0.2rem;
}
.org-drawer__icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  flex-shrink: 0;
}
.org-drawer__close {
  border: 1px solid #e1e1e1;
  background: #e1e1e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #333333;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.org-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.org-drawer__loading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #333333;
  font-size: 1.1rem;
}
.org-drawer__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.8rem;
}
.org-drawer__stat {
  background: #e1e1e1;
  border-radius: 0.8rem;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid #e1e1e1;
}
.org-drawer__stat span:first-child {
  font-weight: 700;
  font-size: 1.3rem;
  color: #121212;
}
.org-drawer__stat span:last-child {
  font-size: 1rem;
  color: #333333;
}
.org-drawer__description {
  font-size: 1.2rem;
  color: #333333;
  line-height: 1.5;
}
.org-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.org-drawer__section h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #121212;
}
.org-drawer__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.org-drawer__link {
  font-size: 1.1rem;
  color: #d44a0a;
  text-decoration: none;
}
.org-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.org-drawer__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid #e1e1e1;
  background: #FFFFFF;
}
.org-drawer__item-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.org-drawer__item-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #121212;
}
.org-drawer__item-meta {
  font-size: 1rem;
  color: #333333;
}
.org-drawer__item--clickable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.org-drawer__item--clickable:hover {
  border-color: rgba(212, 74, 10, 0.35);
  box-shadow: 0 4px 10px rgba(212, 74, 10, 0.12);
}
.org-drawer__item--clickable:focus-visible {
  outline: 2px solid #d44a0a;
  outline-offset: 2px;
}
.org-drawer__empty {
  font-size: 1.1rem;
  color: #333333;
  padding: 0.8rem;
  border: 1px dashed #e1e1e1;
  border-radius: 0.8rem;
  background: #e1e1e1;
}
.org-drawer__footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid #e1e1e1;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.user-profile-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: none;
}

.user-profile-trigger:hover,
.user-profile-trigger:focus-visible {
  color: #d44a0a;
  text-decoration: underline;
}

.org-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.org-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.org-detail-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.org-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.org-detail-eyebrow {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333333;
  font-weight: 700;
}

.org-detail-name {
  padding: 0;
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #121212;
  text-align: left;
}

.org-detail-meta {
  font-size: 1.3rem;
  color: #333333;
}

.org-detail-description {
  font-size: 1.2rem;
  color: #333333;
}

.org-detail-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.org-detail-tabs {
  display: flex;
  gap: 0.8rem;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 1rem;
}

.org-detail-tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: #333333;
  transition: all 0.2s ease;
}
.org-detail-tab.is-active {
  background: #e1e1e1;
  border-color: #e1e1e1;
  color: #121212;
}

.org-detail-panel {
  display: none;
}
.org-detail-panel.is-active {
  display: block;
}
.org-detail-panel__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e1e1;
}

.org-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.org-detail-card {
  border: 1px solid #e1e1e1;
  border-radius: 1rem;
  padding: 1.2rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.org-detail-card__label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333333;
}
.org-detail-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: #121212;
}
.org-detail-card__link {
  font-size: 1.1rem;
  color: #d44a0a;
  text-decoration: none;
}
.org-detail-card__hint {
  font-size: 1.1rem;
  color: #333333;
}

.org-detail-subsection {
  margin-top: 1.5rem;
}
.org-detail-subsection h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  color: #121212;
}

.org-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.org-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e1e1e1;
  border-radius: 0.9rem;
  background: #e1e1e1;
}
.org-detail-item__main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.org-detail-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.4rem;
}
.org-detail-item__name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #121212;
}
.org-detail-item__meta {
  font-size: 1rem;
  color: #333333;
}
.org-detail-item__action {
  font-size: 1.1rem;
  color: #d44a0a;
  text-decoration: none;
  font-weight: 600;
}
.org-detail-item__tag {
  font-size: 0.95rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e1e1e1;
  background: #FFFFFF;
  color: #333333;
  font-weight: 600;
}

.org-detail-empty {
  padding: 1.2rem;
  border: 1px dashed #e1e1e1;
  border-radius: 0.9rem;
  background: #e1e1e1;
  color: #333333;
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .org-drawer__panel {
    width: 100%;
  }
  .org-detail-tabs {
    flex-wrap: wrap;
  }
}
.emoji-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.emoji-picker-trigger:hover {
  border-color: #d44a0a;
  background: rgba(212, 74, 10, 0.05);
}
.emoji-picker-trigger__selected {
  font-size: 2rem;
  line-height: 1;
}
.emoji-picker-trigger svg {
  color: #333333;
  transition: transform 0.2s ease;
}
.emoji-picker-trigger.active svg {
  transform: rotate(180deg);
}

.emoji-picker-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  padding: 1rem;
}

.emoji-option {
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  user-select: none;
}
.emoji-option:hover {
  background: rgba(212, 74, 10, 0.1);
  transform: scale(1.2);
}
.emoji-option:active {
  transform: scale(1.1);
}

.pm-field {
  position: relative;
}

@media (max-width: 768px) {
  .org-tree {
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .org-node {
    min-width: 160px;
    padding: 0.875rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 1024px) {
  .org-drawer {
    width: 350px;
  }
}
@media (max-width: 768px) {
  .org-drawer {
    width: 100%;
    max-width: 400px;
  }
}
@media (max-width: 480px) {
  .org-drawer {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .org-company-card {
    flex-direction: column;
    padding: 1.5rem;
  }
  .org-company-card__icon {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.5rem;
  }
  .org-company-card__content h3 {
    font-size: 1.8rem;
  }
  .org-company-card__stats {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .org-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Modal OAuth - Configuración completa */
#modal-oauth.pm-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
  overflow: auto !important;
  margin: 0 !important;
}

#modal-oauth.pm-modal[style*="display: block"] {
  display: flex !important;
}

#modal-oauth .pm-modal__overlay {
  display: none !important;
}

#modal-oauth .pm-modal__content {
  width: 100% !important;
  max-width: 1100px !important;
  max-height: 90vh !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

#modal-oauth .pm-modal__header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 2rem 3rem !important;
  border-bottom: 1px solid #e1e1e1 !important;
  background: #f8f9fa !important;
}

#modal-oauth .pm-modal__title {
  font-size: 1.8rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: #333 !important;
}

#modal-oauth .pm-modal__close {
  background: none !important;
  border: none !important;
  font-size: 2rem !important;
  color: #666 !important;
  cursor: pointer !important;
  padding: 0 !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  transition: all 0.2s !important;
}

#modal-oauth .pm-modal__close:hover {
  background: #e1e1e1 !important;
  color: #333 !important;
}

#modal-oauth .pm-modal__body {
  padding: 3rem 4rem !important;
  padding-bottom: 4rem !important;
  overflow: auto !important;
}

.pm-info-box {
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid;
}

.pm-info-box--info {
  background: #e3f2fd;
  border-color: #2196f3;
  color: #0d47a1;
}

.pm-info-box__title {
  font-size: 1.4rem;
}

.pm-instructions-list {
  margin: 1rem 0 0 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.pm-instructions-list li {
  margin-bottom: 0.5rem;
}

.pm-instructions-list li.pm-uri-step {
  margin-bottom: 1rem;
}

.pm-redirect-uri-box {
  background: #f8f9fa;
  border: 2px solid #d44a0a;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pm-redirect-uri {
  flex: 1;
  font-size: 1.3rem;
  font-family: "Courier New", monospace;
  color: #d44a0a;
  font-weight: 600;
}

.pm-btn--sm {
  padding: 0.25rem 0.75rem;
  font-size: 1.5rem;
}

.pm-field {
  margin-bottom: 1.25rem;
  margin-top: 1rem;
}

.pm-field:first-of-type {
  margin-top: 0;
}

.pm-field--checkbox {
  margin-top: 1rem;
}

.pm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pm-checkbox-text {
  font-size: 0.9rem;
}

.pm-form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.pm-field__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.4rem;
}

.pm-field__input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 1.4rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.pm-field__input:focus {
  outline: none;
  border-color: #d44a0a;
}

.pm-field__help {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.2rem;
  color: #666;
}

.pm-link {
  color: #d44a0a;
  text-decoration: none;
  font-weight: 500;
}

.pm-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .pm-modal__header {
    padding: 1.5rem;
  }
  .pm-modal__body {
    padding: 1.5rem;
  }
  .pm-modal__title {
    font-size: 1.5rem;
  }
}
.pm-jerarquia-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pm-jerarquia-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
}
.pm-jerarquia-header .pm-jerarquia-title {
  flex: 1;
}
.pm-jerarquia-header .pm-jerarquia-title h1 {
  font-size: 1.75rem;
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}
.pm-jerarquia-header .pm-jerarquia-controles {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pm-tree-view {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.pm-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pm-tree-item {
  position: relative;
  margin: 0;
  padding-left: 2rem;
}
.pm-tree-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cbd5e1;
  opacity: 0.5;
}
.pm-tree-item::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  width: 20px;
  height: 2px;
  background: #cbd5e1;
  opacity: 0.5;
}
.pm-tree-item:last-child::before {
  height: 24px;
}
.pm-tree-list[data-depth="0"] > .pm-tree-item {
  padding-left: 0;
}
.pm-tree-list[data-depth="0"] > .pm-tree-item::before, .pm-tree-list[data-depth="0"] > .pm-tree-item::after {
  display: none;
}

.pm-tree-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  margin-bottom: 0.25rem;
}

.pm-tree-toggle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: #64748b;
  font-size: 10px;
}
.pm-tree-toggle .toggle-icon {
  transition: transform 0.2s ease;
  display: inline-block;
}
.pm-tree-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.pm-tree-toggle:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.pm-tree-toggle[data-expanded=true] .toggle-icon {
  transform: rotate(90deg);
}

.pm-tree-spacer {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-block;
}

.pm-tree-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  padding: 0.625rem 0.875rem;
  border-left: 3px solid var(--node-color, #3b82f6);
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
  min-height: 44px;
}
.pm-tree-content:hover {
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pm-tree-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.pm-tree-nombre {
  font-weight: 500;
  color: #0f172a;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.pm-tree-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: #f1f5f9;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pm-tree-badge:hover {
  background: #e2e8f0;
  color: #475569;
}

.pm-tree-action {
  padding: 0.375rem 0.875rem;
  background: var(--node-color, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.pm-tree-action:hover {
  opacity: 0.9;
  transform: translateX(2px);
}
.pm-tree-action:focus {
  outline: 2px solid var(--node-color, #3b82f6);
  outline-offset: 2px;
}

.pm-tree-children {
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  margin-top: 0.25rem;
}
.pm-tree-children[style*="display: none"] {
  max-height: 0;
  opacity: 0;
}
.pm-tree-children[style*="display: block"] {
  max-height: none;
  opacity: 1;
}

.pm-tree-item[data-tipo=department] .pm-tree-content {
  --node-color: #3b82f6;
}

.pm-tree-item[data-tipo=equipo] .pm-tree-content {
  --node-color: #10b981;
}

.pm-tree-list[data-depth="1"] > .pm-tree-item {
  padding-left: 2rem;
}

.pm-tree-list[data-depth="2"] > .pm-tree-item {
  padding-left: 2rem;
}

.pm-tree-list[data-depth="3"] > .pm-tree-item {
  padding-left: 2rem;
}

@media (max-width: 768px) {
  .pm-jerarquia-container {
    padding: 1rem;
  }
  .pm-jerarquia-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .pm-jerarquia-header .pm-jerarquia-controles {
    width: 100%;
    flex-wrap: wrap;
  }
  .pm-jerarquia-header .pm-jerarquia-controles .pm-btn {
    flex: 1;
    min-width: 120px;
  }
  .pm-tree-view {
    padding: 1rem;
  }
  .pm-tree-content {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  .pm-tree-action {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .pm-tree-nombre {
    flex-basis: 100%;
    order: -1;
  }
  .pm-tree-badge {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
  }
}
@media (max-width: 480px) {
  .pm-tree-item {
    padding-left: 1rem;
  }
  .pm-tree-list[data-depth="1"] > .pm-tree-item,
  .pm-tree-list[data-depth="2"] > .pm-tree-item,
  .pm-tree-list[data-depth="3"] > .pm-tree-item {
    padding-left: 1rem;
  }
}
.pm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
  line-height: 1.5;
}

.pm-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
}
.pm-breadcrumb-item:hover:not(.pm-breadcrumb-item--active) {
  color: #0da6f3;
  background: #f1f5f9;
}
.pm-breadcrumb-item:focus {
  outline: 2px solid #0da6f3;
  outline-offset: 2px;
}
.pm-breadcrumb-item--active {
  color: #0f172a;
  font-weight: 500;
}

.pm-breadcrumb-separator {
  color: #cbd5e1;
  user-select: none;
  padding: 0 0.125rem;
}

@media (max-width: 640px) {
  .pm-breadcrumbs {
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
  }
  .pm-breadcrumb-item {
    max-width: 100%;
  }
}
.pm-contacto-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.pm-contacto-row:hover {
  background-color: #f8fafc;
}
.pm-contacto-row.is-expanded {
  background-color: #eff6ff;
  border-bottom: none;
}

.pm-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pm-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.4rem;
}

.pm-user-name {
  font-weight: 500;
  color: #0f172a;
  font-size: 1.4rem;
}

.pm-assignment-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.pm-assignment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
  gap: 0.5rem;
}
.pm-assignment-badge--dept {
  background: #dbeafe;
  color: #1e40af;
}
.pm-assignment-badge--team {
  background: #d1fae5;
  color: #065f46;
}

.pm-text-muted {
  color: #94a3b8;
  font-style: italic;
}

.pm-text-sm {
  font-size: 1.3rem;
}

.pm-btn-expand {
  height: 37px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.pm-btn-expand:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.pm-btn-expand:active {
  transform: scale(0.95);
}
.pm-btn-expand svg {
  transition: transform 0.3s ease;
}
.pm-btn-expand[aria-expanded=true] svg {
  transform: rotate(180deg);
}

.pm-table-cell--actions {
  text-align: center;
  padding: 0.75rem !important;
}

.pm-contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pm-btn-delete-contact {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.pm-btn-delete-contact:hover {
  background: #fef2f2;
  color: #dc2626;
}
.pm-btn-delete-contact:active {
  transform: scale(0.95);
}

.pm-contacto-details {
  display: none;
}
.pm-contacto-details.is-visible {
  display: table-row;
}
.pm-contacto-details .pm-details-cell {
  padding: 0 !important;
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
}

.pm-details-panel {
  padding: 2.5rem 2rem;
  animation: slideDown 0.3s ease-out;
}

.pm-details-section {
  margin-bottom: 3rem;
}
.pm-details-section:last-child {
  margin-bottom: 0;
}

.pm-details-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pm-details-empty {
  color: #94a3b8;
  font-style: italic;
  font-size: 1.4rem;
  padding: 1.5rem;
  text-align: center;
  background: white;
  border-radius: 8px;
  border: 2px dashed #e2e8f0;
}

.pm-assignment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pm-assignment-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.pm-assignment-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.pm-assignment-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pm-assignment-card__icon {
  font-size: 2rem;
}
.pm-assignment-card__name {
  font-weight: 600;
  font-size: 1.5rem;
  color: #0f172a;
  flex: 1;
}
.pm-assignment-card__badge {
  font-size: 1.3rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  margin: 0;
}
.pm-assignment-card__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.pm-assignment-card__label {
  font-size: 1.4rem;
  color: #64748b;
  font-weight: 500;
}
.pm-assignment-card__select {
  padding: 0.75rem 1rem;
  font-size: 1.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 140px;
}
.pm-assignment-card__select:hover {
  border-color: #94a3b8;
}
.pm-assignment-card__select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.pm-assignment-card__action-btn {
  padding: 0.75rem 1.25rem;
  font-size: 1.4rem;
  font-weight: 500;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}
.pm-assignment-card__action-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.pm-assignment-card__action-btn:active {
  transform: scale(0.98);
}
.pm-assignment-card__remove {
  padding: 0.75rem 1.25rem;
  font-size: 1.4rem;
  font-weight: 500;
  background: transparent;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}
.pm-assignment-card__remove:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}
.pm-assignment-card__remove:active {
  transform: scale(0.98);
}

.pm-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-size: 1.4rem;
  font-weight: 500;
  background: transparent;
  color: #3b82f6;
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pm-btn-add:hover {
  background: #eff6ff;
  border-style: solid;
}
.pm-btn-add:active {
  transform: scale(0.98);
}

.pm-add-form {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 1rem;
  align-items: flex-end;
  animation: slideDown 0.2s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.pm-add-form.is-visible {
  display: flex;
}
.pm-add-form__select {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1.125rem;
  font-size: 1.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pm-add-form__select:hover {
  border-color: #94a3b8;
}
.pm-add-form__select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.pm-add-form__select--role {
  flex: 0 0 160px;
}
.pm-add-form__btn {
  padding: 0.875rem 1.75rem;
  font-size: 1.4rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pm-add-form__btn--confirm {
  background: #10b981;
  color: white;
}
.pm-add-form__btn--confirm:hover {
  background: #059669;
}
.pm-add-form__btn--cancel {
  background: #f1f5f9;
  color: #64748b;
}
.pm-add-form__btn--cancel:hover {
  background: #e2e8f0;
  color: #475569;
}
.pm-add-form__btn:active {
  transform: scale(0.98);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pm-contactos-table-wrapper table {
  font-size: 1.4rem;
}
.pm-contactos-table-wrapper th {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1.5rem !important;
}
.pm-contactos-table-wrapper td {
  font-size: 1.4rem;
  padding: 1.5rem !important;
}

@media (max-width: 1024px) {
  .pm-assignment-cards {
    grid-template-columns: 1fr;
  }
  .pm-add-form {
    flex-wrap: wrap;
  }
  .pm-add-form__select {
    flex: 1 1 100%;
  }
  .pm-add-form__btn {
    flex: 1;
  }
}
@media (max-width: 768px) {
  .pm-details-panel {
    padding: 1.5rem 1rem;
  }
  .pm-assignment-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pm-assignment-card__select, .pm-assignment-card__action-btn, .pm-assignment-card__remove {
    width: 100%;
  }
  .pm-user-info {
    gap: 0.75rem;
  }
  .pm-assignment-badges {
    flex-wrap: wrap;
  }
  .pm-btn-expand {
    width: 36px;
    height: 36px;
  }
}
.pm-invitaciones-panel {
  margin-top: 1.5rem;
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}
.pm-invitaciones-panel--hidden {
  display: none;
}
.pm-invitaciones-panel__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.pm-invitaciones-panel__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #854d0e;
}
.pm-invitaciones-panel .pm-badge--secondary {
  background: #fde047;
  color: #854d0e;
  font-size: 1.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.pm-invitaciones-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pm-invitacion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid #fde68a;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.pm-invitacion-card:hover {
  border-color: #facc15;
}
.pm-invitacion-card--new {
  animation: slideInFromLeft 0.3s ease-out;
  background: #fef9c3;
}
.pm-invitacion-card__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.pm-invitacion-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pm-invitacion-card__details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pm-invitacion-card__email {
  font-weight: 500;
  font-size: 1.3rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-invitacion-card__meta {
  font-size: 1.2rem;
  color: #64748b;
}

.pm-btn-cancel-invite {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.pm-btn-cancel-invite:hover {
  background: #fef2f2;
  color: #dc2626;
}
.pm-btn-cancel-invite:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 640px) {
  .pm-invitacion-card__email {
    font-size: 1.2rem;
  }
  .pm-invitacion-card__meta {
    display: none;
  }
}
.pm-info-box--warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  border-radius: 8px;
  color: #856404;
  margin-bottom: 2rem;
}

.pm-btn--danger {
  background-color: #ff0000;
  color: #FFFFFF;
  padding: 0.75rem;
}

.pm-btn--danger:hover {
  background-color: #ff0000;
  color: #FFFFFF;
}

.pm-card--table {
  margin-bottom: 3rem;
}

.pm-projects-table td.pm-table__actions {
  display: flex;
  gap: 0.5rem;
}
.pm-projects-table form {
  display: inline;
}

.acciones {
  background: transparent;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  color: #000000;
  margin: 0;
}
.acciones:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}
.acciones:active {
  transform: scale(0.98);
}

.pm-notif-filters {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pm-notif-filters::-webkit-scrollbar {
  height: 4px;
}
.pm-notif-filters::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.pm-notif-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.pm-notif-filter:hover {
  border-color: #9ca3af;
  color: #374151;
}
.pm-notif-filter--active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}
.pm-notif-filter--active .pm-notif-filter__icon svg {
  stroke: white;
}
.pm-notif-filter__icon {
  display: flex;
}
.pm-notif-filter__icon svg {
  width: 18px;
  height: 18px;
}
.pm-notif-filter__label {
  font-weight: 600;
}

.pm-notif-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.pm-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease, opacity 0.3s ease, transform 0.3s ease;
}
.pm-notif-item:last-child {
  border-bottom: none;
}
.pm-notif-item:hover {
  background: #f9fafb;
}
.pm-notif-item--unread {
  background: #fefce8;
  border-left: 3px solid #fbbf24;
  padding-left: calc(1.25rem - 3px);
}
.pm-notif-item--unread:hover {
  background: #fef9c3;
}
.pm-notif-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}
.pm-notif-item__icon svg {
  width: 20px;
  height: 20px;
}
.pm-notif-item__icon--tarea {
  background: #10b981;
}
.pm-notif-item__icon--proyecto {
  background: #8b5cf6;
}
.pm-notif-item__icon--equipo {
  background: #3b82f6;
}
.pm-notif-item__icon--comentario {
  background: #06b6d4;
}
.pm-notif-item__icon--alerta {
  background: #ef4444;
}
.pm-notif-item__icon--invitacion {
  background: #f59e0b;
}
.pm-notif-item__icon--info {
  background: #6b7280;
}
.pm-notif-item__body {
  flex: 1;
  min-width: 0;
}
.pm-notif-item__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.pm-notif-item__type {
  font-size: 1.15rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pm-notif-item__time {
  font-size: 1.2rem;
  color: #9ca3af;
}
.pm-notif-item__title {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}
.pm-notif-item__text {
  margin: 0;
  font-size: 1.35rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-notif-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
}
.pm-notif-item__link svg {
  transition: transform 0.15s ease;
}
.pm-notif-item__link:hover {
  color: #2563eb;
}
.pm-notif-item__link:hover svg {
  transform: translateX(3px);
}
.pm-notif-item__actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pm-notif-item__status {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 4px;
}
.pm-notif-item__status--accepted {
  background: #d1fae5;
  color: #065f46;
}
.pm-notif-item__status--rejected {
  background: #fee2e2;
  color: #991b1b;
}
.pm-notif-item__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pm-notif-action {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.pm-notif-action svg {
  width: 16px;
  height: 16px;
}
.pm-notif-action--read {
  background: #d1fae5;
  color: #059669;
}
.pm-notif-action--read:hover {
  background: #10b981;
  color: white;
}
.pm-notif-action--delete {
  background: #fee2e2;
  color: #dc2626;
}
.pm-notif-action--delete:hover {
  background: #ef4444;
  color: white;
}
.pm-notif-action:active {
  transform: scale(0.92);
}

.pm-notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pm-notif-btn--accept {
  background: #10b981;
  color: white;
}
.pm-notif-btn--accept:hover {
  background: #059669;
}
.pm-notif-btn--reject {
  background: #fee2e2;
  color: #dc2626;
}
.pm-notif-btn--reject:hover {
  background: #ef4444;
  color: white;
}

.pm-notif-empty {
  padding: 3rem 2rem;
  text-align: center;
}
.pm-notif-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  background: #f3f4f6;
  border-radius: 50%;
  color: #9ca3af;
}
.pm-notif-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #374151;
}
.pm-notif-empty__text {
  margin: 0;
  font-size: 1.35rem;
  color: #6b7280;
  max-width: 320px;
  margin: 0 auto;
}

.pm-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.pm-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  color: #1a1a1a;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  min-width: 320px;
  max-width: 420px;
  overflow: hidden;
  animation: toastIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.pm-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.pm-toast__body {
  flex: 1;
  min-width: 0;
}
.pm-toast__title {
  font-weight: 600;
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 2px;
}
.pm-toast__description {
  font-size: 1.25rem;
  color: #64748b;
}
.pm-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  margin-left: 0.5rem;
  transition: color 0.15s;
}
.pm-toast__close:hover {
  color: #475569;
}
.pm-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 12px 12px;
  animation: toastProgress 4s linear forwards;
}
.pm-toast--success {
  border-left: 4px solid #10b981;
}
.pm-toast--success .pm-toast__icon {
  color: #10b981;
}
.pm-toast--success .pm-toast__progress {
  background: #10b981;
}
.pm-toast--error {
  border-left: 4px solid #ef4444;
}
.pm-toast--error .pm-toast__icon {
  color: #ef4444;
}
.pm-toast--error .pm-toast__progress {
  background: #ef4444;
}
.pm-toast--info {
  border-left: 4px solid #3b82f6;
}
.pm-toast--info .pm-toast__icon {
  color: #3b82f6;
}
.pm-toast--info .pm-toast__progress {
  background: #3b82f6;
}
.pm-toast--fade-out {
  animation: toastOut 0.3s cubic-bezier(0.06, 0.71, 0.55, 1) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}
@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
@media (max-width: 480px) {
  .pm-toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .pm-toast {
    min-width: 0;
    max-width: 100%;
  }
}
.pm-notif-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.4rem;
  margin-left: 0.5rem;
  background: #ef4444;
  color: white;
  border-radius: 9px;
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .pm-notif-filters {
    padding: 0.5rem;
    gap: 0.4rem;
  }
  .pm-notif-filter {
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
  }
  .pm-notif-filter__icon svg {
    width: 16px;
    height: 16px;
  }
  .pm-notif-item {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }
  .pm-notif-item__icon {
    width: 36px;
    height: 36px;
  }
  .pm-notif-item__icon svg {
    width: 18px;
    height: 18px;
  }
  .pm-notif-item__title {
    font-size: 1.35rem;
  }
  .pm-notif-item__text {
    font-size: 1.25rem;
  }
  .pm-notif-item__actions {
    flex-direction: row;
  }
  .pm-notif-action {
    width: 28px;
    height: 28px;
  }
  .pm-notif-action svg {
    width: 14px;
    height: 14px;
  }
  .pm-notif-empty {
    padding: 2rem 1.5rem;
  }
  .pm-notif-empty__icon {
    width: 64px;
    height: 64px;
  }
  .pm-notif-empty__icon svg {
    width: 32px;
    height: 32px;
  }
  .pm-toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
  .pm-toast {
    font-size: 1.3rem;
  }
}
.pm-workspace-section {
  margin-bottom: 2.5rem;
}
.pm-workspace-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pm-workspace-section h2 svg {
  width: 22px;
  height: 22px;
  color: #6b7280;
}

.pm-workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 1.5rem;
}

.pm-workspace-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pm-workspace-card:hover {
  border-color: #d44a0a;
  box-shadow: 0 6px 20px rgba(212, 74, 10, 0.1);
  transform: translateY(-2px);
}
.pm-workspace-card--mine {
  border-left: 4px solid #d44a0a;
}
.pm-workspace-card--invitation {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.pm-workspace-card--invitation:hover {
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.1);
}

.pm-workspace-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.pm-workspace-card__header h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
  line-height: 1.2;
}

.pm-workspace-card__badge {
  display: inline-flex;
  align-items: center;
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: #3b82f6;
}
.pm-workspace-card__badge--pending {
  background: #f59e0b;
}
.pm-workspace-card__badge--owner {
  background: #111827;
}

.pm-ws-edit-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.15rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.1rem;
  transition: color 0.15s;
}
.pm-ws-edit-trigger:hover {
  color: #d44a0a;
}

.pm-ws-rename {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
}
.pm-ws-rename.is-open {
  display: flex;
}
.pm-ws-rename input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-size: 1.4rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: #111827;
  outline: none;
  transition: border-color 0.15s;
}
.pm-ws-rename input:focus {
  border-color: #d44a0a;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.1);
}
.pm-ws-rename__actions {
  display: flex;
  gap: 0.5rem;
}
.pm-ws-rename__save {
  padding: 0.45rem 1.2rem;
  background: #d44a0a;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.pm-ws-rename__save:hover {
  background: #ff6a00;
}
.pm-ws-rename__cancel {
  padding: 0.45rem 0.9rem;
  background: none;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  font-size: 1.2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.pm-ws-rename__cancel:hover {
  background: #f3f4f6;
}
.pm-ws-rename__msg {
  font-size: 1.1rem;
  min-height: 1.4em;
}

.pm-workspace-card__info {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: #4b5563;
  line-height: 1.5;
}
.pm-workspace-card__info p {
  margin: 0 0 0.4rem;
}
.pm-workspace-card__info p:last-child {
  margin-bottom: 0;
}
.pm-workspace-card__info strong {
  color: #111827;
  font-weight: 600;
}

.pm-workspace-card__stat {
  margin-bottom: 0.3rem;
}
.pm-workspace-card__stat:last-child {
  margin-bottom: 0;
}

.pm-workspace-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pm-workspace-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
}

.pm-btn--success {
  background: #d44a0a;
  color: white;
  border: none;
}
.pm-btn--success:hover {
  background: #ff6a00;
}

.pm-btn--danger {
  background: #fee2e2;
  color: #dc2626;
  border: none;
}
.pm-btn--danger:hover {
  background: #ef4444;
  color: white;
}

.pm-btn--outline {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.pm-btn--outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

@media (max-width: 768px) {
  .pm-workspace-grid {
    grid-template-columns: 1fr;
  }
  .pm-workspace-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .pm-workspace-card__actions {
    width: 100%;
  }
  .pm-workspace-card__actions .pm-btn {
    flex: 1;
    justify-content: center;
  }
  .pm-workspace-footer {
    flex-direction: column;
    gap: 1rem;
  }
  .pm-workspace-footer .pm-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .pm-workspace-section h2 {
    font-size: 1.6rem;
  }
  .pm-workspace-card {
    padding: 1.25rem;
  }
  .pm-workspace-card__header h3 {
    font-size: 1.5rem;
  }
  .pm-workspace-card__info {
    font-size: 1.3rem;
  }
}
.pm-branding-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pm-branding-form__section {
  padding: 1.5rem;
}
.pm-branding-form__help {
  font-size: 1.3rem;
  color: #6b7280;
  margin: 0.25rem 0 1rem;
}
.pm-branding-form__logo-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pm-branding-form__logo-preview {
  width: 120px;
  height: 60px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f9fafb;
}
.pm-branding-form__logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pm-branding-form__logo-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pm-branding-form__logo-hint {
  font-size: 1.2rem;
  color: #9ca3af;
}
.pm-branding-form__palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, 32px);
  gap: 6px;
  margin-top: 0.75rem;
}
.pm-branding-form__swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  padding: 0;
  outline: none;
}
.pm-branding-form__swatch:hover {
  transform: scale(1.2);
  border-color: #374151;
  z-index: 1;
}
.pm-branding-form__swatch--active {
  border-color: #111827;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111827;
  transform: scale(1.15);
}
.pm-branding-form__swatch--light {
  border-color: #e5e7eb;
}
.pm-branding-form__swatch--light:hover {
  border-color: #9ca3af;
}
.pm-branding-form__swatch--light.pm-branding-form__swatch--active {
  border-color: #374151;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #374151;
}
.pm-branding-form__color-badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.pm-branding-form__color-custom {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}
.pm-branding-form__custom-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  color: #6b7280;
}
.pm-branding-form__custom-label input[type=color] {
  width: 36px;
  height: 28px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  background: none;
}
.pm-branding-form__custom-label input[type=color]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.pm-branding-form__custom-label input[type=color]::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}
.pm-branding-form__color-hex {
  font-family: monospace;
  font-size: 1.3rem;
  color: #374151;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.pm-branding-form__preview-table {
  width: 100%;
  max-width: 500px;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-top: 0.75rem;
}
.pm-branding-form__preview-table th, .pm-branding-form__preview-table td {
  padding: 0.6rem 1rem;
  font-size: 1.3rem;
  text-align: left;
}
.pm-branding-form__preview-table th {
  color: #fff;
  font-weight: 600;
}
.pm-branding-form__preview-table td {
  border-bottom: 1px solid #f3f4f6;
}
.pm-branding-form__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.pm-tcrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.pm-tcrow__label {
  font-size: 1.3rem;
  color: #6b7280;
}

.pm-tcopt {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  padding: 0;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.pm-tcopt:hover {
  border-color: #9ca3af;
}
.pm-tcopt--on {
  border-color: #111827;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111827;
}

.texto-advertencia {
  color: #d44a0a;
  margin-top: 0.5rem;
  font-size: 1.3rem;
  text-align: center;
}

.user {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: #000000;
  box-shadow: none;
}

.pm-projects-table th[style*="text-align: right"], .pm-projects-table th.pm-table__actions-header {
  text-align: right;
}
.pm-projects-table td[style*="text-align: right"], .pm-projects-table td.pm-table__actions-cell {
  text-align: right;
}
.pm-projects-table .pm-actions-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}
.pm-projects-table .pm-form-cambiar-rol {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.pm-projects-table .pm-form-quitar {
  display: inline-block;
}

.pm-form__field--min-width {
  min-width: 160px;
}

.pm-btn-cambiar {
  background: transparent;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.2s ease;
  color: #000000;
}
.pm-btn-cambiar:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}
.pm-btn-cambiar:active {
  transform: scale(0.98);
}

.pm-btn-eliminar {
  background: transparent;
  border: 1px solid rgb(185, 5, 5);
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgb(185, 5, 5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-btn-eliminar:hover {
  background: #ff0000;
  color: #FFFFFF;
}
.pm-btn-eliminar:active {
  transform: scale(0.98);
}
.pm-btn-eliminar svg {
  display: block;
}

.pm-add-member-form {
  padding: 1.5rem 0 0.5rem;
}
.pm-add-member-form__grid {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 1rem;
  align-items: end;
}
@media (max-width: 768px) {
  .pm-add-member-form__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.pm-add-member-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pm-add-member-form__field--contact {
  min-width: 0;
}
.pm-add-member-form__field--role {
  min-width: 150px;
}
@media (max-width: 768px) {
  .pm-add-member-form__field--action {
    margin-top: 0.5rem;
  }
}
.pm-add-member-form__label {
  font-size: 1.3rem;
  font-weight: 500;
  color: #000000;
}
.pm-add-member-form__label--hidden {
  visibility: hidden;
}
@media (max-width: 768px) {
  .pm-add-member-form__label--hidden {
    display: none;
  }
}
.pm-add-member-form .pm-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 1.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #FFFFFF;
}
.pm-add-member-form .pm-input:focus {
  outline: none;
  border-color: #d44a0a;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.1);
}
.pm-add-member-form .pm-btn--full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.pm-add-member-form .pm-btn--full svg {
  flex-shrink: 0;
}

.pm-breadcrumb {
  display: inline-block;
  color: #0da6f3;
  text-decoration: none;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.pm-breadcrumb:hover {
  color: #0b8fd1;
  text-decoration: underline;
}

.dept-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.dept-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dept-info-label {
  font-size: 1.3rem;
  color: #333333;
  font-weight: 500;
}

.dept-info-value {
  font-size: 1.2rem;
  color: #111827;
  font-weight: 600;
}

.pm-alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.pm-alert--success {
  background: #d1fae5;
  border-left: 4px solid #10b981;
  color: #065f46;
}
.pm-alert--error {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}
.pm-alert--info {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

.pm-widget--dept-info {
  margin-bottom: 2rem;
}

.pm-widget__body--dept-description {
  color: #6b7280;
  margin-bottom: 1rem;
}

.pm-form--inline-delete {
  display: inline;
}

.pm-btn--add-first {
  margin-top: 1rem;
}

.pm-header__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pm-invite-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.pm-invite-form {
  width: 100%;
  max-width: 800px;
  margin-top: 1.5rem;
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pm-form--inline-invite {
  margin: 0;
}

.pm-form__row--invite {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.pm-form__field--grow {
  flex: 2;
}

.pm-form__field--medium {
  flex: 1;
}

.pm-form__actions--inline {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.btn-eliminar {
  background-color: #FFFFFF;
  color: #000000;
  border: none;
  font-size: 1.2rem;
  margin: 0;
  box-shadow: none;
}

.pm-modal-notice {
  color: #6b7280;
  font-size: 0.875rem;
}

.pm-widget__footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.departments-tree {
  padding: 1.5rem;
}

.dept-item {
  margin-bottom: 1rem;
}

.dept-card {
  background: #FFFFFF;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}
.dept-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.dept-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dept-card__info {
  flex: 1;
  min-width: 0;
}
.dept-card__name {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}
.dept-card__description {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 0.5rem;
}
.dept-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 1.4rem;
  color: #333333;
}
.dept-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.dept-card__actions .pm-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.75rem !important;
  font-size: 1.4rem !important;
  color: #333333 !important;
  transition: color 0.2s !important;
  border-radius: 6px !important;
  cursor: pointer !important;
}
.dept-card__actions .pm-btn:hover {
  transform: none !important;
}
.dept-card__actions .pm-btn.pm-btn--secondary {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.dept-card__actions .pm-btn.pm-btn--danger:hover {
  color: #FFFFFF !important;
  background: #dc2626 !important;
}
.dept-card__actions .pm-btn.pm-btn--ghost:hover {
  color: #d44a0a !important;
  background: none !important;
}

.pm-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .pm-table-responsive {
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
  }
  .pm-table-responsive::after {
    content: "→ Desliza →";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
    padding: 1rem 2rem 1rem 4rem;
    font-size: 1.2rem;
    color: #333333;
    pointer-events: none;
    opacity: 0.7;
  }
  .pm-table-responsive::-webkit-scrollbar {
    height: 6px;
  }
  .pm-table-responsive::-webkit-scrollbar-thumb {
    background: #e1e1e1;
    border-radius: 3px;
  }
}

.pm-projects-table,
.pm-table {
  min-width: 600px;
}
@media (max-width: 768px) {
  .pm-projects-table,
  .pm-table {
    font-size: 1.3rem;
  }
  .pm-projects-table th, .pm-projects-table td,
  .pm-table th,
  .pm-table td {
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }
  .pm-projects-table th,
  .pm-table th {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .pm-projects-table,
  .pm-table {
    min-width: 500px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .pm-table__actions .pm-actions-row,
  .pm-table__actions-cell .pm-actions-row {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .pm-table__actions .pm-btn-cambiar,
  .pm-table__actions .pm-btn-eliminar,
  .pm-table__actions-cell .pm-btn-cambiar,
  .pm-table__actions-cell .pm-btn-eliminar {
    padding: 0.5rem;
    font-size: 1.1rem;
  }
  .pm-table__actions select.pm-select-rol,
  .pm-table__actions-cell select.pm-select-rol {
    min-width: 90px;
    font-size: 1.1rem;
  }
}

.pm-modal {
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .pm-modal {
    width: 95%;
    max-height: 95vh;
    margin: 1rem;
  }
}
@media (max-width: 480px) {
  .pm-modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
}
@media (max-width: 768px) {
  .pm-modal__header {
    padding: 1.25rem;
  }
}
@media (max-width: 768px) {
  .pm-modal__body {
    padding: 1.25rem;
  }
}
@media (max-width: 768px) {
  .pm-modal__footer {
    padding: 1.25rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .pm-modal__footer .pm-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pm-field__label,
  .pm-form__field__label {
    font-size: 1.3rem;
  }
  .pm-field__input, .pm-field__select, .pm-field__textarea,
  .pm-form__field__input,
  .pm-form__field__select,
  .pm-form__field__textarea {
    font-size: 1.6rem;
    padding: 0.875rem;
  }
}

.pm-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .pm-field-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.superadmin-layout {
  display: flex;
  min-height: 100vh;
}
.superadmin-layout * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.superadmin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.75rem;
}
.sidebar-logo i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #08d8e7 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.sidebar-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  color: #fca5a5;
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1.2rem;
}
.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}
.sidebar-nav-item.active {
  background: rgba(8, 216, 231, 0.2);
  color: white;
  border-left: 3px solid #08d8e7;
}
.sidebar-nav-item i {
  width: 20px;
  text-align: center;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1rem 1.5rem;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #08d8e7 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.sidebar-user-info {
  flex: 1;
}

.sidebar-user-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.sidebar-user-role {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
}

.superadmin-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.superadmin-topbar {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-breadcrumb {
  color: #333333;
  font-size: 1.2rem;
}
.topbar-breadcrumb a {
  color: #08d8e7;
  text-decoration: none;
}
.topbar-breadcrumb a:hover {
  text-decoration: underline;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar-btn:hover {
  background: #f6f7f9;
  border-color: #08d8e7;
  color: #08d8e7;
}

.superadmin-content {
  flex: 1;
  padding: 0;
}

.superadmin-layout .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.superadmin-layout .btn-primary {
  background: #08d8e7;
  color: white;
}
.superadmin-layout .btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(8, 216, 231, 0.3);
}

.superadmin-layout .btn-secondary {
  background: #333333;
  color: white;
}
.superadmin-layout .btn-secondary:hover {
  background: #4b5563;
}

.superadmin-layout .btn-danger {
  background: rgb(185, 5, 5);
  color: white;
}
.superadmin-layout .btn-danger:hover {
  background: #dc2626;
}

.superadmin-layout .btn-link {
  color: #08d8e7;
  text-decoration: none;
  font-size: 1.2rem;
}
.superadmin-layout .btn-link:hover {
  text-decoration: underline;
}

.superadmin-layout .badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.superadmin-layout .badge-success {
  background: #d1fae5;
  color: #065f46;
}

.superadmin-layout .badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.superadmin-layout .badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.superadmin-layout .badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.superadmin-layout .alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.superadmin-layout .alert i {
  font-size: 1.25rem;
}

.superadmin-layout .alert-success {
  background: #d1fae5;
  border-left: 4px solid #16a34a;
  color: #065f46;
}

.superadmin-layout .alert-error {
  background: #fee2e2;
  border-left: 4px solid rgb(185, 5, 5);
  color: #991b1b;
}

.superadmin-layout .alert-info {
  background: #dbeafe;
  border-left: 4px solid #08d8e7;
  color: #1e40af;
}

@media (max-width: 768px) {
  .superadmin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .superadmin-sidebar.active {
    transform: translateX(0);
  }
  .superadmin-main {
    margin-left: 0;
  }
}
.superadmin-dashboard,
.superadmin-workspaces,
.superadmin-analytics,
.workspace-detail {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 1.4rem;
}
.superadmin-dashboard *,
.superadmin-workspaces *,
.superadmin-analytics *,
.workspace-detail * {
  font-size: inherit;
}
.superadmin-dashboard p, .superadmin-dashboard span, .superadmin-dashboard small, .superadmin-dashboard label, .superadmin-dashboard td, .superadmin-dashboard th, .superadmin-dashboard li, .superadmin-dashboard a, .superadmin-dashboard div,
.superadmin-workspaces p,
.superadmin-workspaces span,
.superadmin-workspaces small,
.superadmin-workspaces label,
.superadmin-workspaces td,
.superadmin-workspaces th,
.superadmin-workspaces li,
.superadmin-workspaces a,
.superadmin-workspaces div,
.superadmin-analytics p,
.superadmin-analytics span,
.superadmin-analytics small,
.superadmin-analytics label,
.superadmin-analytics td,
.superadmin-analytics th,
.superadmin-analytics li,
.superadmin-analytics a,
.superadmin-analytics div,
.workspace-detail p,
.workspace-detail span,
.workspace-detail small,
.workspace-detail label,
.workspace-detail td,
.workspace-detail th,
.workspace-detail li,
.workspace-detail a,
.workspace-detail div {
  font-size: 1.4rem;
}
.superadmin-dashboard h1,
.superadmin-workspaces h1,
.superadmin-analytics h1,
.workspace-detail h1 {
  font-size: 2.4rem;
}
.superadmin-dashboard h2,
.superadmin-workspaces h2,
.superadmin-analytics h2,
.workspace-detail h2 {
  font-size: 2rem;
}
.superadmin-dashboard h3,
.superadmin-workspaces h3,
.superadmin-analytics h3,
.workspace-detail h3 {
  font-size: 1.8rem;
}
.superadmin-dashboard h4,
.superadmin-workspaces h4,
.superadmin-analytics h4,
.workspace-detail h4 {
  font-size: 1.6rem;
}

.superadmin-workspaces {
  max-width: 1600px;
}

.dashboard-header,
.page-header,
.analytics-header,
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e1e1e1;
}

.detail-header {
  align-items: flex-start;
}

.dashboard-title,
.page-title,
.analytics-title,
.detail-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #121212;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dashboard-title i,
.page-title i,
.analytics-title i,
.detail-title i {
  color: #08d8e7;
}

.dashboard-subtitle,
.page-subtitle,
.analytics-subtitle,
.detail-subtitle {
  margin: 0.5rem 0 0 0;
  color: #333333;
  font-size: 1.3rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.breadcrumb {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: #08d8e7;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-workspaces .stat-icon {
  background: #dbeafe;
  color: #08d8e7;
}

.stat-users .stat-icon {
  background: #d1fae5;
  color: #16a34a;
}

.stat-projects .stat-icon {
  background: #ede9fe;
  color: #8b5cf6;
}

.stat-tasks .stat-icon {
  background: #fef3c7;
  color: #f2b705;
}

.stat-storage .stat-icon {
  background: #fee2e2;
  color: rgb(185, 5, 5);
}

.stat-members .stat-icon {
  background: #dbeafe;
  color: #08d8e7;
}

.stat-teams .stat-icon {
  background: #d1fae5;
  color: #16a34a;
}

.stat-files .stat-icon {
  background: #fce7f3;
  color: #ec4899;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  color: #121212;
}

.stat-label {
  margin: 0.25rem 0 0.5rem 0;
  color: #333333;
  font-size: 1.4rem;
}

.stat-change {
  font-size: 1.4rem;
  color: #333333;
}
.stat-change.positive {
  color: #16a34a;
}
.stat-change i {
  margin-right: 0.25rem;
}

.stat-footer {
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.stat-info {
  font-size: 1.4rem;
  color: #333333;
}

.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.chart-container,
.chart-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-card {
  background: #f6f7f9;
}
.chart-card.chart-full {
  grid-column: 1/-1;
}

.chart-header {
  margin-bottom: 1.5rem;
}

.chart-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #121212;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-subtitle {
  margin: 0.25rem 0 0 0;
  color: #333333;
  font-size: 1.4rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.workspaces-table-container,
.table-container,
.members-table-container {
  overflow-x: auto;
}

.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.workspaces-table,
.members-table {
  width: 100%;
  border-collapse: collapse;
}
.workspaces-table th,
.members-table th {
  background: #f6f7f9;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.4rem;
  color: #374151;
  border-bottom: 2px solid #e1e1e1;
  white-space: nowrap;
}
.workspaces-table th a,
.members-table th a {
  color: #374151;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.workspaces-table th a:hover,
.members-table th a:hover {
  color: #08d8e7;
}
.workspaces-table td,
.members-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 1.4rem;
}
.workspaces-table tr:hover,
.members-table tr:hover {
  background: #f6f7f9;
}

.workspace-row.inactive {
  opacity: 0.6;
}

.workspace-id {
  color: #333333;
  font-weight: 600;
}

.workspace-info strong {
  display: block;
  color: #121212;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}
.workspace-info small {
  display: block;
  color: #333333;
  font-size: 1.4rem;
}

.owner-info span {
  display: block;
  font-weight: 500;
  font-size: 1.4rem;
}
.owner-info small {
  display: block;
  color: #333333;
  font-size: 1.4rem;
}

.metric {
  font-weight: 600;
  color: #121212;
  font-size: 1.4rem;
}

.storage-value {
  font-family: "Courier New", monospace;
  font-size: 1.4rem;
}

.workspace-date {
  color: #333333;
  font-size: 1.4rem;
}
.workspace-date small {
  display: block;
  font-size: 1.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 1.4rem;
  font-weight: 600;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-plan {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 1.4rem;
  font-weight: 600;
}

.badge-free {
  background: #e5e7eb;
  color: #374151;
}

.badge-basic {
  background: #dbeafe;
  color: #1e40af;
}

.badge-pro {
  background: #ede9fe;
  color: #6b21a8;
}

.badge-enterprise {
  background: #fef3c7;
  color: #92400e;
}

.badge-rol {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 1.4rem;
  font-weight: 600;
}

.badge-workspace_owner {
  background: #fef3c7;
  color: #92400e;
}

.badge-admin {
  background: #dbeafe;
  color: #1e40af;
}

.badge-miembro {
  background: #e5e7eb;
  color: #374151;
}

.badge-prioridad {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 1.4rem;
  font-weight: 600;
}

.badge-alta {
  background: #fee2e2;
  color: #991b1b;
}

.badge-media {
  background: #fef3c7;
  color: #92400e;
}

.badge-baja {
  background: #d1fae5;
  color: #065f46;
}

.task-status-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 1.4rem;
  font-weight: 600;
}

.search-bar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.search-form {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-group i {
  position: absolute;
  left: 1rem;
  color: #9ca3af;
  font-size: 1.4rem;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1.4rem;
}
.search-input:focus {
  outline: none;
  border-color: #08d8e7;
  box-shadow: 0 0 0 3px rgba(8, 216, 231, 0.1);
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-info {
  color: #333333;
  font-size: 1.4rem;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-page {
  padding: 0.5rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  font-size: 1.4rem;
  transition: all 0.2s;
  min-width: 2.5rem;
  text-align: center;
  text-decoration: none;
}
.btn-page:hover {
  background: #f3f4f6;
  border-color: #08d8e7;
  color: #08d8e7;
}
.btn-page.active {
  background: #08d8e7;
  border-color: #08d8e7;
  color: white;
}

.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  color: #9ca3af;
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.empty-state p {
  margin: 0;
  font-size: 1.3rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-action {
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
  color: #333333;
  text-decoration: none;
  font-size: 1.4rem;
}
.btn-action:hover {
  background: #f3f4f6;
}

.btn-view:hover {
  color: #08d8e7;
}

.btn-icon {
  padding: 0.5rem;
  color: #333333;
  transition: color 0.2s;
  text-decoration: none;
  font-size: 1.4rem;
}
.btn-icon:hover {
  color: #08d8e7;
}

.btn-link {
  color: #08d8e7;
  text-decoration: none;
  font-size: 1.4rem;
}
.btn-link:hover {
  text-decoration: underline;
}

.recent-workspaces-section,
.stats-section,
.management-section,
.members-section,
.projects-section,
.tasks-section,
.stats-summary,
.plans-distribution,
.growth-charts,
.engagement-metrics {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.stats-summary,
.plans-distribution,
.growth-charts,
.engagement-metrics {
  padding: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #121212;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 1rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-label {
  font-size: 1.4rem;
  color: #333333;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.info-value {
  font-size: 1.3rem;
  color: #121212;
  font-weight: 600;
}
.info-value small {
  display: block;
  font-size: 1.4rem;
  color: #333333;
  font-weight: 400;
  margin-top: 0.25rem;
}
.info-value code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 1.4rem;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.management-card {
  padding: 1.5rem;
  background: #f6f7f9;
  border-radius: 8px;
}

.management-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #121212;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.management-description {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 1rem;
}

.management-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-select {
  padding: 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1.4rem;
}
.form-select:focus {
  outline: none;
  border-color: #08d8e7;
  box-shadow: 0 0 0 3px rgba(8, 216, 231, 0.1);
}

.tasks-status-section {
  margin-top: 1.5rem;
}

.tasks-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.task-status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f6f7f9;
  border-radius: 8px;
  font-size: 1.4rem;
}

.task-status-count {
  font-weight: 700;
  color: #121212;
  font-size: 1.4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  padding: 1.5rem;
  background: #f6f7f9;
  border-radius: 8px;
  border-left: 4px solid #08d8e7;
}

.project-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.project-description {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.task-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #f6f7f9;
  border-radius: 8px;
}

.task-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.task-project {
  font-size: 1.4rem;
  color: #333333;
  margin: 0;
}

.task-badges {
  display: flex;
  gap: 0.5rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: #f6f7f9;
  text-align: center;
}

.plan-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.plan-free .plan-icon {
  background: #e5e7eb;
  color: #333333;
}

.plan-basic .plan-icon {
  background: #dbeafe;
  color: #08d8e7;
}

.plan-pro .plan-icon {
  background: #ede9fe;
  color: #8b5cf6;
}

.plan-enterprise .plan-icon {
  background: #fef3c7;
  color: #f2b705;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #121212;
}

.plan-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.plan-count {
  font-size: 1.6rem;
  font-weight: 700;
  color: #121212;
}

.plan-percentage {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
}

.plan-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.plan-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #08d8e7 0%, #8b5cf6 100%);
  transition: width 0.3s ease;
}

.plan-chart-container {
  max-width: 400px;
  margin: 2rem auto 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f6f7f9;
  border-radius: 12px;
}

.metric-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #08d8e7 0%, #8b5cf6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #121212;
}

.metric-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.metric-description {
  font-size: 1.4rem;
  color: #333333;
  margin: 0;
}

.stats-summary .stat-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f6f7f9 0%, #ffffff 100%);
  border: 1px solid #e1e1e1;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #333333;
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .superadmin-dashboard,
  .superadmin-workspaces,
  .superadmin-analytics,
  .workspace-detail {
    padding: 1rem;
  }
  .dashboard-header,
  .page-header,
  .analytics-header,
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .charts-section,
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .search-form {
    flex-direction: column;
  }
  .search-form .btn {
    width: 100%;
  }
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }
  .management-grid {
    grid-template-columns: 1fr;
  }
  .task-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.pm-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.2rem solid #e3e8ef;
}

.pm-section-title svg {
  color: #0da6f3;
}

.pm-section-title h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #212529;
}

.pm-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .pm-field-group {
    grid-template-columns: 1fr;
  }
}
.pm-info-box {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(13, 166, 243, 0.05);
  border: 1px solid rgba(13, 166, 243, 0.2);
  border-radius: 0.8rem;
  margin-top: 1.5rem;
}

.pm-info-box svg {
  flex-shrink: 0;
  color: #0da6f3;
  margin-top: 0.2rem;
}

.pm-info-box strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #212529;
}

.pm-info-box p {
  margin: 0;
  font-size: 1.2rem;
  color: #6c757d;
  line-height: 1.5;
}

.pm-info-box p + p {
  margin-top: 0.3rem;
}

#workspace-modal-alerts {
  margin-bottom: 1.5rem;
}

#workspace-modal-alerts .pm-alert {
  margin-bottom: 1rem;
}

#workspace-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tarea-banner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #d44a0a 0%, #e8621f 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(212, 74, 10, 0.25);
  animation: tarea-slideDown 0.35s ease;
  position: relative;
  overflow: hidden;
}
.tarea-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.tarea-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: white;
}
.tarea-banner__icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tarea-banner__content {
  flex: 1;
  min-width: 0;
}
.tarea-banner__label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.2rem;
}
.tarea-banner__title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tarea-banner__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}
.tarea-banner__status svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.tarea-banner__status--loaded {
  background: rgba(255, 255, 255, 0.2);
  color: #d4ffd4;
}
.tarea-banner__status--loaded svg {
  stroke: #7dff7d;
}
.tarea-banner__status--empty {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}
.tarea-banner__status--empty svg {
  stroke: rgba(255, 255, 255, 0.6);
}
.tarea-banner__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.tarea-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tarea-banner__link:hover {
  background: rgba(255, 255, 255, 0.28);
}
.tarea-banner__link svg {
  width: 16px;
  height: 16px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .tarea-banner {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
  }
  .tarea-banner__content {
    flex: 1 1 calc(100% - 60px);
  }
  .tarea-banner__title {
    font-size: 1.35rem;
  }
  .tarea-banner__actions {
    width: 100%;
  }
  .tarea-banner__link {
    width: 100%;
    justify-content: center;
  }
}
.tarea-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}
@media (max-width: 600px) {
  .tarea-toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

.tarea-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #1f2937;
  color: white;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  animation: tarea-toastIn 0.3s ease;
}
.tarea-toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
}
.tarea-toast__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.tarea-toast__text {
  flex: 1;
  line-height: 1.3;
}
.tarea-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  animation: tarea-progressShrink 4s linear forwards;
}
.tarea-toast--success {
  border-left: 4px solid #10b981;
}
.tarea-toast--success .tarea-toast__icon {
  background: rgba(16, 185, 129, 0.15);
}
.tarea-toast--success .tarea-toast__icon svg {
  stroke: #10b981;
}
.tarea-toast--success .tarea-toast__progress {
  background: #10b981;
}
.tarea-toast--error {
  border-left: 4px solid #ef4444;
}
.tarea-toast--error .tarea-toast__icon {
  background: rgba(239, 68, 68, 0.15);
}
.tarea-toast--error .tarea-toast__icon svg {
  stroke: #ef4444;
}
.tarea-toast--error .tarea-toast__progress {
  background: #ef4444;
}
.tarea-toast--info {
  border-left: 4px solid #3b82f6;
}
.tarea-toast--info .tarea-toast__icon {
  background: rgba(59, 130, 246, 0.15);
}
.tarea-toast--info .tarea-toast__icon svg {
  stroke: #3b82f6;
}
.tarea-toast--info .tarea-toast__progress {
  background: #3b82f6;
}
.tarea-toast--fade-out {
  animation: tarea-toastOut 0.3s ease forwards;
}

@keyframes tarea-slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes tarea-toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes tarea-toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
}
@keyframes tarea-progressShrink {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
.pm-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}
.pm-cal-toolbar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pm-cal-toolbar__nav-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pm-cal-toolbar__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  min-width: 15rem;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: -0.01em;
  user-select: none;
}
.pm-cal-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1.5px solid #e1e1e1;
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.pm-cal-toolbar__btn svg {
  display: block;
  flex-shrink: 0;
  stroke: #374151;
  transition: stroke 0.15s;
}
.pm-cal-toolbar__btn:hover {
  border-color: #d44a0a;
  background: #fff8f5;
}
.pm-cal-toolbar__btn:hover svg {
  stroke: #d44a0a;
}
.pm-cal-toolbar__btn:active {
  background: #fef0e8;
}
.pm-cal-toolbar__today {
  font-size: 1.3rem;
  padding: 0 1.4rem;
  height: 3.4rem;
  border-radius: 8px;
  border: 1.5px solid #e1e1e1;
  background: #FFFFFF;
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-left: 0.4rem;
}
.pm-cal-toolbar__today:hover {
  background: #fff8f5;
  border-color: #d44a0a;
  color: #d44a0a;
}
.pm-cal-toolbar__right {
  display: flex;
  align-items: center;
}
.pm-cal-toolbar__views {
  display: flex;
  gap: 0.25rem;
}
.pm-cal-toolbar__view-btn {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0 1.8rem;
  height: 3.4rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pm-cal-toolbar__view-btn--active {
  background: #fff3ee;
  color: #d44a0a;
  border-color: rgba(212, 74, 10, 0.3);
}
.pm-cal-toolbar__view-btn:hover:not(.pm-cal-toolbar__view-btn--active) {
  color: #374151;
  background: #f3f4f6;
}

.pm-calendar {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.pm-calendar--hidden {
  display: none;
}
.pm-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e1e1e1;
  background: #fafafa;
}
.pm-calendar__weekday {
  padding: 0.9rem 0.5rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pm-calendar__weekday--weekend {
  color: #d1d5db;
}
.pm-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.pm-calendar__day {
  min-height: 11rem;
  border-right: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  padding: 0.4rem 0.35rem 0.35rem;
  vertical-align: top;
  position: relative;
  cursor: pointer;
  transition: background 0.12s;
}
.pm-calendar__day:hover {
  background: #fafafa;
}
.pm-calendar__day:nth-child(7n) {
  border-right: none;
}
.pm-calendar__day:nth-last-child(-n+7) {
  border-bottom: none;
}
.pm-calendar__day--other-month {
  background: #fafafa;
}
.pm-calendar__day--other-month .pm-calendar__day-number {
  color: #d1d5db;
}
.pm-calendar__day--today {
  background: #fff8f5;
}
.pm-calendar__day--today .pm-calendar__day-number {
  background: #d44a0a;
  color: #fff;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-calendar__day-number {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333333;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  user-select: none;
}
.pm-calendar__events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pm-calendar__event {
  display: block;
  font-size: 1.1rem;
  line-height: 1.3;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border-left: 3px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, filter 0.15s;
}
.pm-calendar__event:hover {
  filter: brightness(0.94);
  text-decoration: none;
}
.pm-calendar__event--done {
  opacity: 0.4;
  text-decoration: line-through;
}
.pm-calendar__event--urgente {
  background: #fee2e2;
  color: #dc2626;
  border-left-color: #dc2626;
}
.pm-calendar__event--alta {
  background: #fef3c7;
  color: #b45309;
  border-left-color: #d97706;
}
.pm-calendar__event--media {
  background: #fef9c3;
  color: #854d0e;
  border-left-color: #ca8a04;
}
.pm-calendar__event--baja {
  background: #dcfce7;
  color: #166534;
  border-left-color: #16a34a;
}
.pm-calendar__event--sin {
  background: #f3f4f6;
  color: #4b5563;
  border-left-color: #9ca3af;
}
.pm-calendar__event-more {
  font-size: 1.1rem;
  color: #d44a0a;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  cursor: pointer;
  background: none;
  border: none;
}
.pm-calendar__event-more:hover {
  text-decoration: underline;
}
.pm-calendar__skeleton {
  padding: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 1.3rem;
}

.pm-agenda--hidden {
  display: none;
}
.pm-agenda__empty {
  padding: 4rem 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 1.4rem;
}
.pm-agenda__group {
  margin-bottom: 1.75rem;
}
.pm-agenda__date-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e1e1e1;
  margin-bottom: 0.75rem;
}
.pm-agenda__task {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #e1e1e1;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: #FFFFFF;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.pm-agenda__task:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
  text-decoration: none;
}
.pm-agenda__task-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.pm-agenda__task-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-agenda__task-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.pm-agenda__task-project {
  font-size: 1.2rem;
  color: #6b7280;
  white-space: nowrap;
}
.pm-agenda__task-assignee {
  font-size: 1.2rem;
  color: #9ca3af;
  white-space: nowrap;
}

.pm-cal-modal__date-hint {
  font-size: 1.3rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .pm-cal-toolbar {
    flex-wrap: wrap;
  }
  .pm-cal-toolbar__title {
    font-size: 1.4rem;
    min-width: 12rem;
  }
  .pm-calendar__day {
    min-height: 5rem;
    padding: 0.25rem 0.2rem;
  }
  .pm-calendar__event {
    font-size: 0;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    border-left: none;
    padding: 0;
    display: inline-block;
    margin-right: 2px;
    vertical-align: middle;
  }
  .pm-calendar__events {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pm-calendar__event-more {
    font-size: 0;
  }
  .pm-agenda__task {
    flex-wrap: wrap;
  }
  .pm-agenda__task-meta {
    width: 100%;
  }
}
.pm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
@media (max-width: 768px) {
  .pm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .pm-stats-grid {
    grid-template-columns: 1fr;
  }
}

.pm-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pm-stat-card:hover {
  border-color: rgba(212, 74, 10, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pm-stat-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.pm-stat-card__content {
  min-width: 0;
  overflow: hidden;
}

.pm-stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: #121212;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-stat-card__label {
  font-size: 1.2rem;
  color: #333333;
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-files-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .pm-files-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.pm-files-toolbar__search {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 480px;
}
.pm-files-toolbar__search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}
@media (max-width: 480px) {
  .pm-files-toolbar__search {
    max-width: 100%;
  }
}

.pm-files-toolbar__input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1.5px solid #e1e1e1;
  border-radius: 12px;
  font-size: 1.4rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pm-files-toolbar__input:focus {
  outline: none;
  border-color: #d44a0a;
  box-shadow: 0 0 0 3px rgba(212, 74, 10, 0.1);
}
.pm-files-toolbar__input::placeholder {
  color: #94A3B8;
}

.pm-files-toolbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px;
  background: #f1f3f5;
  border: 1.5px solid #e1e1e1;
  border-radius: 12px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: -4px;
}

.pm-view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin: 0;
}
.pm-view-toggle-btn svg {
  display: block;
  flex-shrink: 0;
}
.pm-view-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #475569;
}
.pm-view-toggle-btn--active {
  background: #FFFFFF;
  color: #d44a0a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  margin: 0;
}
.pm-view-toggle-btn--active:hover {
  background: #FFFFFF;
  color: rgb(187.6486486486, 65.5, 8.8513513514);
}

.pm-file-list {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.pm-file-list .pm-file-list-item + .pm-file-list-item {
  border-top: 1px solid #e1e1e1;
}

.pm-file-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  transition: background 0.15s;
}
.pm-file-list-item:hover {
  background: #e1e1e1;
}
@media (max-width: 480px) {
  .pm-file-list-item {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }
}

.pm-file-list-item__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}
.pm-file-list-item__icon--pdf {
  background: #fff5f5;
}
.pm-file-list-item__icon--doc, .pm-file-list-item__icon--docx {
  background: #eff6ff;
}
.pm-file-list-item__icon--xls, .pm-file-list-item__icon--xlsx, .pm-file-list-item__icon--csv {
  background: #f0fdf4;
}
.pm-file-list-item__icon--jpg, .pm-file-list-item__icon--jpeg, .pm-file-list-item__icon--png, .pm-file-list-item__icon--gif {
  background: #faf5ff;
}
.pm-file-list-item__icon--zip, .pm-file-list-item__icon--rar {
  background: #fef3c7;
}
.pm-file-list-item__icon--mp4, .pm-file-list-item__icon--avi {
  background: #fce7f3;
}
.pm-file-list-item__icon--mp3 {
  background: #ecfdf5;
}

.pm-file-list-item__emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.pm-file-list-item__ext {
  font-size: 1rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.pm-file-list-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
@media (max-width: 480px) {
  .pm-file-list-item__body {
    width: calc(100% - 48px - 1rem);
    flex: none;
  }
}

.pm-file-list-item__name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #121212;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-file-list-item__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 1.2rem;
  color: #333333;
}

.pm-file-list-item__project {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333333;
  text-decoration: none;
}
.pm-file-list-item__project:is(a) {
  color: #d44a0a;
}
.pm-file-list-item__project:is(a):hover {
  text-decoration: underline;
}

.pm-file-list-item__sep {
  color: #e1e1e1;
  flex-shrink: 0;
}

.pm-file-list-item__size,
.pm-file-list-item__date {
  white-space: nowrap;
  flex-shrink: 0;
}

.pm-file-list-item__actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .pm-file-list-item__actions {
    margin-left: auto;
  }
}

.pm-file-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e1e1e1;
  border: 1px solid #e1e1e1;
  color: #333333;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  flex-shrink: 0;
}
.pm-file-action-btn:hover {
  background: #FFFFFF;
  border-color: rgba(212, 74, 10, 0.4);
  color: #d44a0a;
}
.pm-file-action-btn--download {
  background: rgba(212, 74, 10, 0.08);
  border-color: rgba(212, 74, 10, 0.2);
  color: #d44a0a;
}
.pm-file-action-btn--download:hover {
  background: #d44a0a;
  color: #FFFFFF;
}
.pm-file-action-btn--drive:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}
.pm-file-action-btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .pm-file-list-item {
    padding: 0.85rem 1rem;
  }
  .pm-file-list-item__date {
    display: none;
  }
}
@media (max-width: 480px) {
  .pm-file-list-item__size {
    display: none;
  }
}
#files-grid-view {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
}
@media (max-width: 768px) {
  #files-grid-view {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.9rem;
  }
}
@media (max-width: 480px) {
  #files-grid-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

#files-grid-view .pm-file-card {
  background: #FFFFFF;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
#files-grid-view .pm-file-card:hover {
  border-color: #d44a0a;
  box-shadow: 0 6px 20px rgba(212, 74, 10, 0.1);
  transform: translateY(-2px);
}

#files-grid-view .pm-file-card__preview {
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-bottom: 1px solid #f0f0f0;
}

#files-grid-view .pm-file-card[data-type=pdf] .pm-file-card__preview {
  background: #fff5f5;
}

#files-grid-view .pm-file-card[data-type=doc] .pm-file-card__preview,
#files-grid-view .pm-file-card[data-type=docx] .pm-file-card__preview {
  background: #eff6ff;
}

#files-grid-view .pm-file-card[data-type=xls] .pm-file-card__preview,
#files-grid-view .pm-file-card[data-type=xlsx] .pm-file-card__preview {
  background: #f0fdf4;
}

#files-grid-view .pm-file-card[data-type=jpg] .pm-file-card__preview,
#files-grid-view .pm-file-card[data-type=jpeg] .pm-file-card__preview,
#files-grid-view .pm-file-card[data-type=png] .pm-file-card__preview {
  background: #faf5ff;
}

#files-grid-view .pm-file-card__icon {
  font-size: 3rem;
  line-height: 1;
}

#files-grid-view .pm-file-card__type {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e1e1e1;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#files-grid-view .pm-file-card__content {
  padding: 0.9rem 1rem 0.5rem;
  flex: 1;
  min-width: 0;
}

#files-grid-view .pm-file-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #121212;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#files-grid-view .pm-file-card__meta {
  font-size: 1.1rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

#files-grid-view .pm-file-card__project {
  font-size: 1.1rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#files-grid-view .pm-file-card__actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
}

.pm-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #333333;
}
.pm-empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}
.pm-empty-state__text {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
}
.pm-empty-state__subtext {
  font-size: 1.2rem;
  color: #333333;
  margin-top: 0.5rem;
}

.pm-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 1rem;
}

.pm-projects-folders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1200px) {
  .pm-projects-folders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .pm-projects-folders-grid {
    grid-template-columns: 1fr;
  }
}

.pm-project-folder {
  cursor: pointer;
}
.pm-project-folder .pm-files__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(245, 195, 159, 0.3803921569);
  color: #d44a0a;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.pm-project-folder .pm-card__title {
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}
.pm-project-folder .pm-card__text {
  font-size: 0.85rem;
}
.pm-project-folder:hover .pm-card__title {
  color: #d44a0a;
}/*# sourceMappingURL=app.css.map */
