/* Punto ABBI — Sistema de Diseño Integrado 2026
   Identidad Cromática Unificada:
   - Primario de Marca (Fucsia / Rosa): #F34F84 (Acciones principales, cotizador, badges)
   - Turquesa de la "A" de ABBI: #00A8B0 (Acentos frescos, bordes activos y detalles)
   - Paleta Cálida Terrosa (Arena / Crema): #F9F6F1 / #E8D9C5 (Fondo, calidez y artesanía)
   - Azul Noche Profundo (Navy): #1A1F47 (Títulos, contraste y solidez)
   - Tipografía: 'Hanken Grotesk' y 'Caveat'
*/

:root {
  /* Color Primario de Marca: Fucsia / Rosa Vibrante */
  --primary: #F34F84;
  --primary-hover: #DE366F;
  --primary-dark: #C21D5A;
  --primary-light: rgba(243, 79, 132, 0.12);
  --primary-soft: rgba(243, 79, 132, 0.05);

  /* Color de la "A" de ABBI (Turquesa / Teal Vibrante) */
  --brand-teal: #00A8B0;
  --color-a-abbi: var(--brand-teal);
  --color-a-abbi-hover: #008D94;
  --color-a-abbi-light: rgba(0, 168, 176, 0.14);
  --color-a-abbi-soft: rgba(0, 168, 176, 0.06);

  /* Paleta Base Cálida y Terrosa */
  --secondary: #E8D9C5;
  --secondary-light: #F6EFE7;
  --secondary-hover: #DBC8B0;

  /* Aliasing y Compatibilidad de Rosa de Marca */
  --brand-pink: var(--primary);
  --brand-pink-hover: var(--primary-hover);
  --brand-pink-light: var(--primary-light);
  --brand-pink-soft: var(--primary-soft);
  --logo-magenta: var(--primary);
  --logo-magenta-hover: var(--primary-hover);
  --logo-magenta-light: var(--primary-light);

  /* Amarillo / Dorado de Marca */
  --brand-yellow: #FBAD05;
  --brand-yellow-hover: #E09800;
  --brand-yellow-soft: rgba(251, 173, 5, 0.15);
  --brand-yellow-bg: #FFF7EA;
  --logo-amber: var(--brand-yellow);
  --logo-amber-light: var(--brand-yellow-soft);

  /* Azul Noche Profundo (Identidad y Títulos) */
  --brand-navy: #1A1F47;
  --logo-navy: var(--brand-navy);
  --logo-navy-light: rgba(26, 31, 71, 0.08);
  --brand-dark-footer: #161B36;

  /* Lavanda / Violeta Suave Artesanal */
  --brand-lavender: #ECE0F4;
  --brand-lavender-soft: #F6F1FA;
  --brand-lavender-wave: #CFBFE4;
  --brand-lavender-accent: #7E5A9B;

  /* WhatsApp Oficial */
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #20BA5A;
  --whatsapp-green-border: #1EBE5B;

  /* Superficies y Fondos Cálidos */
  --bg-main: #F9F6F1;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCF9F6;
  --bg-input: #F3ECE5;
  --bg-input-focus: #FFFFFF;

  --border-color: #DDD2C7;
  --border-focus: var(--brand-teal);
  --border-soft: #ECE3DB;

  /* Textos Armonizados (Escala Cálida / Terrosa) */
  --text-main: #1A1F47;
  --text-muted: #665954;
  --text-dim: #8E807A;
  --text-inverted: #FFFFFF;

  /* Tipografía */
  --font-heading: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', 'Playpen Sans', cursive;

  /* Radios y Sombras */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(26, 31, 71, 0.05);
  --shadow-md: 0 8px 26px rgba(26, 31, 71, 0.09);
  --shadow-lg: 0 14px 40px rgba(26, 31, 71, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: 60px;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Navbar Superior Integrado
   ========================================================================== */
.navbar {
  background: rgba(249, 246, 241, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 210, 199, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo {
  height: 92px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.03);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--brand-navy);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-pink);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-pink);
  border-radius: 4px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-admin-pill {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-admin-pill:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  background: rgba(0, 168, 176, 0.08);
}

.btn-cta-pink {
  background: var(--brand-pink);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(243, 79, 132, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-pink:hover {
  background: var(--brand-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(243, 79, 132, 0.45);
}

.heart-icon {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn-cta-pink:hover .heart-icon {
  transform: scale(1.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 40px 0 30px;
  background: var(--bg-main);
}

.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  z-index: 2;
  position: relative;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.kicker-line {
  width: 24px;
  height: 2.5px;
  background: var(--brand-pink);
  border-radius: 2px;
}

.kicker-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--brand-pink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kicker-heart {
  font-size: 0.95rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--brand-navy);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.script-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.script-word {
  font-family: var(--font-script);
  color: var(--brand-pink);
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 0.88;
  margin-left: 6px;
}

.script-underline {
  position: absolute;
  bottom: -6px;
  left: 2px;
  width: 105%;
  height: 22px;
  pointer-events: none;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 510px;
  margin-bottom: 32px;
  font-weight: 500;
}

.geo-highlight {
  color: var(--brand-pink);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--brand-pink);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 14px 28px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(243, 79, 132, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover {
  background: var(--brand-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(243, 79, 132, 0.45);
}

.btn-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--brand-navy) !important;
  border: 2px solid var(--brand-navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 12px 26px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: var(--brand-navy);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Métricas Rápidas de Confianza (Social Proof) */
.hero-quick-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(221, 210, 199, 0.5);
  padding: 8px 22px;
  border-radius: 50px;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(34, 49, 70, 0.04);
}

.quick-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(221, 210, 199, 0.8);
}

/* Micro-Badges de Confianza */
.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 530px;
}

.hero-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.badge-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-badge-item:hover .badge-icon-circle {
  transform: scale(1.12);
}

.icon-purple {
  background: var(--brand-lavender);
  color: var(--brand-lavender-accent);
}

.icon-teal {
  background: #E6F9F9;
  color: var(--brand-teal);
}

.icon-amber {
  background: #FEF3E7;
  color: var(--brand-yellow);
}

.icon-yellow {
  background: #FEF9C3;
  color: #D97706;
}

.icon-red {
  background: #FEE2E2;
  color: #E11D48;
}

.icon-pink {
  background: #FDECF2;
  color: var(--brand-pink);
}

.badge-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.25;
}

/* Showcase Visual Hero */
.hero-showcase {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
}

.showcase-img-wrap {
  width: 100%;
  max-width: 620px;
  border-radius: 46px 0 0 46px;
  overflow: hidden;
  box-shadow: -10px 20px 48px rgba(26, 31, 71, 0.09);
  transition: transform 0.4s ease;
}

.showcase-img-wrap:hover {
  transform: scale(1.015);
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-stitch-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 70px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Barra de Beneficios (4 Columnas)
   ========================================================================== */
.features-bar {
  background: var(--brand-lavender);
  padding: 34px 0;
  border-top: 1px solid rgba(124, 92, 230, 0.12);
  border-bottom: 1px solid rgba(124, 92, 230, 0.12);
}

.features-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-col {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 16px;
  border-right: 1px solid rgba(100, 70, 160, 0.16);
}

.feature-col:last-child {
  border-right: none;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--brand-navy);
  text-transform: uppercase;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-weight: 500;
}

/* ==========================================================================
   Contenedores Globales de Secciones
   ========================================================================== */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Sección 1: Catálogo de Prendas y Soportes Especiales
   ========================================================================== */
.catalogo-section {
  padding: 72px 0 54px;
  background: var(--bg-main);
  scroll-margin-top: 70px;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.catalogo-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalogo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(243, 79, 132, 0.35);
}

.catalogo-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--secondary-light);
}

.catalogo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalogo-card:hover .catalogo-img {
  transform: scale(1.06);
}

.catalogo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 50px;
}

.catalogo-tag.tag-teal {
  background: #00A8B0;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 168, 176, 0.35);
}

.catalogo-tag.tag-pink {
  background: #F34F84;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(243, 79, 132, 0.35);
}

.catalogo-tag.tag-amber {
  background: #D97706;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.catalogo-tag.tag-purple {
  background: #7C5CE6;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(124, 92, 230, 0.35);
}

.catalogo-info {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalogo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.catalogo-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
  flex-grow: 1;
}

.catalogo-cta {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--brand-pink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.catalogo-cta:hover {
  color: var(--brand-pink-hover);
  gap: 10px;
}

.cta-arrow {
  font-size: 1rem;
  line-height: 1;
}

/* Banner Especial Parches */
.parches-banner {
  background: linear-gradient(135deg, #FFF7EA 0%, #FFEECD 100%);
  border: 1.5px dashed var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.parches-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.parches-text {
  flex-grow: 1;
}

.parches-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 3px;
}

.parches-desc {
  font-size: 0.86rem;
  color: #785A20;
  line-height: 1.4;
}

.btn-parches-cta {
  background: var(--brand-yellow);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(251, 173, 5, 0.3);
  transition: all 0.2s ease;
}

.btn-parches-cta:hover {
  background: var(--brand-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(251, 173, 5, 0.4);
}

/* ==========================================================================
   Sección 3: Storytelling Taller & Diferenciales de Calidad
   ========================================================================== */
.diferenciales-section {
  padding: 72px 0 54px;
  background: var(--bg-main);
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 70px;
}

.taller-highlight-box {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #232B5D 100%);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 16px 44px rgba(26, 31, 71, 0.16);
  position: relative;
  overflow: hidden;
}

.taller-highlight-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(243, 79, 132, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.taller-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--brand-yellow);
  border: 1.5px solid var(--brand-yellow);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.taller-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.taller-desc {
  font-size: 1.08rem;
  color: #E8DFD8;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.diferenciales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.diferencial-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 1.5px solid var(--border-soft);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.diferencial-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-sm);
}

/* Banner cruzado (Corner Ribbon) */
.corner-ribbon {
  position: absolute;
  top: 20px;
  right: -34px;
  transform: rotate(45deg);
  width: 130px;
  text-align: center;
  background: linear-gradient(135deg, #FF708A 0%, var(--brand-pink) 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 0;
  box-shadow: 0 3px 10px rgba(232, 74, 114, 0.3);
  pointer-events: none;
  z-index: 5;
}

.diferencial-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.diferencial-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.diferencial-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Sección 2: Galería de Trabajos Realizados (Carrusel Dinámico)
   ========================================================================== */
.portafolio-section {
  padding: 72px 0 60px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 70px;
  position: relative;
}

.trabajos-carousel-container {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.trabajos-carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px 6px 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.trabajos-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Tarjeta individual de trabajo */
.trabajo-card {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 260px;
  scroll-snap-align: start;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(26, 31, 71, 0.05);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  user-select: none;
}

.trabajo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(26, 31, 71, 0.12);
  border-color: rgba(232, 74, 114, 0.45);
}

.trabajo-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EEF2F6;
}

.trabajo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.trabajo-card:hover .trabajo-img {
  transform: scale(1.07);
}

.trabajo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(26, 31, 71, 0.88);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.trabajo-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.trabajo-card:hover .trabajo-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

.trabajo-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  background: #FFFFFF;
}

.trabajo-card-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.3;
}

.trabajo-card-specs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.trabajo-spec-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 4px 9px;
  border-radius: 50px;
  border: 1px solid var(--border-soft);
}

/* Botones de navegación del carrusel */
.carousel-nav-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(26, 31, 71, 0.14);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-nav-btn.prev {
  left: -24px;
}

.carousel-nav-btn.next {
  right: -24px;
}

.carousel-nav-btn:hover {
  background: var(--brand-pink);
  color: #FFFFFF;
  border-color: var(--brand-pink);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(232, 74, 114, 0.35);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Controles inferiores: Dots y Hint */
.carousel-controls-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50px;
  background: rgba(26, 31, 71, 0.18);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.carousel-dot.active {
  width: 30px;
  background: var(--brand-pink);
  box-shadow: 0 2px 8px rgba(232, 74, 114, 0.4);
}

.carousel-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hint-icon {
  font-size: 0.9rem;
}

/* Loading & Empty states */
.carousel-loading-state,
.carousel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.carousel-spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid rgba(232, 74, 114, 0.2);
  border-top-color: var(--brand-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Modal Lightbox para Galería de Trabajos
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 33, 0.92);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 92vh;
}

.lightbox-content-box {
  background: #171C33;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  max-width: 820px;
  max-height: 86vh;
  animation: lightboxPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-img-wrap {
  background: #090C19;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 72vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: #12162B;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-title {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10002;
}

.lightbox-close:hover {
  background: var(--brand-pink);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--brand-pink);
}

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  margin: 0 14px;
  z-index: 10001;
  flex-shrink: 0;
}

