/* ========================================
   ArteSD — Styles
   BebasNeue (display) + Inter (body)
   ======================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'BebasNeue';
  src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter_18pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --font-display: 'BebasNeue', sans-serif;
  --font-body: 'Inter', sans-serif;

  --accent: #C02E35;
  --accent-dark: #AB3634;
  --accent-hover: #e03840;

  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-card: #ffffff;
  --text: #232323;
  --text-muted: #6b6b6b;
  --text-inverse: #ffffff;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --overlay: rgba(0, 0, 0, 0.5);

  --hero-pattern: rgba(0, 0, 0, 0.35);
  --hero-scrim-a: rgba(0, 0, 0, 0.62);
  --hero-scrim-b: rgba(0, 0, 0, 0.22);
  --about-bg: #c02e35;
  --lang-track: #cfcfcf;

  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-text: #232323;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #111111;
  --bg-alt: #1a1a1a;
  --bg-card: #1e1e1e;
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --text-inverse: #111111;
  --border: #333333;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --overlay: rgba(0, 0, 0, 0.65);

  --hero-pattern: rgba(255, 255, 255, 0.1);
  --hero-scrim-a: rgba(0, 0, 0, 0.8);
  --hero-scrim-b: rgba(0, 0, 0, 0.45);
  --about-bg: #a3141c;
  --lang-track: #0b0b0b;

  --nav-bg: rgba(17, 17, 17, 0.92);
  --nav-text: #f0f0f0;

  color-scheme: dark;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { margin-bottom: 1rem; }
.text-accent { color: var(--accent); }

/* --- Utilities --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-padding { padding: 6rem 0; }
.text-center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent;
  transition:
    top 0.5s cubic-bezier(0.34, 1.3, 0.64, 1),
    left 0.5s cubic-bezier(0.34, 1.3, 0.64, 1),
    right 0.5s cubic-bezier(0.34, 1.3, 0.64, 1),
    width 0.5s cubic-bezier(0.34, 1.3, 0.64, 1),
    transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1),
    border-radius 0.5s cubic-bezier(0.34, 1.3, 0.64, 1),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}
.nav.scrolled {
  top: 12px;
  left: 50%;
  right: auto;
  width: min(1180px, calc(100% - 2rem));
  transform: translateX(-50%);
  border-radius: 999px;
  border-color: var(--border);
  box-shadow: 0 12px 40px var(--shadow-lg), 0 0 24px rgba(192, 46, 53, 0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  transition: height var(--transition);
}
.nav.scrolled .nav-inner { height: 70px; }
.nav-logo img {
  height: 38px;
  width: auto;
  transition: filter var(--transition);
}
[data-theme="dark"] .nav-logo img {
  filter: brightness(0) invert(1);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Selector de idioma deslizable */
.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 4px;
  border-radius: 12px;
  background: var(--lang-track);
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
.lang-opt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.lang-opt .flag {
  width: 18px;
  height: 13px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--border);
}
.lang-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.lang-toggle.lang-en .lang-thumb { transform: translateX(100%); }
.lang-toggle.lang-es .lang-opt:first-child,
.lang-toggle.lang-en .lang-opt:last-child { color: #ffffff; }

/* Push button de tema */
.theme-push {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0565c, var(--accent) 60%, var(--accent-dark));
  border: 1px solid var(--accent-dark);
  box-shadow: 0 4px 0 var(--accent-dark), 0 6px 14px var(--shadow-lg), inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.theme-push::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0;
  transition: opacity var(--transition);
}
[data-theme="light"] .theme-push {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-dark), 0 2px 6px var(--shadow), inset 0 3px 6px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .theme-push::after { opacity: 1; }
.theme-push:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-dark), 0 2px 6px var(--shadow), inset 0 3px 6px rgba(0, 0, 0, 0.35);
}
.theme-push svg {
  position: absolute;
  inset: 0;
  margin: auto;
  color: #ffffff;
}
[data-theme="light"] .theme-push .icon-moon { display: none; }
[data-theme="dark"] .theme-push .icon-sun { display: none; }

