/* ============================================
   M&S CAPTURA — Editorial Studio · v5.0
   Bulletproof grid · Contained logo · Refined pricing
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Tenor+Sans&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F5F0;
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --muted: #707070;
  --muted-light: #B8B8B8;
  --line: #E5E2DC;
  --accent: #F2B705;

  --font: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-display: 'Tenor Sans', 'Cormorant Garamond', serif;

  --max: 1380px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --t-fast: 280ms cubic-bezier(.4,0,.2,1);
  --t-med: 600ms cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

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

::selection { background: var(--ink); color: var(--accent); }

/* ===== TYPE ===== */
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

h1 { font-size: clamp(3.5rem, 11vw, 10rem); }
h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

em, .it { font-style: italic; font-weight: 300; }

.label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.label .acc { color: var(--accent); margin-right: 0.5rem; font-style: normal; }

/* ===== NAV — fixed height, contained logo ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: height 0.35s ease, background var(--t-fast), border-color var(--t-fast);
}

.nav.scrolled {
  height: 56px;
  border-bottom-color: var(--line);
  background: rgba(255,255,255,0.96);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.nav-logo img {
  display: block;
  height: 30px !important;
  width: auto !important;
  max-width: 150px !important;
  max-height: 30px !important;
  object-fit: contain;
  object-position: left center;
  transition: height 0.35s ease, max-height 0.35s ease;
}

.nav.scrolled .nav-logo img {
  height: 26px !important;
  max-height: 26px !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
}

.nav-menu a {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--t-fast);
  overflow: hidden;
}

.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(.7,0,.3,1);
}

/* Hide nav numbers globally — cleaner editorial look */
.nav-menu a .num { display: none !important; }

.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta).active::after {
  transform: translateX(0);
}

.nav-menu a.active::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 999px;
  font-size: 0.72rem !important;
  transition: background var(--t-fast), transform var(--t-fast);
}

.nav-cta:hover { background: #000; transform: translateY(-1px); }
.nav-cta svg { width: 12px; height: 12px; fill: currentColor; }

.nav-burger {
  display: none;
  width: 28px; height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 120;
}
.nav-burger span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s cubic-bezier(.7,0,.3,1), opacity var(--t-fast), top 0.4s cubic-bezier(.7,0,.3,1);
}
.nav-burger span:nth-child(1) { top: 5px; }
.nav-burger span:nth-child(2) { top: 16px; width: 70%; right: 0; left: auto; }
.nav-burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 10px; transform: rotate(-45deg); width: 100%; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 6rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.55) contrast(1.1);
  opacity: 0;
  transition: opacity 1.8s ease, transform 12s ease;
  transform: scale(1.05);
}

.hero-bg img.loaded {
  opacity: 1;
  transform: scale(1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-title {
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 14ch;
  color: #fff;
}

.hero-title em { display: inline-block; font-weight: 300; color: var(--accent); }

.hero-sub {
  margin-top: 1.6rem;
  max-width: 38ch;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-scroll .line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: lineSlide 2.4s infinite ease-in-out;
}
@keyframes lineSlide {
  0%, 100% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
}

/* ===== ABOUT ===== */
.about {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-grid .label { margin-bottom: 1rem; display: block; }

.about-title { font-size: clamp(1.85rem, 4vw, 3.3rem); }

.about-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 56ch;
}

.about-text p + p { margin-top: 0.85rem; }

.about-text .lead {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.about-credit {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.credit-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  flex-wrap: wrap;
}

.credit-row .role { color: var(--muted); font-style: italic; }
.credit-row .sep { color: var(--muted-light); }
.credit-row .name { color: var(--ink); font-weight: 500; }

/* ===== NUESTRA HISTORIA ===== */
.story {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.story-image {
  position: sticky;
  top: 90px;
}

.story-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-soft);
}

.story-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--bg-soft) 30%, #EEEAE2 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  z-index: 0;
}

