/* ============================================================
   CAMDAL CREA — CSS PRINCIPAL
   Productora audiovisual · Alt Empordà, Girona
   Diseño: cinematic dark, alta conversión B2B
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-hover: #1e1e1e;
  --accent: #c9a84c;        /* Dorado cálido — acento principal */
  --accent-hover: #e4c06a;
  --white: #ffffff;
  --white-80: rgba(255,255,255,0.8);
  --white-50: rgba(255,255,255,0.5);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s ease;
  --border: 1px solid rgba(255,255,255,0.1);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 4px;
  --max-width: 1280px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

p { font-size: 1rem; color: var(--white-80); line-height: 1.75; }

.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- LAYOUT HELPERS --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

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

.text-center { text-align: center; }
.text-right { text-align: right; }

/* --- BOTONES --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-50);
}
.btn-outline:hover {
  border-color: var(--white);
  background: var(--white-10);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 0.9rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.78rem; }

/* ============================================================
   TOP BAR — BARRA SUPERIOR FIJA
   ============================================================ */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--accent);
  padding: 0.45rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-primary);
  overflow: hidden;
}

.topbar-track {
  display: inline-flex;
  gap: 3rem;
  animation: tickerScroll 18s linear infinite;
  white-space: nowrap;
}
.topbar-track span { padding: 0 1.5rem; }
.topbar-track a {
  color: var(--bg-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 28px; /* altura topbar */
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 1.2rem 2rem;
  transition: background var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
  border-bottom: var(--border);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-80);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  animation: navItemIn 0.4s forwards;
}
.nav-mobile a:nth-child(1) { animation-delay: 0.1s; }
.nav-mobile a:nth-child(2) { animation-delay: 0.18s; }
.nav-mobile a:nth-child(3) { animation-delay: 0.26s; }
.nav-mobile a:nth-child(4) { animation-delay: 0.34s; }
.nav-mobile a:nth-child(5) { animation-delay: 0.42s; }
.nav-mobile .btn { animation-delay: 0.5s; opacity: 0; transform: translateY(20px); animation: navItemIn 0.4s forwards; }

@keyframes navItemIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
  padding-top: 56px; /* topbar + navbar */
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.45) 50%,
    rgba(10,10,10,0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 2rem;
}

.hero-content .label { margin-bottom: 1.5rem; }

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--white-80);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-50);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   LOGOS — PRUEBA SOCIAL
   ============================================================ */
#logos {
  background: #111;
  padding: 3.5rem 0;
  border-top: var(--border);
  border-bottom: var(--border);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 2rem;
}

.logos-track-wrap { overflow: hidden; }

.logos-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: logoScroll 22s linear infinite;
}

.logos-track:hover { animation-play-state: paused; }

.logo-item {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.logo-item:hover { color: var(--white-80); border-color: var(--white-30); }

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

/* ============================================================
   MÉTRICAS
   ============================================================ */
#metrics {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.metric-item {
  text-align: center;
  padding: 3rem 2rem;
  border-right: var(--border);
  position: relative;
}
.metric-item:last-child { border-right: none; }

.metric-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-number span { color: var(--accent); }

.metric-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-50);
}

/* ============================================================
   CASOS DESTACADOS
   ============================================================ */
#casos {
  padding: 100px 0;
  background: var(--bg-primary);
}

.casos-header {
  text-align: center;
  margin-bottom: 4rem;
}
.casos-header h2 { margin-top: 1rem; margin-bottom: 1rem; }
.casos-header p { max-width: 520px; margin: 0 auto; }

.casos-slider {
  position: relative;
}

.caso-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.caso-slide.active {
  display: grid;
  opacity: 1;
}

.caso-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.caso-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.caso-info { padding: 1rem 0; }

