/* ============================================================
   ESTUDIO TÉCNICO SUR — LANDING PREMIUM
   main.css · UTF-8
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0D0D0D;
  color: #F0EDE8;
  line-height: 1.6;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- CSS VARIABLES ---------- */
:root {
  --black:     #0D0D0D;
  --black-2:   #111111;
  --black-3:   #1A1A1A;
  --off-white: #F0EDE8;
  --stone:     #C8C3BB;
  --muted:     rgba(240,237,232,0.45);
  --yellow:    #F5C100;
  --yellow-dk: #C9980A;
  --ff-display:'Playfair Display', Georgia, serif;
  --ff-body:   'Inter', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-card: 0 24px 80px rgba(0,0,0,0.55);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.87, 0, 0.13, 1);
  --t:         0.4s var(--ease-out);
  --container: 1240px;
  --cpd:       clamp(20px, 5vw, 80px);
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--cpd); }
.tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yellow); padding: 6px 0;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Scroll reveal */
.rv, .rv-l, .rv-r {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.rv-l, .rv-r { transform: scale(0.92); }
.rv.vis, .rv-l.vis, .rv-r.vis { opacity: 1; transform: scale(1); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rv,.rv-l,.rv-r { opacity:1; transform:none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 20px 0;
  transition: background 0.5s, padding 0.4s;
}
.site-header.scrolled {
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hdr-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; transform: scale(1.18); transform-origin: left center; }
.logo-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.logo-name {
  font-family: var(--ff-display);
  font-size: 16px; font-weight: 400;
  line-height: 1.15;
}
.logo-name span { color: #E53935; }
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(240,237,232,0.65);
  transition: color 0.3s; position: relative; padding-bottom: 2px;
}
.site-nav a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(1); }
.hdr-cta {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 20px; border: 1px solid rgba(245,193,0,0.55);
  border-radius: 100px; color: var(--yellow); transition: var(--t); flex-shrink: 0;
}
.hdr-cta:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px; cursor: pointer;
}
.hamburger span {
  display: block; height: 1.5px; background: var(--off-white);
  border-radius: 2px; transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(13,13,13,0.97); backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; display: none; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: clamp(28px, 8vw, 48px); font-weight: 400;
  color: var(--off-white); transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--yellow); }

/* ============================================================
   HERO — EDITORIAL ARCHITECTURAL COMPOSITION
   [ VIDEO / ESPACIO VISUAL (55%) ] [ CONTENIDO DERECHO (45%) ]
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center; /* Alineación vertical al centro */
  padding-top: 80px;
  padding-bottom: 40px;
}
/* On very large screens, cap hero to reduce video upscaling artifacts */
@media (min-width: 1440px) {
  .hero { height: 90vh; min-height: 700px; }
}
@media (min-width: 1920px) {
  .hero { height: 85vh; min-height: 800px; }
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  z-index: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: auto;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(13,13,13,0.65) 0%, transparent 25%,
      transparent 70%, rgba(13,13,13,0.85) 90%, #0D0D0D 100%),
    linear-gradient(to right,
      rgba(13,13,13,0.85) 0%,
      rgba(13,13,13,0.55) 35%,
      transparent 60%,
      transparent 100%);
}
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding-left: 8vw;
  padding-right: 8vw;
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: 680px;
  text-align: left;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; opacity: 0;
}
.eyebrow-line { width: 36px; height: 1px; background: var(--yellow); }
.eyebrow-text {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--yellow);
}
.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 400; line-height: 1.18;
  letter-spacing: -0.01em; margin-bottom: 20px; opacity: 0;
}
.hero-h1 em { font-style: italic; color: var(--yellow); }

/* Hero title is explicitly duplicated for desktop/mobile so the mobile version
   cannot fall back to an older title variant. */
