/* ═══════════════════════════════════════════════════════════
   VIANDANDO — Global Styles
   Las fuentes se cargan vía Google Fonts (ver viandando-elementor.php).
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --vd-verde:        #558b69;
  --vd-verde-claro:  #96b8a1;
  --vd-rosa:         #a45972;
  --vd-rosa-claro:   #d4a7aa;
  --vd-crema:        #f7f7f7;
  --vd-blanco:       #ffffff;
  --vd-negro:        #1a1a18;
  --vd-gris-texto:   #4a4a46;
  --vd-gris-borde:   #e8e8e4;

  --vd-font-display: 'Cormorant Garamond', Georgia, serif;
  --vd-font-body:    'DM Sans', system-ui, sans-serif;

  --vd-radius-sm:    0.5rem;
  --vd-radius-md:    1.25rem;
  --vd-radius-lg:    2rem;
  --vd-radius-pill:  100px;

  --vd-transition:      0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --vd-transition-fast: 0.2s ease;

  --vd-shadow-card:  0 2px 16px rgba(26,26,24,0.08), 0 1px 4px rgba(26,26,24,0.04);
  --vd-shadow-hover: 0 12px 40px rgba(85,139,105,0.18), 0 4px 12px rgba(26,26,24,0.08);
}

/* ── Scroll reveal ──────────────────────────────────────── */
.vd-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.vd-reveal.vd-visible {
  opacity: 1;
  transform: translateY(0);
}
.vd-reveal-d1 { transition-delay: 0.1s; }
.vd-reveal-d2 { transition-delay: 0.2s; }
.vd-reveal-d3 { transition-delay: 0.3s; }
.vd-reveal-d4 { transition-delay: 0.4s; }
.vd-reveal-d5 { transition-delay: 0.5s; }

/* ── Vista previa en el editor de Elementor ───────────────────
   En el editor no hay scroll real que dispare el IntersectionObserver,
   por lo que el contenido quedaría invisible (opacity:0). Forzamos su
   visibilidad en el editor/preview sin afectar la animación en el front. */
.elementor-editor-active .vd-reveal,
.elementor-editor-preview .vd-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── Anchor offset helper ────────────────────────────────── */
.vd-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 80px;
}

/* ══════════════════════════════════════════════════════════
   FORM CARD — clase a aplicar en la columna de Elementor
   que contiene el widget "Form" de Elementor Pro.
   Uso: Advanced → CSS Classes → vd-form-card
   ══════════════════════════════════════════════════════════ */
.vd-form-card {
  background: var(--vd-blanco);
  border-radius: var(--vd-radius-lg);
  padding: 3rem;
  border: 1.5px solid var(--vd-gris-borde);
  box-shadow: var(--vd-shadow-card);
}

/* ── Elementor Forms — overrides design system Viandando ─── */

/* Labels */
.vd-form-card .elementor-field-label {
  font-family: var(--vd-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vd-gris-texto);
  margin-bottom: 0.45rem;
}

/* Inputs, selects, textareas */
.vd-form-card .elementor-field {
  font-family: var(--vd-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  color: var(--vd-negro) !important;
  background: var(--vd-crema) !important;
  border: 1.5px solid var(--vd-gris-borde) !important;
  border-radius: var(--vd-radius-sm) !important;
  padding: 0.875rem 1rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100% !important;
  box-shadow: none !important;
}
.vd-form-card .elementor-field:focus {
  border-color: var(--vd-verde) !important;
  box-shadow: 0 0 0 3px rgba(85,139,105,0.12) !important;
  outline: none !important;
}
.vd-form-card .elementor-field::placeholder {
  color: rgba(74,74,70,0.45) !important;
}
.vd-form-card textarea.elementor-field {
  min-height: 130px !important;
  resize: vertical !important;
}

/* Select arrow */
.vd-form-card select.elementor-field {
  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 d='M1 1l5 5 5-5' stroke='%234a4a46' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Checkbox y acceptance */
.vd-form-card .elementor-field-type-checkbox .elementor-field-label,
.vd-form-card .elementor-field-type-acceptance .elementor-field-label {
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--vd-gris-texto);
  line-height: 1.5;
}
.vd-form-card input[type="checkbox"] {
  accent-color: var(--vd-verde);
}

/* Botón de envío */
.vd-form-card .elementor-button,
.vd-form-card .e-form__buttons .elementor-button {
  font-family: var(--vd-font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  background: var(--vd-verde) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--vd-radius-pill) !important;
  padding: 0.875rem 2rem !important;
  width: 100% !important;
  transition: var(--vd-transition) !important;
  cursor: pointer !important;
}
.vd-form-card .elementor-button:hover,
.vd-form-card .e-form__buttons .elementor-button:hover {
  background: #446f55 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(85,139,105,0.35) !important;
}

/* Mensajes de éxito / error */
.vd-form-card .elementor-message {
  font-family: var(--vd-font-body);
  font-size: 0.875rem;
  font-weight: 300;
  border-radius: var(--vd-radius-sm);
  padding: 0.875rem 1rem;
  margin-top: 0.75rem;
}
.vd-form-card .elementor-message-success {
  background: rgba(85,139,105,0.1);
  color: var(--vd-verde);
  border: 1px solid rgba(85,139,105,0.25);
}
.vd-form-card .elementor-message-danger {
  background: rgba(164,89,114,0.08);
  color: var(--vd-rosa);
  border: 1px solid rgba(164,89,114,0.2);
}

/* Responsive form card */
@media (max-width: 768px) {
  .vd-form-card { padding: 2rem 1.25rem; }
}

/* ── Keyframes compartidos ──────────────────────────────── */
@keyframes vd-fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vd-lineReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vd-heroZoom {
  to { transform: scale(1); }
}