.caso-client {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.caso-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.caso-result {
  font-size: 1rem;
  color: var(--white-80);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.caso-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.caso-tag {
  padding: 0.3rem 0.8rem;
  background: var(--white-05);
  border: var(--border);
  border-radius: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-50);
}

/* Slider navigation */
.casos-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.casos-dots {
  display: flex;
  gap: 0.6rem;
}
.casos-dot {
  width: 32px;
  height: 2px;
  background: var(--white-20);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 2px;
}
.casos-dot.active { background: var(--accent); width: 48px; }

.casos-btn {
  width: 44px;
  height: 44px;
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-80);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white-05);
}
.casos-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.casos-btn svg { width: 18px; height: 18px; }

/* ============================================================
   SERVICIOS (home block)
   ============================================================ */
#servicios-home {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: var(--border);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  margin-top: 4rem;
  background: rgba(255,255,255,0.06);
}

.servicio-card {
  background: var(--bg-secondary);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  cursor: pointer;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.servicio-card:hover { background: var(--bg-hover); }
.servicio-card:hover::before { width: 100%; }

.servicio-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.servicio-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.servicio-desc {
  font-size: 0.9rem;
  color: var(--white-50);
  line-height: 1.65;
}

.servicio-arrow {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--transition-fast);
}
.servicio-card:hover .servicio-arrow { gap: 0.8rem; }
.servicio-arrow svg { width: 16px; height: 16px; }

/* ============================================================
   POR QUÉ CAMDAL
   ============================================================ */
#diferencial {
  padding: 100px 0;
  background: var(--bg-primary);
  border-top: var(--border);
}

.diferencial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.diferencial-item {
  border-top: 3px solid var(--accent);
  padding-top: 2rem;
  transition: border-color var(--transition);
}
.diferencial-item:hover { border-top-color: var(--accent-hover); }

.diferencial-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white-10);
  line-height: 1;
  margin-bottom: 1rem;
}

.diferencial-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.diferencial-text {
  font-size: 0.9rem;
  color: var(--white-50);
  line-height: 1.75;
}

.diferencial-detail {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-family: var(--font-sans);
}

/* ============================================================
   TESTIMONIO
   ============================================================ */
#testimonio {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: var(--border);
  border-bottom: var(--border);
}

.testimonio-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonio-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 2.5rem;
  position: relative;
}

.testimonio-quote::before {
  content: '\201C';
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -2.5rem;
  left: -2rem;
  line-height: 1;
  font-family: var(--font-serif);
}

.testimonio-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.testimonio-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.testimonio-role {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   CTA FINAL HOME
   ============================================================ */
#cta-final {
  padding: 120px 0;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1507 50%, #0f0f0f 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final-label { margin-bottom: 1.5rem; }

.cta-final-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-final-sub {
  font-size: 1.05rem;
  color: var(--white-50);
  margin-bottom: 0.8rem;
}

.cta-urgency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}
.cta-urgency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #050505;
  border-top: var(--border);
  padding: 5rem 0 2.5rem;
}

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

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.footer-brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--white-50);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--white-50);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  color: var(--white-50);
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }

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

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--white-50);
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
  transition: var(--transition);
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201,168,76,0.08);
}
.footer-social svg { width: 16px; height: 16px; }

/* ============================================================
   PÁGINA TRABAJOS
   ============================================================ */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  background: var(--bg-primary);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--white-10), transparent);
}

.page-hero .label { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero p { max-width: 540px; margin: 0 auto; }

/* Filtros trabajos */
.trabajos-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--border);
  border-radius: 2px;
  color: var(--white-50);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

/* Grid trabajos */
.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 4rem;
}

.trabajo-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}

.trabajo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
  filter: brightness(0.7) grayscale(0.2);
}

.trabajo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.trabajo-card:hover .trabajo-thumb {
  transform: scale(1.06);
  filter: brightness(0.5) grayscale(0.1);
}
.trabajo-card:hover .trabajo-overlay { opacity: 1; }

.trabajo-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.trabajo-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.trabajo-sub {
  font-size: 0.78rem;
  color: var(--white-50);
}