.hero-title-desktop { display: inline; }
.hero-title-mobile { display: none; }
.hero-sub {
  font-size: 15px; line-height: 1.75;
  color: #FFFFFF; margin-bottom: 36px;
  opacity: 0; max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--black);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 100px; transition: var(--t);
}
.btn-primary:hover { background: var(--yellow-dk); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--off-white);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 100px;
  border: 1px solid rgba(240,237,232,0.22); transition: var(--t);
}
.btn-ghost:hover { border-color: rgba(240,237,232,0.55); transform: translateY(-2px); }
.scroll-ind {
  position: absolute; bottom: 32px; left: 6vw; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.si-txt {
  font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl;
}
.si-bar {
  width: 1px; height: 60px;
  background: rgba(240,237,232,0.12); position: relative; overflow: hidden;
}
.si-bar::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 50%; background: var(--yellow);
  animation: sBar 2s ease-in-out infinite;
}
@keyframes sBar { 0% { top: -50%; } 100% { top: 150%; } }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--yellow); color: var(--black);
  padding: 12px 0; overflow: hidden; position: relative; z-index: 10;
}
.ticker-inner {
  display: flex; white-space: nowrap;
  animation: tickerScroll 24s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.t-item {
  display: inline-flex; align-items: center; gap: 16px;
  padding-right: 48px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.t-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--black); opacity: 0.35; flex-shrink: 0;
}
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   REAL ARCHITECTURAL STACKING SYSTEM
   Native CSS position: sticky + progressive z-index
   ============================================================ */
#stacking {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Prevent nested scrolling from hijacking the page wheel/touch gesture. */
@media (min-width: 769px) {
  body { overflow-x: clip; }
  /* Never capture the wheel/touch gesture inside a panel. */
  .stack-panel { overscroll-behavior: auto; }
}

.stack-wrap {
  /* The wrapper owns the document flow. A sticky child may pin to the
     viewport, but it must never trap/cover the following content. */
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
}

.stack-panel {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  display: flex;
  align-items: center;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Services contains two rows of cards, so it must be allowed to grow
   naturally instead of being forced into a single 100vh viewport. */
.panel-services {
  min-height: 100vh;
  height: auto;
}
.stack-wrap:first-child .stack-panel {
  border-radius: 0;
  box-shadow: none;
  border-top: none;
}

/* Desktop keeps the premium sticky-card stacking effect. Mobile disables it below. */

/* ============================================================
   ABOUT / ESTUDIO
   ============================================================ */
.panel-about { background: #111111; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; width: 100%;
}
.about-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,193,0,0.08);
  border: 1px solid rgba(245,193,0,0.2);
  border-radius: 100px; padding: 7px 18px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 24px;
}
.about-h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.8vw, 50px);
  font-weight: 400; line-height: 1.1; margin-bottom: 20px;
}
.about-p {
  font-size: 15px; line-height: 1.8;
  color: rgba(240,237,232,0.6); margin-bottom: 14px;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; height: 500px;
  object-fit: cover; border-radius: var(--radius-lg);
}
.about-photo-badge {
  position: absolute; bottom: 24px; left: -20px;
  background: var(--yellow); color: var(--black);
  border-radius: var(--radius-md); padding: 16px 22px;
  box-shadow: var(--shadow-card);
}
.apb-num {
  font-family: var(--ff-display);
  font-size: 26px; font-weight: 700; line-height: 1;
}
.apb-txt { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; margin-top: 2px; }

/* ============================================================
   SERVICES
   ============================================================ */
