/* ============================================
   MKDevelop.es - Modern redesign
   Dark, glassmorphism, responsive
   ============================================ */

:root {
  --bg: #07090f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6e8ee;
  --muted: #8a93a6;
  --primary: #60a5fa;
  --primary-2: #a78bfa;
  --accent: #22d3ee;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.top { height: 24px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(22px) saturate(160%);
  background: linear-gradient(180deg, rgba(20, 45, 80, 0.78), rgba(25, 60, 95, 0.45));
  border-bottom: 1px solid rgba(125, 211, 252, 0.28);
  z-index: 50;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 44px; display: block; }
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0), 0 0 0 0 rgba(167, 139, 250, 0);
  transition: transform 150ms ease, box-shadow 200ms ease, border-color 200ms ease, color 200ms ease;
}
.nav a:hover, .nav a.active {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), 0 0 12px rgba(96, 165, 250, 0.25), 0 0 24px rgba(167, 139, 250, 0.15);
}

.nav a.nav-redsys {
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  border: 2px solid #f0abfc;
  color: #fff;
  box-shadow: 0 0 28px rgba(228, 121, 249, 0.95), 0 0 60px rgba(192, 38, 211, 0.75), inset 0 0 18px rgba(255, 255, 255, 0.25);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.nav a.nav-redsys:hover {
  background: linear-gradient(135deg, #d946ef, #fb7185);
  border-color: #ffe4e6;
  box-shadow: 0 0 44px rgba(251, 113, 133, 1), 0 0 88px rgba(217, 70, 239, 0.9), 0 8px 22px rgba(0,0,0,0.45), inset 0 0 24px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; }

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  padding: 90px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero.small { padding: 60px 0 70px; }
.hero-media {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(600px 400px at 25% 10%, rgba(34, 211, 238, 0.25), transparent),
    radial-gradient(600px 400px at 80% 40%, rgba(167, 139, 250, 0.25), transparent),
    repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0 2deg, transparent 0 6deg);
  filter: blur(40px);
  opacity: .9;
}
.hero-content { position: relative; z-index: 1; max-width: 860px; padding: 0 20px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg,#fff,rgba(230,232,238,.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: #cdd3df;
  max-width: 760px;
  margin: 0 0 14px;
}
.hero-location { color: #b6bcc8; }
.cta { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  background: var(--surface-2);
  backdrop-filter: blur(10px);
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.button:hover { transform: translateY(-2px); }

.primary {
  background: linear-gradient(135deg,#60a5fa,#a78bfa);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.35);
}
.primary:hover { box-shadow: 0 14px 34px rgba(96, 165, 250, 0.45); }
.secondary:hover { box-shadow: 0 10px 30px rgba(255, 255, 255, 0.06); }

/* Sections */
section { padding: 60px 0; }
section + section { border-top: 1px solid var(--border); }

.highlights { padding: 70px 0; }
.highlights h2 { margin: 0 0 22px; font-size: 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.card h3 { margin: 6px 0 10px; font-size: 19px; }
.card p { margin: 0; color: #b8bcc8; }

.grid-3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.split { align-items: start; }

/* Works */
.work h4 { margin: 0 0 6px; font-size: 17px; }
.work a { color: #7dd3fc; }
.work a:hover { color: #fff; }

/* Tech */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.tech-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 500;
}

/* Contact form */
.form label { display: block; margin-bottom: 14px; }
.form label span { display: block; font-size: 13px; color: #cbd5e1; margin-bottom: 6px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: #e6e8ee;
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font: inherit;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: #60a5fa; }

.panel { display: grid; gap: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0 60px; color: #9aa3b2; }
.footer a { color: #93c5fd; }
.footer p { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 0; }

/* Utility */
.top { height: 24px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: rgba(7, 9, 15, 0.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 14px 20px; gap: 14px; flex-direction: column; }
  .nav.open { display: flex; }
  .hero { padding: 64px 0 70px; }
}