.lightbox-nav-btn:hover {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(232, 74, 114, 0.4);
}

.lightbox-nav-btn:active {
  transform: scale(0.94);
}

@media (max-width: 1024px) {
  .trabajo-card {
    flex: 0 0 calc((100% - 44px) / 3);
  }
}

@media (max-width: 768px) {
  .trabajo-card {
    flex: 0 0 calc((100% - 22px) / 2);
    min-width: 220px;
  }

  .carousel-nav-btn.prev {
    left: -12px;
  }

  .carousel-nav-btn.next {
    right: -12px;
  }

  .lightbox-nav-btn {
    display: none; /* En móviles swipe o botón cerrar */
  }

  .lightbox-close {
    top: -42px;
  }
}

@media (max-width: 520px) {
  .trabajo-card {
    flex: 0 0 82%;
    min-width: 240px;
  }

  .carousel-nav-btn {
    display: none; /* En móviles se desliza fluidamente con el dedo */
  }
}

/* ==========================================================================
   Sección 4: Metodología de Trabajo (4 Pasos)
   ========================================================================== */
.proceso-section {
  padding: 72px 0 54px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 70px;
}

.proceso-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.proceso-step-card {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  text-align: center;
  border: 1.5px solid var(--border-soft);
  position: relative;
  transition: all 0.25s ease;
}

