/* ══════════════════════════════════════════════════════════════
   BRANDING LICITIA PH: "Ladrillos, Mampostería & Obras Civiles"
   Arquitectura 100% Luminosa (Sin temas oscuros / Cero Negro)
   ══════════════════════════════════════════════════════════════ */

/* BASE GLOBAL PH (Siempre Diáfano y Luminoso) */
:root,
html.ph-landing-page,
html.ph-landing-page body,
html.theme-light.ph-landing-page,
html.theme-light.ph-landing-page body,
html.ph-portal,
html.ph-portal body,
html.theme-light.ph-portal,
html.theme-light.ph-portal body,
body.ph-landing-body,
.ph-module,
.ph-module body,
html.ph-module,
html.ph-module body,
[data-theme="ph"],
[data-theme="ph"] body {
  /* Forzar modo claro en tokens semánticos */
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-overlay: rgba(15, 23, 42, 0.45);
  --border: #e2e8f0;
  --border-active: #c2410c;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-link: #c2410c;
  --text-main: var(--text-primary);

  --ph-bg-deep: var(--bg-body);
  --ph-overlay-bg: rgba(15, 23, 42, 0.45);
  --ph-nav-bg: rgba(255, 255, 255, 0.92);
  --ph-card-bg: rgba(255, 255, 255, 0.92);
  --ph-card-border: #e2e8f0;

  /* 🧱 Paleta Primaria: Terracota Ladrillo Toscano */
  --primary: #c2410c;              /* Terracota denso de alto contraste (Orange-700) */
  --primary-hover: #9a3412;        /* Ladrillo quemado (Orange-800) */
  --primary-soft: rgba(194, 65, 12, 0.10);  /* Fondo suave terracota */
  --ph-danger: #b91c1c;
  --ph-danger-soft: color-mix(in srgb, var(--ph-danger) 12%, transparent);

  /* Matices de Obra, Mampostería y Cobre */
  --ph-brick-vibrant: #ea580c;     /* Ladrillo vivo (Orange-600) */
  --ph-brick-klinker: #9a3412;     /* Klinker profundo */
  --ph-amber-work: #d97706;        /* Ámbar de obra y señalización */
  --ph-amber-soft: rgba(217, 119, 6, 0.12);
  --ph-copper: #c2410c;            /* Reflejo cobre arquitectónico */
  --ph-mortar: #fed7aa;            /* Mortero / Arena clara */

  --ph-btn-shadow: 0 4px 14px rgba(194, 65, 12, 0.22);
  --ph-btn-shadow-hover: 0 6px 20px rgba(194, 65, 12, 0.35);

  --ph-landing-font: var(--font-sans);
  --ph-landing-text-main: var(--text-primary);
  --ph-landing-text-muted: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   LOS 2 TEMAS ARQUITECTÓNICOS OFICIALES DE LICITIA PH (Sin Negro):
   1. Blanco Puro Arquitectónico (Lienzo formal, diáfano)
   2. Piedra Caliza & Travertino (Cantera cálida, mármol romano)
   ══════════════════════════════════════════════════════════════ */

/* ── TEMA 1: «Blanco Puro Arquitectónico» (Por Defecto) ── */
html.ph-theme-blanco,
html.ph-theme-blanco body,
html.theme-light.ph-theme-blanco body,
html.ph-theme-blanco .ph-module {
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-overlay: rgba(15, 23, 42, 0.45);
  --border: #e2e8f0;
  --border-active: #c2410c;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-link: #c2410c;

  --ph-bg-deep: #ffffff;
  --ph-overlay-bg: rgba(15, 23, 42, 0.45);
  --ph-nav-bg: rgba(255, 255, 255, 0.94);
  --ph-card-bg: rgba(255, 255, 255, 0.96);
  --ph-card-border: #e2e8f0;

  --primary: #c2410c;              /* Ladrillo toscano enérgico */
  --primary-hover: #9a3412;        /* Arcilla tostada */
  --primary-soft: rgba(194, 65, 12, 0.10);
  --ph-btn-shadow: 0 4px 14px rgba(194, 65, 12, 0.22);
  --ph-btn-shadow-hover: 0 6px 20px rgba(194, 65, 12, 0.32);
}

/* Portales en Blanco Puro: el lienzo es un gris muy claro y las tarjetas quedan en
   blanco, para que resalten como en Piedra Caliza. La landing pública sigue blanca. */
html.ph-theme-blanco:not(.ph-landing-page),
html.ph-theme-blanco:not(.ph-landing-page) body {
  --bg-body: #eef2f6;
  --ph-bg-deep: #eef2f6;
  --ph-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -10px rgba(15, 23, 42, 0.14);
}

/* ── TEMA 2: «Piedra Caliza & Travertino» (Cantera Cálida & Mármol Romano) ── */
html.ph-theme-caliza,
html.ph-theme-caliza body,
html.theme-light.ph-theme-caliza body,
html.ph-theme-caliza .ph-module,
html.ph-theme-hormigon,
html.ph-theme-hormigon body,
html.theme-light.ph-theme-hormigon body,
html.ph-theme-hormigon .ph-module {
  --bg-body: #f4efe6;              /* Arena de cantera / Piedra caliza natural cálida */
  --bg-surface: #fbf8f2;           /* Mármol travertino cálido pulido para tarjetas y paneles */
  --bg-elevated: #eee6d8;          /* Piedra caliza intermedia para juntas, inputs y cajas */
  --bg-overlay: rgba(28, 25, 23, 0.48); /* Velo translúcido con tinte mineral cálido */
  --border: #ded3c1;               /* Juntas de cantera suaves y definidas */
  --border-active: #c2410c;

  --text-primary: #1c1917;         /* Pizarra oscura cálida de alto contraste */
  --text-secondary: #44403c;
  --text-muted: #78716c;           /* Piedra cálida para etiquetas y metadatos */
  --text-link: #c2410c;

  --ph-bg-deep: #f4efe6;
  --ph-overlay-bg: rgba(28, 25, 23, 0.48);
  --ph-nav-bg: rgba(251, 248, 242, 0.96);
  --ph-card-bg: rgba(251, 248, 242, 0.96);
  --ph-card-border: #ded3c1;

  --primary: #c2410c;              /* Terracota toscano vivo */
  --primary-hover: #9a3412;
  --primary-soft: rgba(194, 65, 12, 0.12);
  --ph-btn-shadow: 0 4px 14px rgba(194, 65, 12, 0.22);
  --ph-btn-shadow-hover: 0 6px 20px rgba(194, 65, 12, 0.35);
}

/* ══════════════════════════════════════════════════════════════
   TONALIDADES DE OBRA & MAMPOSTERÍA (Cambio dinámico de botones PH):
   1. Terracota Ladrillo (Predeterminado - Toscano / Arcilla viva)
   2. Ladrillo Férrico / Teja de Obra (Rojo Teja / Clinker estructural)
   3. Ámbar / Ocre de Obra (Ocre cálido / Maquinaria y señalización)
   ══════════════════════════════════════════════════════════════ */

html.ph-accent-terracota,
html.ph-accent-terracota body,
html.theme-light.ph-accent-terracota body,
html.ph-accent-terracota .ph-module {
  --primary: #c2410c;
  --primary-hover: #9a3412;
  --primary-soft: rgba(194, 65, 12, 0.12);
  --border-active: #c2410c;
  --text-link: #c2410c;
  --ph-btn-shadow: 0 4px 14px rgba(194, 65, 12, 0.22);
  --ph-btn-shadow-hover: 0 6px 20px rgba(194, 65, 12, 0.35);
}

html.ph-accent-ferrico,
html.ph-accent-ferrico body,
html.theme-light.ph-accent-ferrico body,
html.ph-accent-ferrico .ph-module {
  --primary: #b91c1c;
  --primary-hover: #991b1b;
  --primary-soft: rgba(185, 28, 28, 0.12);
  --border-active: #b91c1c;
  --text-link: #b91c1c;
  --ph-btn-shadow: 0 4px 14px rgba(185, 28, 28, 0.25);
  --ph-btn-shadow-hover: 0 6px 20px rgba(185, 28, 28, 0.35);
}

html.ph-accent-ambar,
html.ph-accent-ambar body,
html.theme-light.ph-accent-ambar body,
html.ph-accent-ambar .ph-module {
  --primary: #d97706;
  --primary-hover: #b45309;
  --primary-soft: rgba(217, 119, 6, 0.12);
  --border-active: #d97706;
  --text-link: #d97706;
  --ph-btn-shadow: 0 4px 14px rgba(217, 119, 6, 0.22);
  --ph-btn-shadow-hover: 0 6px 20px rgba(217, 119, 6, 0.35);
}

/* Reglas globales de la página de landing PH */
html.ph-landing-page {
  background-color: var(--bg-body) !important;
  scroll-behavior: smooth;
}

body.ph-landing-body {
  background-color: transparent !important;
  font-family: var(--ph-landing-font);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Forzar que el contenido principal se sobreponga al canvas y overlay */
.ph-landing-hero, 
.ph-landing-page section,
.ph-landing-page footer {
  position: relative;
  z-index: 10;
}

.ph-landing-page nav {
  position: sticky;
  top: 0;
  z-index: 100 !important;
}

/* Canvas y Overlay del efecto Inception */
.ph-inception-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.ph-inception-canvas.loaded {
  opacity: 1;
}

.ph-inception-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
  transition: background 0.3s ease;
}

/* Barra de navegación flotante / fija con blur y bordes dinámicos */
.ph-nav-glass {
  background-color: var(--ph-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Tarjetas modulares Glassmorphic */
.ph-glass-card {
  background-color: var(--ph-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ph-card-border);
  border-radius: 1.25rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.ph-glass-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(194, 65, 12, 0.18);
}

/* Título con gradiente de marca LicitIA PH: Ladrillo Vivo al Sol → Ámbar Dorado de Obra */
.grad-text {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 45%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

html.ph-theme-blanco .grad-text {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 45%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.ph-theme-caliza .grad-text {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.ph-theme-hormigon .grad-text {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Micro-indicadores visuales */
.dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
  animation: ph-pulse 2s infinite;
}

@keyframes ph-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
  }
}

/* Menús desplegables de idioma */
#langMenu,
#langMenuMob {
  display: none;
}

#langMenu.is-open,
#langMenuMob.is-open {
  display: block;
}

@media (max-width: 1023px) {
  .desktop-nav-links {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .desktop-nav-links {
    display: flex !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   SISTEMA DE DISEÑO DE BOTONES Y BADGES PH (Senior UI/UX)
   ══════════════════════════════════════════════════════════════ */

/* Botón Principal (Primary CTA) */
.btn-ph-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  background-color: var(--primary);
  border: 1px solid transparent;
  border-radius: 0.625rem;
  box-shadow: var(--ph-btn-shadow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-ph-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--ph-btn-shadow-hover);
  color: #ffffff;
}
.btn-ph-primary:active {
  transform: translateY(0);
}

/* Botón Secundario (Elevated Surface) */
.btn-ph-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-ph-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-active);
  color: var(--text-link);
}

/* Botón Sutil / Outline (Para herramientas de tarjeta, ítems secundarios) */
.btn-ph-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  padding: 0.3125rem 0.5625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-secondary);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-ph-subtle:hover,
.btn-ph-subtle:active,
.btn-ph-subtle:focus-visible {
  color: var(--text-main);
  border-color: var(--border-active);
  background-color: var(--bg-elevated);
}

/* Botón de Acción Destacada en Tarjeta (ej: Ver Ofertas) */
.btn-ph-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  padding: 0.3125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-link);
  background-color: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-ph-accent:hover,