.panel-services {
  background: #F0EDE8;
  color: #0D0D0D;
  align-items: flex-start;
  overflow: visible;
}
.panel-services .container {
  margin: 0 auto;
  width: 100%;
}
.svc-inner {
  width: 100%;
  padding: 140px 0 100px;
}
.svc-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 32px; margin-bottom: 72px;
}
.svc-h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 400; line-height: 1.1; color: #0D0D0D;
}
.svc-tagline {
  font-size: 14px; line-height: 1.7;
  color: rgba(13,13,13,0.55); max-width: 280px; text-align: right;
}
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.svc-card {
  background: #F9F8F6;
  border: 1px solid rgba(13,13,13,0.03);
  border-radius: 2px;
  padding: 48px 40px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.015);
}
.svc-card::after {
  content: ''; position: absolute;
  bottom: -1px; left: -1px; right: -1px;
  height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-io);
  border-radius: 0 0 2px 2px;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13,13,13,0.1);
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(0,0,0,0.03);
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px;
}
.svc-n {
  font-family: var(--ff-body);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; color: rgba(13,13,13,0.3);
  transition: color 0.5s var(--ease-out);
}
.svc-card:hover .svc-n {
  color: rgba(13,13,13,0.7);
}
.svc-line {
  flex: 1; height: 1px; background: rgba(13,13,13,0.06); margin-left: 20px;
  transition: background 0.5s var(--ease-out);
}
.svc-card:hover .svc-line {
  background: rgba(245, 193, 0, 0.4);
}
.svc-title {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 400;
  line-height: 1.3; color: #0D0D0D; margin-bottom: 16px;
}
.svc-desc {
  font-size: 14px; line-height: 1.6; color: rgba(13,13,13,0.55);
  flex-grow: 1; margin-bottom: 32px;
}
.svc-arr-wrap {
  margin-top: auto;
}
.svc-arr {
  font-size: 18px; color: rgba(13,13,13,0.25);
  transition: all 0.5s var(--ease-out); display: inline-block;
}
.svc-card:hover .svc-arr { color: var(--yellow-dk); transform: translateX(8px); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.panel-portfolio { background: #0A0A0A; position: relative; isolation: isolate; overflow: hidden; }
.panel-portfolio > .container { position: relative; z-index: 2; }
.portfolio-particles {
  position: absolute;
  left: 0; right: 0; top: 92px; bottom: 0;
  width: 100%; height: calc(100% - 92px);
  z-index: 1; pointer-events: none;
  opacity: 0.9;
}
.panel-planos { background: #0A0A0A; overflow: visible; }
.portfolio-inner { width: 100%; padding: 64px 0; }
.portfolio-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 24px; margin-bottom: 48px;
}
.portfolio-h2 {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.8vw, 48px);
  font-weight: 400; line-height: 1.1;
}

/* Planos / documentación técnica — responsive 3D gallery */
.planos-carousel-root { width: 100%; min-width: 0; }
.planos-carousel-root button { -webkit-tap-highlight-color: transparent; }
.planos-depth-card:focus-visible, .planos-nav-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 768px) {
  .panel-planos { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .panel-planos .portfolio-inner { padding-top: 44px; padding-bottom: 36px; }
  .panel-planos .portfolio-header { margin-bottom: 28px; }
}
@media (max-width: 480px) {
  .panel-planos .portfolio-h2 { font-size: clamp(28px, 8vw, 36px); }
  .panel-planos .portfolio-inner { padding-top: 32px; }
}

/* 3D Carousel */
.car-stage {
  position: relative; height: 480px;
  perspective: 1100px; overflow: hidden;
}
.car-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.car-slide {
  position: absolute; top: 0; left: 50%;
  width: 600px; height: 100%;
  transform: translateX(-50%);
  transition: transform 0.7s var(--ease-out), opacity 0.7s, filter 0.7s;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
}
.car-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.car-slide.active { transform: translateX(-50%) translateZ(0) scale(1);        opacity: 1;   filter: none;    z-index: 5; }
.car-slide.prev   { transform: translateX(-50%) translateX(-380px) translateZ(-180px) rotateY(14deg) scale(0.84); opacity: 0.45; filter: blur(1px); z-index: 4; }
.car-slide.prev2  { transform: translateX(-50%) translateX(-620px) translateZ(-360px) rotateY(24deg) scale(0.68); opacity: 0.18; filter: blur(3px); z-index: 3; }
.car-slide.next   { transform: translateX(-50%) translateX(380px)  translateZ(-180px) rotateY(-14deg) scale(0.84); opacity: 0.45; filter: blur(1px); z-index: 4; }
.car-slide.next2  { transform: translateX(-50%) translateX(620px)  translateZ(-360px) rotateY(-24deg) scale(0.68); opacity: 0.18; filter: blur(3px); z-index: 3; }
.car-slide.hidden { opacity: 0; z-index: 1; pointer-events: none; }
.car-stage { touch-action: pan-y; }
.car-stage.is-dragging, .car-stage.is-dragging .car-slide { cursor: grabbing; }
.car-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.18), transparent 55%); pointer-events: none; transition: opacity .7s; }
.car-slide.active::after { opacity: 0; }

