/* ═══════════════════════════════════════════════════════════════
   styles.css — Digidan.co
   Dark Minimal Design · Inter Font · Smooth Animations
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Fondos */
  --bg-base:      #080810;
  --bg-surface:   #0f0f1a;
  --bg-elevated:  #16162a;
  --bg-card:      #1a1a2e;
  --bg-card-hover:#1f1f38;

  /* Bordes */
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(108,99,255,0.4);

  /* Texto */
  --text-primary:   #eeeef7;
  --text-secondary: #9090b0;
  --text-muted:     #5a5a7a;

  /* Acentos */
  --accent:       #6c63ff;
  --accent-light: #8a83ff;
  --accent-dim:   rgba(108,99,255,0.15);
  --cyan:         #00d4aa;
  --cyan-dim:     rgba(0,212,170,0.12);

  /* Tamaños */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(108,99,255,0.18);

  /* Transiciones */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--bg-base); }
::-webkit-scrollbar-thumb  { background: var(--accent); border-radius: var(--radius-full); }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: var(--accent); color: #fff; }

/* ── Contenedor ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Secciones ─────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Gradiente de texto ────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn--ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ── Animaciones reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--duration) var(--ease),
              padding var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.navbar.scrolled {
  background: rgba(8,8,16,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--border);
}

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

/* Logo */
.navbar__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo__digi { color: var(--text-primary); }
.logo__dan  { color: var(--accent); }
.logo__dot  { color: var(--cyan); }

/* Links */
.navbar__links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration), background var(--duration);
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.nav-link.btn-nav {
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid rgba(108,99,255,0.25);
  margin-left: 8px;
}
.nav-link.btn-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.nav-link.active {
  color: var(--accent-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--duration);
}
.hamburger:hover { background: rgba(255,255,255,0.07); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
}

/* Fondo grid decorativo */
.hero__bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glows */
.hero__glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: rgba(108,99,255,0.08);
}
.hero__glow--2 {
  width: 400px;
  height: 400px;
  bottom: 0;
  right: -50px;
  background: rgba(0,212,170,0.06);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Badge "disponible" */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 500;
  width: fit-content;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(0,212,170,0); }
}

/* Heading principal */
.hero__h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.hero__gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Redes hero */
.hero__socials {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}
.social-link img { width: 18px; filter: brightness(0.8); }
.social-link:hover {
  background: var(--accent-dim);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.social-link:hover img { filter: brightness(1); }

/* Visual derecho */
.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__card-stack {
  position: relative;
  width: 380px;
  height: 460px;
}

/* Figura de persona */
.hero__figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
}
.hero__img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: grayscale(15%);
}
.hero__img-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 -80px 80px var(--bg-base);
}

/* Card decorativa de código */
.deco-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 240px;
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  animation: float-card 4s ease-in-out infinite;
}
.deco-card--back {
  top: 10px;
  right: -10px;
  z-index: 2;
}
@keyframes float-card {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.deco-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.deco-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.deco-dot--red    { background: #ff5f57; }
.deco-dot--yellow { background: #febc2e; }
.deco-dot--green  { background: #28c840; }
.deco-card__title { color: var(--text-muted); margin-left: 4px; }
.deco-card__body  { display: flex; flex-direction: column; gap: 4px; }
.code-line  { font-family: 'JetBrains Mono', 'Fira Code', monospace; color: var(--text-secondary); }
.code-k     { color: #c678dd; }
.code-n     { color: #d19a66; }
.code-comment { color: var(--text-muted); font-style: italic; }

/* Badges flotantes */
.hero__badge-float {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  animation: float-badge 3s ease-in-out infinite;
}
.hero__badge-float--1 {
  bottom: 80px;
  left: -30px;
  animation-delay: 0.5s;
}
.hero__badge-float--2 {
  top: 60px;
  left: 10px;
  animation-delay: 1.2s;
}
@keyframes float-badge {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1deg); }
}
.badge-float__icon { font-size: 1.4rem; }
.badge-float__title { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.badge-float__sub   { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(0.7); }
}

/* ═══════════════════════════════════════════════════════════
   SOBRE MÍ
   ═══════════════════════════════════════════════════════════ */
.sobre-mi {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sobre-mi__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sobre-mi__img-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sobre-mi__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sobre-mi__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s var(--ease);
}
.sobre-mi__figure:hover .sobre-mi__img { transform: scale(1.03); }
.sobre-mi__img-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* Chips de tecnologías */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-dim);
  border: 1px solid rgba(108,99,255,0.2);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--duration);
}
.chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Texto lado derecho */
.sobre-mi__text { display: flex; flex-direction: column; gap: 20px; }
.sobre-mi__p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.sobre-mi__p strong { color: var(--text-primary); font-weight: 600; }

/* Stats */
.sobre-mi__stats {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat__label { font-size: 0.82rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════════════════════════════ */
.servicios__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.servicio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
}
.servicio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Card destacada */
.servicio-card--featured {
  background: linear-gradient(145deg, #1a1a35, #141428);
  border-color: rgba(108,99,255,0.3);
  box-shadow: var(--shadow-glow);
}
.servicio-card--featured:hover { border-color: var(--accent); }

.servicio-card__glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(108,99,255,0.08);
  filter: blur(40px);
  pointer-events: none;
}

.servicio-card__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.servicio-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid rgba(108,99,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.servicio-card--featured .servicio-card__icon {
  background: rgba(108,99,255,0.2);
}

.servicio-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.servicio-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Lista de items */
.servicio-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.servicio-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.servicio-card__list li svg { color: var(--cyan); flex-shrink: 0; }
.servicio-card--featured .servicio-card__list li svg { color: var(--accent-light); }

.servicio-card__btn { align-self: flex-start; margin-top: 4px; }

/* Strip de herramientas */
.tools-strip {
  margin-top: 64px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.tools-strip__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.tools-strip__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tool-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--duration), transform var(--duration);
  filter: drop-shadow(0 0 0 transparent);
}
.tool-item:hover img {
  opacity: 1;
  transform: scale(1.15);
}
.tool-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   PORTAFOLIO
   ═══════════════════════════════════════════════════════════ */
.portafolio {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Tabs de filtro */
.portafolio__tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}
.tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.tab-btn.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,0.35);
}

