/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Touch target improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .contact-item {
    min-height: 60px;
  }

  .lang-btn {
    min-height: 44px;
  }

  .phone,
  .email,
  .whatsapp,
  .instagram {
    padding: 4px;
    margin: -4px;
    border-radius: 4px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: #0f172a;
  background: #fafafa;
  background-image: radial-gradient(
      circle at 25% 25%,
      #f1f5f9 0%,
      transparent 50%
    ),
    radial-gradient(circle at 75% 75%, #e2e8f0 0%, transparent 50%);
  min-height: 100vh;
  padding: 24px;
  margin: 0;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}

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

/* Language Selector */
.language-selector {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  gap: 1px;
}

.lang-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 2px solid transparent;
  position: relative;
}

.lang-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.lang-btn.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
  background: white;
  font-weight: 600;
}

/* Content sections */
.content {
  padding: 32px;
  animation: fadeIn 0.4s ease-in;
}

.content.hidden {
  display: none;
}

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

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

.header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.subtitle {
  font-size: 1rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.5;
}

/* Contact Information */
.contact-info {
  margin-bottom: 32px;
}

.contact-info h2 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: #0f172a;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.contact-intro {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 400;
}

.contact-item {
  display: flex;
  align-items: center;
  background: #fafafa;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  position: relative;
}

.contact-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
  background: white;
}

.contact-item .icon {
  font-size: 1.25rem;
  margin-right: 16px;
  width: 40px;
  height: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.contact-item .details {
  flex: 1;
}

.contact-item strong {
  display: block;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item span,
.contact-item a {
  color: #0f172a;
  font-size: 0.95rem;
  word-break: break-all;
  font-weight: 500;
  line-height: 1.4;
}

.phone,
.email,
.whatsapp,
.instagram {
  color: #0f172a !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.phone:hover,
.email:hover,
.whatsapp:hover,
.instagram:hover {
  color: #475569 !important;
  text-decoration: none;
  opacity: 0.8;
}

a.email {
  text-decoration: none !important;
}

a.email:visited {
  color: #0f172a !important;
}

/* WhatsApp Preferred Styling */
.whatsapp-preferred {
  background: #f8fafc;
  border: 1px solid #0ea5e9;
  box-shadow: 0 1px 3px rgba(14, 165, 233, 0.1);
  position: relative;
}

.whatsapp-preferred::before {
  content: "⭐";
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 1rem;
  background: white;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.whatsapp-preferred:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  border-color: #0284c7;
  background: #f0f9ff;
}

.preferred-badge {
  color: #0ea5e9;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-left: 6px;
  display: inline-block;
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

/* Reward Section */
.reward-info {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid #334155;
}

.reward-info h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.reward-info p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
  color: #e2e8f0;
}

/* Thank You Section */
.thank-you {
  text-align: center;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  margin-bottom: 48px;
}

.thank-you p {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.thank-you p strong {
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

/* QR Code Section */
.qr-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.qr-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #cbd5e1 50%,
    transparent 100%
  );
}

.qr-container {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  position: relative;
}

.qr-container::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.1;
}

.qr-header {
  text-align: center;
  margin-bottom: 24px;
}

.qr-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.qr-header h3 {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.qr-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-code-wrapper {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.qr-code {
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: inline-block;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-code:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

.qr-code img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.qr-code:hover img {
  transform: scale(1.02);
}

.qr-url-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.qr-url-label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qr-url {
  color: #3b82f6;
  font-size: 0.875rem;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 0;
  word-break: break-all;
}

.qr-url:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    padding: 12px;
    background-size: 150% 150%;
  }

  .container {
    border-radius: 16px;
    max-width: 100%;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .content {
    padding: 20px;
  }

  .header {
    margin-bottom: 12px;
  }

  .header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .language-selector {
    gap: 0;
  }

  .lang-btn {
    padding: 14px 8px;
    font-size: 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-info {
    margin-bottom: 20px;
  }

  .contact-info h2 {
    font-size: 1.0625rem;
    margin-bottom: 16px;
  }

  .contact-intro {
    font-size: 0.875rem;
    margin-bottom: 6px;
  }

  .contact-item {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    min-height: 64px;
    align-items: center;
  }

  .contact-item .icon {
    font-size: 1.0625rem;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .contact-item strong {
    font-size: 0.75rem;
    margin-bottom: 2px;
  }

  .contact-item span,
  .contact-item a {
    font-size: 0.875rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .whatsapp-preferred {
    border-width: 1px;
  }

  .whatsapp-preferred::before {
    font-size: 0.875rem;
    top: -4px;
    right: -4px;
  }

  .preferred-badge {
    font-size: 0.625rem;
  }

  .reward-info {
    padding: 20px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .reward-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .reward-info p {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .thank-you {
    padding: 20px 16px;
    margin-bottom: 36px;
    border-radius: 12px;
  }

  .thank-you p {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .qr-section {
    padding: 24px 16px;
  }

  .qr-container {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .qr-header h3 {
    font-size: 1.125rem;
    margin-bottom: 6px;
  }

  .qr-description {
    font-size: 0.8125rem;
  }

  .qr-code-wrapper {
    padding: 16px;
  }

  .qr-code {
    padding: 12px;
  }

  .qr-code img {
    width: 140px;
    height: 140px;
  }

  .qr-url {
    font-size: 0.75rem;
    padding: 10px 12px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 8px;
  }

  .content {
    padding: 16px;
  }

  .header {
    margin-bottom: 8px;
  }

  .header h1 {
    font-size: 1.375rem;
  }

  .lang-btn {
    padding: 12px 6px;
    font-size: 11px;
  }

  .contact-item {
    padding: 14px;
  }

  .contact-item .icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .contact-intro {
    font-size: 0.8125rem;
    margin-bottom: 5px;
  }

  .whatsapp-preferred {
    border-width: 1px;
  }

  .whatsapp-preferred::before {
    font-size: 0.75rem;
    top: -3px;
    right: -3px;
  }

  .preferred-badge {
    font-size: 0.5625rem;
  }

  .thank-you {
    padding: 16px 12px;
    margin-bottom: 28px;
    border-radius: 10px;
  }

  .qr-section {
    padding: 16px 8px;
  }

  .qr-container {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .qr-header h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .qr-description {
    font-size: 0.75rem;
  }

  .qr-code-wrapper {
    padding: 12px;
  }

  .qr-code {
    padding: 8px;
  }

  .qr-code img {
    width: 120px;
    height: 120px;
  }

  .qr-url {
    font-size: 0.625rem;
    padding: 8px 10px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .language-selector {
    display: none;
  }

  .content.hidden {
    display: none !important;
  }
}
