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

:root {
  --bg:       #08090a;
  --bg2:      #101114;
  --bg3:      #18191d;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --text:     #f0ede8;
  --muted:    rgba(240,237,232,0.45);
  --muted2:   rgba(240,237,232,0.25);
  --accent:   #00e5a0;
  --accent2:  #00b87d;
  --accent-g: rgba(0,229,160,0.08);
  --serif:    'Lora', Georgia, serif;
  --sans:     'Syne', sans-serif;
  --mono:     'JetBrains Mono', monospace;
  --max:      1080px;
  --r:        10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.07) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.6s ease, top 0.6s ease;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8,9,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: -0.03em;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 2rem 4rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-g);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 .line-accent {
  color: var(--accent);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); background: var(--accent-g); }

/* ── PHOTO CARD ── */
.photo-card {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg3);
  border: 1px solid var(--border2);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.photo-placeholder-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px dashed var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}

.photo-tag {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  background: rgba(8,9,10,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-tag-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}

.photo-tag-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.photo-tag-role {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
}

.photo-deco {
  position: absolute;
  top: -12px; right: -12px;
  width: 80px; height: 80px;
  border: 2px solid rgba(0,229,160,0.2);
  border-radius: 16px;
  z-index: -1;
}

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; }

.section-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ── SOBRE MÍ ── */
.about-section {
  border-top: 1px solid var(--border);
}

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

.about-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about-text strong { color: var(--text); font-weight: 600; }

.data-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.pill span { color: var(--accent); font-size: 0.9rem; }



.skills-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 1.2rem;
}

.skill-row {
  margin-bottom: 1.2rem;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.skill-pct {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.skill-bar {
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── SERVICIOS ── */
.services-section {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 3rem;
}

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

.service-card:hover { background: var(--bg3); }

.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-g);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

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

/* ── POR QUÉ YO ── */
.why-section {
  border-top: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.8rem;
  transition: border-color 0.25s;
}

.why-card:hover { border-color: rgba(0,229,160,0.25); }

.why-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── CONTACTO ── */
.contact-section {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.contact-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-block {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.contact-link-item:hover {
  border-color: rgba(0,229,160,0.3);
  background: var(--bg);
}

.cli-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cli-icon.wa { background: rgba(37,211,102,0.12); }
.cli-icon.ig { background: rgba(225,48,108,0.1); }
.cli-icon.gh { background: rgba(255,255,255,0.05); }
.cli-icon.li { background: rgba(19, 185, 214, 0.164); }

.cli-text { flex: 1; }

.cli-label {
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  display: block;
  margin-bottom: 2px;
}

.cli-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.cli-arrow {
  color: var(--muted2);
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
}

.contact-link-item:hover .cli-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── FORMULARIO ── */
.form-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 2rem;
}

.form-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.08);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff40' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option { background: #18191d; color: #f0ede8; }

.btn-wa {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

.btn-wa:hover { background: #1db954; transform: translateY(-1px); }
.btn-wa:active { transform: scale(0.98); }

.wa-icon {
  width: 20px; height: 20px;
  fill: white;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted2);
}

.footer-copy a { color: var(--accent); text-decoration: none; }

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

.fade-up {
  opacity: 0;
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.36s; }
.d4 { animation-delay: 0.5s; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .photo-card { max-width: 340px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { display: none; }
}