.proceso-step-card:hover {
  border-color: var(--brand-pink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.step-number-bubble {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-pink);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(243, 79, 132, 0.35);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Sección 5: Preguntas Frecuentes (FAQ)
   ========================================================================== */
.faq-section {
  padding: 72px 0 54px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 70px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-main);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: var(--brand-teal);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  color: var(--brand-teal);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--brand-pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

/* ==========================================================================
   Sección 6: Banner CTA Final de Contacto
   ========================================================================== */
.cta-final-section {
  padding: 60px 0 80px;
  background: var(--bg-main);
  scroll-margin-top: 70px;
}

.cta-final-box {
  background: linear-gradient(135deg, #1A1F47 0%, #161B36 100%);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 20px 50px rgba(26, 31, 71, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-final-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--brand-teal);
  background: var(--color-a-abbi-light);
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.cta-final-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.cta-final-desc {
  font-size: 1.12rem;
  color: #E8DFD8;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-final-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-cta-whatsapp {
  background: var(--whatsapp-green);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-cta-whatsapp:hover {
  background: var(--whatsapp-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.btn-cta-quote {
  background: transparent;
  color: #FFFFFF !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cta-quote:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.cta-final-info {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.84rem;
  color: #D5C8BB;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Sección Cotizador Interactivo
   ========================================================================== */
.cotizador-section {
  padding: 56px 0 20px;
  scroll-margin-top: 80px;
}

.section-header-box {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0 20px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand-pink);
  text-transform: uppercase;
  background: var(--brand-pink-light);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cotizador-highlight-steps {
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  color: var(--brand-navy);
  background: rgba(251, 173, 5, 0.18);
  padding: 3px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--brand-yellow);
}

/* ==========================================================================
   Footer Oscuro Sub-Footer
   ========================================================================== */
.footer-bar {
  background: var(--brand-dark-footer);
  color: #C8BCB0;
  padding: 24px 0;
  margin-top: 50px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-col-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-label {
  letter-spacing: 1.5px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-social-link {
  color: #C8BCB0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  padding: 4px;
}

.footer-social-link:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-col-center {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #D8CDC2;
}

.footer-col-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #C8BCB0;
}

.footer-heart {
  color: var(--brand-pink);
  font-size: 1rem;
}

/* Compatibilidad con código previo de cabecera */
.header {
  display: none;
}

/* Layout Principal */
.container {
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.22fr 0.95fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
    margin: 20px auto;
  }
}

/* Tarjetas y Secciones */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--logo-navy);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step-badge {
  background: var(--primary);
  color: var(--text-inverted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(243, 79, 132, 0.4);
}

/* Dropzone de Carga de Imagen */
.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: center;
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--color-a-abbi);
  background: var(--color-a-abbi-light);
}

.dropzone-icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.dropzone-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--logo-navy);
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.upload-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botón Rojo Principal de Carga */
.btn-upload {
  background: var(--primary);
  color: var(--text-inverted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(243, 79, 132, 0.3);
}

.btn-upload:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(243, 79, 132, 0.4);
}

/* Botón Turquesa de la "A" de ABBI */
.btn-demo {
  background: #FFFFFF;
  color: var(--color-a-abbi);
  border: 2px solid var(--color-a-abbi);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 168, 176, 0.15);
}

.btn-demo:hover {
  background: var(--color-a-abbi);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 168, 176, 0.3);
}

/* Mini Preview de Imagen */
.preview-info-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.preview-thumb {
  width: 66px;
  height: 66px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-card-hover);
  border: 1.5px solid var(--color-a-abbi);
  padding: 4px;
}

.preview-meta {
  flex: 1;
}

.preview-meta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--logo-navy);
}

.preview-meta-sub {
  font-size: 0.84rem;
  color: var(--color-a-abbi);
  font-weight: 700;
  margin-top: 2px;
}

.palette-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.palette-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--logo-navy);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.palette-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: #718096;
  opacity: 0.85;
}

.btn-reset-palette {
  background: rgba(5, 168, 176, 0.12);
  color: #05a8b0;
  border: 1px solid rgba(5, 168, 176, 0.35);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-reset-palette:hover {
  background: #05a8b0;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(5, 168, 176, 0.3);
}

.palette-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.color-chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(34, 49, 70, 0.28);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
}

.color-chip:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(34, 49, 70, 0.4);
  z-index: 5;
}

.color-chip .chip-icon {
  display: none;
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  line-height: 1;
}

.color-chip.is-active:hover .chip-icon {
  display: block;
}

.color-chip.is-excluded {
  opacity: 0.32;
  filter: saturate(0.25) brightness(0.9);
  border: 2px dashed rgba(220, 53, 69, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transform: scale(0.88);
}

.color-chip.is-excluded:hover {
  opacity: 0.7;
  filter: saturate(0.6);
  transform: scale(1.08);
}

.color-chip.is-excluded .chip-icon {
  display: block;
  color: #dc3545;
  text-shadow: 0 0 2px #FFFFFF, 0 0 4px #FFFFFF;
  font-size: 12px;
}

/* Medidas y Presets con Turquesa y Rojo */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.preset-btn {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--color-a-abbi);
  background: var(--color-a-abbi-light);
}

.preset-btn.active {
  border-color: var(--color-a-abbi);
  background: var(--color-a-abbi-light);
  color: var(--color-a-abbi-hover);
  box-shadow: 0 2px 12px rgba(0, 168, 176, 0.22);
}

.preset-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.94rem;
}

.preset-val {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 800;
  margin-top: 3px;
}

.size-slider-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-input);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
}

.size-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
}