.btn-ph-accent:active,
.btn-ph-accent:focus-visible {
  background-color: color-mix(in srgb, var(--primary) 18%, var(--bg-surface));
  border-color: var(--border-active);
  color: var(--primary-hover);
}

/* Botón Urgente Refinado */
.btn-ph-urgent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-ph-urgent:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

/* Botón Peligro Sutil (Cancelar, Eliminar) */
.btn-ph-danger-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.3125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ph-danger);
  background-color: var(--ph-danger-soft);
  border: 1px solid color-mix(in srgb, var(--ph-danger) 28%, transparent);
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-ph-danger-subtle:hover,
.btn-ph-danger-subtle:active,
.btn-ph-danger-subtle:focus-visible {
  background-color: color-mix(in srgb, var(--ph-danger) 16%, var(--bg-surface));
  border-color: var(--ph-danger);
  color: var(--ph-danger);
}

/* ── Badges Estandarizados PH ── */
.badge-ph {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-ph-published {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}
.badge-ph-awarded {
  background-color: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}
.badge-ph-draft {
  background-color: rgba(113, 113, 122, 0.14);
  color: #a1a1aa;
  border-color: rgba(113, 113, 122, 0.25);
}
.badge-ph-closed {
  background-color: rgba(161, 161, 170, 0.12);
  color: #d4d4d8;
  border-color: rgba(161, 161, 170, 0.2);
}
.badge-ph-urgent {
  background-color: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.25);
}

/* ══════════════════════════════════════════════════════════════
   PORTAL INTERNO PH: Adaptación Arquitectónica ("Dentro de Login")
   Garantiza 100% luminosidad en portal.html y cero elementos oscuros
   ══════════════════════════════════════════════════════════════ */

/* Fondo general de los portales PH */
body.ph-module {
  background-color: var(--bg-body) !important;
  color: var(--text-main) !important;
}

/* Paneles Glass en el dashboard y vistas de PH */
.ph-module .glass {
  background-color: var(--bg-surface) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(194, 65, 12, 0.04) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* En Blanco Puro */
html.ph-theme-blanco .glass,
html.ph-theme-blanco .ph-module .glass {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--ph-card-shadow, 0 4px 20px -4px rgba(15, 23, 42, 0.05)) !important;
}

/* En Piedra Caliza & Travertino: paneles y tarjetas con textura cálida de travertino refinado (NO blanco frío) */
html.ph-theme-caliza .glass,
html.ph-theme-caliza .ph-module .glass,
html.ph-theme-hormigon .glass,
html.ph-theme-hormigon .ph-module .glass {
  background-color: #fbf8f2 !important;
  border: 1px solid #ded3c1 !important;
  box-shadow: 0 4px 20px -4px rgba(68, 64, 60, 0.08), 0 2px 6px -1px rgba(194, 65, 12, 0.05) !important;
}

html.ph-theme-caliza .glass-hover:hover,
html.ph-theme-caliza .ph-module .glass-hover:hover,
html.ph-theme-hormigon .glass-hover:hover,
html.ph-theme-hormigon .ph-module .glass-hover:hover {
  border-color: #c2410c !important;
  background-color: #f6f0e4 !important;
  box-shadow: 0 10px 25px -5px rgba(68, 64, 60, 0.12), 0 8px 10px -6px rgba(194, 65, 12, 0.10) !important;
  transform: translateY(-2px);
}

/* Sidebar en portal PH */
.ph-module aside#ph-sidebar-container,
.ph-module aside.glass {
  background-color: var(--bg-surface) !important;
  border-right: 1px solid var(--border) !important;
  box-shadow: 2px 0 16px -4px rgba(15, 23, 42, 0.04) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
html.ph-theme-caliza aside#ph-sidebar-container,
html.ph-theme-caliza aside.glass,
html.ph-theme-caliza .ph-module aside#ph-sidebar-container,
html.ph-theme-caliza .ph-module aside.glass,
html.ph-theme-hormigon aside#ph-sidebar-container,
html.ph-theme-hormigon aside.glass,
html.ph-theme-hormigon .ph-module aside#ph-sidebar-container,
html.ph-theme-hormigon .ph-module aside.glass {
  background-color: #fbf8f2 !important;
  border-right: 1px solid #ded3c1 !important;
  box-shadow: 2px 0 16px -4px rgba(68, 64, 60, 0.06) !important;
}

/* Botón de usuario en el menú lateral */
html.ph-theme-caliza #phUserMenuBtn,
html.ph-theme-caliza .ph-module #phUserMenuBtn,
html.ph-theme-hormigon #phUserMenuBtn,
html.ph-theme-hormigon .ph-module #phUserMenuBtn {
  background-color: #eee6d8 !important;
  border-color: #ded3c1 !important;
}
html.ph-theme-caliza #phUserMenuBtn:hover,
html.ph-theme-caliza .ph-module #phUserMenuBtn:hover,
html.ph-theme-hormigon #phUserMenuBtn:hover,
html.ph-theme-hormigon .ph-module #phUserMenuBtn:hover {
  background-color: #e5dcce !important;
}

/* Menú desplegable de usuario en sidebar */
html.ph-theme-caliza #phUserMenuDropdown,
html.ph-theme-caliza #phMobileUserMenuDropdown,
html.ph-theme-caliza .ph-module #phUserMenuDropdown,
html.ph-theme-caliza .ph-module #phMobileUserMenuDropdown,
html.ph-theme-hormigon #phUserMenuDropdown,
html.ph-theme-hormigon #phMobileUserMenuDropdown,
html.ph-theme-hormigon .ph-module #phUserMenuDropdown,
html.ph-theme-hormigon .ph-module #phMobileUserMenuDropdown {
  background-color: #fbf8f2 !important;
  border: 1px solid #ded3c1 !important;
  box-shadow: 0 12px 30px -4px rgba(68, 64, 60, 0.15) !important;
}

/* Header superior en portal PH */
header.glass,
.ph-module header.glass,
.ph-module #ph-header-container header {
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
html.ph-theme-caliza header.glass,
html.ph-theme-caliza .ph-module header.glass,
html.ph-theme-caliza .ph-module #ph-header-container header,
html.ph-theme-hormigon header.glass,
html.ph-theme-hormigon .ph-module header.glass,
html.ph-theme-hormigon .ph-module #ph-header-container header {
  background-color: rgba(251, 248, 242, 0.96) !important;
  border-bottom: 1px solid #ded3c1 !important;
}

