/* ============================================
   NOIR STUDIO — ESTILOS
   Cambia los colores en :root para cambiar
   toda la paleta de la página
   ============================================ */

/* ── COLORES — toca aquí para cambiar la paleta ── */
:root {
  --bg:       #09090b;              /* fondo principal */
  --bg2:      #0f0f12;              /* fondo secundario */
  --bg3:      #141418;              /* fondo terciario */
  --border:   rgba(255,255,255,0.06);
  --sage:     #4b6b59;              /* verde salvia — color acento */
  --sage-lt:  #6b8f7a;              /* verde salvia claro */
  --sage-xs:  rgba(75,107,89,0.15);
  --cream:    #f0ede8;              /* blanco cálido */
  --cream-dim:#a09a91;              /* texto secundario */
  --cream-xs: rgba(240,237,232,0.05);
  --gold:     #c9a96e;              /* dorado (reservado) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 4px; }

/* ── CURSOR PERSONALIZADO ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9999; transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

/* ════════════════════════════════
   NAVEGACIÓN
════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 60px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 0.2em;
  color: var(--cream); text-decoration: none;
}
.nav-logo span { color: var(--sage); }
.nav-links { display: flex; gap: 44px; align-items: center; }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none;
  transition: color 0.25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--sage);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 24px;
  background: var(--sage); color: var(--cream);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: none; border-radius: 3px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--sage-lt); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { width: 24px; height: 1.5px; background: var(--cream); display: block; }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
#inicio {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 60px 100px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 45%, rgba(75,107,89,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(75,107,89,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 10%, rgba(201,169,110,0.05) 0%, transparent 40%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-bigtext {
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: min(26vw, 340px);
  color: rgba(255,255,255,0.018);
  letter-spacing: -0.02em; line-height: 1;
  right: -1vw; bottom: -2vh;
  pointer-events: none; user-select: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: auto; width: 100%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.65rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--sage-lt); margin-bottom: 36px;
  opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
}
.hero-tag::before { content: ''; width: 36px; height: 1px; background: var(--sage); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.8rem, 8vw, 9rem);
  font-weight: 400; line-height: 1.0;
  color: var(--cream); margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.8s 0.35s forwards;
}
.hero-title em { font-style: italic; color: rgba(240,237,232,0.32); }
.hero-title .hl { color: var(--sage-lt); }
.hero-bottom {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.hero-desc { font-size: 1rem; line-height: 1.9; color: var(--cream-dim); max-width: 480px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.hero-btn {
  padding: 18px 44px;
  background: var(--sage); color: var(--cream);
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  border: none; border-radius: 3px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.25s, transform 0.2s;
}
.hero-btn:hover { background: var(--sage-lt); transform: translateY(-2px); }
.hero-scroll {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(240,237,232,0.25);
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(240,237,232,0.25), transparent);
}
.hero-stats {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-stat {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 22px 28px; text-align: center;
}
.hero-stat .n { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 400; color: var(--sage-lt); }
.hero-stat .l { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,237,232,0.3); margin-top: 4px; }

/* ════════════════════════════════
   SECCIONES — estructura base
════════════════════════════════ */
section { scroll-margin-top: 80px; }
.section-wrap { max-width: 1100px; margin: auto; padding: 0 60px; }
.section-header { margin-bottom: 64px; }
.s-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.s-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--sage); }
.s-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400; line-height: 1.1; color: var(--cream);
}
.s-title em { font-style: italic; color: rgba(240,237,232,0.35); }
.s-sub { margin-top: 18px; font-size: 0.95rem; line-height: 1.85; color: var(--cream-dim); max-width: 520px; }

/* ════════════════════════════════
   SERVICIOS / PLANES
════════════════════════════════ */
#servicios { padding: 120px 0; }
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.plan {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 52px 44px; position: relative; overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
  display: flex; flex-direction: column;
}
.plan:hover { border-color: rgba(75,107,89,0.4); background: var(--bg3); }
.plan.featured { border-color: var(--sage); background: var(--bg3); }
.plan-tag {
  position: absolute; top: 0; right: 0;
  background: var(--sage);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream); padding: 6px 16px;
}
.plan-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem; color: rgba(255,255,255,0.03);
  line-height: 1; margin-bottom: 24px;
  position: absolute; top: 20px; right: 28px;
}
.plan-name { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.plan-tagline { font-size: 0.78rem; color: var(--cream-dim); margin-bottom: 32px; line-height: 1.6; }
.plan-price { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 400; color: var(--sage-lt); margin-bottom: 32px; }
.plan-price span { font-size: 1rem; color: var(--cream-dim); }
.plan-features { list-style: none; flex: 1; }
.plan-features li {
  font-size: 0.84rem; color: var(--cream-dim);
  padding: 11px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.plan-features li::before { content: '✦'; font-size: 0.5rem; color: var(--sage); flex-shrink: 0; }
.plan-features li:last-child { border-bottom: none; }
.plan-btn {
  margin-top: 36px; width: 100%; padding: 15px;
  background: transparent; color: var(--cream);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; border-radius: 3px;
  transition: background 0.25s, border-color 0.25s;
}
.plan-btn:hover, .plan.featured .plan-btn { background: var(--sage); border-color: var(--sage); }

/* ════════════════════════════════
   PORTAFOLIO
════════════════════════════════ */
#portafolio { padding: 120px 0; background: var(--bg2); }
.porto-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2px; }
.porto-item {
  background: var(--bg); border: 1px solid var(--border);
  padding: 52px 48px; position: relative; overflow: hidden;
  transition: border-color 0.3s; cursor: pointer;
}
.porto-item:hover { border-color: rgba(75,107,89,0.4); }
.porto-item.tall { grid-row: span 2; }
.porto-visual {
  width: 100%; height: 200px; background: var(--bg3);
  border-radius: 4px; margin-bottom: 32px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(75,107,89,0.5);
  overflow: hidden; position: relative;
}
.porto-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(75,107,89,0.04) 40px, rgba(75,107,89,0.04) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(75,107,89,0.04) 40px, rgba(75,107,89,0.04) 41px);
}
.porto-item.tall .porto-visual { height: 300px; }
.porto-cat { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.porto-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 400; color: var(--cream); margin-bottom: 12px; }
.porto-desc { font-size: 0.84rem; color: var(--cream-dim); line-height: 1.7; }
.porto-arrow {
  position: absolute; bottom: 48px; right: 48px;
  font-size: 1.2rem; color: rgba(75,107,89,0.4);
  transition: color 0.2s, transform 0.2s;
}
.porto-item:hover .porto-arrow { color: var(--sage-lt); transform: translate(4px,-4px); }
.porto-coming {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; border: 1px dashed rgba(255,255,255,0.06);
  border-radius: 4px; margin-bottom: 32px;
}
.porto-coming-txt { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(240,237,232,0.15); }