.car-controls {
  display: flex; align-items: center;
  justify-content: center; gap: 18px; margin-top: 28px;
}
.car-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(240,237,232,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--off-white); transition: var(--t);
}
.car-btn:hover { border-color: var(--yellow); color: var(--yellow); transform: scale(1.1); }
.car-dots { display: flex; gap: 7px; }
.car-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(240,237,232,0.2); transition: background 0.3s, transform 0.3s;
}
.car-dot.on { background: var(--yellow); transform: scale(1.5); }

/* Premium gallery lightbox */
.gallery-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 3vw, 36px); padding: clamp(20px, 5vw, 64px); background: rgba(8, 8, 8, .94); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; }
.gallery-lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { justify-self: center; max-width: min(100%, 1200px); max-height: 86vh; margin: 0; text-align: center; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(86vh - 28px); border-radius: var(--radius-lg); box-shadow: 0 24px 80px rgba(0,0,0,.55); object-fit: contain; }
.lightbox-count { margin-top: 12px; color: rgba(240,237,232,.65); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.lightbox-close, .lightbox-nav { border: 1px solid rgba(240,237,232,.28); color: var(--off-white); background: rgba(255,255,255,.05); cursor: pointer; transition: var(--t); }
.lightbox-close { position: absolute; top: 22px; right: 28px; width: 44px; height: 44px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lightbox-nav { width: 48px; height: 48px; border-radius: 50%; font-size: 18px; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--yellow); border-color: var(--yellow); transform: scale(1.08); }
body.lightbox-open { overflow: hidden; }

/* ============================================================
   FLIP CARD
   ============================================================ */
.panel-flip { background: #141414; }
.flip-inner { width: 100%; padding: 64px 0; display: flex; gap: 72px; align-items: center; }
.flip-text { flex: 1; }
.flip-text .tag { display: block; margin-bottom: 10px; }
.flip-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 400; line-height: 1.1; margin-bottom: 18px;
}
.flip-text p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.flip-scene {
  width: 320px; height: 420px;
  flex-shrink: 0; perspective: 900px; cursor: pointer;
}
.flip-card {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-io);
}
.flip-card.flipped { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 32px;
}
.flip-front {
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.07);
}
.flip-front-bg {
  position: absolute; inset: 0;
  background: url('../images/estudio-fachada.jpg') center/cover;
  opacity: 0.4;
}
.flip-front-content { position: relative; z-index: 1; }
.flip-flabel {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 6px;
}
.flip-ftitle {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 400; line-height: 1.2;
}
.flip-fhint { font-size: 10px; color: var(--muted); margin-top: 14px; }
.flip-back {
  background: var(--yellow); color: var(--black);
  transform: rotateY(180deg);
  justify-content: center; gap: 0; padding: 36px;
}
.flip-btitle {
  font-family: var(--ff-display);
  font-size: 20px; font-weight: 400; margin-bottom: 20px;
}
.flip-blist { display: flex; flex-direction: column; gap: 12px; }
.flip-blist li {
  display: flex; align-items: flex-start;
  gap: 8px; font-size: 13px; font-weight: 500; line-height: 1.4;
}
.flip-blist li::before { content: '→'; flex-shrink: 0; }

/* ============================================================
   PANEL 5 — TRUST: RESEÑAS + MAPA
   ============================================================ */