/* ══════════════════════════════════════════════════════════════
   BARRA DE NAVEGACIÓN MÓVIL (BOTTOM NAV) — IDÉNTICA A LICITIA SECOP
   ══════════════════════════════════════════════════════════════ */
.ph-mobnav,
#phMobBottomNav,
#phPropMobBottomNav,
#ph-bottom-nav-container .lic-shell-mobnav,
#ph-bottom-nav-container > nav {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 200 !important;
  justify-content: space-around !important;
  align-items: center !important;
  background: var(--bg-surface, #ffffff) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid var(--border, #e2e8f0) !important;
  padding: 8px 4px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html.ph-theme-caliza .ph-mobnav,
html.ph-theme-caliza #phMobBottomNav,
html.ph-theme-caliza #phPropMobBottomNav,
html.ph-theme-caliza #ph-bottom-nav-container .lic-shell-mobnav,
html.ph-theme-caliza #ph-bottom-nav-container > nav,
html.ph-theme-hormigon .ph-mobnav,
html.ph-theme-hormigon #phMobBottomNav,
html.ph-theme-hormigon #phPropMobBottomNav,
html.ph-theme-hormigon #ph-bottom-nav-container .lic-shell-mobnav,
html.ph-theme-hormigon #ph-bottom-nav-container > nav {
  background-color: rgba(251, 248, 242, 0.98) !important;
  border-top: 1px solid #ded3c1 !important;
  box-shadow: 0 -4px 20px rgba(120, 80, 40, 0.08) !important;
}

#phMobileMore.hidden {
  display: none !important;
}

/* Botón individual del Bottom Nav (mismo efecto y microinteracción de Licitia SECOP) */
.ph-mobnav .mob-nav-btn,
#phMobBottomNav .mob-nav-btn,
#phPropMobBottomNav .mob-nav-btn,
#ph-bottom-nav-container .mob-nav-btn {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  color: var(--text-muted, #64748b) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 6px 3px 6px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  min-width: 0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  position: relative !important;
}

.ph-mobnav .mob-nav-btn i,
#phMobBottomNav .mob-nav-btn i,
#phPropMobBottomNav .mob-nav-btn i,
#ph-bottom-nav-container .mob-nav-btn i {
  font-size: 18px !important;
  line-height: 1 !important;
  display: inline-block !important;
  color: inherit !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.ph-mobnav .mob-nav-btn span,
#phMobBottomNav .mob-nav-btn span,
#phPropMobBottomNav .mob-nav-btn span,
#ph-bottom-nav-container .mob-nav-btn span {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  text-align: center !important;
  line-height: 1.15 !important;
  color: inherit !important;
  transition: color 0.2s ease, font-weight 0.2s ease !important;
}

/* Estado ACTIVO: Efecto característico de Licitia SECOP (elevación -4px, escala 1.15x, fondo primary-soft redondeado) */
.ph-mobnav .mob-nav-btn.active,
.ph-mobnav .mob-nav-btn.ph-nav-active,
#phMobBottomNav .mob-nav-btn.active,
#phMobBottomNav .mob-nav-btn.ph-nav-active,
#phPropMobBottomNav .mob-nav-btn.active,
#phPropMobBottomNav .mob-nav-btn.ph-nav-active,
#ph-bottom-nav-container .mob-nav-btn.active,
#ph-bottom-nav-container .mob-nav-btn.ph-nav-active {
  color: var(--primary, #c2410c) !important;
  background: var(--primary-soft, rgba(194, 65, 12, 0.12)) !important;
  transform: translateY(-4px) !important;
  border: none !important;
  border-left: none !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.15) !important;
}

.ph-mobnav .mob-nav-btn.active i,
.ph-mobnav .mob-nav-btn.ph-nav-active i,
#phMobBottomNav .mob-nav-btn.active i,
#phMobBottomNav .mob-nav-btn.ph-nav-active i,
#phPropMobBottomNav .mob-nav-btn.active i,
#phPropMobBottomNav .mob-nav-btn.ph-nav-active i,
#ph-bottom-nav-container .mob-nav-btn.active i,
#ph-bottom-nav-container .mob-nav-btn.ph-nav-active i {
  transform: scale(1.15) !important;
  color: var(--primary, #c2410c) !important;
}

.ph-mobnav .mob-nav-btn.active span,
.ph-mobnav .mob-nav-btn.ph-nav-active span,
#phMobBottomNav .mob-nav-btn.active span,
#phMobBottomNav .mob-nav-btn.ph-nav-active span,
#phPropMobBottomNav .mob-nav-btn.active span,
#phPropMobBottomNav .mob-nav-btn.ph-nav-active span,
#ph-bottom-nav-container .mob-nav-btn.active span,
#ph-bottom-nav-container .mob-nav-btn.ph-nav-active span {
  color: var(--primary, #c2410c) !important;
  font-weight: 800 !important;
}

/* Margen inferior en móvil para que el scroll final no quede tapado */
@media (max-width: 767px) {
  html.ph-portal main,
  .ph-portal main,
  body.ph-portal main {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   MODALES, DIÁLOGOS Y VELOS DE FONDO (Backdrops & Modal Dialogs)
   ══════════════════════════════════════════════════════════════ */

/* Velo de fondo translúcido que permite ver el dashboard desenfocado detrás (NO blanco opaco) */
.bg-overlay,
.ph-module .bg-overlay,
.ph-module.bg-overlay,
[id*="Modal"].bg-overlay,
[id*="Drawer"].bg-overlay {
  background-color: var(--bg-overlay, rgba(28, 25, 23, 0.48)) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

/* Tarjeta del modal en Blanco Puro */
html.ph-theme-blanco .bg-overlay .glass,
html.ph-theme-blanco .ph-module .bg-overlay .glass {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.6) !important;
}

/* Tarjeta del modal en Piedra Caliza & Travertino (NO blanco, tono travertino cálido) */
html.ph-theme-caliza .bg-overlay .glass,
html.ph-theme-caliza .ph-module .bg-overlay .glass,
html.ph-theme-hormigon .bg-overlay .glass,
html.ph-theme-hormigon .ph-module .bg-overlay .glass {
  background-color: #fbf8f2 !important;
  border: 1px solid #ded3c1 !important;
  box-shadow: 0 25px 50px -12px rgba(28, 25, 23, 0.30), 0 0 0 1px rgba(222, 211, 193, 0.6) !important;
}

/* Inputs, selects y textareas dentro de los modales en Piedra Caliza */
html.ph-theme-caliza .bg-overlay input,
html.ph-theme-caliza .bg-overlay select,
html.ph-theme-caliza .bg-overlay textarea,
html.ph-theme-caliza .ph-module .bg-overlay input,
html.ph-theme-caliza .ph-module .bg-overlay select,
html.ph-theme-caliza .ph-module .bg-overlay textarea {
  background-color: #eee6d8 !important;
  border: 1px solid #ded3c1 !important;
  color: #1c1917 !important;
}
html.ph-theme-caliza .bg-overlay input:focus,
html.ph-theme-caliza .bg-overlay select:focus,
html.ph-theme-caliza .bg-overlay textarea:focus,
html.ph-theme-caliza .ph-module .bg-overlay input:focus,
html.ph-theme-caliza .ph-module .bg-overlay select:focus,
html.ph-theme-caliza .ph-module .bg-overlay textarea:focus {
  border-color: #c2410c !important;
  box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.20) !important;
}

/* Botones de cerrar modal */
.bg-overlay button i.fa-times {
  transition: color 0.15s ease, transform 0.15s ease;
}
.bg-overlay button:hover i.fa-times {
  transform: scale(1.15);
}

/* Navegación activa en el menú lateral */
.ph-module .ph-nav-active {
  background-color: var(--primary-soft) !important;
  color: var(--primary) !important;
  border-left: 3px solid var(--primary);
  font-weight: 700 !important;
}
.ph-module .ph-nav-active i {
  color: var(--primary) !important;
}

/* Hover de tarjetas en el dashboard */
.glass-hover:hover,
.ph-module .glass-hover:hover {
  border-color: var(--border-active) !important;
  background-color: var(--bg-surface) !important;
  box-shadow: 0 10px 25px -5px rgba(194, 65, 12, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06) !important;
  transform: translateY(-2px);
}

/* Cartera Hero Banner en Dashboard PH: idéntica a las demás tarjetas .glass */
#phDashCarteraHero,
.ph-module #phDashCarteraHero {
  background-image: none !important;
}
html.ph-theme-blanco #phDashCarteraHero,
html.ph-theme-blanco .ph-module #phDashCarteraHero {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(194, 65, 12, 0.04) !important;
}
html.ph-theme-caliza #phDashCarteraHero,
html.ph-theme-caliza .ph-module #phDashCarteraHero,
html.ph-theme-hormigon #phDashCarteraHero,
html.ph-theme-hormigon .ph-module #phDashCarteraHero {
  background: #fbf8f2 !important;
  background-color: #fbf8f2 !important;
  border: 1px solid #ded3c1 !important;
  box-shadow: 0 4px 20px -4px rgba(68, 64, 60, 0.08), 0 2px 6px -1px rgba(194, 65, 12, 0.05) !important;
}