.story-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.04);
  transition: filter 800ms cubic-bezier(.22,.61,.36,1), transform 1.4s cubic-bezier(.22,.61,.36,1);
}

.story-image-wrap:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* Decorative corner marks */
.story-image-wrap::after {
  content: '';
  position: absolute;
  top: 14px; left: 14px;
  width: 24px; height: 24px;
  border-top: 1px solid rgba(255,255,255,0.5);
  border-left: 1px solid rgba(255,255,255,0.5);
  z-index: 2;
  pointer-events: none;
}

.story-caption {
  margin-top: 1.2rem;
  text-align: center;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.story-caption em {
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
}

.story-caption br + * {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-text {
  padding-top: 0.5rem;
}

.story-text .label { display: block; margin-bottom: 1rem; }

.story-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin-bottom: 2rem;
}

.story-title em { color: var(--ink); }

.story-text p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.1rem;
  max-width: 56ch;
}

.story-text p strong {
  font-weight: 600;
  color: var(--ink);
}

.story-text .story-lead {
  font-family: var(--font);
  font-style: italic;
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
}

.story-text .story-closing {
  font-family: var(--font);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.story-text .story-closing em {
  font-style: italic;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 65%, var(--accent-soft, #FCE9A8) 65%, var(--accent-soft, #FCE9A8) 95%, transparent 95%);
  padding: 0 0.15em;
}

/* Stats */
.story-stats {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.stat-num {
  font-family: var(--font);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-num::first-letter {
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .story-image {
    position: relative;
    top: auto;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .story-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .story-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .stat {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .stat-num { font-size: 2rem; }
}

/* ===== VIDEO HIGHLIGHTS ===== */
.videos {
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--line);
}

.videos-head {
  max-width: var(--max);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.videos-head .label {
  color: var(--muted-light);
  display: inline-block;
  margin-bottom: 0.9rem;
}

.videos-head .label .acc { color: var(--accent); }

.videos-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  max-width: 20ch;
  margin: 0 auto;
  color: var(--bg);
}

.videos-head h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.videos-sub {
  margin-top: 1rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.videos-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
}

.video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #1a1a1a 30%, #2a2a2a 50%, #1a1a1a 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  z-index: 0;
}

.video-frame:hover { transform: translateY(-3px); }

.video-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%) contrast(1.05) brightness(0.85);
  transition: filter 800ms cubic-bezier(.22,.61,.36,1), transform 1.4s cubic-bezier(.22,.61,.36,1);
}

.video-frame:hover .video-thumb {
  filter: grayscale(0%) brightness(0.95);
  transform: scale(1.04);
}

.video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.video-frame:hover::after { opacity: 0.4; }

.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(54px, 7vw, 72px);
  height: clamp(54px, 7vw, 72px);
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), background 0.3s ease;
}

.video-play svg {
  width: 40%;
  height: 40%;
  fill: var(--ink);
  margin-left: 3px;
}

.video-frame:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #FFFFFF;
}

.video-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 2px solid var(--accent);
}

.video-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0 0.2rem;
}

.video-num {
  font-family: var(--font);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
}

/* Active state: iframe replaces the frame contents */
.video-frame.active {
  cursor: default;
}

.video-frame.active::before,
.video-frame.active::after,
.video-frame.active .video-thumb,
.video-frame.active .video-play,
.video-frame.active .video-tag {
  display: none;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 4;
}

.videos-note {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .videos { padding: clamp(2.5rem, 7vw, 4rem) var(--gutter); }
  .videos-head { margin-bottom: 2rem; }
  .videos-head h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .videos-sub { font-size: 0.98rem; margin-top: 0.7rem; }
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    max-width: 100%;
  }
  .video-card { gap: 0.6rem; }
  .video-play {
    width: 58px !important;
    height: 58px !important;
  }
  .video-play svg { width: 38%; height: 38%; }
  .video-tag {
    bottom: 10px;
    left: 10px;
    font-size: 0.56rem;
    letter-spacing: 0.26em;
    padding: 0.3rem 0.55rem;
  }
  .video-num { font-size: 0.88rem; }
  .videos-note { margin-top: 1.6rem; font-size: 0.88rem; }
}

