/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  background: #1e1e1e;
  color: #f0ede8;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }

/* ===== CURSOR ===== */
.cur, .cur-ring { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cur {
    display: block;
    position: fixed; width: 8px; height: 8px; border-radius: 50%;
    background: #f0ede8; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  .cur-ring {
    display: block;
    position: fixed; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid #f0ede8; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
}

/* ===== TOKENS ===== */
:root {
  --blue: #4a9eff;
  --dark: #1e1e1e;
  --cream: #f0ede8;
  --border: rgba(240,237,232,0.08);
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(30,30,30,0.92); backdrop-filter: blur(20px);
}
.logo {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.1rem; letter-spacing: -0.01em; color: #f0ede8;
}
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-size: 0.8rem; color: rgba(240,237,232,0.5); transition: color 0.2s; }
.nav-links a:hover { color: #f0ede8; }
.nav-cta {
  font-size: 0.8rem; font-weight: 500;
  background: #f0ede8; color: #1e1e1e;
  padding: 0.55rem 1.25rem; border-radius: 6px; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 9rem 3rem 6rem; position: relative; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; opacity: 0.03; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.hero-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: rgba(240,237,232,0.05); pointer-events: none;
}
.hero-inner { max-width: 1300px; margin: 0 auto; width: 100%; }
.hero-label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240,237,232,0.4); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.label-line { width: 30px; height: 1px; background: var(--blue); flex-shrink: 0; }
.hero-h1 {
  font-family: 'Fraunces', serif; font-weight: 800;
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 0.88; letter-spacing: -0.03em;
  margin-bottom: 2.5rem; max-width: 900px; overflow: visible;
}
.hero-h1 .ln { overflow: visible; display: block; }
.hero-h1 .ln span { display: block; }
.hero-h1 em { font-style: italic; color: var(--blue); }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(240,237,232,0.6);
  max-width: 400px; line-height: 1.75; font-weight: 300;
}
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: #f0ede8; color: #1e1e1e;
  padding: 1rem 2.2rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; cursor: none;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.btn-primary:hover { transform: scale(1.04); }
.btn-secondary {
  display: inline-block; background: transparent;
  color: rgba(240,237,232,0.6);
  border: 1px solid rgba(240,237,232,0.15);
  padding: 1rem 2.2rem; border-radius: 6px;
  font-size: 0.85rem; cursor: none; transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: rgba(240,237,232,0.4); }

/* ===== TICKER ===== */
.ticker {
  overflow: hidden; padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ticker-track { display: flex; white-space: nowrap; will-change: transform; }
.ticker-item {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 0.8rem; letter-spacing: 0.06em;
  color: rgba(240,237,232,0.25); padding: 0 2rem; flex-shrink: 0;
}
.ticker-item.hi { color: var(--blue); opacity: 1; }

/* ===== PORTFOLIO ===== */
.portfolio { padding: 7rem 3rem; max-width: 1400px; margin: 0 auto; }
.sec-label {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(240,237,232,0.4); margin-bottom: 1rem;
}
.sec-title {
  font-family: 'Fraunces', serif; font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 3.5rem; overflow: visible;
}
.sec-title em { font-style: italic; }
.port-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 320px 240px;
  gap: 8px;
}
.port-item {
  border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid rgba(240,237,232,0.08);
  transition: border-color 0.3s; cursor: none;
}
.port-item:hover { border-color: rgba(240,237,232,0.2); }
.port-item.tall { grid-row: span 2; }
.port-bg {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.8s cubic-bezier(.25,.46,.45,.94);
}
.port-item:hover .port-bg { transform: scale(1.05); }
.port-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.88) 0%, rgba(20,20,20,0.1) 60%, transparent 100%);
}
.port-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
.port-tag {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(240,237,232,0.5); margin-bottom: 4px;
}
.port-name {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.15rem; letter-spacing: -0.01em;
}
.port-link-btn {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(240,237,232,0.15);
  padding: 0.4rem 0.9rem; border-radius: 100px;
  font-size: 0.65rem; color: rgba(240,237,232,0.7);
  opacity: 0; transform: translateY(-6px); transition: all 0.3s;
}
.port-item:hover .port-link-btn { opacity: 1; transform: none; }