/* Grid */
.portafolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.port-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), opacity 0.4s;
}
.port-item.hidden {
  display: none;
}
.port-item__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.port-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.port-item:hover .port-item__img { transform: scale(1.07); }

.port-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,0.95) 30%, rgba(8,8,16,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.port-item:hover .port-item__overlay { opacity: 1; }

.port-item__cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 4px;
}
.port-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.port-item__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   CLIENTES
   ═══════════════════════════════════════════════════════════ */
.clientes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cliente-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
}
.cliente-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cliente-card__logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cliente-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cliente-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.cliente-card__sub {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-top: 2px;
}
.cliente-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════════════ */
.contacto {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contacto__info { display: flex; flex-direction: column; gap: 28px; }
.contacto__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Datos de contacto */
.contacto__data { display: flex; flex-direction: column; gap: 12px; }
.contacto__data-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration), transform var(--duration);
}
.contacto__data-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.contacto__data-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contacto__data-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.contacto__data-val {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Redes en contacto */
.contacto__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}
.social-btn img { width: 20px; opacity: 0.7; }
.social-btn:hover {
  background: var(--accent-dim);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.social-btn:hover img { opacity: 1; }

/* Formulario */
.contacto__form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contacto__form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.form-input,
.form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  padding: 13px 16px;
  transition: border-color var(--duration), box-shadow var(--duration);
  outline: none;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}
.form-textarea { resize: vertical; min-height: 130px; }

.form-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Mensaje de éxito/error */
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}
.form-msg.success {
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.3);
  color: var(--cyan);
  display: block;
}
.form-msg.error {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff8080;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer__logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--duration);
}
.footer__nav a:hover { color: var(--accent-light); }
.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    text-align: center;
  }
  .hero__visual { display: none; }
  .hero__sub { margin: 0 auto; }
  .hero__actions { justify-content: center; }
  .hero__socials { justify-content: center; }
  .hero__badge  { margin: 0 auto; }
  .hero__scroll-hint { display: none; }

  .sobre-mi__grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-mi__img-wrap { max-width: 420px; margin: 0 auto; }
  .sobre-mi__figure { max-height: 340px; }
  .sobre-mi__img { aspect-ratio: 3/2; }

  .servicios__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

  .portafolio__grid { grid-template-columns: repeat(2, 1fr); }

  .clientes__grid { grid-template-columns: repeat(2, 1fr); }

  .contacto__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Navbar mobile */
  .navbar__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8,8,16,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .navbar__links.open { transform: translateX(0); }
  .nav-link {
    font-size: 1.4rem;
    padding: 14px 32px;
    color: var(--text-primary);
  }
  .nav-link.btn-nav { margin-left: 0; }
  .hamburger { display: flex; z-index: 1001; }

  .portafolio__grid { grid-template-columns: 1fr; }
  .clientes__grid { grid-template-columns: 1fr; }

  .sobre-mi__stats { gap: 20px; flex-wrap: wrap; }

  .tools-strip__logos { gap: 20px; }
}

/* Mobile pequeño: ≤ 480px */
@media (max-width: 480px) {
  .hero__h1 { font-size: 2.2rem; }
  .section__title { font-size: 1.8rem; }
  .contacto__form-wrap { padding: 24px 20px; }
}
