/* ── MURA LAB STUDIO — pages.css ───────────────────────────────────────────
   Page-specific styles: home, terms, project.
   Loaded alongside global.css on every page.
   ─────────────────────────────────────────────────────────────────────────── */

/* ══ HOME — HERO ══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 5vw, 52px) 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(172,234,233,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(140,142,141,.05) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(172,234,233,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172,234,233,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-m {
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 380px;
  opacity: .12;
  animation: floatM 8s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatM {
  0%,100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-52%) translateX(-12px); }
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: fadeUp .7s .2s forwards;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--teal); }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 300; line-height: .9;
  letter-spacing: -.02em; color: var(--white);
  max-width: 700px;
  opacity: 0; animation: fadeUp .8s .4s forwards;
}
.hero-h1 em { font-style: italic; color: var(--teal); }
.hero-sub {
  margin-top: 36px; font-size: 15px; line-height: 1.75;
  color: var(--slate); max-width: 440px; font-weight: 300;
  opacity: 0; animation: fadeUp .8s .6s forwards;
}
.hero-actions {
  margin-top: 52px; display: flex; gap: 20px; align-items: center;
  opacity: 0; animation: fadeUp .8s .8s forwards;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: clamp(20px, 5vw, 52px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; color: var(--slate); text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--teal));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ══ HOME — SERVICES ══════════════════════════════════════════════════════ */
#servicios { background: var(--dark2); }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; margin-top: 64px;
  background: rgba(172,234,233,.08);
}
.service-card {
  background: var(--dark2); padding: 44px 36px;
  transition: background .3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%;
  height: 2px; background: var(--teal); transition: right .4s;
}
.service-card:hover { background: rgba(172,234,233,.04); }
.service-card:hover::before { right: 0; }
.service-num { font-family: var(--font-mono); font-size: 11px; color: var(--teal); letter-spacing: .2em; margin-bottom: 24px; opacity: .7; }
.service-icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--teal); }
.service-name { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--white); margin-bottom: 14px; line-height: 1.2; }
.service-desc { font-size: 13.5px; line-height: 1.7; color: var(--slate); font-weight: 300; }

/* ══ HOME — PROCESS ═══════════════════════════════════════════════════════ */
#proceso { background: var(--dark); position: relative; }
.process-line { position: absolute; top: 258px; left: clamp(20px, 5vw, 52px); right: clamp(20px, 5vw, 52px); height: 1px; background: rgba(172,234,233,.1); }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; margin-top: 80px; position: relative; }
.step { display: flex; flex-direction: column; padding-top: 40px; position: relative; }
.step-dot { position: absolute; top: -6px; left: 0; width: 13px; height: 13px; border: 2px solid var(--teal); border-radius: 50%; background: var(--dark); transition: background .3s; }
.step:hover .step-dot { background: var(--teal); }
.step-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--teal); margin-bottom: 16px; }
.step-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--white); margin-bottom: 12px; }
.step-text { font-size: 13px; line-height: 1.7; color: var(--slate); font-weight: 300; }

