/* ========================================
   AUREA — Shared styles
   ======================================== */

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

:root {
  --teal:       #00a8a1;
  --teal-dark:  #007a76;
  --bg:         #ffffff;
  --text:       #0d1f1e;
  --muted:      #6b7e7d;
  --subtle:     #9fb8b6;
  --border:     #e0ecea;
  --input-bg:   #f5fafa;
  --title-gray: #e6e6e6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---------- Layout base (Proceso) ---------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* ---------- Header ---------- */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.logo-group:hover {
  opacity: 0.7;
}

.logo-group img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--title-gray);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ---------- Content (texto de Proceso) ---------- */
.content {
  width: 100%;
  max-width: 640px;
}

.content p {
  font-size: 17px;
  font-weight: 400;
  text-align: justify;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.4em;
}

.content p:last-child {
  margin-bottom: 0;
}

/* ---------- Waitlist section (componente único, reutilizado en todas las páginas) ---------- */
.waitlist-section {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* Platform selector */
.platform-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.platform-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.platform-btn:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.platform-btn.selected {
  border-color: var(--teal);
  background: #edfaf9;
  color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(0, 168, 161, 0.10);
  font-weight: 600;
}

/* Form elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

input[type="email"]::placeholder {
  color: #a8bfbe;
}

input[type="email"]:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 168, 161, 0.09);
}

input[type="email"].error-shake {
  border-color: #e74c3c;
  animation: shake 0.35s ease;
}

button[type="submit"] {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  background: var(--teal);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 4px 18px rgba(0, 168, 161, 0.28);
}

button[type="submit"]:hover {
  background: #009990;
  box-shadow: 0 6px 26px rgba(0, 168, 161, 0.38);
  transform: translateY(-1px);
}

button[type="submit"]:active {
  transform: scale(0.98);
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.error-msg {
  display: none;
  background: #fff5f5;
  border: 1.5px solid #fcc;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.success-msg {
  display: none;
  background: #edfaf9;
  border: 1.5px solid #b2e8e6;
  color: var(--teal-dark);
  padding: 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}

.privacy {
  margin-top: 14px;
  font-size: 13px;
  color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--subtle);
  flex-shrink: 0;
}

/* ---------- Animations ---------- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .page {
    padding: 32px 24px 64px;
    gap: 40px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-title {
    font-size: 32px;
    align-self: flex-end;
  }

  .logo-text {
    font-size: 24px;
  }

  .logo-group img {
    height: 40px;
  }

  .content {
    max-width: 100%;
  }

  .content p {
    font-size: 16px;
    text-align: left;
  }

  .waitlist-section {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px;
  }

  .logo-text {
    font-size: 22px;
  }

  .logo-group img {
    height: 36px;
  }

  .content p {
    font-size: 15px;
  }

  .platform-group {
    flex-direction: column;
  }
}