/* Selects e Inputs en Mesa de Trabajo y Formularios PH */
select,
input,
textarea,
.ph-module select,
.ph-module input,
.ph-module textarea {
  background-color: var(--bg-elevated) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
select:focus,
input:focus,
textarea:focus,
.ph-module select:focus,
.ph-module input:focus,
.ph-module textarea:focus {
  border-color: var(--border-active) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.15) !important;
}
html.ph-theme-caliza select,
html.ph-theme-caliza input,
html.ph-theme-caliza textarea,
html.ph-theme-caliza .ph-module select,
html.ph-theme-caliza .ph-module input,
html.ph-theme-caliza .ph-module textarea,
html.ph-theme-hormigon select,
html.ph-theme-hormigon input,
html.ph-theme-hormigon textarea,
html.ph-theme-hormigon .ph-module select,
html.ph-theme-hormigon .ph-module input,
html.ph-theme-hormigon .ph-module textarea {
  background-color: #eee6d8 !important;
  border-color: #ded3c1 !important;
  color: #1c1917 !important;
}
html.ph-theme-caliza select:focus,
html.ph-theme-caliza input:focus,
html.ph-theme-caliza textarea:focus,
html.ph-theme-caliza .ph-module select:focus,
html.ph-theme-caliza .ph-module input:focus,
html.ph-theme-caliza .ph-module textarea:focus,
html.ph-theme-hormigon select:focus,
html.ph-theme-hormigon input:focus,
html.ph-theme-hormigon textarea:focus,
html.ph-theme-hormigon .ph-module select:focus,
html.ph-theme-hormigon .ph-module input:focus,
html.ph-theme-hormigon .ph-module textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.20) !important;
}

/* Botones de copropiedad en mesa de trabajo */
#phDashCopropiedadBotones button,
.ph-module #phDashCopropiedadBotones button {
  background-color: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  transition: all 0.15s ease;
}
#phDashCopropiedadBotones button:hover,
#phDashCopropiedadBotones button.active,
.ph-module #phDashCopropiedadBotones button:hover,
.ph-module #phDashCopropiedadBotones button.active {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background-color: var(--primary-soft) !important;
}
html.ph-theme-caliza #phDashCopropiedadBotones button,
html.ph-theme-caliza .ph-module #phDashCopropiedadBotones button,
html.ph-theme-hormigon #phDashCopropiedadBotones button,
html.ph-theme-hormigon .ph-module #phDashCopropiedadBotones button {
  background-color: #eee6d8 !important;
  border: 1px solid #ded3c1 !important;
  color: #44403c !important;
}
html.ph-theme-caliza #phDashCopropiedadBotones button:hover,
html.ph-theme-caliza #phDashCopropiedadBotones button.active,
html.ph-theme-caliza .ph-module #phDashCopropiedadBotones button:hover,
html.ph-theme-caliza .ph-module #phDashCopropiedadBotones button.active,
html.ph-theme-hormigon #phDashCopropiedadBotones button:hover,
html.ph-theme-hormigon #phDashCopropiedadBotones button.active,
html.ph-theme-hormigon .ph-module #phDashCopropiedadBotones button:hover,
html.ph-theme-hormigon .ph-module #phDashCopropiedadBotones button.active {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background-color: rgba(194, 65, 12, 0.14) !important;
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════════════════
   TABLAS Y REJILLAS DE DATOS PH (Data Tables & Lists)
   Soporte dinámico completo para Blanco Puro y Piedra Caliza
   ══════════════════════════════════════════════════════════════ */

table,
.ph-module table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ── TABLAS EN BLANCO PURO ── */
html.ph-theme-blanco table thead,
html.ph-theme-blanco table thead tr,
html.ph-theme-blanco .ph-module table thead,
html.ph-theme-blanco .ph-module table thead tr {
  background-color: #f8fafc !important;
}
html.ph-theme-blanco table thead th,
html.ph-theme-blanco .ph-module table thead th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
html.ph-theme-blanco table tbody tr,
html.ph-theme-blanco .ph-module table tbody tr {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}
html.ph-theme-blanco table tbody tr:nth-child(even),
html.ph-theme-blanco .ph-module table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}
html.ph-theme-blanco table tbody tr:hover,
html.ph-theme-blanco .ph-module table tbody tr:hover {
  background-color: #f1f5f9 !important;
}
html.ph-theme-blanco table tbody td,
html.ph-theme-blanco .ph-module table tbody td {
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

/* ── TABLAS EN PIEDRA CALIZA & TRAVERTINO ── */
html.ph-theme-caliza table,
html.ph-theme-caliza .ph-module table,
html.ph-theme-hormigon table,
html.ph-theme-hormigon .ph-module table {
  border-color: #ded3c1 !important;
}

html.ph-theme-caliza table thead,
html.ph-theme-caliza table thead tr,
html.ph-theme-caliza .ph-module table thead,
html.ph-theme-caliza .ph-module table thead tr,
html.ph-theme-hormigon table thead,
html.ph-theme-hormigon table thead tr,
html.ph-theme-hormigon .ph-module table thead,
html.ph-theme-hormigon .ph-module table thead tr {
  background-color: #eee6d8 !important; /* Caliza estructurada */
}
html.ph-theme-caliza table thead th,
html.ph-theme-caliza .ph-module table thead th,
html.ph-theme-hormigon table thead th,
html.ph-theme-hormigon .ph-module table thead th {
  background-color: #eee6d8 !important;
  color: #1c1917 !important; /* Pizarra de alto contraste */
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #ded3c1 !important;
}

html.ph-theme-caliza table tbody tr,
html.ph-theme-caliza .ph-module table tbody tr,
html.ph-theme-hormigon table tbody tr,
html.ph-theme-hormigon .ph-module table tbody tr {
  background-color: #fbf8f2 !important;
  border-bottom: 1px solid #ded3c1 !important;
  transition: background-color 0.15s ease;
}
html.ph-theme-caliza table tbody tr:nth-child(even),
html.ph-theme-caliza .ph-module table tbody tr:nth-child(even),
html.ph-theme-hormigon table tbody tr:nth-child(even),
html.ph-theme-hormigon .ph-module table tbody tr:nth-child(even) {
  background-color: #f6f0e4 !important; /* Zebra en travertino */
}
html.ph-theme-caliza table tbody tr:hover,
html.ph-theme-caliza .ph-module table tbody tr:hover,
html.ph-theme-hormigon table tbody tr:hover,
html.ph-theme-hormigon .ph-module table tbody tr:hover {
  background-color: #ede5d6 !important; /* Highlight cálido */
}
html.ph-theme-caliza table tbody td,
html.ph-theme-caliza .ph-module table tbody td,
html.ph-theme-hormigon table tbody td,
html.ph-theme-hormigon .ph-module table tbody td {
  border-bottom: 1px solid #ded3c1 !important;
  color: #1c1917 !important;
}

/* Contenedores de tablas en Caliza */
html.ph-theme-caliza .table-container,
html.ph-theme-caliza .overflow-x-auto,
html.ph-theme-caliza .ph-module .table-container,
html.ph-theme-caliza .ph-module .overflow-x-auto,
html.ph-theme-hormigon .table-container,
html.ph-theme-hormigon .overflow-x-auto,
html.ph-theme-hormigon .ph-module .table-container,
html.ph-theme-hormigon .ph-module .overflow-x-auto {
  background-color: #fbf8f2 !important;
}
html.ph-theme-caliza .overflow-x-auto table,
html.ph-theme-caliza .ph-module .overflow-x-auto table,
html.ph-theme-hormigon .overflow-x-auto table,
html.ph-theme-hormigon .ph-module .overflow-x-auto table {
  background-color: #fbf8f2 !important;
}

/* Items de listas y filas dinámicas (Dashboard Procesos Recientes, Salud de Cartera, etc.) */
html.ph-theme-caliza #phDashProcesosRecientes > div,
html.ph-theme-caliza #phSaludCarteraBody > div,
html.ph-theme-caliza #phProcesosList > div,
html.ph-theme-caliza #phCopropList > div,
html.ph-theme-caliza #phBovedaLista > div,
html.ph-theme-caliza #phFechasList > div,
html.ph-theme-caliza #phPlantList > div,
html.ph-theme-caliza #phPqrsList > div,
html.ph-theme-caliza .ph-module #phDashProcesosRecientes > div,
html.ph-theme-caliza .ph-module #phSaludCarteraBody > div,
html.ph-theme-caliza .ph-module #phProcesosList > div,
html.ph-theme-caliza .ph-module #phCopropList > div,
html.ph-theme-caliza .ph-module #phBovedaLista > div,
html.ph-theme-caliza .ph-module #phFechasList > div,
html.ph-theme-caliza .ph-module #phPlantList > div,
html.ph-theme-caliza .ph-module #phPqrsList > div,
html.ph-theme-hormigon #phDashProcesosRecientes > div,
html.ph-theme-hormigon #phSaludCarteraBody > div,
html.ph-theme-hormigon #phProcesosList > div,
html.ph-theme-hormigon #phCopropList > div,
html.ph-theme-hormigon #phBovedaLista > div,
html.ph-theme-hormigon #phFechasList > div,
html.ph-theme-hormigon #phPlantList > div,
html.ph-theme-hormigon #phPqrsList > div,
html.ph-theme-hormigon .ph-module #phDashProcesosRecientes > div,
html.ph-theme-hormigon .ph-module #phSaludCarteraBody > div,
html.ph-theme-hormigon .ph-module #phProcesosList > div,
html.ph-theme-hormigon .ph-module #phCopropList > div,
html.ph-theme-hormigon .ph-module #phBovedaLista > div,
html.ph-theme-hormigon .ph-module #phFechasList > div,
html.ph-theme-hormigon .ph-module #phPlantList > div,
html.ph-theme-hormigon .ph-module #phPqrsList > div {
  background-color: #fbf8f2 !important;
  border: 1px solid #ded3c1 !important;
  color: #1c1917 !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

html.ph-theme-caliza #phDashProcesosRecientes > div:hover,
html.ph-theme-caliza #phSaludCarteraBody > div:hover,
html.ph-theme-caliza #phProcesosList > div:hover,
html.ph-theme-caliza #phCopropList > div:hover,
html.ph-theme-caliza #phBovedaLista > div:hover,
html.ph-theme-caliza #phFechasList > div:hover,
html.ph-theme-caliza #phPlantList > div:hover,
html.ph-theme-caliza #phPqrsList > div:hover,
html.ph-theme-caliza .ph-module #phDashProcesosRecientes > div:hover,
html.ph-theme-caliza .ph-module #phSaludCarteraBody > div:hover,
html.ph-theme-caliza .ph-module #phProcesosList > div:hover,
html.ph-theme-caliza .ph-module #phCopropList > div:hover,
html.ph-theme-caliza .ph-module #phBovedaLista > div:hover,
html.ph-theme-caliza .ph-module #phFechasList > div:hover,
html.ph-theme-caliza .ph-module #phPlantList > div:hover,
html.ph-theme-caliza .ph-module #phPqrsList > div:hover,
html.ph-theme-hormigon #phDashProcesosRecientes > div:hover,
html.ph-theme-hormigon #phSaludCarteraBody > div:hover,
html.ph-theme-hormigon #phProcesosList > div:hover,
html.ph-theme-hormigon #phCopropList > div:hover,
html.ph-theme-hormigon #phBovedaLista > div:hover,
html.ph-theme-hormigon #phFechasList > div:hover,
html.ph-theme-hormigon #phPlantList > div:hover,
html.ph-theme-hormigon #phPqrsList > div:hover,
html.ph-theme-hormigon .ph-module #phDashProcesosRecientes > div:hover,
html.ph-theme-hormigon .ph-module #phSaludCarteraBody > div:hover,
html.ph-theme-hormigon .ph-module #phProcesosList > div:hover,
html.ph-theme-hormigon .ph-module #phCopropList > div:hover,
html.ph-theme-hormigon .ph-module #phBovedaLista > div:hover,
html.ph-theme-hormigon .ph-module #phFechasList > div:hover,
html.ph-theme-hormigon .ph-module #phPlantList > div:hover,
html.ph-theme-hormigon .ph-module #phPqrsList > div:hover {
  background-color: #eee6d8 !important;
  border-color: #c2410c !important;
}