/* ══ HOME — PORTFOLIO ═════════════════════════════════════════════════════ */
#portfolio { background: var(--dark2); }
.portfolio-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; margin-top: 60px; }
.portfolio-item { position: relative; overflow: hidden; background: var(--dark); cursor: none; }
.portfolio-item:first-child { grid-row: 1/3; }
.portfolio-img { width: 100%; height: 100%; min-height: 240px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pi-1{background:linear-gradient(135deg,#1a3a3a,#0d2626);}
.pi-2{background:linear-gradient(135deg,#2a2e2d,#1a1e1e);}
.pi-3{background:linear-gradient(135deg,#1e3030,#152222);}
.pi-4{background:linear-gradient(135deg,#252928,#181c1b);}
.pi-5{background:linear-gradient(135deg,#1c3232,#111e1e);}
.pi-deco { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .25; }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(30,32,32,.88); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; opacity: 0; transition: opacity .35s; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--teal); text-transform: uppercase; margin-bottom: 6px; }
.portfolio-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--white); }
.portfolio-name a { color: inherit; text-decoration: none; cursor: none; }
.portfolio-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); text-decoration: none; transition: gap .2s; cursor: none; }
.portfolio-link:hover { gap: 14px; }

/* ══ HOME — PRICING ═══════════════════════════════════════════════════════ */
#precios { background: var(--dark); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 64px; }
.price-card { padding: 44px 36px; border: 1px solid rgba(172,234,233,.1); position: relative; transition: border-color .3s, transform .3s; overflow: hidden; }
.price-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .4s; }
.price-card:hover { border-color: rgba(172,234,233,.25); transform: translateY(-4px); }
.price-card:hover::before { transform: scaleX(1); }
.price-card.featured { border-color: var(--teal); background: rgba(172,234,233,.04); }
.price-card.featured::before { transform: scaleX(1); }
.price-badge { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--dark); background: var(--teal); padding: 4px 10px; }
.price-plan { font-family: var(--font-mono); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; }
.price-amount { font-family: var(--font-display); font-size: 56px; font-weight: 300; color: var(--white); line-height: 1; margin-bottom: 6px; }
.price-amount span { font-size: 22px; vertical-align: top; margin-top: 10px; display: inline-block; color: var(--teal); }
.price-note { font-size: 12px; color: var(--slate); margin-bottom: 32px; }
.price-divider { height: 1px; background: rgba(172,234,233,.1); margin: 24px 0; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.price-features li { font-size: 13.5px; color: var(--slate); display: flex; align-items: flex-start; gap: 10px; font-weight: 300; line-height: 1.4; }
.price-features li::before { content: '—'; color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.price-cta { margin-top: 36px; display: block; text-align: center; padding: 13px; border: 1px solid rgba(172,234,233,.3); color: var(--teal); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .25s, border-color .25s; cursor: none; }
.price-card.featured .price-cta { background: var(--teal); color: var(--dark); border-color: var(--teal); font-weight: 500; }
.price-cta:hover { background: var(--teal); color: var(--dark); border-color: var(--teal); }

/* ══ HOME — ABOUT ═════════════════════════════════════════════════════════ */
#nosotros { background: var(--dark2); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-right { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(172,234,233,.06); }
.stat-block { background: var(--dark2); padding: 40px 32px; transition: background .3s; }
.stat-block:hover { background: rgba(172,234,233,.05); }
.stat-num { font-family: var(--font-display); font-size: 58px; font-weight: 300; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 12px; color: var(--slate); letter-spacing: .05em; line-height: 1.5; font-weight: 300; }
.about-text { font-size: 15px; line-height: 1.85; color: var(--slate); font-weight: 300; margin-top: 28px; }
.about-highlight { margin-top: 36px; padding-left: 20px; border-left: 2px solid var(--teal); }
.about-highlight p { font-family: var(--font-display); font-size: 20px; font-weight: 300; font-style: italic; color: var(--white); line-height: 1.5; }

/* ══ HOME — CONTACT ═══════════════════════════════════════════════════════ */
#contacto { background: var(--dark); text-align: center; padding: 120px clamp(20px, 5vw, 52px); }
.contact-wrap { max-width: 600px; margin: 0 auto; }
.contact-subtitle { margin-top: 24px; font-size: 15px; color: var(--slate); line-height: 1.7; font-weight: 300; }
.contact-form { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input, .form-textarea { background: rgba(172,234,233,.04); border: 1px solid rgba(172,234,233,.12); padding: 15px 20px; color: var(--white); font-family: var(--font-body); font-size: 14px; font-weight: 300; outline: none; transition: border-color .25s, background .25s; width: 100%; resize: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--teal); background: rgba(172,234,233,.06); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--slate); font-weight: 300; }
.form-textarea { height: 130px; }
.form-submit { padding: 16px 48px; background: var(--teal); color: var(--dark); font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border: none; cursor: none; transition: background .2s, transform .2s; align-self: center; margin-top: 8px; }
.form-submit:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ══ TERMS PAGE ════════════════════════════════════════════════════════════ */
.terms-hero { padding: 160px clamp(20px, 5vw, 52px) 80px; background: var(--dark2); border-bottom: 1px solid rgba(172,234,233,.08); }
.terms-h1 { font-family: var(--font-display); font-size: clamp(42px,5vw,72px); font-weight: 300; line-height: 1; color: var(--white); }
.terms-h1 em { font-style: italic; color: var(--teal); }
.terms-meta { margin-top: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--slate); letter-spacing: .1em; }
.terms-body { max-width: 820px; margin: 0 auto; padding: 80px clamp(20px, 5vw, 52px) 100px; }
.terms-toc { background: rgba(172,234,233,.04); border: 1px solid rgba(172,234,233,.1); padding: 32px 36px; margin-bottom: 64px; }
.terms-toc h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; }
.terms-toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.terms-toc li a { font-size: 13px; color: var(--slate-light); text-decoration: none; transition: color .2s; cursor: none; }
.terms-toc li a:hover { color: var(--teal); }
.terms-section { margin-bottom: 60px; }
.terms-section h2 { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--white); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(172,234,233,.1); }
.terms-section p { font-size: 14px; line-height: 1.85; color: var(--slate); font-weight: 300; margin-bottom: 16px; }
.terms-section ul { padding-left: 0; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.terms-section ul li { font-size: 14px; line-height: 1.7; color: var(--slate); font-weight: 300; padding-left: 20px; position: relative; }
.terms-section ul li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }
.terms-section strong { color: var(--slate-light); font-weight: 500; }
.terms-highlight { background: rgba(172,234,233,.04); border-left: 2px solid var(--teal); padding: 20px 24px; margin: 24px 0; }
.terms-highlight p { margin: 0; font-size: 13.5px; }

/* ══ PROJECT PAGES ═════════════════════════════════════════════════════════ */
.proj-hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(20px, 5vw, 52px) 72px; position: relative; overflow: hidden; }
.proj-hero-bg { position: absolute; inset: 0; }
.proj-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,32,32,.95) 0%, rgba(30,32,32,.4) 60%, transparent 100%); }
.proj-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(172,234,233,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(172,234,233,.04) 1px,transparent 1px); background-size: 60px 60px; }
.proj-back { position: absolute; top: 110px; left: clamp(20px, 5vw, 52px); display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); text-decoration: none; transition: gap .2s; cursor: none; }
.proj-back:hover { gap: 16px; }
.proj-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.proj-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(172,234,233,.3); padding: 5px 12px; }
.proj-h1 { font-family: var(--font-display); font-size: clamp(52px,6vw,96px); font-weight: 300; line-height: .95; color: var(--white); }
.proj-h1 em { font-style: italic; color: var(--teal); }
.proj-meta { display: flex; gap: 48px; margin-top: 36px; flex-wrap: wrap; }
.proj-meta-item label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 6px; }
.proj-meta-item span { font-size: 14px; color: var(--white); font-weight: 300; }
.proj-body { padding: 80px clamp(20px, 5vw, 52px) 100px; max-width: 1100px; margin: 0 auto; }
.proj-intro { font-family: var(--font-display); font-size: clamp(20px,2.2vw,28px); font-weight: 300; font-style: italic; color: var(--slate-light); line-height: 1.5; margin-bottom: 64px; border-left: 2px solid var(--teal); padding-left: 28px; }
.proj-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 72px; align-items: start; }
.proj-2col.rev { direction: rtl; }
.proj-2col.rev > * { direction: ltr; }
.proj-section-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.proj-h2 { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--white); margin-bottom: 20px; }
.proj-p { font-size: 14px; line-height: 1.85; color: var(--slate); font-weight: 300; margin-bottom: 14px; }
.proj-ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.proj-ul li { font-size: 13.5px; color: var(--slate); display: flex; align-items: flex-start; gap: 10px; font-weight: 300; }
.proj-ul li::before { content: '—'; color: var(--teal); flex-shrink: 0; }
.proj-screen { width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.proj-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: rgba(172,234,233,.06); margin: 72px 0; }
.proj-stat { background: var(--dark2); padding: 40px 32px; text-align: center; }
.proj-stat-num { font-family: var(--font-display); font-size: 52px; font-weight: 300; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.proj-stat-label { font-size: 12px; color: var(--slate); letter-spacing: .05em; }
.proj-tech { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.proj-tech span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(172,234,233,.2); padding: 6px 14px; }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 80px; }
.proj-nav-item { background: var(--dark2); padding: 36px 40px; text-decoration: none; transition: background .3s; display: flex; flex-direction: column; gap: 8px; cursor: none; }
.proj-nav-item:hover { background: rgba(172,234,233,.06); }
.proj-nav-item label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.proj-nav-item span { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--white); }