.trabajo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.trabajo-card:hover .trabajo-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.trabajo-play svg { width: 20px; height: 20px; color: #000; margin-left: 3px; }

/* Tarjeta vertical (Reels / TikTok) */
.trabajo-card--vertical {
  aspect-ratio: 9/14;
}
.trabajo-card--vertical .trabajo-thumb {
  object-position: center top;
}

/* Badge 9:16 en tarjeta vertical */
.trabajo-badge-vertical {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(10,10,10,0.75);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  background: var(--bg-card);
}
.modal-close:hover { color: var(--white); border-color: var(--white); }
.modal-close svg { width: 16px; height: 16px; }

.modal-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.modal-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-body { padding: 2.5rem; }

.modal-client { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.modal-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.modal-result { font-size: 1rem; color: var(--white-80); line-height: 1.75; margin-bottom: 1.5rem; }

.modal-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--white-10);
  margin-top: 2rem;
}
.modal-data-item {
  background: var(--bg-card);
  padding: 1.2rem;
  text-align: center;
}
.modal-data-value { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.modal-data-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-50); margin-top: 0.3rem; }

/* ============================================================
   MODAL VERTICAL (Reels / TikTok / Instagram)
   ============================================================ */

/* Box vertical: mas estrecho y centrado */
.modal-box--vertical {
  max-width: 860px;
}

/* Layout horizontal con phone + info */
.modal-layout-v {
  padding: 2.5rem;
}
.modal-v-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Simulacion de smartphone */
.modal-v-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.modal-v-phone-frame {
  width: 260px;
  background: #0a0a0a;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.04), 0 20px 60px rgba(0,0,0,0.6);
  position: relative;
}
/* Notch decorativo */
.modal-v-phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  z-index: 10;
}
.modal-v-video-wrap {
  position: relative;
  padding-top: 177.78%; /* 9:16 ratio */
  background: #000;
}
.modal-v-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Botones de accion estilo social */
.modal-v-actions {
  display: flex;
  gap: 1.2rem;
}
.modal-v-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--white-50);
  cursor: default;
}

/* Columna de info en modal vertical */
.modal-v-info {
  padding-top: 0.5rem;
}
.modal-v-info .modal-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}
.modal-v-info .modal-result {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

/* Responsive: stack en movil */
@media (max-width: 640px) {
  .modal-v-inner {
    grid-template-columns: 1fr;
  }
  .modal-v-phone-frame {
    width: 200px;
    margin: 0 auto;
  }
  .modal-layout-v {
    padding: 1.5rem;
  }
  .modal-box--vertical {
    max-height: 95vh;
  }
}

/* ============================================================
   PÁGINA SERVICIOS
   ============================================================ */
.servicio-section {
  padding: 100px 0;
  border-bottom: var(--border);
}

.servicio-section:nth-child(even) { background: var(--bg-secondary); }
.servicio-section:nth-child(odd) { background: var(--bg-primary); }

.servicio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.servicio-layout.reverse { direction: rtl; }
.servicio-layout.reverse > * { direction: ltr; }

.servicio-page-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--white-05);
  line-height: 1;
  margin-bottom: -1rem;
}

.servicio-page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.servicio-page-desc {
  font-size: 1rem;
  color: var(--white-80);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.servicio-entregables {
  margin-bottom: 2rem;
}

.servicio-entregables-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 1rem;
}

.entregable-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--white-05);
  font-size: 0.9rem;
  color: var(--white-80);
}
.entregable-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.servicio-precio {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--white-05);
  border: var(--border);
  border-radius: var(--radius);
}
.servicio-precio-desde { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-50); }
.servicio-precio-num { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--accent); }
.servicio-precio-label { font-size: 0.78rem; color: var(--white-50); }

.servicio-visual {
  position: relative;
}
.servicio-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.85);
}

/* ============================================================
   PÁGINA NOSOTROS
   ============================================================ */
.nosotros-intro {
  padding: 100px 0;
}

.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nosotros-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.85);
}

.nosotros-historia h2 { margin-bottom: 2rem; }
.nosotros-historia p { margin-bottom: 1.2rem; }

