/* ════════════════════════════════════════════════════
   kevin-nefi · styles.css
   ════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg:         #07090f;
  --bg2:        #0d111d;
  --blue:       #1a6bff;
  --blue-glow:  #1a6bff88;
  --blue-dim:   #1145aa;
  --steel:      #c8d8f0;
  --white:      #f0f4ff;
  --muted:      #5a6a8a;
  --card:       #111826;
  --border:     #1e2d4a;

  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5vw;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

#navbar.scrolled {
  background: rgba(7, 9, 15, 0.97);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.nav-logo span { color: var(--white); }

.nav-cta {
  background: var(--blue);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--blue-dim);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 5vw 4rem;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

/* Background decorative layers */
.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-lines::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-bg-lines::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, #0d111d 40%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

@keyframes pulseGlow {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 0.9; transform: scale(1.1); }
}

/* Hero text column */
.hero-text {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--blue);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.name-accent {
  color: var(--blue);
  display: block;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--steel);
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Stats strip */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Photo column */
.hero-photo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.photo-frame {
  position: relative;
  width: min(380px, 90%);
  aspect-ratio: 3 / 4;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  transform: translate(10px, 10px);
  opacity: 0.4;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-placeholder svg { opacity: 0.3; }

.photo-badge {
  position: absolute;
  bottom: -1rem;
  left: -1.5rem;
  background: var(--blue);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(26, 107, 255, 0.5);
}

.photo-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn-primary {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 30px var(--blue-glow);
}

.btn-primary:hover {
  background: var(--blue-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 40px var(--blue-glow);
}

.btn-primary.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  color: var(--steel);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--white); }

/* ════════════════════════════════════════
   SECTION SHARED
════════════════════════════════════════ */
section {
  padding: 6rem 5vw;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--blue);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
#sobre-mi {
  background: var(--bg2);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--steel);
}

.about-body p + p { margin-top: 1rem; }

.about-body strong {
  color: var(--white);
  font-weight: 500;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.pillar {
  background: var(--card);
  padding: 1.8rem 1.5rem;
  transition: background 0.2s;
}

.pillar:hover { background: #161f30; }

.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.pillar h3 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ════════════════════════════════════════
   SERVICES
════════════════════════════════════════ */
#servicios { background: var(--bg); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--card);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.25s;
  cursor: default;
}

.service-card:hover { background: #131c2c; }

.service-card.featured {
  background: linear-gradient(135deg, #0f1e3d, #0d111d);
}

.service-card.featured:hover {
  background: linear-gradient(135deg, #14285a, #111826);
}

.service-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--border);
  line-height: 1;
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  transition: color 0.2s;
}

.service-card:hover .service-num {
  color: var(--blue-dim);
  opacity: 0.4;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(26, 107, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.service-card h3 {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   PRICING
════════════════════════════════════════ */
#precios { background: var(--bg2); }

.pricing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.price-card {
  margin-top: 3rem;
  background: var(--card);
  border: 1px solid var(--blue);
  border-radius: 12px;
  padding: 3.5rem 3rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(26, 107, 255, 0.15);
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue), #60a5fa);
}

.price-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.price-tag sup {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: super;
  color: var(--blue);
}

.price-tag sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  vertical-align: sub;
}

.price-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0 2rem;
}

.price-includes {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.price-includes li {
  font-size: 0.9rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.check {
  width: 20px;
  height: 20px;
  background: rgba(26, 107, 255, 0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  font-size: 0.7rem;
}

/* ════════════════════════════════════════
   CTA
════════════════════════════════════════ */
#contacto {
  background: var(--bg);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 420px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 1.1rem 2.5rem;
  border-radius: 4px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
}

.wa-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(37, 211, 102, 0.4);
}

.wa-icon {
  width: 22px;
  height: 22px;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: #050710;
  border-top: 1px solid var(--border);
  padding: 2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.footer-logo span { color: var(--muted); }

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

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text > * {
  animation: fadeUp 0.7s ease both;
}

.hero-text > *:nth-child(1) { animation-delay: 0.10s; }
.hero-text > *:nth-child(2) { animation-delay: 0.20s; }
.hero-text > *:nth-child(3) { animation-delay: 0.35s; }
.hero-text > *:nth-child(4) { animation-delay: 0.50s; }
.hero-text > *:nth-child(5) { animation-delay: 0.65s; }

.hero-photo-wrap {
  animation: fadeUp 0.9s 0.3s ease both;
}

/* ─── Scroll-triggered fade ─── */
.fade-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-target.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 860px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-eyebrow  { justify-content: center; }
  .hero-desc     { max-width: 100%; }
  .hero-actions  { justify-content: center; }
  .hero-stats    { justify-content: center; }
  .hero-photo-wrap { order: -1; }

  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #navbar  { padding: 1rem 4vw; }
  section  { padding: 4rem 4vw; }

  .hero-stats      { gap: 1.5rem; }
  .about-pillars   { grid-template-columns: 1fr; }
  .price-card      { padding: 2.5rem 1.5rem; }
  .price-tag       { font-size: 4.5rem; }
}
