/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-sm);
  transition: transform var(--duration-normal) var(--ease-out),
              background-color var(--duration-normal) var(--ease),
              color var(--duration-normal) var(--ease),
              box-shadow var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary - Gold filled */
.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-white);
  border: 1px solid var(--color-gold-dark);
  background-size: 200% 200%;
  animation: gold-shimmer 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--gradient-gold-text);
  background-size: 200% 200%;
  box-shadow: var(--shadow-gold), 0 0 20px rgba(201, 169, 110, 0.4);
  transform: translateY(-2px);
}

@keyframes gold-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Secondary - Outlined */
.btn-secondary {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  background-image: linear-gradient(135deg, transparent 0%, transparent 100%);
}

.btn-secondary:hover {
  background: var(--gradient-gold-subtle);
  color: var(--color-white);
  border-color: var(--color-gold);
  background-size: 200% 200%;
}

/* Ghost - Text only */
.btn-ghost {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid transparent;
  padding: var(--space-3) var(--space-4);
  background-image: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-ghost:hover {
  background-image: linear-gradient(135deg, #D4BC8A 0%, var(--color-gold) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* White variant */
.btn-white {
  background-color: var(--color-white);
  color: var(--color-text-primary);
  border: 1px solid var(--color-white);
}

.btn-white:hover {
  background-color: var(--color-cream);
  box-shadow: var(--shadow-md);
}

/* Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

/* ===========================
   CARDS
   =========================== */

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: var(--color-beige);
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-3);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ===========================
   BADGES
   =========================== */

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border-radius: var(--radius-full);
  background-color: var(--color-beige);
  color: var(--color-gold-dark);
}

.badge--gold {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.badge--outline {
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

/* ===========================
   FORM ELEMENTS
   =========================== */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-family: var(--font-secondary);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-beige-dark);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-normal) var(--ease),
              box-shadow var(--duration-normal) var(--ease);
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239B9590' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-12);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-gold);
  flex-shrink: 0;
}

.form-checkbox-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.form-error {
  font-size: var(--text-xs);
  color: #c0392b;
  margin-top: var(--space-1);
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #c0392b;
}

.form-group.has-error .form-error {
  display: block;
}

/* ===========================
   DIVIDER
   =========================== */

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: var(--space-12) 0;
}

/* ===========================
   BREADCRUMBS
   =========================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb-sep {
  color: var(--color-sand);
}

.breadcrumb-current {
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}

/* ===========================
   MODAL / LIGHTBOX
   =========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-out),
              visibility var(--duration-slow) var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  cursor: pointer;
  z-index: 10;
  border-radius: var(--radius-full);
  transition: background-color var(--duration-fast) var(--ease);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background-color var(--duration-fast) var(--ease);
  z-index: 10;
}

.modal-nav:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-prev { left: var(--space-4); }
.modal-next { right: var(--space-4); }

/* ===========================
   TOAST / NOTIFICATION
   =========================== */

.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-text-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success { border-left: 3px solid #27ae60; }
.toast--error { border-left: 3px solid #c0392b; }
.toast--info { border-left: 3px solid var(--color-gold); }

/* ===========================
   LOADING SKELETON
   =========================== */

.skeleton {
  background: linear-gradient(90deg, var(--color-beige) 25%, var(--color-beige-dark) 50%, var(--color-beige) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===========================
   WHATSAPP FLOATING BUTTON
   =========================== */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: var(--z-whatsapp);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease),
              opacity var(--duration-slow) var(--ease-out);
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Pulse animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background-color: rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
  padding: 100px var(--space-6);
  background-color: var(--color-beige);
  text-align: center;
}

.cta-section .section-label {
  display: inline-block;
  margin-bottom: var(--space-6);
}

.cta-section h2 {
  margin-bottom: var(--space-8);
}

.cta-section p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
