:root {
  --cdle-bg: #131313;
  --cdle-panel: #1a1a1a;
  --cdle-border: rgba(255, 255, 255, 0.12);
  --cdle-text: #ffffff;
  --cdle-muted: #b9b9b9;
  --cdle-accent: #f97316;
  --cdle-accent-hover: #ea580c;
  --cdle-success: #22c55e;
  --cdle-error: #ef4444;
}

.cdle-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 24px auto;
  padding: 32px;
  color: var(--cdle-text);
  background: var(--cdle-bg);
  border: 1px solid var(--cdle-border);
  border-radius: 16px;
}

.cdle-panel h1,
.cdle-panel h2 {
  margin: 0 0 14px;
  color: var(--cdle-text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.cdle-panel p,
.cdle-panel li,
.cdle-panel label,
.cdle-panel small {
  color: var(--cdle-muted);
}

.cdle-eyebrow {
  margin: 0 0 10px;
  color: var(--cdle-accent) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cdle-panel-copy a {
  color: var(--cdle-accent);
  font-weight: 700;
  text-decoration: none;
}

.cdle-panel-copy a:hover {
  color: var(--cdle-accent-hover);
  text-decoration: underline;
}

.cdle-form-wrap,
.cdle-calculator-form,
.cdle-result {
  padding: 24px;
  background: var(--cdle-panel);
  border: 1px solid var(--cdle-border);
  border-radius: 12px;
}

.cdle-form,
.cdle-form label {
  display: grid;
  gap: 8px;
}

.cdle-form {
  gap: 16px;
}

.cdle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cdle-form input,
.cdle-form select,
.cdle-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: #181818;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 7px;
  font: inherit;
}

.cdle-form input:focus,
.cdle-form select:focus,
.cdle-form textarea:focus {
  outline: 3px solid rgba(249, 115, 22, 0.25);
  border-color: var(--cdle-accent);
}

.cdle-form textarea {
  resize: vertical;
}

.cdle-submit,
.cdle-whatsapp-button,
.cdle-installation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: #ffffff !important;
  background: var(--cdle-accent);
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.cdle-submit:hover,
.cdle-whatsapp-button:hover,
.cdle-installation-button:hover {
  background: var(--cdle-accent-hover);
}

.cdle-whatsapp-button {
  width: 100%;
  margin-top: 12px;
  background: #15803d;
}

.cdle-whatsapp-button:hover {
  background: #166534;
}

.cdle-installation-button {
  width: 100%;
  margin-top: 10px;
}

.cdle-inline-button {
  width: auto;
}

.cdle-trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 16px;
  color: #707070;
  font-size: 13px;
}

.cdle-trust-points span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--cdle-accent);
  font-weight: 800;
}

.cdle-consent {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 13px;
}

.cdle-consent input,
.cdle-checks input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.cdle-consent a {
  color: var(--cdle-accent);
}

.cdle-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 4px solid;
  border-radius: 6px;
}

.cdle-notice-success {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.14);
  border-color: var(--cdle-success);
}

.cdle-notice-error {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.14);
  border-color: var(--cdle-error);
}

.cdle-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cdle-checks {
  display: grid;
  gap: 10px;
}

.cdle-checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.cdle-result {
  grid-column: 1 / -1;
  text-align: center;
}

.cdle-result-main {
  display: block;
  margin: 5px 0;
  color: var(--cdle-accent);
  font-size: clamp(30px, 5vw, 48px);
}

.cdle-result-range {
  display: block;
  margin-bottom: 18px;
  color: var(--cdle-text);
}

.cdle-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.cdle-result-actions .cdle-whatsapp-button {
  width: auto;
  margin: 0;
}

.cdle-order-installers {
  max-width: 820px;
  margin: 32px 0;
  padding: 28px;
  color: var(--cdle-text);
  background: var(--cdle-bg);
  border: 1px solid var(--cdle-border);
  border-radius: 14px;
}

.cdle-order-installers h2 {
  margin: 0 0 8px;
  color: var(--cdle-text);
}

.cdle-order-installers > p:not(.cdle-eyebrow) {
  color: var(--cdle-muted);
}

.cdle-installer-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.cdle-installer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  background: var(--cdle-panel);
  border: 1px solid var(--cdle-border);
  border-radius: 8px;
}

.cdle-installer-card a {
  color: var(--cdle-accent);
  font-weight: 700;
  text-decoration: none;
}

