/* ============================================================
   TETL OLLIN — Estilos globales
   Archetype: Editorial Dark Warm (adaptado piedra / náhuatl)
   ============================================================ */

/* —— Variables —— */
:root {
  --bg:        #1a1714;
  --bg-2:      #231e1a;
  --bg-3:      #2e2820;
  --bg-card:   #332c24;
  --cream:     #c8a882;
  --cream-2:   #a08868;
  --cream-3:   #7a6855;
  --accent:    #8c2318;
  --accent-2:  #6b1a10;
  --stone:     #4a433b;
  --line:      rgba(200,168,130,0.12);
  --line-bold: rgba(200,168,130,0.28);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --nav-h:     72px;
  --radius:    4px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* —— Typography —— */
.font-display {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 300;
  font-style: italic;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-style: italic; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); font-style: italic; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { color: var(--cream-2); max-width: 65ch; }

.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-3);
  font-family: 'Inter', sans-serif;
}

em { font-style: italic; color: var(--cream); }

/* —— Layout —— */
.container {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
  position: relative;
}

.section--dark  { background: var(--bg); }
.section--mid   { background: var(--bg-2); }
.section--stone { background: var(--bg-3); }

/* —— Splash —— */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s var(--ease-in), clip-path 0.8s var(--ease-in);
  animation: splashSafety 0.01s 4.5s forwards;
}

@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}

.splash.is-out {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

.splash-logo {
  width: clamp(80px, 15vw, 140px);
  opacity: 0;
  transform: scale(0.88);
  animation: splashLogoIn 0.9s 0.3s var(--ease-out) forwards;
}

@keyframes splashLogoIn {
  to { opacity: 1; transform: scale(1); }
}

.splash-brand {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--cream);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: splashFadeIn 0.7s 0.9s ease forwards;
}

.splash-line {
  width: 40px;
  height: 1px;
  background: var(--line-bold);
  opacity: 0;
  animation: splashFadeIn 0.5s 1.3s ease forwards;
}

@keyframes splashFadeIn {
  to { opacity: 1; }
}

/* —— Navigation —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(26,23,20,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(0.85) sepia(0.3) saturate(0.6);
}

.nav-logo-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-2);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cream);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-active { color: var(--cream); }
.nav-links a.is-active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--line-bold);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-cta:hover {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--cream);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(26,23,20,0.97);
  backdrop-filter: blur(20px);
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
  z-index: 999;
}

.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  font-size: 1.1rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--cream-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--cream); }

/* —— Hero —— */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.6) brightness(0.35);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(140,35,24,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(26,23,20,0.85) 0%, transparent 70%);
  animation: meshPulse 12s ease-in-out infinite;
}

@keyframes meshPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(26,23,20,0.5) 70%, rgba(26,23,20,0.9) 100%),
    linear-gradient(180deg, rgba(26,23,20,0.4) 0%, transparent 30%, transparent 65%, rgba(26,23,20,0.95) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: clamp(4rem, 10vh, 7rem);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

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

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.6); }
}

.hero-title {
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-title em { color: var(--cream); opacity: 0.75; }

.hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--cream-2);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--cream);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: #e8c898;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--line-bold);
  color: var(--cream);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(200,168,130,0.08);
  border-color: var(--cream-2);
  transform: translateY(-2px);
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-split] {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* —— Marquee —— */
.marquee-section {
  padding-block: 1.5rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: 2.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-3);
  white-space: nowrap;
}

.marquee-item::after {
  content: '◆';
  color: var(--accent);
  font-size: 0.45rem;
}

/* —— Section header —— */
.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header h2 {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
}

.section-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

/* —— Manifesto —— */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.manifesto-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--line-bold);
  line-height: 1;
  user-select: none;
}

.manifesto-body p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
  color: var(--cream-2);
  margin-bottom: 1.25rem;
  max-width: 55ch;
  text-align: justify;
}

.manifesto-body p:last-child { margin-bottom: 0; }

.manifesto-body strong { color: var(--cream); font-weight: 600; }

/* —— Featured pieces —— */
.piezas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
}

.pieza-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pieza-card:hover { z-index: 1; }

.pieza-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-3);
}

.pieza-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.7s var(--ease-out), filter 0.5s ease;
  filter: saturate(0.7) brightness(0.85);
}

.pieza-card:hover .pieza-card-img img {
  transform: scale(1.06);
  filter: saturate(0.9) brightness(0.95);
}

.pieza-card-body {
  padding: 1.5rem;
}

.pieza-card-material {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.pieza-card-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.pieza-card-desc {
  font-size: 0.85rem;
  color: var(--cream-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.pieza-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pieza-card-precio {
  font-size: 0.78rem;
  color: var(--cream-3);
  letter-spacing: 0.05em;
}

.pieza-card-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-2);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pieza-card-link::after { content: '→'; }
.pieza-card:hover .pieza-card-link { color: var(--cream); }

/* —— Tilt effect —— */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* —— Servicios teaser (home) —— */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
}

.servicio-item {
  background: var(--bg-2);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.servicio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(140,35,24,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.servicio-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 3rem;
  color: var(--line-bold);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.servicio-item h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
  color: var(--cream);
}

.servicio-item p {
  font-size: 0.95rem;
  color: var(--cream-3);
  margin-bottom: 1.5rem;
}

.servicio-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.servicio-list li {
  font-size: 0.82rem;
  color: var(--cream-3);
  padding-left: 1.2rem;
  position: relative;
}

.servicio-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}

/* —— Valores —— */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5px;
  background: var(--line);
}