.size-badge-display {
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  min-width: 100px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Modalidad de Confección y Terminaciones de Parche
   ========================================================================== */
.modalidad-group {
  margin-bottom: 22px;
}

.modalidad-group-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.modalidad-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.btn-modalidad {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-modalidad:hover {
  border-color: var(--brand-teal);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-modalidad.active {
  border-color: var(--brand-pink);
  background: #FFF5F8;
  box-shadow: 0 4px 16px rgba(243, 79, 132, 0.18);
}

.btn-modalidad.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--brand-pink);
  background: rgba(243, 79, 132, 0.12);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mod-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.mod-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.mod-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.mod-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.mod-pill-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 5px;
  background: var(--brand-teal);
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Terminaciones de Parches (Paso 3 dinámico) */
.patch-finishes-group {
  background: linear-gradient(135deg, rgba(0, 168, 176, 0.05) 0%, rgba(243, 79, 132, 0.05) 100%);
  border: 1.5px dashed var(--brand-teal);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 22px;
  animation: fadeInModalidad 0.25s ease-out;
}

@keyframes fadeInModalidad {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.patch-finishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.patch-finish-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.patch-finish-card:hover {
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.patch-finish-card.active {
  border-color: var(--brand-pink);
  background: #FFFDFE;
  box-shadow: 0 4px 16px rgba(243, 79, 132, 0.16);
}

.patch-finish-card.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--brand-pink);
}

.finish-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.finish-icon {
  font-size: 1.5rem;
}

.finish-badge-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 50px;
}

.finish-badge-tag.tag-blue {
  background: rgba(0, 168, 176, 0.12);
  color: var(--brand-teal);
}

.finish-badge-tag.tag-pink {
  background: rgba(243, 79, 132, 0.12);
  color: var(--brand-pink);
}

.finish-badge-tag.tag-amber {
  background: rgba(251, 173, 5, 0.16);
  color: #B37400;
}

.finish-card-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.finish-card-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .modalidad-control {
    grid-template-columns: 1fr;
  }
  .patch-finishes-grid {
    grid-template-columns: 1fr;
  }
}

.badge-modalidad-parche {
  background: rgba(243, 79, 132, 0.12);
  color: var(--brand-pink);
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-modalidad-corte {
  background: rgba(0, 168, 176, 0.12);
  color: var(--brand-teal);
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Grilla de Prendas */
.garments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .garments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.garment-card {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.garment-card:hover {
  border-color: var(--color-a-abbi);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.garment-card.active {
  border-color: var(--color-a-abbi);
  background: var(--color-a-abbi-light);
  box-shadow: 0 4px 18px rgba(0, 168, 176, 0.25);
}

.garment-icon {
  font-size: 2.1rem;
  margin-bottom: 6px;
}

.garment-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--logo-navy);
}

.garment-diff {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Selector de Cantidad y Escalas */
.qty-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.qty-btn {
  background: var(--bg-input);
  border: none;
  color: var(--logo-navy);
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.qty-input {
  background: transparent;
  border: none;
  color: var(--logo-navy);
  width: 64px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Ocultar flechas triangulares de incremento/decremento nativas */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.scales-banner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scale-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.scale-pill:hover {
  border-color: var(--color-a-abbi);
  color: var(--color-a-abbi-hover);
  transform: translateY(-1px);
}

.scale-pill.active {
  border-color: var(--color-a-abbi);
  background: var(--color-a-abbi-light);
  color: var(--color-a-abbi-hover);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 168, 176, 0.3);
}

/* Tarjeta Lateral de Presupuesto */
.quote-card {
  position: sticky;
  top: 96px;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-color);
}

.quote-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--logo-navy);
}

.quote-badge-live {
  background: var(--color-a-abbi-light);
  color: var(--color-a-abbi-hover);
  border: 1.5px solid var(--color-a-abbi);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-a-abbi);
  box-shadow: 0 0 8px var(--color-a-abbi);
}

/* Mockup Canvas Visual */
.mockup-container {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
}

.mockup-garment-bg {
  width: 100%;
  height: 146px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, #FFFFFF 0%, var(--secondary-light) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.mockup-logo-img {
  max-height: 90px;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(34, 49, 70, 0.2));
  transition: transform 0.3s;
}

.mockup-tag {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: var(--color-a-abbi);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 168, 176, 0.3);
}

/* Ficha Técnica Rápida con Rojo y Turquesa */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

/* Estado bloqueado para usuarios no registrados o Free */
.tech-grid.tech-pro-locked {
  grid-template-columns: 1fr;
}

.tech-grid.tech-pro-locked .tech-metric-pro {
  display: none !important;
}

.tech-grid.tech-pro-locked .tech-item {
  text-align: center;
}

.tech-item {
  background: var(--bg-card-hover);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s;
}

.tech-item:hover {
  border-color: var(--color-a-abbi);
}

.tech-label {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tech-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--logo-navy);
  margin-top: 3px;
}

/* Desglose Financiero */
.quote-breakdown {
  border-top: 1.5px solid var(--border-color);
  padding-top: 18px;
  margin-bottom: 22px;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.quote-row.highlight {
  color: var(--logo-navy);
  font-weight: 800;
}

.quote-row-val {
  color: var(--logo-navy);
  font-weight: 800;
}

.badge-free {
  background: var(--color-a-abbi-light);
  color: var(--color-a-abbi-hover);
  border: 1.5px solid var(--color-a-abbi);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
}

.badge-off {
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
}

/* Caja de Total en Rojo Cálido Destacado */
.total-box {
  background: var(--primary-soft);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(243, 79, 132, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.total-label-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.total-label {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--logo-navy);
}

.calc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, max-height 0.25s ease, transform 0.25s ease;
}

.calc-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(243, 79, 132, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.total-lead {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

/* Estado de procesamiento / cálculo en tiempo real */
.total-box.is-calculating {
  border-color: var(--primary);
  box-shadow: 0 4px 22px rgba(243, 79, 132, 0.35);
  background: linear-gradient(90deg, rgba(254, 241, 245, 1) 0%, rgba(255, 255, 255, 0.96) 50%, rgba(254, 241, 245, 1) 100%);
  background-size: 200% 100%;
  animation: totalBoxShimmer 1.3s ease-in-out infinite;
}

.total-box.is-calculating .calc-status {
  opacity: 1;
  max-height: 24px;
  transform: translateY(0);
}

.total-box.is-calculating .total-lead {
  opacity: 0.45;
  filter: blur(0.6px);
  transform: scale(0.96);
}

.quote-card.is-calculating .quote-row-val {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.quote-card.is-calculating .tech-val {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

@keyframes totalBoxShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.delivery-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

/* Botón Oficial Verde WhatsApp */
.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #FFFFFF;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.08rem;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--whatsapp-green-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.48);
}

.btn-print {
  background: var(--secondary);
  color: var(--logo-navy);
  border: 1.5px solid var(--border-color);
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.btn-print:hover {
  background: var(--secondary-hover);
  border-color: var(--neutral);
  color: var(--neutral-dark);
}

/* Modal Admin */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 49, 70, 0.65);
  backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--logo-navy);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  color: var(--logo-navy);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--color-a-abbi);
  background: #FFFFFF;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ==========================================================================
   Módulo de Autenticación, Roles y Experiencia de Usuario
   ========================================================================== */

/* Navbar: Botón de Ingreso y Dropdown de Usuario */
.auth-nav-container {
  display: flex;
  align-items: center;
  position: relative;
}

.btn-auth-pill {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--brand-navy);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-auth-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.user-dropdown-wrapper {
  position: relative;
}

.btn-user-profile {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  padding: 6px 14px 6px 8px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-user-profile:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(243, 79, 132, 0.15);
}

.user-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.user-name-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.user-plan-badge.badge-free {
  background: var(--color-a-abbi-light);
  color: var(--color-a-abbi);
}

.user-plan-badge.badge-pro {
  background: linear-gradient(135deg, #FFF0D0 0%, #FFE29F 100%);
  color: #925800;
  border: 1px solid #FFD066;
}

.user-plan-badge.badge-admin {
  background: rgba(26, 31, 71, 0.1);
  color: var(--brand-navy);
}

.dropdown-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.btn-user-profile[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

/* Menú Desplegable */
.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  z-index: 200;
  animation: dropdownFadeIn 0.2s ease;
}

.user-dropdown-menu.show {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
  padding: 10px 18px 12px;
}

.user-dropdown-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--brand-navy);
  line-height: 1.2;
}

.user-dropdown-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
  word-break: break-all;
}

