/* ============================================================
   styles.css — Página de Mantenimiento
   C.O. Solutions S.A. de C.V.
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #080c14;
  --surface:  rgba(255, 255, 255, 0.04);
  --border:   rgba(255, 255, 255, 0.08);
  --accent:   #4f8eff;
  --accent2:  #a78bfa;
  --text:     #f0f4ff;
  --muted:    rgba(240, 244, 255, 0.45);
  --glow:     rgba(79, 142, 255, 0.18);

  --radius-sm:  10px;
  --radius-md:  12px;
  --radius-lg:  24px;
  --radius-pill: 100px;

  --transition: 0.2s ease;
}

/* ── Base ───────────────────────────────────────────────────── */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ── Canvas background ──────────────────────────────────────── */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Gradient mesh overlays ─────────────────────────────────── */
.mesh {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.mesh-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #2d5fe8 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: drift1 18s ease-in-out infinite alternate;
}

.mesh-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: drift2 22s ease-in-out infinite alternate;
}

.mesh-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  top: 40%;
  left: 60%;
  animation: drift3 15s ease-in-out infinite alternate;
}

/* ── Layout ─────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeDown 0.8s 0.2s ease forwards;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img,
.logo svg {
  height: 38px;
  width: auto;
  filter: invert(1);
}

/* ── Status pill ────────────────────────────────────────────── */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(79, 142, 255, 0.1);
  border: 1px solid rgba(79, 142, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: #a0c4ff;
  letter-spacing: 0.02em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  max-width: 780px;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 52px;
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  animation: fadeUp 1s 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ── Subscribe form ─────────────────────────────────────────── */
.form-row {
  display: flex;
  gap: 10px;
}

.form-row input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form-row input[type="email"]::placeholder {
  color: rgba(240, 244, 255, 0.28);
}

.form-row input[type="email"]:focus {
  border-color: rgba(79, 142, 255, 0.55);
  background: rgba(79, 142, 255, 0.06);
}

.form-row input[type="email"].error {
  border-color: rgba(248, 113, 113, 0.6);
}

/* ── Button ─────────────────────────────────────────────────── */
.btn-primary {
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 24px rgba(79, 142, 255, 0.3);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(79, 142, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ── Success message ────────────────────────────────────────── */
.success-msg {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: #6ee7b7;
  margin-top: 12px;
  animation: fadeUp 0.4s ease forwards;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  margin-top: 56px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.18);
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s 1.2s ease forwards;
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 142, 255, 0.6); opacity: 1; }
  50%       { box-shadow: 0 0 0 6px rgba(79, 142, 255, 0); opacity: 0.7; }
}

@keyframes drift1 { to { transform: translate(80px, 60px); } }
@keyframes drift2 { to { transform: translate(-60px, -80px); } }
@keyframes drift3 { to { transform: translate(-40px, 50px); } }

/* ── Accesibilidad ──────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav        { padding: 16px 20px; }
  .card      { padding: 28px 22px; }
  .form-row  { flex-direction: column; }
  .btn-primary { width: 100%; }
}
