/* ==========================================================================
   HABITAT PRO · Arquitectura, Reformas & Construcción de Autor
   Estilo Arquitectónico Contemporáneo · Responsive & Touch First
   ========================================================================== */

:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(18, 25, 41, 0.75);
  --bg-card-hover: rgba(26, 36, 58, 0.9);
  --bg-panel: #0f1624;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.35);
  --gold-primary: #d4af37;
  --gold-glow: #f3d069;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6e08f 50%, #b8860b 100%);
  --copper-primary: #e07a5f;
  --verde-acento: #3ddc97;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --slider-pos: 50%;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(224, 122, 95, 0.07), transparent),
    radial-gradient(ellipse 50% 30% at 10% 90%, rgba(61, 220, 151, 0.05), transparent);
  background-attachment: fixed;
}

/* Tipografía y Textos */
h1, h2, h3, .serif-font {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Barra Superior */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all 0.25s ease;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.18);
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge-pill {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: rgba(61, 220, 151, 0.1);
  color: var(--verde-acento);
  border: 1px solid rgba(61, 220, 151, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .trust-badge-pill {
    display: inline-flex;
  }
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #0b1510;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-header-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-dossier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.2s;
}

.btn-dossier-pill:hover {
  background: rgba(212, 175, 55, 0.22);
}

/* Hero Section */
.hero-section {
  padding: 48px 0 28px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 52px;
  }
}

.hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 18px;
  }
}

/* Barra de Garantías & Compromisos */
.commitments-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 36px;
}

@media (min-width: 768px) {
  .commitments-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.commitment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.commitment-icon {
  font-size: 20px;
  color: var(--gold-primary);
}

.commitment-text b {
  display: block;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.2;
}

.commitment-text span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   VISOR INTERACTIVO ANTES Y DESPUÉS (SPLIT SLIDER TÁCTIL)
   ========================================================================== */

.viewer-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .viewer-section {
    padding: 16px;
  }
}

.viewer-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .viewer-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.viewer-headline h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.viewer-headline p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Botones de Acción (Subir Foto / Cámara) */
.viewer-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-upload-photo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #121826;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-upload-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-reset-photo {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Selector de Estancias Precargadas */
.room-selector-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.room-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.room-tab-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.room-tab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* Selector de Estilos Arquitectónicos */
.style-selector-bar {
  background: rgba(14, 20, 32, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .style-selector-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.style-selector-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.style-buttons-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

@media (min-width: 768px) {
  .style-buttons-row {
    grid-template-columns: repeat(4, 1fr);
    max-width: 820px;
  }
}

.btn-style-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-style-chip:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-style-chip.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.style-chip-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.btn-style-chip.active .style-chip-name {
  color: var(--gold-primary);
}

.style-chip-tag {
  font-size: 10px;
  color: var(--text-muted);
}

/* El Contenedor del Visor y Slider */
.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  touch-action: pan-y;
  cursor: ew-resize;
}

/* Capa Antes (Inferior) */
.slider-layer-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider-layer-before img,
.slider-layer-after img,
.canvas-user-processed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Capa Después (Superior con corte dinámico) */
.slider-layer-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, var(--slider-pos, 50%) 0, var(--slider-pos, 50%) 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, var(--slider-pos, 50%) 0, var(--slider-pos, 50%) 100%, 0 100%);
  pointer-events: none;
}

/* Línea divisoria y manija táctil */
.slider-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8), 0 0 8px rgba(212, 175, 55, 0.6);
}

.slider-handle-circle {
  position: absolute;
  top: 50%;
  left: var(--slider-pos, 50%);
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111827;
  border: 2px solid #ffffff;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  z-index: 25;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.4);
  cursor: ew-resize;
  pointer-events: all;
  touch-action: none;
  transition: transform 0.15s, border-color 0.15s;
}

.slider-handle-circle:active,
.slider-handle-circle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: var(--gold-primary);
}

/* Badges Flotantes de Estado */
.slider-badge-before {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  pointer-events: none;
}

.slider-badge-after {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 22;
  background: rgba(18, 25, 41, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Hotspots Interactivos (Puntos en el Después) */
.hotspot-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.95);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  z-index: 21;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.35);
  animation: pulse-pin 2s infinite;
  transition: transform 0.2s;
  pointer-events: all;
}

.hotspot-pin:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

@keyframes pulse-pin {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Tooltip Popover para Hotspots */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 220px;
  font-size: 12px;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  display: none;
  pointer-events: none;
  z-index: 30;
}

.hotspot-tooltip b {
  display: block;
  color: var(--gold-primary);
  font-size: 13px;
  margin-bottom: 3px;
}

.hotspot-pin:hover .hotspot-tooltip,
.hotspot-pin.active .hotspot-tooltip {
  display: block;
}

/* Barra inferior del Visor */
.viewer-footer-info {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .viewer-footer-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.viewer-hint {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.viewer-style-desc {
  font-size: 13px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   FICHA TÉCNICA Y DETALLE DE REFORMA (PRECIOS, MATERIALES, TIEMPOS)
   ========================================================================== */

.tabs-detail-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.btn-tab-detail {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-tab-detail:hover {
  color: var(--text-main);
}

.btn-tab-detail.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.tab-pane-content {
  display: none;
}

.tab-pane-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Tab 1: Tabla de Presupuesto Desglosado */
.budget-grid-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.budget-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.budget-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.budget-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.budget-total-card {
  margin-top: 20px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .budget-total-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.total-amount-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.total-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-glow);
}

.total-iva-badge {
  font-size: 12px;
  color: var(--verde-acento);
  background: rgba(61, 220, 151, 0.12);
  border: 1px solid rgba(61, 220, 151, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Tab 2: Materiales y Acabados */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.material-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s, border-color 0.2s;
}

.material-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.4);
}

.material-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.material-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.material-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.material-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-sub);
}

/* Tab 3: Timeline & Cronograma de Obra */
.timeline-wrap {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: var(--border-gold);
}

.timeline-step {
  position: relative;
  margin-bottom: 24px;
}

.timeline-node {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-node::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.timeline-week {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   CALCULADORA / COTIZADOR EN TIEMPO REAL
   ========================================================================== */

.calculator-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 48px;
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.08);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .calc-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.slider-m2-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-m2-wrap input[type=range] {
  flex: 1;
  accent-color: var(--gold-primary);
  height: 6px;
  cursor: pointer;
}

.m2-display-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 18px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  min-width: 85px;
  text-align: center;
}

.quality-chips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-quality-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quality-chip.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.extras-checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 600px) {
  .extras-checkboxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.extra-check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.extra-check-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.extra-check-card input {
  accent-color: var(--gold-primary);
}

/* Tarjeta Resumen Presupuesto */
.calc-summary-card {
  background: linear-gradient(180deg, rgba(26, 36, 58, 0.8) 0%, rgba(15, 22, 36, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.summary-headline {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 1.5px;
  font-weight: 800;
}

.summary-price-big {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 6px 0;
}

.summary-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sub);
}

.calc-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-calc-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #0c1a12;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-calc-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-calc-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-calc-pdf:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Modal de Solicitud de Visita Técnica */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

/* Footer */
.main-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.main-footer a {
  color: var(--gold-primary);
  text-decoration: none;
}
