/* =========================================================
   RONDE DIGITAL — CUSTOM CSS
   Design system: Light Premium
   ========================================================= */

:root {
  --white:              #FFFFFF;
  --brand-blue:         #2563EB;
  --brand-blue-dark:    #1D4ED8;
  --brand-blue-xlight:  #EFF6FF;
  --brand-title:        #0F172A;
  --brand-body:         #334155;
  --brand-subtle:       #64748B;
  --brand-surface:      #F8FAFC;
  --brand-green:        #00C896;
  --brand-green-dark:   #00A877;
  --whatsapp:           #25D366;
  --border:             #E2E8F0;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--brand-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--brand-title);
  line-height: 1.2;
}

a { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

/* ---- Sections ---- */
.section { padding: 48px 0; }
@media (min-width: 1024px) { .section { padding: 80px 0; } }

.section-dark {
  background-color: var(--brand-title);
}
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark span { color: #fff; }

.section-cta { background-color: var(--brand-blue); }
.section-cta h2,
.section-cta h3,
.section-cta p { color: #fff; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--brand-blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary:hover {
  background-color: var(--brand-blue-dark);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--brand-body);
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}
.btn-secondary:hover {
  background-color: var(--brand-surface);
  border-color: #cbd5e1;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--whatsapp);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  min-height: 44px;
}
.btn-whatsapp:hover { background-color: #1fba5a; }

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #F97316;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  min-height: 40px;
  white-space: nowrap;
}
.btn-orange:hover { background-color: #ea6c07; }

/* ---- Badges ---- */
.badge-blue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--brand-blue-xlight);
  color: var(--brand-blue);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #dcfff5;
  color: var(--brand-green-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-orange {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #fff7ed;
  color: #f97316;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-sold {
  background: var(--brand-green);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Cards ---- */
.card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

/* ---- Check list ---- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--brand-body);
  line-height: 1.5;
}
.check-list li .check-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--brand-green);
  margin-top: 1px;
}

/* ---- Header ---- */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

/* Services dropdown */
.nav-services { position: relative; }
#services-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 200;
}
#services-dropdown.open { display: block; }
#services-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--brand-body);
  transition: background-color 0.15s, color 0.15s;
}
#services-dropdown a:hover {
  background-color: var(--brand-blue-xlight);
  color: var(--brand-blue);
}

/* ---- FAQ Accordion ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--brand-title);
  font-size: 1rem;
  gap: 16px;
  user-select: none;
}
.faq-question:hover { color: var(--brand-blue); }
.faq-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: var(--brand-blue);
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding-bottom: 20px;
  color: var(--brand-body);
  line-height: 1.75;
  font-size: 0.9375rem;
}
.faq-item.open .faq-answer { display: block; }

/* ---- Portfolio filter ---- */
.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--brand-subtle);
  transition: all 0.2s;
  min-height: 38px;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
.portfolio-card.hidden { display: none; }

/* ---- Forms ---- */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-title);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--brand-body);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: 'Inter', sans-serif;
  min-height: 44px;
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-input.error,
.form-select.error,
.form-textarea.error { border-color: #ef4444; }
.form-error {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }

/* Multi-step progress bar */
.step-bar { display: flex; gap: 6px; margin-bottom: 28px; }
.step-item {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transition: background 0.3s;
}
.step-item.active,
.step-item.completed { background: var(--brand-blue); }

/* Toggle switch */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-label { font-size: 0.9375rem; color: var(--brand-body); }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle input:checked + .toggle-slider { background: var(--brand-blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ---- Countdown ---- */
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-block {
  background: var(--brand-blue-xlight);
  border: 2px solid var(--brand-blue);
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  min-width: 60px;
}
.cd-number {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand-blue);
  line-height: 1;
}
.cd-label {
  display: block;
  font-size: 0.65rem;
  color: var(--brand-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ---- Comparison ---- */
.comp-bad {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 32px;
}
.comp-good {
  background: var(--brand-blue-xlight);
  border: 2px solid var(--brand-blue);
  border-radius: 16px;
  padding: 32px;
}

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 52px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 28px;
  bottom: 16px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute;
  left: -40px;
  top: 2px;
  width: 34px;
  height: 34px;
  background: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

/* ---- WhatsApp float button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

/* ---- Stars ---- */
.stars { display: flex; gap: 2px; color: #f59e0b; }

/* ---- Trust/Stats bar ---- */
.trust-bar { background-color: var(--brand-blue); }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease both; }

/* ---- Responsive ---- */
@media (max-width: 639px) {
  .btn-primary,
  .btn-secondary,
  .btn-whatsapp {
    padding: 12px 20px;
    font-size: 0.875rem;
  }
  .cd-number { font-size: 1.25rem; }
  .cd-block { min-width: 50px; padding: 6px 10px; }
  h1 { font-size: 1.875rem !important; }
}

@media print {
  .whatsapp-float, #header { display: none !important; }
}