/* ══ RESPONSIVE — pages ═══════════════════════════════════════════════════ */

/*
  Fluid horizontal padding:
  clamp(20px, 5vw, 52px)
  → 20px on very small screens, scales with viewport, caps at 52px on desktop.
  Applied to all sections and wrappers so nothing ever hugs the edge.
*/
section {
  padding-left:  clamp(20px, 5vw, 52px);
  padding-right: clamp(20px, 5vw, 52px);
}
#contacto      { padding-left: clamp(20px, 5vw, 52px); padding-right: clamp(20px, 5vw, 52px); }
.terms-hero    { padding-left: clamp(20px, 5vw, 52px); padding-right: clamp(20px, 5vw, 52px); }
.terms-body    { padding-left: clamp(20px, 5vw, 52px); padding-right: clamp(20px, 5vw, 52px); }
.proj-hero     { padding-left: clamp(20px, 5vw, 52px); padding-right: clamp(20px, 5vw, 52px); }
.proj-body     { padding-left: clamp(20px, 5vw, 52px); padding-right: clamp(20px, 5vw, 52px); }
.proj-back     { left: clamp(20px, 5vw, 52px); }
.process-line  { left: clamp(20px, 5vw, 52px); right: clamp(20px, 5vw, 52px); }

/* ── 1024px: start collapsing grids ── */
@media (max-width: 1024px) {
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-line  { display: none; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item:first-child { grid-row: auto; }
}

/* ── 768px: single column layouts ── */
@media (max-width: 768px) {
  section { padding-top: 64px; padding-bottom: 64px; }
  #hero   { padding-top: 96px; padding-bottom: 56px; }
  .hero-m { display: none; }
  .hero-scroll { display: none; }

  .services-grid  { grid-template-columns: 1fr 1fr; }
  .process-steps  { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  #nosotros       { grid-template-columns: 1fr; gap: 40px; }

  .proj-2col      { grid-template-columns: 1fr; gap: 36px; }
  .proj-2col.rev  { direction: ltr; }
  .proj-stats     { grid-template-columns: 1fr 1fr; }
  .proj-nav       { grid-template-columns: 1fr; }

  .terms-body     { padding-top: 56px; padding-bottom: 72px; }
}

/* ── 480px: go fully single column ── */
@media (max-width: 480px) {
  .services-grid  { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .about-right    { grid-template-columns: 1fr 1fr; }
  .proj-stats     { grid-template-columns: 1fr; }
  .hero-h1        { font-size: clamp(48px, 14vw, 80px); }
}