.valor-item {
  background: var(--bg-3);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.valor-icono {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.valor-titulo {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.valor-desc {
  font-size: 0.8rem;
  color: var(--cream-3);
  line-height: 1.6;
  max-width: none;
}

/* —— CTA band —— */
.cta-band {
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%, rgba(140,35,24,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1.05rem;
  margin: 0 auto 2.5rem;
  max-width: 48ch;
  text-align: center;
}

/* —— Footer —— */
.footer {
  background: var(--bg-2);
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(0.75) sepia(0.2) saturate(0.5);
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--cream-3);
  max-width: 30ch;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-bold);
  border-radius: 50%;
  color: var(--cream-3);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social a:hover {
  color: var(--bg);
  background: var(--cream);
  border-color: var(--cream);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-col-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--cream-3);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--cream-3);
}

.footer-credit {
  font-size: 0.75rem;
  color: var(--stone);
}

/* —— Portfolio grid (portafolio.html) —— */
.portfolio-hero {
  min-height: 50vh;
  min-height: 50svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 30% 60%, rgba(140,35,24,0.2) 0%, transparent 60%),
    linear-gradient(180deg, rgba(26,23,20,0.3) 0%, var(--bg) 85%);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--line-bold);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-3);
  cursor: pointer;
  background: transparent;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--cream);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--line);
}

.portfolio-item {
  background: var(--bg-card);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}

/* —— Collection badge —— */
.coleccion-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* —— Servicios page —— */
.servicio-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(5rem, 8vw, 8rem);
}

.servicio-full:nth-child(even) .servicio-full-img { order: -1; }

.servicio-full-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
}

.servicio-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) brightness(0.8);
  transition: transform 0.6s var(--ease-out), filter 0.5s ease;
}

.servicio-full-img:hover img {
  transform: scale(1.04);
  filter: saturate(0.85) brightness(0.9);
}

.servicio-full-body h2 {
  margin-bottom: 1rem;
  margin-top: 0.75rem;
}

.servicio-full-body p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.servicio-full-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.servicio-full-list li {
  font-size: 0.9rem;
  color: var(--cream-2);
  padding-left: 1.5rem;
  position: relative;
}

.servicio-full-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.45rem;
  top: 0.45em;
}

/* —— Materiales section —— */
.materiales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--line);
  margin-top: 3rem;
}

.material-item {
  background: var(--bg-3);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.3s ease;
}

.material-item:hover { background: var(--bg-card); }

.material-item h3 {
  font-size: 1rem;
  font-style: normal;
  margin-bottom: 0.5rem;
}

.material-item p {
  font-size: 0.8rem;
  color: var(--cream-3);
  max-width: none;
}

/* —— Contact form —— */
.contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line-bold);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.25s ease, background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cream-3);
  background: var(--bg-card);
}

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

.form-group select option { background: var(--bg-2); }

.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: var(--cream);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease, transform 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.btn-submit:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-submit.is-loading { opacity: 0.7; pointer-events: none; }
.btn-submit.is-sent { background: #2d6a3f; }

.form-success {
  display: none;
  padding: 1.5rem;
  background: rgba(45,106,63,0.15);
  border: 1px solid rgba(45,106,63,0.3);
  border-radius: var(--radius);
  color: #7dbf8d;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-success.is-visible { display: block; }

.contacto-info {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.contacto-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
}

.contacto-info p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dato-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.dato-icono {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.dato-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-bottom: 0.25rem;
}

.dato-value {
  font-size: 0.9rem;
  color: var(--cream-2);
}

/* —— Page transition overlay —— */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 8000;
  transform: translateY(100%);
  pointer-events: none;
}

/* —— Custom cursor —— */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.is-ready { opacity: 1; }

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,130,0.5);
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.is-hover {
  width: 48px;
  height: 48px;
  border-color: var(--cream);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .valores-grid { grid-template-columns: repeat(3, 1fr); }
  .servicios-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }

  .cursor { display: none; }

  .manifesto { grid-template-columns: 1fr; }
  .manifesto-num { font-size: clamp(3rem, 15vw, 5rem); }

  .piezas-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }

  .valores-grid { grid-template-columns: 1fr 1fr; }

  .servicios-grid { grid-template-columns: 1fr; }

  .servicio-full { grid-template-columns: 1fr; }
  .servicio-full:nth-child(even) .servicio-full-img { order: 0; }

  .materiales-grid { grid-template-columns: 1fr 1fr; }

  .contacto-grid { grid-template-columns: 1fr; }
  .contacto-info { position: static; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .piezas-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr; }
  .materiales-grid { grid-template-columns: 1fr; }
}