/* Atajos de Explorar Cartera en Caliza */
html.ph-theme-caliza #phExplorarCarteraWrap button,
html.ph-theme-caliza .ph-module #phExplorarCarteraWrap button,
html.ph-theme-hormigon #phExplorarCarteraWrap button,
html.ph-theme-hormigon .ph-module #phExplorarCarteraWrap button {
  background-color: #fbf8f2 !important;
  border-color: #ded3c1 !important;
}
html.ph-theme-caliza #phExplorarCarteraWrap button:hover,
html.ph-theme-caliza .ph-module #phExplorarCarteraWrap button:hover,
html.ph-theme-hormigon #phExplorarCarteraWrap button:hover,
html.ph-theme-hormigon .ph-module #phExplorarCarteraWrap button:hover {
  background-color: #eee6d8 !important;
  border-color: #c2410c !important;
}
html.ph-theme-caliza #phExplorarCarteraWrap button .text-amber-400,
html.ph-theme-caliza .ph-module #phExplorarCarteraWrap button .text-amber-400,
html.ph-theme-hormigon #phExplorarCarteraWrap button .text-amber-400,
html.ph-theme-hormigon .ph-module #phExplorarCarteraWrap button .text-amber-400 {
  color: #b45309 !important;
}
html.ph-theme-caliza #phExplorarCarteraWrap button .text-teal-400,
html.ph-theme-caliza .ph-module #phExplorarCarteraWrap button .text-teal-400,
html.ph-theme-hormigon #phExplorarCarteraWrap button .text-teal-400,
html.ph-theme-hormigon .ph-module #phExplorarCarteraWrap button .text-teal-400 {
  color: #0f766e !important;
}
html.ph-theme-caliza #phExplorarCarteraWrap button .text-blue-400,
html.ph-theme-caliza .ph-module #phExplorarCarteraWrap button .text-blue-400,
html.ph-theme-hormigon #phExplorarCarteraWrap button .text-blue-400,
html.ph-theme-hormigon .ph-module #phExplorarCarteraWrap button .text-blue-400 {
  color: #1d4ed8 !important;
}

/* Badges y chips de estado en las tablas y listas */
html.ph-theme-caliza .badge-ph,
html.ph-theme-caliza .ph-module .badge-ph,
html.ph-theme-hormigon .badge-ph,
html.ph-theme-hormigon .ph-module .badge-ph {
  border-color: #ded3c1 !important;
}
html.ph-theme-caliza [class*="bg-elevated/"],
html.ph-theme-caliza .bg-elevated,
html.ph-theme-caliza .ph-module [class*="bg-elevated/"],
html.ph-theme-caliza .ph-module .bg-elevated,
html.ph-theme-hormigon [class*="bg-elevated/"],
html.ph-theme-hormigon .bg-elevated,
html.ph-theme-hormigon .ph-module [class*="bg-elevated/"],
html.ph-theme-hormigon .ph-module .bg-elevated {
  background-color: #eee6d8 !important;
}
html.ph-theme-caliza [class*="bg-surface/"],
html.ph-theme-caliza .bg-surface,
html.ph-theme-caliza .ph-module [class*="bg-surface/"],
html.ph-theme-caliza .ph-module .bg-surface,
html.ph-theme-hormigon [class*="bg-surface/"],
html.ph-theme-hormigon .bg-surface,
html.ph-theme-hormigon .ph-module [class*="bg-surface/"],
html.ph-theme-hormigon .ph-module .bg-surface {
  background-color: #fbf8f2 !important;
}
html.ph-theme-caliza [class*="border-border/"],
html.ph-theme-caliza .border-border,
html.ph-theme-caliza .ph-module [class*="border-border/"],
html.ph-theme-caliza .ph-module .border-border,
html.ph-theme-hormigon [class*="border-border/"],
html.ph-theme-hormigon .border-border,
html.ph-theme-hormigon .ph-module [class*="border-border/"],
html.ph-theme-hormigon .ph-module .border-border {
  border-color: #ded3c1 !important;
}

/* ══════════════════════════════════════════════════════════════
   NUMERACIÓN DE KPIS CON ALTO CONTRASTE (Legibilidad Profesional)
   ══════════════════════════════════════════════════════════════ */
html.ph-theme-caliza .ph-module #phKpiActivos,
html.ph-theme-hormigon .ph-module #phKpiActivos { color: #15803d !important; }
html.ph-theme-caliza .ph-module #phKpiOfertas,
html.ph-theme-hormigon .ph-module #phKpiOfertas { color: #1d4ed8 !important; }
html.ph-theme-caliza .ph-module #phKpiCierran,
html.ph-theme-hormigon .ph-module #phKpiCierran { color: #b45309 !important; }
html.ph-theme-caliza .ph-module #phKpiAdjudicar,
html.ph-theme-hormigon .ph-module #phKpiAdjudicar { color: #0f766e !important; }
html.ph-theme-caliza .ph-module #phKpiPqrs,
html.ph-theme-hormigon .ph-module #phKpiPqrs { color: #6d28d9 !important; }

