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

:root {
  --black:       #0a0a0a;
  --white:       #f5f3ef;
  --accent:      #c8f04a;
  --accent-dark: #a8d030;
  --gray:        #888;
  --card-bg:     #141414;
  --card-border: #2a2a2a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: padding 0.3s;
}
nav.scrolled { padding: 0.85rem 2rem; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-icon { width: 32px; height: 32px; }
.nav-wordmark {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-wordmark span { color: var(--accent); font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid rgba(200,240,74,0.3);
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: rgba(200,240,74,0.08) !important;
  border-color: var(--accent) !important;
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--gray);
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  color: var(--gray);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--card-border);
}
.nav-mobile a:last-child { border-bottom: none; }

@media(max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── SECCIÓN BASE ── */
section {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.full-divider {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 0;
}
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 16px;
  color: var(--gray);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}
.hero-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s ease forwards;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s ease forwards;
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #444;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s ease forwards;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: #333;
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: slide 2s 1s ease infinite;
}

/* ── BOTONES ── */
.btn-primary {
  background: var(--accent);
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary:hover { background: #d8ff5a; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--card-border);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: #555; }

/* ── SERVICIOS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  background: var(--card-bg);
  padding: 2rem;
  transition: background 0.2s;
  position: relative;
}
.service-card:hover { background: #1a1a1a; }
.service-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #444;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}
.service-icon {
  font-size: 28px;
  margin-bottom: 1rem;
  display: block;
}
.service-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.service-card:hover::after { width: 100%; }

/* ── FILOSOFÍA ── */
.philosophy-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.philosophy-quote {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}
.philosophy-quote strong {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.philosophy-points { list-style: none; }
.philosophy-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}
.philosophy-points li:last-child { border-bottom: none; }
.philosophy-points li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'DM Mono', monospace;
}

/* ── PROYECTOS ── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}
.project-item {
  background: var(--card-bg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: background 0.2s;
  text-decoration: none;
  flex-wrap: wrap;
}
.project-item:hover { background: #1a1a1a; }
.project-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.project-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}
.project-desc { font-size: 14px; color: var(--gray); }
.project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.project-arrow {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: #444;
  transition: all 0.2s;
}
.project-item:hover .project-arrow { color: var(--accent); transform: translateX(4px); }
.project-status {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.status-live {
  background: rgba(200,240,74,0.1);
  color: var(--accent);
  border: 1px solid rgba(200,240,74,0.2);
}
.status-wip {
  background: rgba(136,136,136,0.1);
  color: #666;
  border: 1px solid #2a2a2a;
}

/* ── CONTACTO ── */
.contact-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.contact-info p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.contact-links { display: flex; flex-direction: column; gap: 8px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'DM Mono', monospace;
}
.contact-link:hover { color: var(--accent); }
.contact-link .link-icon { font-size: 16px; }

/* ── FORMULARIO ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}
.form-field label {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: #555;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea {
  background: var(--black);
  border: 1px solid var(--card-border);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-submit {
  background: var(--accent);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 0.25rem;
  transition: all 0.2s;
}
.form-submit:hover { background: #d8ff5a; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-msg {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  margin-top: 0.5rem;
  min-height: 18px;
}
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #e05a5a; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #444;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide {
  from { left: -100%; }
  to   { left: 100%; }
}

/* ── RESPONSIVE ── */
@media(max-width: 640px) {
  section { padding: 4rem 1.5rem; }
  .philosophy-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .contact-wrap { grid-template-columns: 1fr; padding: 1.5rem; gap: 2rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
}
