* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3c839a;
  --primary-dark: #2d6373;
  --primary-light: #5a9eaa;
  --accent-color: #ff6b35;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --border-color: #ddd;
  --success-color: #4caf50;
  --error-color: #f44336;
  --bg-light: #f5f5f5;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
}

/* Language-specific adjustments */
html[lang="en"] {
  direction: ltr;
}

html[lang="en"] body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  max-width: 200px;
  height: auto;
  display: block;
}

.header-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.lang-switch {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.lang-switch:hover {
  background: var(--primary-color);
  color: #fff;
}

.lang-switch.active {
  background: var(--primary-color);
  color: #fff;
}

/* ===== MAIN ===== */
main {
  min-height: calc(100vh - 200px);
}

/* ===== HERO SIMPLE ===== */
.hero-simple {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-simple-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-simple-content p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== LEAD COLLECTION SECTION ===== */
.lead-collection-section {
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--bg-light);
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-form {
  background: #fff;
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.lead-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.lead-form input {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.lead-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(60, 131, 154, 0.1);
}

.lead-form input.error {
  border-color: var(--error-color);
  background-color: rgba(244, 67, 54, 0.02);
}

.field-error {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.35rem;
  display: none;
}

.field-error.show {
  display: block;
}

.honeypot {
  display: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}

.btn-submit {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.4;
}

.success-message {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  display: none;
  background: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.success-message.show {
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-color);
  color: #fff;
  padding: var(--spacing-lg);
  text-align: center;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-lg);
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-container {
  background: #fff;
  color: var(--text-dark);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto var(--spacing-lg);
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.thank-you-container h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.thank-you-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.thank-you-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xl);
  line-height: 1.5;
}

.thank-you-details {
  background: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: 8px;
  margin-bottom: var(--spacing-xl);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-icon {
  font-size: 1.75rem;
  min-width: 40px;
  text-align: center;
}

.detail-item p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.thank-you-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 131, 154, 0.3);
}

.contact-info {
  background: #f9f9f9;
  padding: var(--spacing-lg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.contact-info p {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-dark);
  font-weight: 600;
}

.quick-contact {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.btn-secondary:first-child {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:first-child:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-secondary:last-child {
  border-color: #25d366;
  color: #25d366;
}

.btn-secondary:last-child:hover {
  background: #25d366;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .brand img {
    max-width: 150px;
  }

  .hero-simple-content h1 {
    font-size: 1.75rem;
  }

  .hero-simple-content p {
    font-size: 1rem;
  }

  .hero-simple {
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 200px;
  }

  .lead-collection-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .lead-form {
    padding: var(--spacing-md);
  }

  .form-group {
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .hero-simple-content h1 {
    font-size: 1.5rem;
  }

  .hero-simple-content p {
    font-size: 0.95rem;
  }

  .lead-form {
    padding: var(--spacing-sm);
  }

  .lead-form label {
    font-size: 0.9rem;
  }

  .lead-form input {
    padding: 0.75rem;
    font-size: 16px;
  }

  .btn-submit {
    padding: 0.75rem 1.5rem;
  }
}

/* ===== FLOATING CONTACT BUTTONS ===== */
.floating-contact {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 999;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.floating-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
  transform: scale(0.95);
}

.floating-call {
  background: var(--primary-color);
  color: #fff;
}

.floating-call:hover {
  background: var(--primary-dark);
}

.floating-whatsapp {
  background: #25d366;
  color: #fff;
}

.floating-whatsapp:hover {
  background: #1faa5d;
}

.floating-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive floating buttons */
@media (max-width: 768px) {
  .floating-contact {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }

  .floating-btn {
    width: 55px;
    height: 55px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .floating-contact {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .floating-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
}