.panel-trust { background: #111111; color: var(--off-white); }
/* First impression: reviews immediately follow the Hero, but remain outside the sticky stack. */
.trust-first {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: auto;
  overflow: visible;
  display: flex;
  align-items: center;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-first .trust-inner { width: 100%; }

.trust-inner { width: 100%; padding: 40px 0; }
.trust-hdr { text-align: center; margin-bottom: 28px; }
.trust-h2 {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 400; line-height: 1.1; margin-bottom: 18px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: #1A1A1A; border: 1px solid rgba(245,193,0,0.25);
  border-radius: 100px; padding: 10px 24px;
}
.t-stars { font-size: 16px; letter-spacing: 2px; color: var(--yellow); }
.t-num { font-family: var(--ff-display); font-size: 22px; }
.t-div { width: 1px; height: 20px; background: rgba(255,255,255,0.12); }
.t-cnt { font-size: 11px; color: var(--muted); }
.t-cnt strong { display: block; color: #fff; font-size: 13px; }

.trust-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; align-items: start;
}
.reviews-col {
  display: flex; flex-direction: column; gap: 14px;
  max-height: 420px; overflow-y: auto; padding-right: 10px;
}
.reviews-col::-webkit-scrollbar { width: 4px; }
.reviews-col::-webkit-scrollbar-track { background: transparent; }
.reviews-col::-webkit-scrollbar-thumb { background: rgba(245,193,0,0.3); border-radius: 4px; }
.reviews-lbl {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 2px;
}
.rcard {
  background: #1A1A1A; border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md); padding: 20px 22px;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.rcard:hover { border-color: rgba(245,193,0,0.2); transform: translateY(-2px); }
.rcard-stars { color: var(--yellow); font-size: 11px; letter-spacing: 1.5px; margin-bottom: 8px; }
.rcard-text {
  font-family: var(--ff-display); font-size: 13px;
  line-height: 1.65; color: rgba(240,237,232,0.68);
  font-style: italic; margin-bottom: 14px;
}
.rcard-author { display: flex; align-items: center; gap: 10px; }
.rcard-ava {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 12px; font-weight: 700;
  color: var(--black); flex-shrink: 0;
}
.rcard-name { font-size: 12px; font-weight: 600; }
.rcard-date { font-size: 10px; color: var(--muted); margin-top: 1px; }
.reviews-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 20px; border: 1px solid rgba(240,237,232,0.18);
  border-radius: 100px; color: var(--off-white);
  transition: var(--t); align-self: flex-start; margin-top: 4px;
}
.reviews-cta-btn:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }

.map-col { display: flex; flex-direction: column; }
.map-frame {
  height: 330px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(15%) contrast(1.04); }
.map-frame::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--yellow); pointer-events: none;
}
.map-info {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 14px; padding: 18px 22px;
  background: #1A1A1A; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.map-lbl {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 4px;
}
.map-addr { font-family: var(--ff-display); font-size: 14px; }
.map-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.btn-map {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--yellow); color: var(--black);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 100px;
  white-space: nowrap; flex-shrink: 0; transition: var(--t);
}
.btn-map:hover { background: var(--yellow-dk); transform: translateY(-2px); }

/* ============================================================
   PANEL 6 — FOTOGRAFÍA DEL LOCAL
   ============================================================ */