.user-dropdown-meta {
  font-size: 0.73rem;
  color: var(--brand-teal);
  font-weight: 600;
  margin-top: 4px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
  opacity: 0.6;
}

.user-dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.user-dropdown-item:hover {
  background: var(--secondary-light);
  color: var(--primary);
}

.user-dropdown-item.item-admin {
  color: var(--brand-teal);
}

.user-dropdown-item.item-admin:hover {
  background: var(--color-a-abbi-soft);
  color: var(--brand-teal);
}

.user-dropdown-item.item-logout {
  color: #D32F2F;
}

.user-dropdown-item.item-logout:hover {
  background: #FFEBEE;
}

/* Modal de Autenticación */
.auth-modal-box {
  max-width: 490px;
  padding: 28px 32px;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.auth-brand-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-brand-heart {
  color: var(--primary);
  font-size: 1.1rem;
}

.auth-tabs-nav {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--brand-navy);
  box-shadow: 0 2px 6px rgba(26, 31, 71, 0.08);
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: block;
  animation: authPaneFade 0.25s ease;
}

@keyframes authPaneFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-pane-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #FDE8E8;
  border: 1px solid #F8B4B4;
  color: #C81E1E;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.req {
  color: var(--primary);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 44px;
}

.btn-toggle-pass {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-dim);
  padding: 4px;
}

/* Feedback Visual para Correo Electrónico */
.input-feedback-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-feedback-wrap input {
  width: 100%;
  padding-right: 36px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-feedback-wrap input.input-valid {
  border-color: #10B981 !important;
  background-color: #F0FDF4;
}

.input-feedback-wrap input.input-invalid {
  border-color: #EF4444 !important;
  background-color: #FEF2F2;
}

.email-status-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  display: none;
  z-index: 2;
}

.email-status-icon.valid {
  display: inline-block;
  color: #10B981;
}

.email-status-icon.invalid {
  display: inline-block;
  color: #EF4444;
}

.field-validation-msg {
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

.field-validation-msg.error {
  color: #DC2626;
}

.field-validation-msg.success {
  color: #16A34A;
}


.pass-hints {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}

.hint-item {
  font-size: 0.74rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.hint-item.valid {
  color: #0E9F6E;
  font-weight: 600;
}

.btn-auth-submit {
  width: 100%;
  background: var(--brand-navy);
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(26, 31, 71, 0.25);
  transition: all 0.2s ease;
}

.btn-auth-submit:hover {
  background: #111532;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 31, 71, 0.35);
}

.btn-reg-submit {
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(243, 79, 132, 0.35);
}

.btn-reg-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(243, 79, 132, 0.45);
}

.auth-switch-prompt {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 18px;
}

.auth-switch-prompt a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch-prompt a:hover {
  text-decoration: underline;
}

.auth-aux-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  margin-bottom: 8px;
}

.auth-aux-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.auth-aux-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.auth-alert.success {
  background: #DEF7EC;
  border-color: #31C48D;
  color: #03543F;
}


