/**
 * GrowSitios Estimador V2 — Styles
 * Full screen, 500px centered form, all selectors scoped under .gs-estimador
 */

.gs-estimador {
  --gs-primary: #6EC1E4;
  --gs-secondary: #54595F;
  --gs-accent: #61CE70;
  --gs-blue: #0099CF;
  --gs-orange: #F36A28;
  --gs-dark: #292929;
  --gs-teal: #1E4153;
  --gs-white: #FFFFFF;
  --gs-deepdark: #0C1A20;
  --gs-bg: #0C1A20;
  --gs-card: rgba(255, 255, 255, .05);
  --gs-muted: rgba(255, 255, 255, .6);
  --gs-text: #FFFFFF;
  --gs-line: rgba(255, 255, 255, .12);
  --gs-ok: #61CE70;
  --gs-warn: #ffcc66;
  --gs-bad: #ff6b6b;
  --gs-btn: #F36A28;
  --gs-btn-hover: #e05a1a;
  --gs-btn2: rgba(255, 255, 255, .08);
  --gs-shadow: 0 18px 45px rgba(0, 0, 0, .4);
  --gs-radius: 16px;
  --gs-radius2: 12px;

  font-synthesis-weight: none;
  color: var(--gs-text);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 400;
  line-height: 1.5;
  background: radial-gradient(1200px 600px at 15% 5%, rgba(110, 193, 228, .12), transparent 45%),
    radial-gradient(900px 600px at 90% 15%, rgba(97, 206, 112, .08), transparent 50%),
    linear-gradient(180deg, #0C1A20 0%, #1E4153 100%);
  /* Full screen: no border-radius */
  border-radius: 0;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}

.gs-estimador *,
.gs-estimador *::before,
.gs-estimador *::after {
  box-sizing: border-box;
}

/* Logo */
.gs-logo-wrap {
  text-align: center;
  padding: 32px 18px 0;
}

.gs-logo {
  max-width: 180px;
  max-height: 250px;
  height: auto;
  object-fit: contain;
}

/* Wrap: centred at 500px */
.gs-wrap {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 18px 80px;
}

/* Header */
.gs-header {
  text-align: center;
  margin-bottom: 24px;
}

.gs-estimador .gs-h1 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 50px);
  letter-spacing: -.2px;
  color: var(--gs-white);
}

.gs-subtitle {
  margin: 8px 0 0;
  color: var(--gs-muted);
  font-size: 16px;
}

.gs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 1rem;
  border: 1px solid var(--gs-line);
  background: rgba(255, 255, 255, .03);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gs-muted);
  white-space: nowrap;
}

/* Grid */
.gs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 14px;
}

.gs-grid.has-summary {
  grid-template-columns: 1fr;
}

/* Card */
.gs-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(110, 193, 228, .15);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow), 0 0 0 1px rgba(110, 193, 228, .05);
  overflow: hidden;
  transition: border-color .3s ease;
}

.gs-card:hover {
  border-color: rgba(110, 193, 228, .25);
}

.gs-card-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--gs-line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gs-card-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--gs-primary);
}

.gs-card-head p {
  margin: 6px 0 0;
  color: var(--gs-muted);
  font-size: 13px;
}

.gs-card-body {
  padding: 16px;
}

/* Sections included badge */
.gs-sections-included {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(110, 193, 228, .08);
  border: 1px solid rgba(110, 193, 228, .15);
  color: var(--gs-primary);
  font-size: 12.5px;
  display: none;
}

.gs-sections-included.show {
  display: block;
}

/* Row */
.gs-row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 12px;
}



@media (max-width: 520px) {
  .gs-row {
    grid-template-columns: 1fr;
  }
}

/* Labels */
.gs-estimador label {
  display: block;
  font-size: 13px;
  color: var(--gs-muted);
  margin-bottom: 6px;
}

/* Inputs & Selects */
.gs-estimador select,
.gs-estimador input[type="number"],
.gs-estimador input[type="text"],
.gs-estimador input[type="email"],
.gs-estimador input[type="tel"] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--gs-line);
  background: #132a36;
  color: var(--gs-text);
  outline: none;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.gs-estimador select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236EC1E4' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.gs-estimador select option,
.gs-estimador select optgroup {
  background: #132a36;
  color: var(--gs-text);
  padding: 8px 12px;
}

.gs-estimador select option:checked {
  background: rgba(110, 193, 228, .25);
}

.gs-estimador select:focus,
.gs-estimador input:focus {
  border-color: rgba(110, 193, 228, .65);
  box-shadow: 0 0 0 4px rgba(110, 193, 228, .15);
}

/* Actions */
.gs-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Buttons */
.gs-estimador button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 18px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gs-white);
  background: linear-gradient(135deg, var(--gs-btn), #e05a1a);
  box-shadow: 0 4px 15px rgba(243, 106, 40, .3);
  transition: transform .12s ease, box-shadow .2s ease, filter .15s ease;
}

.gs-estimador button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(243, 106, 40, .4);
}

.gs-estimador button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(243, 106, 40, .2);
}