/* Equipo técnico */
#equipamiento {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: var(--border);
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--white-05);
  margin-top: 3rem;
}

.equip-item {
  background: var(--bg-secondary);
  padding: 2rem 1.5rem;
  transition: background var(--transition);
}
.equip-item:hover { background: var(--bg-hover); }

.equip-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.equip-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.equip-detail {
  font-size: 0.78rem;
  color: var(--white-50);
  line-height: 1.5;
}

/* ============================================================
   PÁGINA CONTACTO
   ============================================================ */
#contacto-page {
  padding: 100px 0;
}

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contacto-info h2 { margin-bottom: 1.5rem; }
.contacto-info p { margin-bottom: 2rem; }

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.contacto-dato {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--white-80);
}
.contacto-dato-icon {
  width: 40px;
  height: 40px;
  background: var(--white-05);
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contacto-dato-icon svg { width: 18px; height: 18px; }

.contacto-zonas {
  padding: 1.5rem;
  background: var(--white-05);
  border: var(--border);
  border-radius: var(--radius);
  margin-top: 2rem;
}
.contacto-zonas-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.contacto-zonas p {
  font-size: 0.85rem;
  color: var(--white-50);
  line-height: 1.6;
  margin: 0;
}

/* Formulario */
.form-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-urgency {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}
.form-urgency-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--white-20);
}
.form-select option { background: var(--bg-card); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--white-50);
}
.form-trust svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ============================================================
   EXIT POP-UP
   ============================================================ */
#exit-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(8px);
}
#exit-popup.open {
  opacity: 1;
  pointer-events: all;
}

.exit-popup-box {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
  position: relative;
}
#exit-popup.open .exit-popup-box {
  transform: translateY(0) scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}
.exit-popup-close:hover { color: var(--white); }
.exit-popup-close svg { width: 16px; height: 16px; }

.exit-popup-label { margin-bottom: 1rem; }
.exit-popup-title { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 0.8rem; }
.exit-popup-sub { font-size: 0.9rem; color: var(--white-50); margin-bottom: 2rem; line-height: 1.6; }

.exit-form { display: flex; flex-direction: column; gap: 0.8rem; }
.exit-form input, .exit-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.exit-form input:focus, .exit-form select:focus { border-color: var(--accent); }
.exit-form input::placeholder { color: var(--white-20); }
.exit-form select option { background: var(--bg-card); }