/* ===== SERVICIOS ===== */
.servicios {
  padding: 7rem 3rem;
  border-top: 1px solid var(--border);
  max-width: 1400px; margin: 0 auto;
}
.serv-grid-new {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(240,237,232,0.06);
  margin-top: 3.5rem;
}
.serv-card {
  background: #1e1e1e; padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: background 0.2s;
}
.serv-card:hover { background: #262626; }
.serv-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.serv-ico { font-size: 1.5rem; line-height: 1; }
.serv-card-num {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 2rem; font-weight: 300;
  color: rgba(240,237,232,0.06); line-height: 1;
}
.serv-card-name {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.1rem; letter-spacing: -0.01em; color: #f0ede8;
}
.serv-card-desc {
  font-size: 0.82rem; color: rgba(240,237,232,0.5); line-height: 1.65;
}
.serv-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.4rem;
}
.serv-list li {
  font-size: 0.78rem; color: rgba(240,237,232,0.35);
  padding-left: 1rem; position: relative;
}
.serv-list li::before {
  content: '✦'; position: absolute; left: 0;
  color: var(--blue); font-size: 0.55rem; top: 0.15rem;
}
.serv-card-price {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.1rem; font-weight: 300;
  color: var(--blue); margin-top: auto; padding-top: 1rem;
  border-top: 1px solid rgba(240,237,232,0.06);
}

/* ===== PROCESO ===== */
.proceso {
  padding: 7rem 3rem;
  border-top: 1px solid var(--border);
  max-width: 1300px; margin: 0 auto;
}
.proc-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(240,237,232,0.06);
  margin-top: 3.5rem;
}
.proc-step {
  background: #1e1e1e; padding: 2.5rem 2rem;
  transition: background 0.2s;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.proc-step:hover { background: #262626; }
.step-n {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 2.5rem; font-weight: 300;
  color: rgba(240,237,232,0.08); line-height: 1;
}
.step-name {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1rem; letter-spacing: -0.01em;
}
.step-desc { font-size: 0.82rem; color: rgba(240,237,232,0.55); line-height: 1.65; }

/* ===== CONTACTO ===== */
.contacto {
  padding: 7rem 3rem;
  border-top: 1px solid var(--border);
  max-width: 1300px; margin: 0 auto;
}
.contacto-inner {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 6rem; align-items: start;
}
.contacto-sub {
  font-size: 0.95rem; color: rgba(240,237,232,0.5);
  line-height: 1.7; margin-top: 1rem; margin-bottom: 2rem;
  max-width: 320px;
}
.contacto-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contacto-info-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; color: rgba(240,237,232,0.4);
}
.info-ico { color: var(--blue); }
.contacto-right {
  background: rgba(240,237,232,0.03);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem;
}
.form-group {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(240,237,232,0.4);
}
.form-group input,
.form-group textarea {
  background: rgba(240,237,232,0.05);
  border: 1px solid rgba(240,237,232,0.1);
  border-radius: 6px; padding: 0.85rem 1rem;
  color: #f0ede8; font-family: 'Inter', sans-serif;
  font-size: 0.9rem; outline: none;
  transition: border-color 0.2s; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(74,158,255,0.5); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(240,237,232,0.2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-form {
  width: 100%; padding: 1rem;
  background: #f0ede8; color: #1e1e1e;
  border: none; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.btn-form:hover { transform: scale(1.02); }
.btn-form:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-success {
  margin-top: 1rem; padding: 0.85rem 1rem;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 6px; font-size: 0.85rem;
  color: var(--blue); text-align: center;
}
.form-error {
  margin-top: 1rem; padding: 0.85rem 1rem;
  background: rgba(255,100,100,0.08);
  border: 1px solid rgba(255,100,100,0.2);
  border-radius: 6px; font-size: 0.85rem;
  color: #ff6464; text-align: center;
}

/* ===== CTA ===== */
.cta {
  padding: 8rem 3rem; text-align: center;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: var(--blue); filter: blur(120px); opacity: 0.06; pointer-events: none;
}
.cta-h2 {
  font-family: 'Fraunces', serif; font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 1.5rem; position: relative; z-index: 1; overflow: visible;
}
.cta-h2 em { font-style: italic; color: var(--blue); }
.cta-sub {
  font-size: 1rem; color: rgba(240,237,232,0.55);
  margin-bottom: 2.5rem; position: relative; z-index: 1;
}
.cta-btns { display: flex; gap: 10px; justify-content: center; position: relative; z-index: 1; }

/* ===== FOOTER ===== */
footer {
  padding: 2rem 3rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1rem; letter-spacing: -0.01em;
  color: rgba(240,237,232,0.4);
}
footer p { font-size: 0.72rem; color: rgba(240,237,232,0.3); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.72rem; color: rgba(240,237,232,0.35); transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .hero, .portfolio, .servicios, .proceso, .contacto, .cta { padding: 4rem 1.5rem; }
  .hero { padding-top: 7rem; }
  .hero-h1 { font-size: clamp(3rem, 10vw, 5rem); }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .port-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .port-item.tall { grid-row: span 1; }
  .port-bg { min-height: 200px; }
  .serv-grid-new { grid-template-columns: 1fr 1fr; }
  .proc-steps { grid-template-columns: 1fr 1fr; }
  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .port-grid { grid-template-columns: 1fr; }
  .proc-steps { grid-template-columns: 1fr; }
  .serv-grid-new { grid-template-columns: 1fr; }
}