/* Teléfono desplegable */
.btn-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 2px 0 var(--shadow);
  overflow: hidden;
  transition: padding 0.4s ease, background var(--transition), color var(--transition);
}
.btn-phone:hover { background: var(--accent); color: #ffffff; }
.btn-phone.open { padding: 0 0.9rem; justify-content: flex-start; }
.btn-phone .phone-number {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.85rem;
  transition: max-width 0.4s ease, margin-left 0.4s ease;
}
.btn-phone.open .phone-number { max-width: 9rem; margin-left: 0.55rem; }
.btn-phone .phone-number a { color: inherit; }

.nav-extra {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-more { display: none; }

.nav-cta {
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
}

/* Botones de icono (nav de legal-notice.html) */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-text);
  transition: background var(--transition), color var(--transition);
  font-size: 1.1rem;
}
.btn-icon:hover { background: var(--bg-alt); }
.btn-lang {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  width: auto;
  padding: 0 0.75rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(var(--hero-pattern) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, var(--hero-scrim-a) 0%, var(--hero-scrim-b) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  padding-top: 78px;
}
.hero-content h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Indicador de scroll (Magic Mouse / mano en móvil) */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.scroll-hint.hidden {
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
}
.scroll-mouse {
  position: relative;
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}
.scroll-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #ffffff;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.scroll-hand {
  display: none;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}