@media (max-width: 560px) {
  .videos { padding: 2.2rem 0.9rem; }
  .videos-head { margin-bottom: 1.6rem; padding: 0 0.4rem; }
  .videos-head h2 { font-size: 1.85rem; max-width: 16ch; line-height: 1.05; }
  .videos-head .label { font-size: 0.62rem; letter-spacing: 0.28em; margin-bottom: 0.7rem; }
  .videos-sub { font-size: 0.92rem; }
  .videos-grid { gap: 1.2rem; }
  .video-frame { border-radius: 0; }
  .video-play {
    width: 52px !important;
    height: 52px !important;
  }
  .video-meta { padding: 0 0.3rem; }
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--bg);
}

.portfolio-head {
  max-width: var(--max);
  margin: 0 auto 1.8rem;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.portfolio-head h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  max-width: 16ch;
  margin-top: 0.5rem;
}

.portfolio-head h2 em { color: var(--accent); }
.portfolio-head .label { color: var(--muted-light); }

.portfolio-head .head-meta {
  font-style: italic;
  color: var(--muted-light);
  font-size: 0.95rem;
  max-width: 28ch;
  text-align: right;
}

/* ============================================
   GRID — Mobile first, FORCED with !important
   2 cols mobile, 3 tablet, 4 desktop
   ============================================ */
.portfolio-grid,
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (min-width: 640px) {
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}

.p-item,
.g-item {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 4 / 5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1);
  width: 100%;
}

.g-item { background: var(--bg-soft); }

.p-item.reveal,
.g-item.reveal { opacity: 1; transform: translateY(0); }

.p-item::before,
.g-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #1a1a1a 30%, #2a2a2a 50%, #1a1a1a 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  z-index: 0;
}

.g-item::before {
  background: linear-gradient(110deg, var(--bg-soft) 30%, #EEEAE2 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.p-item img,
.g-item img {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 800ms cubic-bezier(.22,.61,.36,1), transform 1.4s cubic-bezier(.22,.61,.36,1), opacity 600ms ease;
  opacity: 0;
  max-width: none;
}

.p-item img.loaded,
.g-item img.loaded { opacity: 1; }

.p-item:hover img,
.g-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.06);
}

.p-item::after {
  content: attr(data-num);
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--font);
  font-style: italic;
  font-size: 0.9rem;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.p-item:hover::after { opacity: 1; transform: translateY(0); }

/* ===== SECTION CARDS ===== */
.sections {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  background: var(--bg);
}

.sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.cat-card {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink);
}

.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.5);
  transition: filter var(--t-med), transform 1.6s cubic-bezier(.22,.61,.36,1);
}

.cat-card:hover img { filter: grayscale(0%) brightness(0.75); transform: scale(1.06); }

.cat-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  color: var(--bg);
  pointer-events: none;
}

.cat-label .it {
  font-style: italic;
  font-weight: 300;
  opacity: 0.75;
  font-size: 0.95rem;
}

.cat-name {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 400;
}

.cat-go {
  align-self: flex-end;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cat-go::after {
  content: '→';
  transition: transform var(--t-fast);
}

.cat-card:hover .cat-go::after { transform: translateX(6px); }

/* ============================================
   PRICING — Refined editorial, NO Wix icons
   ============================================ */
.pricing {
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.pricing-head {
  max-width: var(--max);
  margin: 0 auto 3rem;
  text-align: center;
}

.pricing-head .label { display: inline-block; margin-bottom: 0.8rem; }

.pricing-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.pricing-head h2 em { color: var(--ink); }

.pricing-head .head-sub {
  font-style: italic;
  color: var(--muted);
  margin-top: 0.8rem;
  font-size: 1.1rem;
}

.pricing-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg);
  padding: 2.4rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.18);
}