.panel-local { background: #0B0B0B; }
.local-panel-inner { width: 100%; padding: 40px 0; }
.local-photo-wrap {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  max-height: 72vh;
}
.local-photo-wrap img { width: 100%; height: 500px; max-height: 70vh; object-fit: cover; }
.local-caption {
  position: absolute; bottom: 28px; left: 28px;
  background: rgba(13,13,13,0.88); backdrop-filter: blur(12px);
  border-radius: var(--radius-md); padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.cap-title { font-family: var(--ff-display); font-size: 14px; margin-bottom: 2px; }
.cap-addr { font-size: 10px; color: var(--yellow); font-weight: 700; letter-spacing: 0.06em; }

/* ============================================================
   PANEL 6 — FORMULARIO DE CONTACTO
   ============================================================ */
.panel-contact-form { background: #0B0B0B; }
.contact-form-inner { width: 100%; padding: clamp(42px, 6vw, 78px) 0; }
.contact-form-grid {
  display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: clamp(38px, 7vw, 92px); align-items: center;
}
.contact-form-intro { max-width: 470px; }
.contact-form-title {
  font-family: var(--ff-display); font-size: clamp(36px, 5vw, 64px);
  font-weight: 400; line-height: 1.04; margin: 18px 0 22px;
}
.contact-form-title em { color: var(--yellow); font-style: italic; }
.contact-form-copy { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 420px; }
.contact-form-mail { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.contact-form-mail span { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.contact-form-mail a { color: var(--off-white); font-family: var(--ff-display); font-size: 16px; transition: color .3s; }
.contact-form-mail a:hover { color: var(--yellow); }
.contact-form-card {
  background: #121212; border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-card);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; }
.contact-form label > span { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(240,237,232,.58); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.10); background: #0D0D0D;
  color: var(--off-white); border-radius: 9px; padding: 13px 14px;
  font: 13px/1.4 var(--ff-body); outline: none; transition: border-color .3s, box-shadow .3s, background .3s;
}
.contact-form select { appearance: none; -webkit-appearance: none; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(240,237,232,.25); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: rgba(245,193,0,.7); box-shadow: 0 0 0 3px rgba(245,193,0,.08); background: #101010;
}
.contact-submit {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--yellow); color: #0D0D0D; border-radius: 100px; padding: 13px 22px;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: var(--t);
}
.contact-submit:hover { background: var(--yellow-dk); transform: translateY(-2px); }
.contact-submit span { font-size: 15px; line-height: 1; }
.form-note { font-size: 10px; color: rgba(240,237,232,.28); line-height: 1.5; }
.form-note strong { color: rgba(240,237,232,.48); font-weight: 500; }
.form-honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* ============================================================
   PANEL 7 — CTA FINAL
   ============================================================ */
.panel-cta {
  background: #0D0D0D;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(245,193,0,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 20%, rgba(245,193,0,0.04) 0%, transparent 50%);
}
.cta-final-inner {
  position: relative; z-index: 1;
  padding: 80px 0; text-align: center; width: 100%;
}
.cta-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 20px;
}
.cta-h2 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 400; line-height: 1.1; margin-bottom: 18px;
}
.cta-h2 em { font-style: italic; color: var(--yellow); }
.cta-sub {
  font-size: 15px; color: var(--muted);
  max-width: 420px; margin: 0 auto 44px; line-height: 1.7;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-line {
  width: 1px; height: 72px;
  background: linear-gradient(to bottom, transparent, var(--yellow), transparent);
  margin: 0 auto 56px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.footer-logo-name { font-family: var(--ff-display); font-size: 15px; }
.footer-logo-name span { color: #E53935; }
.footer-tagline { font-size: 13px; line-height: 1.75; color: var(--muted); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.fsoc {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: var(--t);
}
.fsoc:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.footer-col h4 {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 13px; color: rgba(240,237,232,0.5); transition: color 0.3s; }
.footer-col ul a:hover { color: var(--off-white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-copy { font-size: 11px; color: rgba(240,237,232,0.28); }
.footer-legal { display: flex; align-items: center; }
.footer-credit {
  font-size: 11px;
  color: rgba(240,237,232,0.28);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ============================================================
   WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }
.wa-float::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid rgba(37,211,102,0.3);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ============================================================
   HEADER — SOCIAL LINKS
   ============================================================ */
.hdr-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdr-soc {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(240,237,232,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(240,237,232,0.55);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.hdr-soc:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px) scale(1.08);
}

/* CTA icon SVG fallback */
.hdr-soc svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   CTA ANIMATION — subtle pulse with pauses
   Cycle: 6s total = 0.8s animate + 5.2s rest
   ============================================================ */
@keyframes ctaGlow {
  0%, 14%, 100% {
    box-shadow: 0 4px 18px rgba(245,193,0,0.25);
    transform: scale(1);
  }
  7% {
    box-shadow: 0 4px 28px rgba(245,193,0,0.55), 0 0 0 4px rgba(245,193,0,0.12);
    transform: scale(1.025);
  }
}
@keyframes ctaShine {
  0%, 14%, 100% { background-position: -200% center; }
  7%            { background-position: 200% center; }
}

.btn-primary {
  position: relative;
  overflow: hidden;
  animation: ctaGlow 7s ease-in-out infinite;
  box-shadow: 0 4px 18px rgba(245,193,0,0.25);
}
/* Sweeping shine overlay */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 30%,
    rgba(255,255,255,0.22) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: -200% center;
  animation: ctaShine 7s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
/* Hover overrides animation to full highlight */
.btn-primary:hover {
  animation: none;
  box-shadow: 0 6px 32px rgba(245,193,0,0.45);
}
.btn-primary:hover::after { display: none; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; box-shadow: none; }
  .btn-primary::after { display: none; }
}

/* ============================================================
   PAGE ENTRANCE — SOFT ZOOM ONLY
   ============================================================ */
.page-zoom-section {
  animation: sectionZoomIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-zoom-section:nth-of-type(1) { animation-delay: 0.02s; }
.page-zoom-section:nth-of-type(2) { animation-delay: 0.08s; }
.page-zoom-section:nth-of-type(3) { animation-delay: 0.14s; }
.page-zoom-section:nth-of-type(4) { animation-delay: 0.20s; }
.page-zoom-section:nth-of-type(5) { animation-delay: 0.26s; }
@keyframes sectionZoomIn {
  from { opacity: 0; transform: scale(0.975); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   BACK TO TOP — MINIMAL ARCHITECTURAL CONTROL
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 98px;
  z-index: 810;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--off-white);
  background: rgba(13,13,13,0.82);
  border: 1px solid rgba(245,193,0,0.42);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.94);
  pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-2px) scale(1.04);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   WHATSAPP — PREMIUM FLOATING CONTROL
   ============================================================ */
.wa-float {
  width: 58px;
  height: 58px;
  background: #111111;
  color: #F5C100;
  border: 1px solid rgba(245,193,0,0.55);
  box-shadow: 0 12px 34px rgba(0,0,0,0.38), 0 0 0 5px rgba(245,193,0,0.045);
}
.wa-float::before {
  inset: -5px;
  border: 1px solid rgba(245,193,0,0.22);
  animation: waPulsePremium 3s ease-out infinite;
}
.wa-float:hover {
  color: #fff;
  background: #171717;
  border-color: var(--yellow);
  box-shadow: 0 16px 42px rgba(0,0,0,0.46), 0 0 0 6px rgba(245,193,0,0.055);
}
.wa-mark { width: 29px; height: 29px; display: grid; place-items: center; }
.wa-mark svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.wa-mark svg path + path { fill: currentColor; stroke: none; }
@keyframes waPulsePremium { 0% { transform: scale(.96); opacity:.55; } 70%,100% { transform: scale(1.55); opacity:0; } }

@media (max-width: 768px) {
  .back-to-top { right: 18px; bottom: 88px; width: 42px; height: 42px; }
  .wa-float { right: 18px; bottom: 20px; width: 54px; height: 54px; }
  .wa-mark, .wa-mark svg { width: 27px; height: 27px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .hero-container {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}
@media (max-width: 1024px) {
  .hero-container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-badge { left: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .trust-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .flip-inner { flex-direction: column; }
  .flip-scene { width: 100%; max-width: 360px; align-self: center; }
}
@media (max-width: 768px) {
  .site-nav, .hdr-cta, .hdr-social { display: none; }
  .trust-first { min-height: auto; align-items: flex-start; padding: 34px 0 46px; }
  .trust-first .trust-inner { padding: 0; }
  .hamburger { display: flex; }
  .hero {
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    height: 100svh;
    min-height: 100svh;
  }
  .hero-container {
    padding-left: var(--cpd);
    padding-right: var(--cpd);
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-overlay {
    background:
      linear-gradient(to bottom,
        rgba(13,13,13,0.75) 0%,
        rgba(13,13,13,0.55) 25%,
        rgba(13,13,13,0.75) 65%,
        #0D0D0D 100%
      ),
      linear-gradient(to right,
        rgba(13,13,13,0.7) 0%,
        rgba(13,13,13,0.3) 50%,
        transparent 100%
      );
  }
  .hero-h1 {
    font-size: clamp(28px, 6.5vw, 36px);
  }
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: inline; }
  .scroll-ind {
    display: none;
  }
  .stack-wrap {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    width: 100%;
  }
  .stack-panel {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow: visible;
    padding: 40px 0;
    border-radius: 0;
  }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .svc-inner { padding: 60px 0 40px; }
  .svc-header { flex-direction: column; align-items: flex-start; margin-bottom: 48px; }
  .svc-tagline { text-align: left; }
  .svc-grid { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .car-stage { height: 360px; }
  .car-slide { width: 88vw; }
  .reviews-col { max-height: none; overflow-y: visible; }
  .map-frame { height: 260px; }
  .map-info { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-form-intro { max-width: 100%; }
  .contact-form-card { padding: 22px; }
  .cta-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-form-inner { padding: 34px 0 50px; }
  .contact-form-title { font-size: clamp(34px, 11vw, 46px); }
  .contact-submit { width: 100%; }
}

@media (max-width: 430px) {
  .car-slide { width: 92vw; }
  .logo-name { display: none; }
  .flip-scene { height: 380px; }
  .trust-badge { flex-wrap: wrap; justify-content: center; padding: 10px 18px; gap: 8px; }
}

@media (max-width: 600px) {
  .car-stage { height: min(105vw, 410px); }
  .car-slide.prev { transform: translateX(-50%) translateX(-49vw) translateZ(-150px) rotateY(14deg) scale(.76); }
  .car-slide.next { transform: translateX(-50%) translateX(49vw) translateZ(-150px) rotateY(-14deg) scale(.76); }
  .car-slide.prev2, .car-slide.next2 { opacity: 0; }
  .car-dots { max-width: 58vw; overflow: hidden; }
  .gallery-lightbox { grid-template-columns: 1fr; padding: 64px 16px 22px; }
  .lightbox-figure { grid-row: 1; }
  .lightbox-nav { position: absolute; top: 50%; z-index: 1; width: 42px; height: 42px; }
  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }
  .lightbox-close { top: 12px; right: 14px; }
}


/* Mobile portfolio gallery: always visible, lightweight and stable. Desktop keeps the 3D carousel. */
.portfolio-carousel-shell {
  width: 100%;
  min-height: 360px;
}
@media (max-width: 768px) {
  #portfolio-react-root {
    height: 420px !important;
    min-height: 420px !important;
    position: relative !important;
    overflow: visible !important;
  }
  .panel-portfolio { overflow: visible !important; }
  .panel-portfolio .portfolio-inner { padding-top: 36px; padding-bottom: 32px; }
  .panel-portfolio .portfolio-header { margin-bottom: 12px; }
  .panel-portfolio .portfolio-h2 { font-size: clamp(30px, 8.5vw, 40px); }
  .portfolio-carousel-shell { min-height: 360px !important; overflow: visible !important; }
  .portfolio-carousel-shell > div:first-child {
    position: absolute !important;
    inset: 0 !important;
    height: 350px !important;
    min-height: 350px !important;
    transform: none !important;
    overflow: visible !important;
  }
  .portfolio-carousel-shell > div:first-child > div {
    width: min(86vw, 340px) !important;
    height: min(72vw, 300px) !important;
    max-height: 300px !important;
  }
  .portfolio-carousel-shell .car-controls {
    position: absolute !important;
    left: 0; right: 0; bottom: 4px;
    margin-top: 0 !important;
  }
}
@media (max-width: 480px) {
  #portfolio-react-root { height: 400px !important; min-height: 400px !important; }
  .panel-portfolio .portfolio-inner { padding-top: 28px; }
  .portfolio-carousel-shell { min-height: 340px !important; }
  .portfolio-carousel-shell > div:first-child { height: 320px !important; min-height: 320px !important; }
  .portfolio-carousel-shell > div:first-child > div {
    width: 86vw !important;
    height: min(70vw, 285px) !important;
  }
}

/* ============================================================
   FIX: TÍTULOS DE SERVICIOS — RESPETAR MAYÚSCULAS EN MOBILE/DESKTOP
   ============================================================ */
.svc-title,
.svc-title * {
  text-transform: none !important;
  font-variant-caps: normal !important;
}

/* Garantiza inicial en mayúscula incluso si algún estilo externo la altera. */
@media (max-width: 768px) {
  .svc-title {
    text-transform: none !important;
  }
  .svc-title::first-letter {
    text-transform: uppercase !important;
  }
}

/* Stronger gold micro-particles: visible but still behind the galleries. */
.panel-portfolio,
.panel-planos { position: relative; isolation: isolate; }
.panel-portfolio > .container,
.panel-planos > .container { position: relative; z-index: 2; }
.portfolio-particles,
.planos-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}
@media (max-width: 768px) {
  .portfolio-particles,
  .planos-particles { opacity: .92; }
}