/* Botón Guardar Cotización */
.btn-save-quote {
  width: 100%;
  background: #FFFFFF;
  color: var(--brand-navy);
  border: 1.5px solid var(--border-color);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-save-quote:hover {
  border-color: var(--brand-teal);
  background: var(--color-a-abbi-soft);
  color: var(--brand-teal);
}

/* Modal Historial de Cotizaciones */
.quotes-modal-box {
  max-width: 760px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.quotes-modal-body {
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 6px;
  margin-top: 14px;
}

.quote-history-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.quote-history-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quote-history-thumb-wrap {
  width: 58px;
  height: 58px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(26, 31, 71, 0.05);
}

.quote-history-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.quote-history-info {
  flex: 1;
}

.quote-history-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.quote-history-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.quote-history-date {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.quote-history-action {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.quote-history-price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.2;
}

.quote-history-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-wa-quote {
  background: var(--whatsapp-green);
  color: #FFFFFF !important;
  border: none;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.78rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-wa-quote:hover {
  background: var(--whatsapp-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

.btn-load-quote {
  background: var(--bg-input);
  color: var(--brand-navy);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-load-quote:hover {
  background: var(--brand-pink-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-delete-quote {
  background: var(--bg-input);
  color: var(--text-dim);
  border: 1px solid var(--border-color);
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-delete-quote:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #DC2626;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .quote-history-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .quote-history-action {
    width: 100%;
    align-items: flex-start;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
  }
  .quote-history-btns {
    width: 100%;
    justify-content: flex-start;
  }
}

.empty-quotes {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-quotes-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

/* Modal Pro Info */
.pro-modal-box {
  max-width: 540px;
  padding: 30px;
}

.pro-banner-header {
  background: linear-gradient(135deg, #1A1F47 0%, #2A3066 100%);
  color: #FFFFFF;
  padding: 22px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  text-align: center;
}

.pro-banner-badge {
  display: inline-block;
  background: #FBAD05;
  color: #1A1F47;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pro-features-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.pro-features-list li {
  font-size: 0.88rem;
  color: var(--brand-navy);
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pro-check {
  color: #0E9F6E;
  font-weight: 800;
}

/* Contenedor de Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.toast-item.toast-success {
  border-left: 4px solid #0E9F6E;
  color: var(--brand-navy);
}

.toast-item.toast-error {
  border-left: 4px solid #E02424;
  color: #9B1C1C;
}

.toast-item.toast-info {
  border-left: 4px solid var(--brand-teal);
  color: var(--brand-navy);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-item.hide {
  opacity: 0;
  transform: translateX(40px);
}

/* ==========================================================================
   Fase 3 & 4: Ficha Técnica de Producción y Gestión de Usuarios PRO
   ========================================================================== */

/* Botón CTA en Cotizador */
.btn-tech-sheet-cta {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(26, 31, 71, 0.04);
}

.btn-tech-sheet-cta:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(243, 79, 132, 0.15);
}

.tech-sheet-cta-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.tech-sheet-cta-text {
  flex: 1;
}

.tech-sheet-cta-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--brand-navy);
}

.tech-sheet-cta-subtitle {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tech-sheet-cta-arrow {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn-tech-sheet-cta:hover .tech-sheet-cta-arrow {
  transform: translateX(3px);
}

/* Modal Ficha Técnica */
.tech-sheet-modal-box {
  max-width: 840px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
}

.tech-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.tech-sheet-header-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.badge-tech-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.badge-tech-status.pro {
  background: linear-gradient(135deg, #FFF0D0 0%, #FFE29F 100%);
  color: #925800;
  border: 1px solid #FFD066;
}

.badge-tech-status.free {
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.tech-sheet-scroll-body {
  overflow-y: auto;
  max-height: calc(90vh - 120px);
  padding-right: 8px;
}

/* Grilla de Calibración */
.tech-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tech-param-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.tech-param-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tech-param-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.tech-notes-card {
  background: #FFF9E6;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #7A5300;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabla de Paradas */
.tech-section-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-table-container {
  overflow-x: auto;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.tech-stops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.tech-stops-table th {
  background: var(--bg-input);
  color: var(--brand-navy);
  font-weight: 800;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--border-color);
  white-space: nowrap;
}

.tech-stops-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-main);
  vertical-align: middle;
}

.tech-stops-table tr:last-child td {
  border-bottom: none;
}

.table-color-chip {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: middle;
  margin-right: 6px;
}

.pro-locked-cell {
  background: rgba(243, 79, 132, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
}

/* Calculadora de Conos */
.tech-cones-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.tech-cone-metric-box {
  background: var(--color-a-abbi-soft);
  border: 1.5px solid var(--color-a-abbi-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.tech-cone-metric-num {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--brand-teal);
  line-height: 1.2;
}

.tech-cone-metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Banner Bloqueado para Free / Visitante */
.pro-locked-banner {
  background: linear-gradient(135deg, #1A1F47 0%, #2A3066 100%);
  color: #FFFFFF;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.pro-locked-banner-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pro-locked-banner-content p {
  font-size: 0.8rem;
  opacity: 0.85;
}

.pro-locked-banner-btn {
  background: #FBAD05;
  color: #1A1F47;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(251, 173, 5, 0.35);
}

.pro-locked-banner-btn:hover {
  background: #E09800;
  transform: translateY(-2px);
}

/* Acciones Desbloqueadas PRO */
.pro-unlocked-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.btn-export-txt {
  background: var(--brand-navy);
  color: #FFFFFF;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(26, 31, 71, 0.25);
  transition: all 0.2s ease;
}

.btn-export-txt:hover {
  background: #111532;
  transform: translateY(-1px);
}

/* Modal Admin Gestión de Usuarios */
.admin-users-modal-box {
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-users-table th {
  background: var(--bg-input);
  color: var(--brand-navy);
  font-weight: 800;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--border-color);
}

.admin-users-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.btn-role-toggle {
  background: var(--brand-yellow-bg);
  color: #925800;
  border: 1px solid #FFD066;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-role-toggle:hover {
  background: #FBAD05;
  color: #1A1F47;
}

.btn-role-toggle.to-free {
  background: #F3ECE5;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.btn-role-toggle.to-free:hover {
  background: #E0D4C7;
  color: var(--brand-navy);
}

/* ==========================================================================
   Estilos de Impresión / Guardar PDF (Hoja de Presupuesto A4)
   ========================================================================== */

/* Ocultar elementos exclusivos de impresión en pantalla */
.print-only,
#printQuoteSheet {
  display: none !important;
}

@media print {
  /* Configuración de Hoja A4 */
  @page {
    size: A4 portrait;
    margin: 10mm 14mm 10mm 14mm;
  }

  /* Resetear página para impresión limpia en blanco y negro / colores sutiles */
  html,
  body {
    background: #FFFFFF !important;
    color: #1e293b !important;
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Ocultar todo el sitio web interactivo */
  body > *:not(#printQuoteSheet) {
    display: none !important;
  }

  /* Mostrar exclusivamente la Hoja de Presupuesto */
  #printQuoteSheet {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
  }

  /* Encabezado Membrete */
  .print-sheet-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #0f172a !important;
    margin-bottom: 12px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-brand-col {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .print-brand-logo {
    height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .print-brand-title {
    font-size: 16pt !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.1 !important;
  }

  .print-brand-tagline {
    font-size: 8pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    letter-spacing: 0.5px !important;
    margin: 2px 0 !important;
  }

  .print-brand-contact {
    font-size: 7.5pt !important;
    color: #475569 !important;
    margin: 0 !important;
  }

  .print-doc-col {
    text-align: right !important;
  }

  .print-doc-badge {
    display: inline-block !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 8pt !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 3px !important;
  }

  .print-doc-ref {
    font-size: 12pt !important;
    font-weight: 800 !important;
    color: #0284c7 !important;
    margin: 2px 0 !important;
  }

  .print-doc-meta {
    font-size: 7.5pt !important;
    color: #475569 !important;
    line-height: 1.3 !important;
  }

  /* Bloque Cliente */
  .print-client-box {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-client-header {
    font-size: 7.5pt !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #64748b !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 3px !important;
  }

  .print-client-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px 16px !important;
  }

  .print-client-item {
    font-size: 8.5pt !important;
    color: #334155 !important;
  }

  .print-field-label {
    color: #64748b !important;
    font-size: 8pt !important;
    margin-right: 4px !important;
  }

  .print-field-value {
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  /* Títulos de Sección */
  .print-section-title {
    font-size: 8pt !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #0f172a !important;
    border-left: 3px solid #0284c7 !important;
    padding-left: 6px !important;
    margin-bottom: 6px !important;
  }

  /* Especificaciones y Preview */
  .print-specs-container {
    display: grid !important;
    grid-template-columns: 1fr 170px !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-info-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8.5pt !important;
    margin-bottom: 8px !important;
  }

  .print-info-table th {
    width: 38% !important;
    text-align: left !important;
    padding: 3px 6px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .print-info-table td {
    padding: 3px 6px !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .print-tech-mini-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }

  .print-tech-mini-grid.tech-pro-locked {
    grid-template-columns: 1fr !important;
  }

  .print-tech-mini-grid.tech-pro-locked .print-tech-pro {
    display: none !important;
  }

  .print-tech-pill {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 4px 6px !important;
    text-align: center !important;
  }

  .print-tech-label {
    display: block !important;
    font-size: 6.5pt !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
  }

  .print-tech-pill strong {
    font-size: 8pt !important;
    color: #0f172a !important;
    font-weight: 800 !important;
  }

  /* Preview Frame */
  .print-specs-preview {
    text-align: center !important;
  }

  .print-mockup-frame {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    padding: 6px !important;
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #printMockupImg {
    max-width: 100% !important;
    max-height: 98px !important;
    object-fit: contain !important;
  }

  .print-mockup-caption {
    font-size: 7pt !important;
    color: #64748b !important;
    margin-top: 4px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Desglose Económico */
  .print-breakdown-section {
    margin-bottom: 12px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-table-costs {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8.5pt !important;
  }

  .print-table-costs thead th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    padding: 5px 8px !important;
    border: 1px solid #cbd5e1 !important;
    text-align: left !important;
  }

  .print-table-costs tbody td {
    padding: 5px 8px !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
  }

  .print-table-costs .text-center {
    text-align: center !important;
  }

  .print-table-costs .text-right {
    text-align: right !important;
  }

  .print-table-costs .cost-highlight {
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .print-table-costs .cost-bonus {
    color: #059669 !important;
    font-weight: 700 !important;
  }

  .print-total-row {
    background: #0f172a !important;
    color: #ffffff !important;
  }

  .print-total-title {
    font-size: 9.5pt !important;
    font-weight: 800 !important;
    padding: 7px 10px !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
  }

  .print-total-amount {
    font-size: 12pt !important;
    font-weight: 900 !important;
    padding: 7px 10px !important;
    color: #38bdf8 !important;
    border: 1px solid #0f172a !important;
  }

  .print-table-costs tbody tr.print-empty-row td {
    height: 26px !important;
    padding: 0 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: transparent !important;
  }

  /* Pie de Página con Términos Comerciales Integrados */
  .print-sheet-footer {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 10px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .print-footer-terms {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    margin-bottom: 6px !important;
  }

  .print-footer-terms-title {
    font-size: 6.5pt !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #475569 !important;
    margin-bottom: 3px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 2px !important;
  }

  .print-footer-terms-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2px 10px !important;
    font-size: 6.5pt !important;
    color: #64748b !important;
    line-height: 1.35 !important;
  }

  .print-footer-term-item {
    font-size: 6.5pt !important;
  }

  .print-footer-term-wide {
    grid-column: 1 / -1 !important;
  }

  .print-footer-term-item strong {
    color: #1e293b !important;
  }

  .print-footer-line {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 6.5pt !important;
    color: #94a3b8 !important;
  }
}

/* ==========================================================================
   Responsive Adaptations — Home 2026
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-badges {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-showcase {
    justify-content: center;
  }

  .showcase-img-wrap {
    max-width: 500px;
    border-radius: 36px;
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .feature-col:nth-child(2) {
    border-right: none;
  }

  .feature-col:nth-child(3) {
    border-right: 1px solid rgba(100, 70, 160, 0.16);
  }

  .catalogo-grid,
  .diferenciales-grid,
  .portafolio-grid,
  .proceso-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .taller-title {
    font-size: 2rem;
  }

  .cta-final-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 12px 18px;
  }

  .navbar-menu {
    display: none;
  }

  .hero-headline {
    font-size: 3.2rem;
  }

  .script-word {
    font-size: 3.8rem;
  }

  .hero-quick-stats {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    width: 100%;
    padding: 12px 16px;
  }

  .stat-divider {
    display: none;
  }

  .hero-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-stitch-decor {
    display: none;
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-col {
    border-right: none !important;
    border-bottom: 1px solid rgba(100, 70, 160, 0.12);
    padding-bottom: 16px;
  }

  .feature-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .catalogo-grid,
  .diferenciales-grid,
  .portafolio-grid,
  .proceso-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .parches-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px;
  }

  .btn-parches-cta {
    width: 100%;
    text-align: center;
  }

  .taller-highlight-box {
    padding: 34px 20px;
  }

  .taller-title {
    font-size: 1.7rem;
  }

  .cta-final-box {
    padding: 40px 20px;
  }

  .cta-final-title {
    font-size: 1.8rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-col-left,
  .footer-col-center,
  .footer-col-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.6rem;
  }

  .script-word {
    font-size: 3.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .btn-cta-pink {
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .cta-final-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-whatsapp,
  .btn-cta-quote {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================================
   Modal de Confirmación Premium (Punto ABBI Custom Confirm Dialog)
   ============================================================================= */

.custom-confirm-backdrop {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 43, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
}

.custom-confirm-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.custom-confirm-box {
  position: relative;
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  width: 100%;
  max-width: 440px;
  padding: 34px 28px 26px;
  text-align: center;
  box-shadow: 
    0 25px 60px -15px rgba(26, 31, 71, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: scale(0.92) translateY(14px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.custom-confirm-backdrop.open .custom-confirm-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.custom-confirm-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted, #94A3B8);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.custom-confirm-close:hover {
  background: #F1F5F9;
  color: var(--logo-navy, #1A1F47);
}

.custom-confirm-icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.custom-confirm-backdrop.open .custom-confirm-icon-wrap {
  animation: confirmIconBounce 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes confirmIconBounce {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.custom-confirm-icon-wrap.is-danger {
  background: radial-gradient(circle, rgba(243, 79, 132, 0.16) 0%, rgba(243, 79, 132, 0.05) 100%);
  border: 2px solid rgba(243, 79, 132, 0.25);
  color: var(--primary, #F34F84);
  box-shadow: 0 8px 20px -6px rgba(243, 79, 132, 0.35);
}

.custom-confirm-icon-wrap.is-primary {
  background: radial-gradient(circle, rgba(0, 168, 176, 0.16) 0%, rgba(0, 168, 176, 0.05) 100%);
  border: 2px solid rgba(0, 168, 176, 0.25);
  color: var(--brand-teal, #00A8B0);
  box-shadow: 0 8px 20px -6px rgba(0, 168, 176, 0.35);
}

.custom-confirm-icon-wrap.is-warning {
  background: radial-gradient(circle, rgba(251, 173, 5, 0.16) 0%, rgba(251, 173, 5, 0.05) 100%);
  border: 2px solid rgba(251, 173, 5, 0.25);
  color: var(--brand-yellow, #FBAD05);
  box-shadow: 0 8px 20px -6px rgba(251, 173, 5, 0.35);
}

.custom-confirm-title {
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--logo-navy, #1A1F47);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.custom-confirm-text {
  font-family: var(--font-body, 'Hanken Grotesk', sans-serif);
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 26px 0;
  font-weight: 500;
  padding: 0 6px;
}

.custom-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn-confirm-cancel {
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  font-family: var(--font-body, 'Hanken Grotesk', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-confirm-cancel:hover {
  background: #EDF2F7;
  border-color: #CBD5E1;
  color: var(--logo-navy, #1A1F47);
  transform: translateY(-1px);
}

.btn-confirm-cancel:active {
  transform: translateY(0);
}

.btn-confirm-cancel:focus-visible {
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.25);
}

.btn-confirm-action {
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  font-family: var(--font-body, 'Hanken Grotesk', sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-confirm-action.btn-confirm-danger {
  background: linear-gradient(135deg, #F34F84 0%, #DE366F 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(243, 79, 132, 0.38);
}

.btn-confirm-action.btn-confirm-danger:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(243, 79, 132, 0.52);
  filter: brightness(1.04);
}

.btn-confirm-action.btn-confirm-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(243, 79, 132, 0.3);
}

.btn-confirm-action.btn-confirm-danger:focus-visible {
  box-shadow: 0 0 0 3px rgba(243, 79, 132, 0.35);
}

.btn-confirm-action.btn-confirm-primary {
  background: linear-gradient(135deg, #00A8B0 0%, #008D94 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 168, 176, 0.35);
}

.btn-confirm-action.btn-confirm-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 168, 176, 0.5);
  filter: brightness(1.04);
}

@media (max-width: 480px) {
  .custom-confirm-box {
    padding: 26px 20px 20px;
    border-radius: 20px;
  }
  .custom-confirm-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .btn-confirm-cancel,
  .btn-confirm-action {
    width: 100%;
  }
}

/* ==========================================================================
   Herramientas de Edición de Imagen en Cotizador (Recortar / Quitar Fondo)
   ========================================================================== */
.preview-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(34, 49, 70, 0.05);
}

.btn-preview-action:hover {
  background: #F0FDF4;
  border-color: var(--color-a-abbi);
  color: var(--color-a-abbi);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 168, 176, 0.15);
}

.btn-preview-action:active {
  transform: translateY(0);
}

.btn-preview-action.btn-restore {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: var(--color-p-punto);
}

.btn-preview-action.btn-restore:hover {
  background: #FFE4E6;
  border-color: var(--color-p-punto);
}

/* ==========================================================================
   Modal Universal de Recorte / Cropper
   ========================================================================== */
#cropModal {
  z-index: 10000 !important;
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.crop-modal-box {
  max-width: 760px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10001;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.crop-container-wrapper {
  width: 100%;
  min-height: 280px;
  max-height: 52vh;
  background-color: #1A2433;
  background-image: 
    linear-gradient(45deg, #243042 25%, transparent 25%), 
    linear-gradient(-45deg, #243042 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #243042 75%), 
    linear-gradient(-45deg, transparent 75%, #243042 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.crop-image-container {
  width: 100%;
  max-height: 52vh;
}

.crop-image-container img {
  display: block;
  max-width: 100%;
}

.crop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: var(--secondary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.crop-ratios {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.crop-toolbar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.crop-ratio-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crop-ratio-btn.active,
.crop-ratio-btn:hover {
  background: var(--color-a-abbi);
  border-color: var(--color-a-abbi);
  color: #FFFFFF;
}

.crop-quick-actions {
  display: flex;
  gap: 6px;
}

.btn-crop-tool {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-crop-tool:hover {
  border-color: var(--color-p-punto);
  color: var(--color-p-punto);
  background: #FFF1F2;
}

/* ==========================================================================
   Modal Administrador de Galería de Trabajos
   ========================================================================== */
#adminGalleryModal {
  z-index: 5000 !important;
}

.admin-gallery-modal-box {
  max-width: 980px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.admin-gallery-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}

.gallery-stats {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.gallery-stats .stat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  margin-left: 4px;
}

.stat-badge.badge-total {
  background: var(--secondary-light);
  color: var(--text-main);
}
.stat-badge.badge-visible {
  background: #DCFCE7;
  color: #166534;
}
.stat-badge.badge-hidden {
  background: #F1F5F9;
  color: #64748B;
}

.admin-gallery-notice {
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #0F766E;
  margin-bottom: 16px;
  line-height: 1.45;
}

.admin-empty-gallery {
  padding: 40px 20px;
  text-align: center;
  background: var(--secondary-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  overflow-y: auto;
  max-height: calc(90vh - 280px);
  padding-right: 4px;
  padding-bottom: 8px;
}

.admin-gallery-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(34, 49, 70, 0.04);
}

.admin-gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 49, 70, 0.08);
  border-color: #CBD5E1;
}

.admin-gallery-card.is-hidden {
  opacity: 0.65;
  border-style: dashed;
  background: #F8FAFC;
}

.admin-gallery-card.is-hidden:hover {
  opacity: 0.9;
}

.admin-photo-thumb-wrap {
  width: 100%;
  height: 140px;
  position: relative;
  background-color: #1E293B;
  overflow: hidden;
}

.admin-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.admin-gallery-card:hover .admin-photo-thumb {
  transform: scale(1.05);
}

.admin-photo-status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.status-badge-visible {
  background: rgba(22, 101, 52, 0.88);
  color: #FFFFFF;
}

.status-badge-hidden {
  background: rgba(71, 85, 105, 0.88);
  color: #FFFFFF;
}

.admin-photo-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.admin-photo-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.admin-photo-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.admin-photo-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

/* Switch de Visibilidad */
.toggle-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background-color: #CBD5E1;
  border-radius: 999px;
  transition: background-color 0.25s ease;
  display: inline-block;
}

.toggle-switch-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch-input:checked + .toggle-switch-slider {
  background-color: #10B981;
}

.toggle-switch-input:checked + .toggle-switch-slider::before {
  transform: translateX(16px);
}

.toggle-switch-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-photo-delete {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-photo-delete:hover {
  color: #E11D48;
  background: #FFE4E6;
}

/* ==========================================================================
   Adaptación Móvil Exclusiva: Modal Mantenimiento de Galería (≤ 768px)
   (En PC/Notebook ≥ 769px se conserva 100% idéntico el diseño de grilla)
   ========================================================================== */
@media (max-width: 768px) {
  .admin-gallery-modal-box {
    width: 95%;
    max-height: 94vh;
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .admin-gallery-header-bar {
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .gallery-stats {
    font-size: 0.8rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }

  .gallery-top-actions {
    width: 100%;
  }

  #btnAdminUploadPhoto {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .admin-gallery-notice {
    padding: 8px 10px;
    font-size: 0.74rem;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .admin-gallery-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    max-height: calc(92vh - 220px);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
    padding-bottom: 16px;
  }

  .admin-gallery-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 10px 12px;
    gap: 12px;
    width: 100% !important;
    box-sizing: border-box;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    min-height: 84px !important;
    box-shadow: 0 1px 4px rgba(34, 49, 70, 0.05);
  }

  .admin-gallery-card:hover {
    transform: none; /* Evitar saltos en scroll táctil */
  }

  .admin-photo-thumb-wrap {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .admin-photo-status-badge {
    display: none; /* El switch lateral ya informa el estado */
  }

  .admin-photo-body {
    padding: 0;
    flex: 1;
    min-width: 0;
  }

  .admin-photo-title {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .admin-photo-meta {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .admin-photo-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .toggle-switch-wrap {
    padding: 4px 0;
    min-height: 38px;
  }

  .toggle-switch-slider {
    width: 38px;
    height: 22px;
  }

  .toggle-switch-slider::before {
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
  }

  .toggle-switch-input:checked + .toggle-switch-slider::before {
    transform: translateX(16px);
  }

  .toggle-switch-label {
    font-size: 0.74rem;
  }

  .btn-photo-delete {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border-radius: 8px;
    background: #FFF1F2;
    color: #E11D48;
    flex-shrink: 0;
  }
}

