/* ==========================================================================
   Indipris Travel - Estilos Oficiales para Encuesta Atelier
   Fidelidad visual idéntica al generador de itinerarios y a indipris.com
   ========================================================================== */

:root {
  /* Paleta Oficial WordPress / Indipris */
  --wp--preset--color--base: #f9f9f9;
  --wp--preset--color--base-2: #ffffff;
  --wp--preset--color--contrast: #111111;
  --wp--preset--color--contrast-2: #636363;
  --wp--preset--color--contrast-3: #a4a4a4;
  --wp--preset--color--accent: #cfcabe;
  --wp--preset--color--accent-2: #c2a990;
  --wp--preset--color--accent-3: #d8613c;
  --wp--preset--color--custom-color-1: #fbf6f1;
  --wp--preset--color--luminous-vivid-orange: #ff6900;
  --wp--preset--color--vivid-green-cyan: #00d084;
  --wp--preset--color--vivid-cyan-blue: #0693e3;

  /* Aliases */
  --ind-bg: var(--wp--preset--color--base);
  --ind-white: var(--wp--preset--color--base-2);
  --ind-dark: var(--wp--preset--color--contrast);
  --ind-text-muted: var(--wp--preset--color--contrast-2);
  --ind-border: #e8e8e8;
  --ind-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --ind-font-heading: 'Comfortaa', cursive, sans-serif;
  --ind-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ind-font-body);
  background-color: var(--ind-bg);
  color: var(--ind-text-muted);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ind-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ================= Header ================= */
.ind-header {
  background: var(--ind-white);
  border-bottom: 1px solid var(--ind-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--ind-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ind-dark);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--ind-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-badge {
  background: var(--wp--preset--color--custom-color-1);
  border: 1px solid var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Selector de Idioma Flotante / Cabecera */
.lang-selector-wrapper {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border: 1px solid var(--ind-border);
  border-radius: 20px;
  padding: 2px 8px;
  gap: 4px;
}

.lang-icon {
  width: 15px;
  height: 15px;
  color: #666;
}

.lang-select {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ind-dark);
  cursor: pointer;
  outline: none;
  padding: 3px 0;
}

/* ================= Hero / Banner ================= */
.survey-hero {
  background: linear-gradient(135deg, #2b323c 0%, #171b22 100%);
  color: #ffffff;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.survey-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(216, 97, 60, 0.25), transparent 70%);
  pointer-events: none;
}

.survey-hero-content {
  position: relative;
  z-index: 1;
}

.survey-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.survey-title {
  font-family: var(--ind-font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.survey-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  max-width: 600px;
}

/* ================= Tarjeta del Formulario ================= */
.form-card {
  background: var(--ind-white);
  border: 1px solid var(--ind-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--ind-card-shadow);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.flex-1 { flex: 1; min-width: 220px; }

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ind-dark);
  margin-bottom: 6px;
}

.label-hint {
  font-size: 0.74rem;
  color: var(--wp--preset--color--contrast-3);
  font-weight: normal;
  margin-left: 4px;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #888;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--ind-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ind-dark);
  background: #fbfbfb;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--ind-dark);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

select.form-control {
  cursor: pointer;
}

/* ================= Botones ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--ind-dark);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #2b2b2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
  background-color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: #f0f0f0;
  color: var(--ind-dark);
}

.btn-secondary:hover {
  background: #e4e4e4;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* ================= Estado de Éxito / Feedback ================= */
.status-card {
  text-align: center;
  padding: 40px 24px;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.success-title {
  font-family: var(--ind-font-heading);
  font-size: 1.4rem;
  color: var(--ind-dark);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 0.92rem;
  color: var(--ind-text-muted);
  max-width: 480px;
  margin: 0 auto 20px;
}

.reg-id-badge {
  display: inline-block;
  background: var(--wp--preset--color--custom-color-1);
  border: 1px dashed var(--wp--preset--color--accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wp--preset--color--accent-3);
  margin-bottom: 20px;
}

.pulse-ring {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= Modal de Configuración ================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 16px;
}

.modal-content {
  background: var(--ind-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ind-dark);
}

/* ================= Footer ================= */
.ind-footer {
  margin-top: auto;
  border-top: 1px solid var(--ind-border);
  background: var(--ind-white);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ind-text-muted);
}

.sheet-link {
  color: var(--wp--preset--color--accent-3);
  text-decoration: underline;
  font-weight: 600;
}

.sheet-link:hover {
  color: var(--ind-dark);
}

@media (max-width: 600px) {
  .survey-hero {
    padding: 26px 20px;
  }
  .survey-title {
    font-size: 1.45rem;
  }
  .form-card {
    padding: 24px 18px;
  }
}