html.ph-theme-caliza .ph-module #phDashKpisGrid .text-green-400,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .text-green-400 { color: #15803d !important; }
html.ph-theme-caliza .ph-module #phDashKpisGrid .text-blue-400,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .text-blue-400 { color: #1d4ed8 !important; }
html.ph-theme-caliza .ph-module #phDashKpisGrid .text-amber-400,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .text-amber-400 { color: #b45309 !important; }
html.ph-theme-caliza .ph-module #phDashKpisGrid .text-teal-400,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .text-teal-400 { color: #0f766e !important; }
html.ph-theme-caliza .ph-module #phDashKpisGrid .text-violet-400,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .text-violet-400 { color: #6d28d9 !important; }

html.ph-theme-caliza .ph-module #phDashKpisGrid .bg-green-500\/10,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .bg-green-500\/10 { background-color: rgba(21, 128, 61, 0.14) !important; }
html.ph-theme-caliza .ph-module #phDashKpisGrid .bg-blue-500\/10,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .bg-blue-500\/10 { background-color: rgba(29, 78, 216, 0.14) !important; }
html.ph-theme-caliza .ph-module #phDashKpisGrid .bg-amber-500\/10,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .bg-amber-500\/10 { background-color: rgba(180, 83, 9, 0.14) !important; }
html.ph-theme-caliza .ph-module #phDashKpisGrid .bg-teal-500\/10,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .bg-teal-500\/10 { background-color: rgba(15, 118, 110, 0.14) !important; }
html.ph-theme-caliza .ph-module #phDashKpisGrid .bg-violet-500\/10,
html.ph-theme-hormigon .ph-module #phDashKpisGrid .bg-violet-500\/10 { background-color: rgba(109, 40, 217, 0.14) !important; }

/* En Blanco Puro */
html.ph-theme-blanco .ph-module #phKpiActivos { color: #15803d !important; }
html.ph-theme-blanco .ph-module #phKpiOfertas { color: #1d4ed8 !important; }
html.ph-theme-blanco .ph-module #phKpiCierran { color: #b45309 !important; }
html.ph-theme-blanco .ph-module #phKpiAdjudicar { color: #0f766e !important; }
html.ph-theme-blanco .ph-module #phKpiPqrs { color: #6d28d9 !important; }

html.ph-theme-blanco .ph-module #phDashKpisGrid .text-green-400 { color: #15803d !important; }
html.ph-theme-blanco .ph-module #phDashKpisGrid .text-blue-400 { color: #1d4ed8 !important; }
html.ph-theme-blanco .ph-module #phDashKpisGrid .text-amber-400 { color: #b45309 !important; }
html.ph-theme-blanco .ph-module #phDashKpisGrid .text-teal-400 { color: #0f766e !important; }
html.ph-theme-blanco .ph-module #phDashKpisGrid .text-violet-400 { color: #6d28d9 !important; }

/* Menú desplegable del Avatar PH (Soporta Click y Hover fluido) */
#phUserMenuWrapper.is-open #phUserMenuDropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

#phUserMenuWrapper.is-open #phUserMenuChevron {
  transform: rotate(180deg) !important;
}

/* Transición suave entre Blanco Puro y Hormigón Slate */
body.ph-module {
  transition: background-color 0.25s ease, color 0.25s ease !important;
}

/* Sidebar / Header / Layout móvil robusto para todos los portales PH (Admin, Proveedor, Residente) */
@media (max-width: 767.98px) {
  #ph-sidebar-container,
  aside#ph-sidebar-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
  }
}
@media (min-width: 768px) {
  #ph-bottom-nav-container,
  div#ph-bottom-nav-container {
    display: none !important;
  }
}

/* Avatar container sizing protection (previene desbordamiento o imágenes gigantes) */
#phProvInitialSidebar,
#phProvInitialHeader,
#userInitialSidebar,
#userInitialHeader,
[data-ph-avatar] {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  position: relative !important;
  border-radius: 10px !important;
}
#phProvInitialSidebar img,
#phProvInitialHeader img,
#userInitialSidebar img,
#userInitialHeader img,
[data-ph-avatar] img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
}

/* Tonalidades de Obra: botones con ring y check */
.ph-accent-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, ring-width 0.15s ease !important;
}
.ph-accent-btn.shadow-md {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18) !important;
}

/* ══════════════════════════════════════════════════════════════
   OVERLAY Y SPINNER DE CARGA LICITIA PH (Cero azul SECOP en PH)
   ══════════════════════════════════════════════════════════════ */
#bootOverlay,
#phBootOverlay {
  background: var(--bg-body, #ffffff) !important;
}
html.ph-theme-hormigon #bootOverlay,
html.ph-theme-hormigon #phBootOverlay {
  background: #d5dde6 !important;
}

#bootOverlayTitle,
#phBootOverlayTitle,
#bootOverlay p[style*="color:#60a5fa"],
#phBootOverlay p[style*="color:#60a5fa"],
#bootOverlay p:first-of-type,
#phBootOverlay p:first-of-type {
  color: var(--primary, #c2410c) !important;
}
html.ph-theme-hormigon #bootOverlayTitle,
html.ph-theme-hormigon #phBootOverlayTitle,
html.ph-theme-hormigon #bootOverlay p[style*="color:#60a5fa"],
html.ph-theme-hormigon #phBootOverlay p[style*="color:#60a5fa"],
html.ph-theme-hormigon #bootOverlay p:first-of-type,
html.ph-theme-hormigon #phBootOverlay p:first-of-type {
  color: var(--primary, #b91c1c) !important;
}

.licitia-boot-spinner,
#bootOverlay .licitia-boot-spinner,
#phBootOverlay .licitia-boot-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  animation: licitia-boot-spin 0.75s linear infinite;
  border: 3px solid var(--primary-soft, rgba(194, 65, 12, 0.18)) !important;
  border-top-color: var(--primary, #c2410c) !important;
}
html.ph-theme-hormigon .licitia-boot-spinner,
html.ph-theme-hormigon #bootOverlay .licitia-boot-spinner,
html.ph-theme-hormigon #phBootOverlay .licitia-boot-spinner {
  border: 3px solid var(--primary-soft, rgba(185, 28, 28, 0.20)) !important;
  border-top-color: var(--primary, #b91c1c) !important;
}

@keyframes licitia-boot-spin { to { transform: rotate(360deg); } }

#bootOverlayMsg,
#phBootOverlayMsg {
  color: var(--text-muted, #64748b) !important;
}
html.ph-theme-hormigon #bootOverlayMsg,
html.ph-theme-hormigon #phBootOverlayMsg {
  color: #475569 !important;
}