/* ════════════════════════════════
   PROCESO
════════════════════════════════ */
#proceso { padding: 120px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.process-step {
  padding: 52px 40px; border-right: 1px solid var(--border);
  position: relative; transition: background 0.3s;
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--bg2); }
.process-num { font-family: 'Bebas Neue', sans-serif; font-size: 6rem; color: rgba(255,255,255,0.03); line-height: 1; position: absolute; top: 28px; right: 24px; }
.process-icon {
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 24px; background: var(--sage-xs);
}
.process-step h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 400; color: var(--cream); margin-bottom: 14px; }
.process-step p { font-size: 0.82rem; color: var(--cream-dim); line-height: 1.8; }
.process-connector {
  position: absolute; top: 72px; right: -1px;
  width: 10px; height: 10px;
  background: var(--sage); border-radius: 50%; z-index: 1;
}
.process-step:last-child .process-connector { display: none; }

/* ════════════════════════════════
   TECNOLOGÍAS
════════════════════════════════ */
#stack {
  padding: 80px 0; background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stack-inner { max-width: 1100px; margin: auto; padding: 0 60px; display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.stack-label { font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(240,237,232,0.25); white-space: nowrap; }
.stack-items { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.stack-pill {
  padding: 8px 20px; border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--cream-dim);
  background: var(--cream-xs); transition: border-color 0.2s, color 0.2s;
}
.stack-pill:hover { border-color: var(--sage); color: var(--cream); }

/* ════════════════════════════════
   CONTACTO
════════════════════════════════ */
#contacto { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.contact-detail { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; background: var(--cream-xs);
}
.contact-item-label { font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--sage); margin-bottom: 4px; }
.contact-item-val { font-size: 0.95rem; color: var(--cream-dim); }
.contact-wa {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: #1a3d2a; color: #6fcf97;
  border: 1px solid rgba(37,211,102,0.2); border-radius: 4px;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s;
}
.contact-wa:hover { background: #1f4d32; }
.contact-form {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 6px; padding: 52px 48px;
}
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.contact-form p { font-size: 0.84rem; color: var(--cream-dim); margin-bottom: 36px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-group { margin-bottom: 20px; }
.cf-group label { display: block; font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(240,237,232,0.35); margin-bottom: 8px; }
.cf-group input,
.cf-group select,
.cf-group textarea {
  width: 100%; padding: 13px 16px;
  background: var(--bg3); color: var(--cream);
  border: 1px solid var(--border); border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.cf-group input::placeholder,
.cf-group textarea::placeholder { color: rgba(240,237,232,0.2); }
.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus { border-color: var(--sage); }
.cf-group select option { background: var(--bg3); }
.cf-group textarea { min-height: 110px; resize: vertical; }
.cf-submit {
  width: 100%; padding: 16px;
  background: var(--sage); color: var(--cream);
  border: none; border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s, transform 0.2s; margin-top: 6px;
}
.cf-submit:hover { background: var(--sage-lt); transform: translateY(-1px); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px; }
.footer-inner { max-width: 1100px; margin: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: 0.2em; color: var(--cream); }
.footer-logo span { color: var(--sage); }
.footer-tagline { font-size: 0.78rem; color: rgba(240,237,232,0.25); margin-top: 8px; letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 36px; }
.footer-links a { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,237,232,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy {
  width: 100%; border-top: 1px solid var(--border);
  padding-top: 28px; margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: rgba(240,237,232,0.2); letter-spacing: 0.08em;
}

/* ════════════════════════════════
   TOAST
════════════════════════════════ */
#toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--sage); color: var(--cream);
  padding: 14px 28px; border-radius: 4px;
  font-size: 0.82rem; letter-spacing: 0.05em;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: transform 0.35s ease; z-index: 9999;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════
   MENÚ MOBILE
════════════════════════════════ */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 400; color: var(--cream);
  text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--sage-lt); }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--cream-dim); font-size: 1.4rem; cursor: pointer; }

/* ════════════════════════════════
   ANIMACIONES
════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 20px 28px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  #inicio { padding: 120px 28px 80px; }
  .hero-stats { display: none; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
  .section-wrap { padding: 0 28px; }
  .plans-grid { grid-template-columns: 1fr; }
  .porto-grid { grid-template-columns: 1fr; }
  .porto-item.tall { grid-row: auto; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cf-row { grid-template-columns: 1fr; }
  footer { padding: 40px 28px; }
  .footer-links { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { align-items: flex-start; }
}