.exit-skip {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--white-30);
  cursor: pointer;
  background: none;
  border: none;
  color: var(--white-50);
  transition: color var(--transition-fast);
}
.exit-skip:hover { color: var(--white); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
#whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
#whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
#whatsapp-btn svg { width: 28px; height: 28px; color: #fff; }

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  bottom: 50%;
  transform: translateY(50%);
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: rgba(255,255,255,0.1);
}
#whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ============================================================
   ANIMACIONES DE SCROLL (fade-in)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   PÁGINA INTERNA — ENCABEZADOS
   ============================================================ */
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-top: 0.75rem; }
.section-header p { margin-top: 0.8rem; max-width: 520px; }
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* Separador decorativo */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}
.form-success-icon svg { width: 28px; height: 28px; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .diferencial-grid { grid-template-columns: 1fr 1fr; }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .trabajos-grid { grid-template-columns: repeat(2, 1fr); }
  .servicio-layout { gap: 3rem; }
  .nosotros-layout { gap: 3rem; }
  .contacto-layout { gap: 3rem; }
  .caso-slide { grid-template-columns: 1fr; }
  .modal-data { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — TABLET / MOBILE  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {

  /* ── GLOBALS ── */
  .section { padding: 60px 0; }
  .container { padding: 0 1.1rem; }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  h3 { font-size: clamp(1.15rem, 4.5vw, 1.5rem); }
  p  { font-size: 0.92rem; }

  /* Grids genéricos */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* ── TOP BAR ── */
  #topbar {
    font-size: 0.6rem;
    padding: 0.35rem 1rem;
    letter-spacing: 0.06em;
  }

  /* ── NAVBAR ── */
  #navbar { top: 22px; padding: 0.9rem 1.1rem; }
  #navbar.scrolled { padding: 0.65rem 1.1rem; }
  .nav-logo { font-size: 1rem; }
  .nav-logo span { font-size: 0.6rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* ── HERO ── */
  #hero {
    min-height: 100svh;
    padding-top: 80px;
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }
  .hero-content {
    padding: 0 1.2rem;
    text-align: left;
    max-width: 100%;
  }
  .hero-content .label { margin-bottom: 1rem; }
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
  .hero-scroll { display: none; }

  /* ── LOGOS ── */
  #logos { padding: 2.5rem 0; }
  .logos-label { font-size: 0.6rem; margin-bottom: 1.2rem; }
  .logo-item { font-size: 0.7rem; padding: 0.4rem 1rem; }
  .logos-track { gap: 2.5rem; }

  /* ── MÉTRICAS ── */
  #metrics { padding: 50px 0; }
  .metrics-grid { grid-template-columns: 1fr; gap: 0; }
  .metric-item {
    border-right: none;
    border-bottom: var(--border);
    padding: 1.5rem 0;
  }
  .metric-item:last-child { border-bottom: none; }
  .metric-number { font-size: clamp(2.4rem, 10vw, 3.5rem); }

  /* ── CASOS ── */
  #casos { padding: 60px 0; }
  .casos-header { text-align: left; padding: 0 0 0.5rem; }
  .casos-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .casos-header p { font-size: 0.88rem; margin: 0; }
  .casos-slider { margin-top: 2rem; }
  .caso-slide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .caso-video-wrap { border-radius: 4px; }
  .caso-info { padding: 0; }
  .caso-client { font-size: 0.68rem; }
  .caso-title { font-size: clamp(1.1rem, 4.5vw, 1.5rem); margin-bottom: 0.8rem; }
  .caso-result { font-size: 0.85rem; line-height: 1.65; }
  .caso-tags { gap: 0.4rem; flex-wrap: wrap; }
  .caso-tag { font-size: 0.65rem; padding: 0.3rem 0.7rem; }
  .casos-controls {
    margin-top: 1.8rem;
    justify-content: center;
  }
  .casos-btn {
    width: 40px;
    height: 40px;
  }

  /* ── SERVICIOS HOME ── */
  #servicios-home { padding: 60px 0; }
  .section-header p { font-size: 0.88rem; }
  .servicios-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .servicio-card {
    padding: 1.4rem 1.2rem;
    flex-direction: column;
    gap: 0.6rem;
  }
  .servicio-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .servicio-title { font-size: 1rem; }
  .servicio-desc { font-size: 0.84rem; line-height: 1.6; }
  .servicio-arrow { font-size: 0.68rem; margin-top: 0.4rem; }

  /* ── DIFERENCIAL ── */
  #diferencial { padding: 60px 0; }
  .diferencial-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2rem;
  }
  .diferencial-item {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
  }
  .diferencial-item:first-child { border-top: 3px solid var(--accent); }
  .diferencial-num { font-size: 2rem; margin-bottom: 0.5rem; }
  .diferencial-title { font-size: 1.05rem; margin-bottom: 0.5rem; }
  .diferencial-text { font-size: 0.85rem; line-height: 1.7; }
  .diferencial-detail { font-size: 0.7rem; margin-top: 0.8rem; }

  /* ── TESTIMONIO ── */
  #testimonio { padding: 60px 0; }
  .testimonio-quote {
    font-size: clamp(1.05rem, 4vw, 1.4rem);
    text-align: left;
    padding-left: 1rem;
  }
  .testimonio-quote::before {
    font-size: 4rem;
    top: -1.5rem;
    left: -0.5rem;
  }
  .testimonio-author { align-items: flex-start; text-align: left; }

  /* ── CTA FINAL ── */
  #cta-final { padding: 70px 0; }
  .cta-final-title { font-size: clamp(1.7rem, 6vw, 2.5rem); }
  .cta-final-sub { font-size: 0.9rem; }
  .cta-urgency { font-size: 0.68rem; text-align: center; flex-wrap: wrap; justify-content: center; }
  #cta-final .btn { width: 100%; max-width: 340px; justify-content: center; }
  #cta-final .reveal { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

  /* ── FOOTER ── */
  #footer { padding: 3.5rem 0 2rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
  .footer-brand-name { font-size: 1.1rem; }
  .footer-brand-desc { font-size: 0.82rem; }
  .footer-col-title { font-size: 0.68rem; }
  .footer-links a { font-size: 0.85rem; }
  .footer-contact-item { font-size: 0.82rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    font-size: 0.72rem;
  }

  /* ── TRABAJOS ── */
  .trabajos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5px;
    background: rgba(255,255,255,0.04);
  }
  /* Tarjeta vertical en móvil: un poco más alta */
  .trabajo-card--vertical { aspect-ratio: 9/16; max-height: 420px; }
  .trabajo-card { min-height: 200px; }
  /* Filtros en dos filas */
  .trabajos-filters { gap: 0.4rem; padding: 1.5rem 0; }
  .filter-btn { font-size: 0.68rem; padding: 0.4rem 0.8rem; }

  /* ── SERVICIOS PÁGINA ── */
  .servicio-layout { grid-template-columns: 1fr; gap: 2rem; }
  .servicio-layout.reverse { direction: ltr; }
  .servicio-features { columns: 1; }

  /* ── NOSOTROS ── */
  .nosotros-layout { grid-template-columns: 1fr; gap: 2rem; }
  .equip-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* ── CONTACTO ── */
  .contacto-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-group { margin-bottom: 1.1rem; }
  .form-input, .form-select, .form-textarea {
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
  }
  .form-textarea { min-height: 100px; }

  /* ── MODAL ── */
  .modal-body { padding: 1.2rem; }
  .modal-data { grid-template-columns: 1fr; }
  .modal-title { font-size: 1.4rem; }

  /* ── EXIT POPUP ── */
  .exit-popup-box { padding: 1.8rem 1.2rem; margin: 0 1rem; }
  .exit-popup-box h3 { font-size: 1.3rem; }

  /* ── WHATSAPP BTN ── */
  #whatsapp-btn { bottom: 1.2rem; right: 1.2rem; width: 50px; height: 50px; }
  #whatsapp-btn svg { width: 24px; height: 24px; }
  .whatsapp-tooltip { display: none; }

  /* ── SECTION HEADERS ── */
  .section-header { text-align: left; }
  .section-header.center { text-align: center; }
  .divider { margin: 1.2rem 0; }
  .divider.center { margin: 1.2rem auto; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 0.9rem; }

  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 6.5vw, 1.9rem); }

  /* Hero más compacto */
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-subtitle { font-size: 0.85rem; }

  /* Métricas */
  .metric-number { font-size: 2.8rem; }

  /* Equipamiento 1 columna */
  .equip-grid { grid-template-columns: 1fr; }
  .modal-data { grid-template-columns: 1fr; }

  /* Trabajos: 1 columna en mobiles muy pequeños */
  .trabajos-grid { grid-template-columns: 1fr; }
  .trabajo-card--vertical { max-height: 380px; aspect-ratio: 9/16; }

  /* Botones full width */
  .btn-lg { padding: 0.9rem 1.5rem; font-size: 0.82rem; }

  /* CTA cards en servicios */
  .servicio-card { padding: 1.2rem; }

  /* Footer simplificado */
  .footer-social { gap: 1rem; }
  .footer-social a { width: 34px; height: 34px; }
}

/* ============================================================
   RESPONSIVE — LANDSCAPE MOBILE  (altura ≤ 480px)
   ============================================================ */
@media (max-height: 480px) and (orientation: landscape) {
  #hero {
    min-height: 100vw;
    padding-bottom: 2rem;
  }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.82rem; margin-bottom: 1.2rem; }
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }
}