.licitia-boot-retry,
#phBootOverlay .licitia-boot-retry {
  border-color: var(--primary, #c2410c) !important;
  background: var(--primary-soft, rgba(194, 65, 12, 0.10)) !important;
  color: var(--primary, #c2410c) !important;
}
html.ph-theme-hormigon .licitia-boot-retry,
html.ph-theme-hormigon #phBootOverlay .licitia-boot-retry {
  border-color: var(--primary, #b91c1c) !important;
  background: var(--primary-soft, rgba(185, 28, 28, 0.12)) !important;
  color: var(--primary, #b91c1c) !important;
}

/* ══════════════════════════════════════════════════════════════
   HERRAMIENTAS PH — KANBAN & CRONOGRAMA GANTT
   Equiparado al diseño de LicitIA con tokens arquitectónicos PH
   ══════════════════════════════════════════════════════════════ */
.kanban-board {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 520px;
  align-items: stretch;
}
.kanban-col {
  background: var(--bg-elevated, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  min-width: 290px;
  width: 290px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 500px;
  max-height: calc(100vh - 270px);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.kanban-col.drag-over {
  background: var(--primary-soft, rgba(194, 65, 12, 0.08));
  border-color: var(--border-active, #c2410c);
  box-shadow: 0 0 12px var(--primary-soft, rgba(194, 65, 12, 0.15));
}
.kanban-header {
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.kanban-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.kanban-body {
  flex: 1 1 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 400px;
}
.kanban-body::-webkit-scrollbar {
  width: 5px;
}
.kanban-body::-webkit-scrollbar-track {
  background: transparent;
}
.kanban-body::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.25);
  border-radius: 4px;
}
.kanban-body::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.45);
}
.kanban-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 12px;
  cursor: grab;
  position: relative;
  transition: border-color 0.2s, transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.kanban-card:active {
  cursor: grabbing;
  transform: scale(0.985);
}
.kanban-card:hover {
  border-color: var(--border-active, #c2410c);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.kanban-card-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  z-index: 2;
}
.kanban-card-del:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  opacity: 1;
}
.kanban-etapa {
  margin: 4px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 5px;
}
.kanban-etapa i { font-size: 9px; opacity: .8; }
.kanban-etapa.is-stuck { color: #b45309; font-weight: 800; }
.kanban-title-view {
  cursor: default;
  min-width: 0;
}
.kanban-title-input {
  max-width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid var(--border-active, #c2410c);
  background: var(--bg-surface, #fff);
  color: var(--text-primary, #0f172a);
  padding: 4px 8px;
  outline: none;
  font-family: inherit;
}
.kanban-title-edit-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.kanban-title-edit-btn:hover {
  color: var(--text-link, #c2410c);
  background: var(--primary-soft, rgba(194, 65, 12, 0.10));
}
/* Tablero de Mis propuestas (portal proveedor) — solo lectura por etapa */
.ph-mis-kanban-board.kanban-board {
  min-height: 520px;
  align-items: stretch;
}
.ph-mis-kanban-board .kanban-card { cursor: pointer; }
.ph-mis-kanban-board .kanban-card[draggable="false"] { cursor: pointer; }
.kanban-card.dragging {
  opacity: 0.45;
  transform: rotate(1.5deg);
}
.kanban-card-acciones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #e2e8f0);
  position: relative;
}
.kanban-card-acc {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.kanban-card-acc:hover, .kanban-card-acc.is-on {
  color: var(--text-link, #c2410c);
}
.kanban-card-mas {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-elevated, #f8fafc);
  color: var(--text-secondary, #334155);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 10px;
}
.kanban-card-mas:hover, .kanban-card-mas.is-open {
  border-color: var(--border-active, #c2410c);
  color: var(--text-link, #c2410c);
}
.kanban-card-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 32px;
  z-index: 50;
  min-width: 170px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
.kanban-card-menu.is-open {
  display: block;
}
.kanban-card-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  font-family: inherit;
  transition: background 0.15s;
}
.kanban-card-menu button:hover {
  background: var(--primary-soft, rgba(194, 65, 12, 0.10));
}
.kanban-card-menu button.is-actual {
  color: var(--text-link, #c2410c);
  font-weight: 800;
}
.kanban-card-menu .kb-menu-sep {
  height: 1px;
  background: var(--border, #e2e8f0);
  margin: 4px 0;
}
.kanban-stat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #334155);
  background: var(--bg-elevated, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  transition: all 0.15s;
}
.kanban-stat:hover {
  border-color: var(--border-active, #c2410c);
  color: var(--text-primary, #0f172a);
}
.kanban-stat.is-active {
  background: var(--primary-soft, rgba(194, 65, 12, 0.12));
  border-color: var(--border-active, #c2410c);
  color: var(--text-link, #c2410c);
  font-weight: 800;
}
.kanban-stat strong {
  color: inherit;
  font-weight: 800;
  margin-right: 2px;
}
.kanban-vista, .kanban-modo {
  display: inline-flex;
  background: var(--bg-elevated, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}
.kanban-vista button, .kanban-modo button {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  background: none;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.kanban-vista button:hover, .kanban-modo button:hover {
  color: var(--text-primary, #0f172a);
}
.kanban-vista button.is-active, .kanban-modo button.is-active {
  background: var(--primary-soft, rgba(194, 65, 12, 0.12));
  color: var(--text-link, #c2410c);
}
.kanban-search {
  background: var(--bg-elevated, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text-primary, #0f172a);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.kanban-search:focus {
  border-color: var(--border-active, #c2410c);
}
.kanban-due {
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text-secondary, #334155);
  display: flex;
  align-items: center;
  gap: 4px;
}
.kanban-due.is-soon {
  color: #d97706;
}
.kanban-due.is-overdue {
  color: #dc2626;
}
.kanban-due.is-ok {
  color: #16a34a;
}
.kanban-col-empty {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  padding: 24px 12px;
  border: 1.5px dashed var(--border, #cbd5e1);
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  flex: 1;
  transition: all 0.2s ease;
}
.kanban-col.drag-over .kanban-col-empty {
  border-color: var(--border-active, #c2410c);
  background: var(--primary-soft, rgba(194, 65, 12, 0.08));
  color: var(--text-link, #c2410c);
}
/* Gantt PH */
.kanban-gantt {
  margin-top: 8px;
}
.kanban-gantt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.kanban-gantt-scroll {
  overflow-x: auto;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--bg-surface, #ffffff);
}
.kanban-gantt-head, .kanban-gantt-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(520px, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 720px;
}
.kanban-gantt-head {
  background: var(--bg-elevated, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 1;
}
.kanban-gantt-head-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: end;
  padding: 10px 14px;
}
.kanban-gantt-row {
  background: none;
  border: none;
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  transition: background 0.15s;
}
.kanban-gantt-row:hover {
  background: var(--bg-elevated, #f8fafc);
}
.kanban-gantt-label-col {
  padding: 10px 14px;
}
.kanban-gantt-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  line-height: 1.35;
}
.kanban-gantt-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted, #64748b);
  margin-top: 3px;
}
.kanban-gantt-track {
  position: relative;
  min-height: 44px;
  background: linear-gradient(180deg, rgba(148,163,184,.03), transparent 40%),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(148,163,184,.07) 31px, rgba(148,163,184,.07) 32px);
}
.kanban-gantt-month {
  position: absolute;
  top: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-secondary, #334155);
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  padding-left: 4px;
}
.kanban-gantt-tick {
  position: absolute;
  bottom: 4px;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}
.kanban-gantt-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary, #c2410c);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 2;
}
.kanban-gantt-bar {
  position: absolute;
  top: 14px;
  height: 16px;
  border-radius: 999px;
  opacity: .92;
  min-width: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform 0.15s, opacity 0.15s;
}
.kanban-gantt-bar:hover {
  transform: scaleY(1.15);
  opacity: 1;
}
.kanban-gantt-bar.is-soon {
  box-shadow: 0 0 0 2px rgba(217,119,6,.55);
}
.kanban-gantt-bar.is-overdue {
  box-shadow: 0 0 0 2px rgba(220,38,38,.55);
}

/* ══════════════════════════════════════════════════════════════
   PORTAL PROVEEDOR PH — DIRECTORIO, SERVICIOS Y REPUTACIÓN
   ══════════════════════════════════════════════════════════════ */
.ph-prov-subtab {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ph-prov-subtab:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.ph-prov-subtab.active {
  border-color: var(--primary);
  background: var(--primary-10, rgba(194, 65, 12, 0.12));
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(194, 65, 12, 0.15);
}

/* Tarjeta de Servicio en Catálogo */
.ph-serv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 16px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ph-serv-card:hover {
  border-color: var(--primary-50, rgba(194, 65, 12, 0.4));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.08));
}

/* Tarjeta de Reseña de Copropiedad */
.ph-rev-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 16px;
  transition: border-color 0.2s ease;
}
.ph-rev-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

/* Documentos Habilitantes */
.ph-doc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.ph-doc-box.is-vigente {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.03);
}
.ph-doc-box.is-vencido {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.03);
}
.ph-doc-box.is-por-vencer {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.03);
}

/* Barra de progreso y completitud */
.ph-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.ph-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--primary, #c2410c);
  transition: width 0.4s ease;
}

/* ══════════════════════════════════════════════════════════════
   BÓVEDA DOCUMENTAL & GESTOR DE FACTURAS PROVEEDOR PH
   ══════════════════════════════════════════════════════════════ */
.ph-boveda-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.ph-boveda-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08);
}

@media print {
  body.ph-module > *:not(#phModalGeneradorCuentaCobro) {
    display: none !important;
  }
  #phModalGeneradorCuentaCobro {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
  }
  #phModalGeneradorCuentaCobro > div {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
  #phCuentaCobroPrintableArea {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}



/* ==========================================================================
   Mesa de trabajo — chip ACTIVO persistente (fix 2026-10-05)
   El JS marca el chip con .ph-mesa-btn-active; las reglas anteriores solo
   cubrían .active, así que el color solo se veía en :hover.
   Selector más específico que las variantes Blanco / Caliza / Hormigón.
   ========================================================================== */
html.ph-portal body.ph-module #phDashCopropiedadBotones button.ph-mesa-btn.ph-mesa-btn-active,
html.ph-portal body.ph-module #phDashCopropiedadBotones button.ph-mesa-btn.ph-mesa-btn-active:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--primary) 60%, transparent),
              0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent) !important;
}
html.ph-portal body.ph-module #phDashCopropiedadBotones button.ph-mesa-btn.ph-mesa-btn-active i {
  color: #fff !important;
}
#phDashCopropiedadBotones .ph-mesa-btn-check {
  font-size: 9px;
  margin-right: 5px;
}

/* ==========================================================================
   Tarjeta "Conjunto activo" (debajo de Agregar conjunto)
   ========================================================================== */
.ph-mesa-card {
  position: relative;
  border-radius: 16px;
  padding: 16px 16px 14px 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--primary) 9%, transparent) 0%, transparent 55%),
    var(--bg-elevated);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--primary) 55%, transparent),
              0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: phMesaCardIn .22s ease-out;
}
.ph-mesa-card::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}
@keyframes phMesaCardIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ph-mesa-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.ph-mesa-card__dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
  animation: phMesaDot 2s ease-in-out infinite;
}
@keyframes phMesaDot {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 6%, transparent); }
}
.ph-mesa-card__close {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background .15s ease, color .15s ease;
}
.ph-mesa-card__close:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.ph-mesa-card__avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -.02em;
  color: #fff;
  background: linear-gradient(140deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, #000) 100%);
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--primary) 80%, transparent);
}
.ph-mesa-card__name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text-primary);
  line-height: 1.2;
}
.ph-mesa-card__loc {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}
.ph-mesa-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ph-mesa-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--text-secondary, var(--text-muted));
  background: var(--bg-surface, rgba(0,0,0,.03));
  border: 1px solid var(--border);
}
.ph-mesa-card__pill i { color: var(--primary); font-size: 9.5px; }
.ph-mesa-card__actions {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--primary) 18%, var(--border));
}
.ph-mesa-card__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface, transparent);
  color: var(--text-primary);
  white-space: nowrap;
  transition: all .15s ease;
  cursor: pointer;
}
.ph-mesa-card__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.ph-mesa-card__btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.ph-mesa-card__btn--primary:hover {
  background: var(--primary-hover, var(--primary));
  color: #fff;
}
html.ph-theme-caliza .ph-mesa-card,
html.ph-theme-hormigon .ph-mesa-card {
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--primary) 10%, transparent) 0%, transparent 55%),
    #f7f2e9;
  border-color: color-mix(in srgb, var(--primary) 25%, #ded3c1);
}
html.ph-theme-caliza .ph-mesa-card__pill,
html.ph-theme-hormigon .ph-mesa-card__pill,
html.ph-theme-caliza .ph-mesa-card__btn,
html.ph-theme-hormigon .ph-mesa-card__btn {
  background: #eee6d8;
  border-color: #ded3c1;
}
html.ph-theme-caliza .ph-mesa-card__btn--primary,
html.ph-theme-hormigon .ph-mesa-card__btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Tarjeta "Conjunto activo" — versión compacta (2026-10-05) */
.ph-mesa-card { padding: 11px 12px 10px 14px; border-radius: 14px; }
.ph-mesa-card::before { top: 10px; bottom: 10px; }
.ph-mesa-card__eyebrow { font-size: 8.5px; }
.ph-mesa-card__close { width: 22px; height: 22px; }
.ph-mesa-card__avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px; }
.ph-mesa-card__name { font-size: 14px; }
.ph-mesa-card__loc { font-size: 10.5px; margin-top: 1px; }
.ph-mesa-card__pills { gap: 4px; }
.ph-mesa-card__pill { font-size: 9.5px; padding: 2px 7px; gap: 4px; }
.ph-mesa-card__pill i { font-size: 8.5px; }
.ph-mesa-card__actions { padding-top: 8px; margin-top: 8px; gap: 5px; }
.ph-mesa-card__btn { font-size: 10px; padding: 5px 6px; border-radius: 8px; gap: 4px; }

