/* =========================
   RESET BÁSICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #060b1f, #0a1538);
  color: #ffffff;
  overflow-x: hidden;
}

/* =========================
   HEADER / NAVBAR
========================= */
header {
  width: 100%;
  padding: 18px 0;
  position: fixed;
  top: 0;
  left: 0;
  backdrop-filter: blur(12px);
  background: rgba(6, 11, 31, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   LOGO FIX DEFINITIVO
========================= */
.brand {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
}

/* =========================
   NAV LINKS
========================= */
.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: #cbd5ff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #ffffff;
}

/* =========================
   BOTONES
========================= */
.btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(90deg, #7b5cff, #00c6ff);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 198, 255, 0.4);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
}

/* =========================
   HERO SECTION
========================= */
.section {
  padding: 120px 0;
}

.hero-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
}

.h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient {
  background: linear-gradient(90deg, #7b5cff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 18px;
  color: #cbd5ff;
  margin-bottom: 25px;
}

/* =========================
   HERO SIDE PANEL
========================= */
.hero-side {
  flex: 1;
}

.glass-panel {
  background: rgba(255,255,255,0.04);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.panel-title {
  font-size: 20px;
  margin-bottom: 15px;
}

.ticks {
  list-style: none;
}

.ticks li {
  margin-bottom: 10px;
  color: #cbd5ff;
}

/* =========================
   CARDS
========================= */
.grid-3 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  padding: 25px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* =========================
   PORTFOLIO
========================= */
.grid-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.work {
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s ease;
}

.work:hover {
  transform: translateY(-5px);
}

.work-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.work-meta {
  padding: 15px;
}

.work-title {
  font-weight: bold;
}

/* =========================
   CTA
========================= */
.cta {
  background: linear-gradient(90deg, #7b5cff, #00c6ff);
  padding: 60px 30px;
  border-radius: 25px;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.cta .btn {
  margin-top: 20px;
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 60px;
  color: #9aa6ff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
  }

  .nav {
    display: none;
  }

  .h1 {
    font-size: 38px;
  }
}