/* Catálogo profesional */
.cdle-catalog-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto 34px;
  padding: 20px;
  color: var(--cdle-text);
  background: #181818;
  border: 1px solid var(--cdle-border);
  border-radius: 14px;
}

.cdle-filter-field {
  display: grid;
  gap: 6px;
}

.cdle-filter-field label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.cdle-filter-field select,
.cdle-filter-field input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: #202020;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 7px;
  font: inherit;
}

.cdle-filter-field select:focus,
.cdle-filter-field input:focus {
  outline: 3px solid rgba(249, 115, 22, 0.25);
  border-color: var(--cdle-accent);
}

.cdle-filter-order {
  grid-column: span 2;
}

.cdle-filter-actions {
  display: flex;
  grid-column: span 2;
  align-items: end;
  gap: 10px;
}

.cdle-filter-submit,
.cdle-filter-clear,
.cdle-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}

.cdle-filter-submit,
.cdle-product-button {
  color: #ffffff !important;
  background: var(--cdle-accent);
  border: 1px solid var(--cdle-accent);
  cursor: pointer;
}

.cdle-filter-submit:hover,
.cdle-product-button:hover {
  color: #ffffff !important;
  background: var(--cdle-accent-hover);
  border-color: var(--cdle-accent-hover);
}

.cdle-filter-clear {
  color: #ffffff !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.cdle-filter-clear:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.65);
}

.cdle-calculated-power {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.12);
  border-left: 3px solid var(--cdle-accent);
  font-size: 13px;
  line-height: 1.5;
}

.cdle-catalog-count {
  max-width: 1120px;
  margin: 0 auto 14px;
  color: #a8a8a8;
  font-size: 13px;
}

.cdle-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.cdle-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cdle-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.cdle-product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin: 16px 16px 0;
  padding: 10px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 9px;
}

.cdle-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cdle-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.cdle-product-brand {
  margin-bottom: 7px;
  color: var(--cdle-accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cdle-product-title {
  min-height: 69px;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none !important;
}

.cdle-product-title:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-decoration-color: var(--cdle-accent) !important;
  text-underline-offset: 3px;
}

.cdle-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 27px;
  margin-top: 10px;
}

.cdle-product-badges span {
  padding: 4px 8px;
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.cdle-product-power {
  margin-top: 10px;
  color: #aaaaaa;
  font-size: 13px;
}

.cdle-product-price {
  display: grid;
  margin: 13px 0;
  color: var(--cdle-accent);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.15;
}

.cdle-product-price del,
.cdle-product-price ins {
  color: inherit;
}

.cdle-product-price del {
  color: #a0a0a0;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.25;
}

.cdle-product-price ins {
  color: var(--cdle-accent);
  text-decoration: none;
}

.cdle-product-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 7px 9px;
  color: #ffffff;
  background: #e4491b;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.cdle-product-promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  max-width: calc(100% - 88px);
  padding: 7px 10px;
  overflow: hidden;
  color: #ffffff;
  background: #0d5d9b;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdle-product-promo-description {
  display: -webkit-box;
  min-height: 58px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cdle-product-price small {
  margin-top: 4px;
  color: #a9a9a9;
  font-size: 11px;
  font-weight: 500;
}

.cdle-product-button {
  width: 100%;
  margin-top: auto;
}

.cdle-catalog-empty {
  display: grid;
  gap: 6px;
  max-width: 1120px;
  margin: 24px auto;
  padding: 36px 20px;
  color: #ffffff;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
}

.cdle-catalog-empty span {
  color: #aaaaaa;
}

@media (max-width: 1024px) {
  .cdle-catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cdle-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cdle-panel,
  .cdle-grid {
    grid-template-columns: 1fr;
  }

  .cdle-panel {
    gap: 22px;
    padding: 20px;
  }

  .cdle-form-wrap,
  .cdle-calculator-form,
  .cdle-result {
    padding: 18px;
  }

  .cdle-trust-points {
    grid-template-columns: 1fr;
  }

  .cdle-installer-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cdle-catalog-filters,
  .cdle-catalog-grid {
    grid-template-columns: 1fr;
  }

  .cdle-catalog-filters {
    padding: 15px;
  }

  .cdle-filter-order,
  .cdle-filter-actions {
    grid-column: auto;
  }

  .cdle-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cdle-product-image {
    height: 210px;
  }

  .cdle-product-title {
    min-height: auto;
  }
}