/* Top accent line per tier */
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.pricing-card:nth-child(2)::before { background: #D4AF37; }   /* Oro */
.pricing-card:nth-child(3)::before { background: #B5B5B5; }   /* Plata */
.pricing-card:nth-child(4)::before { background: #B87333; }   /* Bronce */

/* Featured (Diamante) */
.pricing-card.feat {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.pricing-card.feat::before { background: var(--accent); }

.pricing-card .p-badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-family: var(--font);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted-light);
}

.pricing-card.feat .p-badge { color: var(--accent); }

.p-tier {
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pricing-card.feat .p-tier { color: rgba(255,255,255,0.55); }

.p-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.p-tagline {
  font-family: var(--font);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.pricing-card.feat .p-tagline {
  color: rgba(255,255,255,0.55);
  border-bottom-color: rgba(255,255,255,0.12);
}

.p-block { margin-bottom: 1.4rem; }
.p-block:last-of-type { margin-bottom: 1.8rem; }

/* Block title: just typography, no icons */
.b-title {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.b-title::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.pricing-card.feat .b-title { color: rgba(255,255,255,0.9); }

.p-list { list-style: none; }

.p-list li {
  font-family: var(--font);
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding: 0.28rem 0 0.28rem 0.9rem;
  position: relative;
  line-height: 1.45;
}

.pricing-card.feat .p-list li { color: rgba(255,255,255,0.82); }

.p-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.78rem;
  width: 4px; height: 1px;
  background: var(--accent);
}

.p-list .opt {
  font-style: italic;
  color: var(--muted);
  padding-left: 0;
  margin: 0.4rem 0;
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.p-list .opt::before { display: none; }

.pricing-card.feat .p-list .opt { color: var(--muted-light); }

.p-cta {
  font-family: var(--font-display);
  display: inline-block;
  margin-top: auto;
  padding: 0.95rem 1.4rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 999px;
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.pricing-card.feat .p-cta { background: var(--accent); color: var(--ink); }
.p-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.pricing-note {
  max-width: var(--max);
  margin: 2rem auto 0;
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
  background: var(--ink);
  color: var(--bg);
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact .label { color: var(--muted-light); }
.contact .label .acc { color: var(--accent); }

.contact h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
  margin-top: 1rem;
  line-height: 1;
}

.contact h2 em { color: var(--accent); }

.contact-text {
  margin-top: 1.3rem;
  max-width: 40ch;
  color: rgba(255,255,255,0.7);
  font-size: 1.06rem;
  font-style: italic;
  font-weight: 300;
}

.contact-info { margin-top: 1.8rem; display: grid; gap: 1rem; }

.ci-item .lbl {
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.3rem;
}

.ci-item .val { font-size: 1.3rem; color: var(--bg); word-break: break-word; }
.ci-item .val a:hover { color: var(--accent); }

.contact-socials { margin-top: 1.4rem; display: flex; gap: 0.7rem; }

.contact-socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.contact-socials a:hover { background: var(--accent); border-color: var(--accent); }
.contact-socials a:hover svg { fill: var(--ink); }
.contact-socials svg { width: 15px; height: 15px; fill: var(--bg); transition: fill var(--t-fast); }

.contact-form { padding-top: 1.8rem; }

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

.form-field {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.9rem 0 0.6rem;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.4rem;
}

.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bg);
  font-family: var(--font);
  font-size: 1.12rem;
  padding: 0.25rem 0;
}

.form-field input::placeholder, .form-field textarea::placeholder {
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.form-field select option { background: var(--ink); color: var(--bg); }
.form-field textarea { resize: vertical; min-height: 60px; font-style: italic; }

.form-submit {
  font-family: var(--font-display);
  margin-top: 1.6rem;
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: opacity var(--t-fast);
}

.form-submit:hover { opacity: 0.9; }

.form-status {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255,255,255,0.6);
  min-height: 1.2em;
  transition: color var(--t-fast);
}

.form-status.ok { color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  padding: 2.2rem var(--gutter) 1.4rem;
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 32px !important;
  max-height: 32px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
}

.footer-tagline {
  font-style: italic;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 1.3rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ===== FLOATING WHATSAPP ===== */
.float-whats {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 52px; height: 52px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 90;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.45);
  transition: background var(--t-fast), transform var(--t-fast);
}

.float-whats:hover { background: var(--accent); color: var(--ink); transform: scale(1.06); }
.float-whats svg { width: 22px; height: 22px; fill: currentColor; }

.float-whats::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: 0.3;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===== SUBPAGE HERO ===== */
.subhero { padding: 7rem var(--gutter) 2.5rem; text-align: center; }
.subhero .label { display: block; margin-bottom: 1.2rem; }
.subhero h1 { font-size: clamp(3rem, 9vw, 7.5rem); margin-bottom: 0.8rem; }
.subhero h1 em { color: var(--ink); }
.subhero p {
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto;
  font-weight: 300;
}

.gallery-counter {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-counter #galleryCount {
  color: var(--accent);
  font-weight: 500;
  margin-right: 0.3rem;
}

/* ===== SUBCAT FILTER ===== */
.subcat {
  padding: 1.6rem var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.subcat-list { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

.subcat-list button {
  font-family: var(--font-display);
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.subcat-list button:hover { border-color: var(--ink); }
.subcat-list button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.gallery { padding: 1.6rem 0 clamp(3rem, 6vw, 5rem); }

/* CTA band */
.cta-band {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  background: var(--bg-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 22ch; margin: 0 auto 1.6rem; }
.cta-band h2 em { color: var(--ink); font-weight: 300; }

.cta-band .btn-pair { display: inline-flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }

.cta-band .btn {
  font-family: var(--font-display);
  padding: 1.05rem 1.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: opacity var(--t-fast);
}

.cta-band .btn-dark { background: var(--ink); color: var(--bg); }
.cta-band .btn-light { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.cta-band .btn-light:hover { background: var(--ink); color: var(--bg); }
.cta-band .btn:hover { opacity: 0.88; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 980px) {
  .nav { height: 56px; }
  .nav.scrolled { height: 50px; }
  .nav-logo img {
    height: 26px !important;
    max-height: 26px !important;
    max-width: 130px !important;
  }
  .nav.scrolled .nav-logo img {
    height: 24px !important;
    max-height: 24px !important;
  }

  /* MOBILE — Simple fixed inline menu, no burger, no overlay */
  .nav-burger { display: none !important; }

  .nav-menu {
    position: static !important;
    inset: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 1.2rem !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
    z-index: auto !important;
    height: auto !important;
    width: auto !important;
  }

  /* Hide non-essential links and CTA in mobile header */
  .nav-menu .nav-extra,
  .nav-menu .nav-cta { display: none !important; }

  .nav-menu a {
    display: inline-block !important;
    font-family: var(--font-display) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.22em !important;
    color: #0A0A0A !important;
    opacity: 1 !important;
    transform: none !important;
    transition: opacity var(--t-fast) !important;
    padding: 0.4rem 0 !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    visibility: visible !important;
  }

  .nav-menu a .num { display: none !important; }

  .nav-menu a:not(.nav-cta)::after { display: none !important; }
  .nav-menu a.active::before { display: none !important; }
  .nav-menu a:hover { opacity: 0.55 !important; }

  .hero { min-height: 88vh; padding-top: 5rem; }
  .hero-scroll { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .portfolio-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
  }
  .portfolio-head .head-meta { text-align: left; font-size: 0.88rem; }
  .portfolio-head h2 { margin-top: 0.4rem; }

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

  .pricing-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pricing-card { padding: 2rem 1.6rem 1.8rem; }

  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; gap: 0.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .hero { padding-top: 4.5rem; min-height: 82vh; }
  .float-whats { width: 48px; height: 48px; bottom: 0.9rem; right: 0.9rem; }
  .nav-menu a { font-size: 1.6rem; }
}