.gs-estimador button.gs-secondary {
  background: var(--gs-btn2);
  border: 1px solid var(--gs-line);
  color: var(--gs-muted);
  font-weight: 600;
  box-shadow: none;
}

.gs-estimador button.gs-secondary:hover {
  background: rgba(255, 255, 255, .12);
  transform: none;
  box-shadow: none;
}

/* Summary */
.gs-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gs-totalBox {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--gs-line);
  background: rgba(255, 255, 255, .03);
}

.gs-totalLabel {
  color: var(--gs-muted);
  font-size: 13px;
  margin: 0;
}

.gs-totalValue {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: .2px;
  font-weight: 800;
}

.gs-hint {
  margin: 6px 0 0;
  color: var(--gs-muted);
  font-size: 12.5px;
}

/* Breakdown */
.gs-breakdown {
  border: 1px solid var(--gs-line);
  border-radius: 14px;
  overflow: hidden;
}

.gs-bhead {
  padding: 12px 14px;
  background: rgba(0, 0, 0, .18);
  border-bottom: 1px solid var(--gs-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gs-bhead strong {
  font-size: 13px;
}

.gs-bbody {
  padding: 10px 14px 12px;
}

.gs-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .10);
}

.gs-item:last-child {
  border-bottom: 0;
}

.gs-item-name {
  font-size: 13px;
}

.gs-item-val {
  font-size: 13px;
  color: var(--gs-muted);
  white-space: nowrap;
}

/* Note */
.gs-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(243, 106, 40, .3);
  background: rgba(243, 106, 40, .08);
  color: rgba(255, 220, 190, .9);
  font-size: 12.5px;
}

.gs-note-green {
  border-color: rgba(97, 206, 112, .3);
  background: rgba(97, 206, 112, .08);
  color: rgba(200, 255, 210, .9);
}

/* Pill */
.gs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gs-muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--gs-line);
  background: rgba(255, 255, 255, .02);
}

/* Info icon */
.gs-infoIcon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(110, 193, 228, .1);
  color: var(--gs-primary);
  font-size: 12px;
  line-height: 1;
  cursor: help;
  border: 1px solid rgba(110, 193, 228, .25);
  transition: background .2s ease;
}

.gs-infoIcon:hover {
  background: rgba(110, 193, 228, .2);
}

.gs-infoIcon:focus {
  box-shadow: 0 0 0 4px rgba(110, 193, 228, .18);
  outline: none;
}

/* Modal */
.gs-modal,
.gs-infoModal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 18px;
  z-index: 9999;
}

.gs-modal.show,
.gs-infoModal.show {
  display: grid;
}

.gs-modalCard,
.gs-infoCard {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(30, 65, 83, .95), rgba(12, 26, 32, .98));
  border: 1px solid var(--gs-line);
  border-radius: 18px;
  box-shadow: var(--gs-shadow);
  overflow: hidden;
}

.gs-mhead {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gs-line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gs-mhead strong {
  font-size: 15px;
}

.gs-mhead button {
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--gs-line) !important;
  color: var(--gs-muted);
  font-weight: 700;
  box-shadow: none !important;
}

.gs-mbody {
  padding: 16px;
}

.gs-infoCard-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gs-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gs-infoCard-body {
  padding: 14px;
  color: var(--gs-muted);
  font-size: 13px;
}

/* Error */
.gs-error {
  margin-top: 10px;
  color: #ffd1d1;
  font-size: 12.5px;
  display: none;
}

.gs-error.show {
  display: block;
}

/* Loader */
.gs-loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(12, 26, 32, .92);
  z-index: 9990;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.gs-loader.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gs-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(110, 193, 228, .2);
  border-top-color: var(--gs-primary);
  border-radius: 50%;
  animation: gs-spin .8s linear infinite;
}

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

.gs-loader p {
  color: var(--gs-muted);
  font-size: 14px;
  margin: 0;
}

/* WhatsApp CTA bar */
.gs-wa-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(12, 26, 32, .95), rgba(12, 26, 32, .99));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(110, 193, 228, .15);
  display: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .4s ease, transform .4s ease;
}

.gs-wa-bar.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.gs-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
  transition: transform .12s ease, box-shadow .2s ease;
}

.gs-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, .45);
}

.gs-wa-btn:active {
  transform: translateY(0);
}

.gs-wa-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Authority micro-copy */
.gs-authority {
  text-align: center;
  font-size: 12.5px;
  color: var(--gs-muted);
  margin: 0 0 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(110, 193, 228, .06);
  border: 1px solid rgba(110, 193, 228, .12);
}

/* Trust bridge */
.gs-trust-bridge {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
}

.gs-trust-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--gs-white);
}

.gs-trust-text {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--gs-muted);
  line-height: 1.5;
}

/* Agency line */
.gs-agency-line {
  text-align: center;
  margin-top: 10px;
}

.gs-agency-line p {
  margin: 0;
  font-size: 12.5px;
  color: var(--gs-muted);
  line-height: 1.6;
}

.gs-agency-line a {
  color: var(--gs-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

.gs-agency-line a:hover {
  color: #8dd4f0;
  text-decoration: underline;
}

/* Body padding when WA bar is visible */
body.gs-has-wa-bar {
  padding-bottom: 110px;
}