/* Franja horizontal "Conjunto activo" (reemplaza la tarjeta flotante, 2026-10-05) */
.ph-mesa-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 12px 10px 18px;
}
.ph-mesa-strip.hidden { display: none !important; }
.ph-mesa-strip::before { top: 10px; bottom: 10px; }
.ph-mesa-strip__id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.ph-mesa-strip__id .ph-mesa-card__avatar { width: 40px; height: 40px; font-size: 13.5px; }
.ph-mesa-strip__id .ph-mesa-card__eyebrow { margin-bottom: 1px; }
.ph-mesa-strip__id .ph-mesa-card__name { font-size: 15px; }
.ph-mesa-strip__pills { flex: 0 1 auto; }
.ph-mesa-strip__actions {
  border-top: 0 !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  align-items: center;
}
.ph-mesa-strip__actions .ph-mesa-card__btn { flex: 0 0 auto; padding: 6px 11px; font-size: 10.5px; }
.ph-mesa-strip__actions .ph-mesa-card__close { margin-left: 2px; }
@media (max-width: 640px) {
  .ph-mesa-strip__actions { margin-left: 0 !important; width: 100%; }
  .ph-mesa-strip__actions .ph-mesa-card__btn { flex: 1 1 0; }
}
/* El botón "Ubicación" nunca toma el estilo de chip activo */
#phDashCopropiedadBotones .ph-mesa-btn-geo { border-style: dashed !important; }

/* ── Portal proveedor: accesos con icono en la cabecera (estilo portal de aliados) ── */
.prov-top-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.prov-top-btn i { font-size: 17px; margin-bottom: 3px; line-height: 1; }
.prov-top-btn:hover { color: var(--text-main); }
.prov-top-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 800; }
.prov-top-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 8px; }
.prov-top-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  min-width: 16px;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  border: 1.5px solid var(--bg-surface, #fff);
}
.prov-top-badge--warn { background: #f59e0b; right: 4px; }

/* ── Tarjeta de la empresa arriba de Oportunidades (ph-proveedor-resumen.js) ── */
#phProvResumenCard { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-surface); overflow: hidden; }
.prov-res { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; }
.prov-res-id { display: flex; align-items: center; gap: 12px; min-width: 220px; flex: 1 1 240px; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--text-main); }
.prov-res-id:hover .prov-res-nombre { color: var(--primary); }
.prov-res-logo { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; }
.prov-res-logo img { position: absolute; inset: 0; background: var(--bg-surface); }
.prov-res-nombre { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.prov-res-sub { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.prov-res-stars { display: block; font-size: 11px; margin-top: 3px; }
.prov-res-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 2 1 420px; }
.prov-res-kpi { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elevated); cursor: pointer; color: var(--text-main); transition: border-color .15s ease, transform .15s ease; }
.prov-res-kpi:hover { border-color: var(--primary); transform: translateY(-1px); }
.prov-res-kpi b { display: block; font-size: 18px; font-weight: 900; line-height: 1.1; }
.prov-res-kpi-lbl { display: block; font-size: 10.5px; font-weight: 700; color: var(--text-muted); line-height: 1.2; }
.prov-res-kpi-sub { display: block; font-size: 10px; color: var(--text-muted); opacity: .85; }
.prov-res-kpi-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; background: color-mix(in srgb, var(--text-muted) 12%, transparent); color: var(--text-muted); }
.prov-res-kpi-ic.is-primary { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.prov-res-kpi-ic.is-green { background: rgba(34, 197, 94, .12); color: #16a34a; }
.prov-res-kpi-ic.is-warn { background: rgba(245, 158, 11, .14); color: #d97706; }
.prov-res-vis { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-muted); }
.prov-res-vis b { color: var(--text-main); }
.prov-res-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; background: #9ca3af; }
.prov-res-vis--on .prov-res-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.prov-res-vis--off .prov-res-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.prov-res-vis-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px; font-size: 11px; font-weight: 700; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-main); cursor: pointer; }
.prov-res-vis-btn:hover:not([disabled]) { border-color: var(--primary); color: var(--primary); }
.prov-res-vis-btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 640px) {
  .prov-res { padding: 12px; gap: 12px; }
  .prov-res-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; }
  .prov-res-vis { padding: 9px 12px; flex-wrap: wrap; }
}

/* Iconos de la cabecera con data-ph-nav: el router les pone ph-nav-active; sin el fondo del menú lateral */
.ph-module .prov-top-btn.ph-nav-active { background-color: transparent !important; border-left: 0; color: var(--primary) !important; }
/* Selector de propiedad en la cabecera: resaltado mientras la lista está abierta */
.prov-top-btn[aria-expanded="true"] { color: var(--primary); }
.prov-top-btn i.fa-chevron-down { font-size: 8px; margin: 0; }

/* ── Casillas de propiedades (ph-propiedades-casillas.js), como la barra de empresas de LicitIA ── */
.ph-casillas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ph-casillas-lbl { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-right: 2px; }
.ph-casilla { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-main); cursor: pointer; text-align: left; transition: border-color .15s ease, background-color .15s ease; max-width: 240px; }
.ph-casilla:hover { border-color: var(--primary); }
.ph-casilla-box { width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; border: 1.5px solid var(--border-active, #cbd5e1); background: var(--bg-surface, #fff); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: transparent; transition: all .15s ease; }
.ph-casilla-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ph-casilla-nom { font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-casilla-sub { font-size: 10px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-casilla.is-on { border-color: var(--primary); background: var(--primary-soft, rgba(194, 65, 12, .08)); }
.ph-casilla.is-on .ph-casilla-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.ph-casilla:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Resaltado al llevar al usuario a un campo pendiente (ph-proveedor-perfil.js · irA) */
@keyframes phResaltar { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .45); } }
.ph-resaltar { animation: phResaltar 1.1s ease 2; border-radius: 12px; }
