/* public/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --bg-deep:    #050d1a;
  --bg-card:    #0a1628;
  --bg-glass:   rgba(10, 22, 40, 0.85);
  --accent:     #f97316;
  --accent-glow:#ff8c3a;
  --blue-mid:   #1e4080;
  --blue-light: #2563eb;
  --text-main:  #e8f0fe;
  --text-muted: #7a94be;
  --border:     rgba(37, 99, 235, 0.25);
  --radius:     12px;
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Fondo animado ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(30, 64, 128, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grid de puntos */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER / NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo area */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(249,115,22,0.4));
}

/* Placeholder si no hay imagen */
.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-light), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 0 20px rgba(249,115,22,0.3);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-text span {
  color: var(--accent);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-links .link-registro {
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.nav-links .link-registro:hover {
  color: var(--text-main);
  border-color: var(--blue-light);
  background: rgba(37,99,235,0.1);
}

.nav-links .link-acceso {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  border: 1px solid transparent;
  box-shadow: 0 0 18px rgba(37,99,235,0.35);
}
.nav-links .link-acceso:hover {
  box-shadow: 0 0 28px rgba(37,99,235,0.55);
  transform: translateY(-1px);
}

/* ── MAIN ── */
main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ── HERO ── */
.hero {
  text-align: center;
  margin-bottom: 72px;
  animation: fadeUp 0.7s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-glow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e8f0fe 30%, var(--blue-light) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ── GRID PRINCIPAL ── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

/* ── CARD base ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease both;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
}

/* ── INFO CARD ── */
.info-card { animation-delay: 0.1s; }

.info-card h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }

.contact-icon {
  width: 42px; height: 42px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--accent); }

/* Mapa GPS decorativo */
.gps-visual {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: rgba(5,13,26,0.6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gps-rings {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.3);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 3s linear infinite;
}
.ring:nth-child(1) { width: 30px; height: 30px; animation-delay: 0s; }
.ring:nth-child(2) { width: 55px; height: 55px; animation-delay: 0.6s; }
.ring:nth-child(3) { width: 80px; height: 80px; animation-delay: 1.2s; }
.ring:nth-child(4) { width: 100px; height: 100px; animation-delay: 1.8s; }

.gps-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent);
  z-index: 2;
}

.gps-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── FORM CARD ── */
.form-card { animation-delay: 0.2s; }

.form-card::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input, textarea {
  background: rgba(5, 13, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input::placeholder, textarea::placeholder {
  color: rgba(122, 148, 190, 0.45);
}

input:focus, textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Input error state */
input.error, textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.field-error {
  font-size: 0.72rem;
  color: #ef4444;
  margin-top: 2px;
}

/* ── SUBMIT BUTTON ── */
.btn-submit {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(249,115,22,0.35);
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(249,115,22,0.5);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── TOAST NOTIFICATIONS ── */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 400;
  max-width: 360px;
  backdrop-filter: blur(12px);
  border: 1px solid;
  animation: toastIn 0.3s ease both;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}

footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

footer strong { color: var(--accent); }

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

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

@keyframes ripple {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
  .nav-links a { padding: 7px 13px; font-size: 0.82rem; }
  .logo-text { font-size: 0.95rem; }
}

@media (max-width: 520px) {
  nav { padding: 0 16px; }
  main { padding: 40px 16px 60px; }
  .card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .logo-sub { display: none; }
}