@keyframes hand-scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 46, 53, 0.35);
}
.btn-outline {
  border: 2px solid currentColor;
  color: inherit;
}
.btn-outline:hover {
  background: currentColor;
}
.btn-outline span { color: var(--bg); }
[data-theme="dark"] .btn-outline:hover span { color: var(--bg); }
.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
}
.btn-ghost {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #20bd5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* --- Section: About (Nosotros) --- */
.about { background: var(--about-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-image:hover img { transform: scale(1.03); }
.about-text h2 { color: #ffffff; }
.about-text h2 .text-accent { display: block; margin-bottom: 0.25rem; color: rgba(255, 255, 255, 0.72); }
.about-text p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-text strong { color: #ffffff; font-weight: 600; }

/* --- Section: Services --- */
.services { background: var(--bg-alt); }
.services-header {
  text-align: center;
  margin-bottom: 4rem;
}
.services-header h2 { margin-bottom: 1rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-lg);
  border-color: var(--accent);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.service-card h4 { margin-bottom: 0.75rem; }
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Section: Testimonials --- */
.testimonials {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(38% 42% at 18% 28%, rgba(192, 46, 53, 0.16), transparent 70%),
    radial-gradient(34% 40% at 82% 22%, rgba(192, 46, 53, 0.1), transparent 70%),
    radial-gradient(40% 46% at 60% 82%, rgba(171, 54, 52, 0.12), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}
.testimonials > .container { position: relative; z-index: 1; }
.testimonial-wrap { position: relative; }
.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}
.testimonial-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: #f5b301;
  margin-bottom: 1rem;
}
.testimonial-stars svg.g {
  width: 18px;
  height: 18px;
  margin-left: 0.6rem;
}
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--shadow);
  transition: background var(--transition), color var(--transition);
}
.testimonial-arrow:hover { background: var(--accent); color: #ffffff; }
.testimonial-arrow.prev { left: 0; }
.testimonial-arrow.next { right: 0; }
.testimonial-track {
  overflow: hidden;
  position: relative;
}
.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  flex: 0 0 100%;
  padding: 0 1rem;
}
.testimonial-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 20px var(--shadow);
}
.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}
.testimonial-author {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition), transform var(--transition);
}
.testimonial-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* --- Section: Projects Gallery --- */
.projects { background: var(--bg-alt); }
.projects-header {
  text-align: center;
  margin-bottom: 3rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.project-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
}
.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(192,46,53,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-item:hover img { transform: scale(1.1); }
.project-item:hover::after { opacity: 1; }

/* --- Lightbox Portafolio --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lb-fade 0.35s ease both;
}
.lightbox-card {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(880px, 92vw);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform-origin: center center;
  animation: lb-card 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lightbox-card img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 6px);
}
.lightbox-card figcaption {
  padding: 0.85rem 0.5rem 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-arrow.prev { left: -58px; }
.lightbox-arrow.next { right: -58px; }
@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lb-card {
  0% { opacity: 0; transform: perspective(1400px) rotateY(85deg) scale(0.35) translateY(40px); }
  55% { opacity: 1; transform: perspective(1400px) rotateY(-14deg) scale(1.04) translateY(0); }
  80% { transform: perspective(1400px) rotateY(6deg) scale(0.99); }
  100% { opacity: 1; transform: perspective(1400px) rotateY(0deg) scale(1); }
}
.lightbox-closing .lightbox-backdrop { animation: lb-fade 0.25s ease reverse both; }
.lightbox-closing .lightbox-card { animation: lb-card-out 0.3s ease-in both; }
@keyframes lb-card-out {
  to { opacity: 0; transform: perspective(1400px) rotateY(-60deg) scale(0.5); }
}

/* --- Section: Contact --- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-detail p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0;
}
.contact-map-wrap {
  margin-top: 4rem;
}
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  aspect-ratio: 21/9;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- WhatsApp Chat Widget --- */
.wa-chat {
  display: flex;
  flex-direction: column;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e5ddd3;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px var(--shadow);
}
.wa-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: #075e53;
  color: #ffffff;
  flex-shrink: 0;
}
.wa-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
}
.wa-avatar img { width: 100%; height: 100%; }
.wa-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #ece5dd;
}
.wa-bubble {
  max-width: 80%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  white-space: pre-wrap;
  word-break: break-word;
}
.wa-bubble-in {
  align-self: flex-start;
  background: #ffffff;
  color: #1f2937;
  border-top-left-radius: 0;
}
.wa-bubble-out {
  align-self: flex-end;
  background: #dcf8c6;
  color: #1f2937;
  border-top-right-radius: 0;
}
.wa-footer {
  background: #f0f0f0;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.wa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0;
}
.wa-chip {
  background: #dcf8c6;
  color: #303030;
  border: 1px solid #c5e1a7;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
}
.wa-chip:hover { background: #c8e8b0; }
.wa-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}
.wa-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: #ffffff;
  color: #111827;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-family: var(--font-body);
}
.wa-form input:focus { box-shadow: 0 0 0 2px #25d366; }
.wa-form input::placeholder { color: #9ca3af; }
.wa-send {
  background: #25d366;
  color: #ffffff;
  border: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: background var(--transition), transform var(--transition);
}
.wa-send:hover { background: #1eb94b; }
.wa-send:active { transform: scale(0.9); }

[data-theme="dark"] .wa-chat { background: #0b141a; border-color: #2a3942; }
[data-theme="dark"] .wa-header { background: #202c33; }
[data-theme="dark"] .wa-body { background: #0b141a; }
[data-theme="dark"] .wa-bubble-in { background: #202c33; color: #e9edef; }
[data-theme="dark"] .wa-bubble-out { background: #005c4b; color: #e9edef; }
[data-theme="dark"] .wa-footer { background: #202c33; border-top-color: #2a3942; }
[data-theme="dark"] .wa-chip { background: #202c33; color: #e9edef; border-color: #2a3942; }
[data-theme="dark"] .wa-chip:hover { background: #2a3942; }
[data-theme="dark"] .wa-form input { background: #2a3942; color: #e9edef; }
[data-theme="dark"] .wa-form input::placeholder { color: #8696a0; }

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}
.footer-logo img {
  height: 36px;
  transition: filter var(--transition);
}
[data-theme="dark"] .footer-logo img {
  filter: brightness(0) invert(1);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.footer-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}
.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Parallax Sections --- */
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
  will-change: transform;
}
.parallax-bg img,
.parallax-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}
.parallax-content {
  position: relative;
  z-index: 2;
}

/* --- Video Section --- */
.video-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-section .video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.video-section .video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}
.video-section .video-content h2 { color: #ffffff; }
.video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1015 50%, #1a1a1a 100%);
  z-index: 0;
}

/* --- Logo Tiles (mosaico de fondo) --- */
.logo-tiles {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-row {
  display: flex;
  width: max-content;
  will-change: transform;
}
.logo-row-top { animation: marquee-right 48s linear infinite; }
.logo-row-bottom { animation: marquee-left 48s linear infinite; }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.logo-tile {
  flex: 0 0 auto;
  width: 210px;
  height: 128px;
  margin-right: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, background 0.5s ease;
}
.logo-tile img {
  width: 62%;
  max-height: 46%;
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

/* --- Scroll Animations --- */
.animate {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate.fade-up { transform: translateY(40px); }
.animate.fade-left { transform: translateX(-40px); }
.animate.fade-right { transform: translateX(40px); }
.animate.scale-in { transform: scale(0.9); }

.animate.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger children */
.stagger .animate:nth-child(1) { transition-delay: 0s; }
.stagger .animate:nth-child(2) { transition-delay: 0.1s; }
.stagger .animate:nth-child(3) { transition-delay: 0.2s; }
.stagger .animate:nth-child(4) { transition-delay: 0.3s; }
.stagger .animate:nth-child(5) { transition-delay: 0.4s; }
.stagger .animate:nth-child(6) { transition-delay: 0.5s; }
.stagger .animate:nth-child(7) { transition-delay: 0.6s; }
.stagger .animate:nth-child(8) { transition-delay: 0.7s; }

/* --- Responsive: Tablet --- */
@media (max-width: 975px) {
  .error-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .error-art { max-width: 340px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { order: -1; max-height: 400px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-social { justify-content: center; }
}

/* --- Responsive: Mobile --- */
@media (max-width: 575px) {
  .section-padding { padding: 4rem 0; }
  .nav-logo img { height: 46px; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 0.6rem 1.5rem; }
  .nav.scrolled .nav-inner { height: auto; }
  .nav-controls { flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
  .nav-cta { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .nav-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 2px 0 var(--shadow);
  }
  .nav-more svg { transition: transform 0.3s ease; }
  .nav.open-extra .nav-more svg { transform: rotate(180deg); }
  .nav-extra {
    flex-basis: 100%;
    justify-content: center;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    transition: max-height 0.4s ease, padding-top 0.4s ease;
  }
  .nav.open-extra .nav-extra { max-height: 70px; padding-top: 0.75rem; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 2.2rem; }
  .testimonial-inner { padding: 2rem 1.5rem; }
  .testimonial-arrow { width: 38px; height: 38px; }
  .scroll-mouse { display: none; }
  .scroll-hand { display: block; animation: hand-scroll 1.8s ease-in-out infinite; }
  .logo-tile { width: 150px; height: 92px; margin-right: 0.9rem; }
  .lightbox { padding: 1rem; }
  .lightbox-arrow.prev { left: 6px; }
  .lightbox-arrow.next { right: 6px; }
  .contact-map { aspect-ratio: 16/10; }
}

/* --- Paginas de texto (aviso legal) --- */
.page-hero {
  padding: 9rem 0 2rem;
  text-align: center;
}
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.legal-content h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  text-transform: none;
  letter-spacing: normal;
}
.legal-content p,
.legal-content li { color: var(--text-muted); line-height: 1.8; margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }

/* --- Paginas de error --- */
.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
}
.error-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.error-art img { width: 100%; height: auto; }
.error-code {
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.error-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
