/* ============================================================
   A PEU CLÍNICA PODOLÓGICA — v3 BRANDING FIEL, IMAGEN PROTAGONISTA
   ============================================================ */

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

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

:root {
  /* Beige marca (reemplaza al azul anterior) */
  --blue-950:   #1a1613;
  --blue-900:   #2d251f;
  --blue-800:   #4d4036;
  --blue-700:   #7a624d;
  --blue-600:   #8c735c;
  --blue-500:   #a18871;
  --blue-400:   #baa590;
  --blue-300:   #d1c2b2;
  --blue-100:   #e6dbce;
  --blue-50:    #faf7f4;

  /* Neutros cálidos */
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-900:   #111827;

  /* WA */
  --wa-green:   #25d366;
  --wa-dark:    #128c7e;

  /* Tipografías */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-ui:      'Space Grotesk', system-ui, sans-serif;

  /* Radios */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  40px;
  --r-full: 999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.12);
  --shadow-blue: 0 8px 32px rgba(140,115,92,0.18);

  /* Transiciones */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);

  --container: 1200px;
  --header-h:  76px;
}

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.preloader-active {
  overflow: hidden;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.preloader-logo-wrap {
  width: 160px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 100%;
  height: auto;
  display: block;
  animation: logo-breathe 2.2s ease-in-out infinite;
}

.preloader-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--blue-100);
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: preloader-spin 0.8s linear infinite;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes logo-breathe {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
address { font-style: normal; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--gray-900);
}

h3 { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; color: var(--gray-900); }

h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

p { color: var(--gray-500); line-height: 1.75; font-size: 0.96rem; }

.text-blue { color: var(--blue-600); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--blue-500);
}

.section-header { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.section-header h2 { margin-bottom: 14px; }
.section-subtitle { font-size: 1rem; color: var(--gray-500); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.28s var(--ease);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-800); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(140,115,92,0.25); }
.btn-primary:active { transform: none; }

.btn-outline {
  background: transparent;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--blue-50); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.4); }

.btn-lg { padding: 16px 34px; font-size: 0.95rem; }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-arrow { transition: transform 0.2s var(--ease-spring); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: all 0.3s var(--ease);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0);
  transition: border-color 0.3s;
}

.site-header.scrolled::before { border-bottom-color: var(--gray-200); }
.site-header.scrolled { box-shadow: var(--shadow-sm); height: 66px; }

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* Logo image */
.logo-img-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.logo-img:hover { opacity: 0.75; }

/* Footer: logo en blanco sobre fondo oscuro */
.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
  opacity: 0.8;
  margin-bottom: 14px;
}

.main-nav { display: flex; margin-left: auto; }

.main-nav ul { display: flex; gap: 2px; }

.main-nav a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--r-full);
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }

.header-cta { margin-left: 8px; padding: 11px 22px; font-size: 0.85rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.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 Nav Overlay Backdrop */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 51, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: 300px;
  max-width: 85%;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--gray-100);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 1500;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); opacity: 1; }
.mobile-nav nav { padding: 96px 28px 36px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.15s;
}
.mobile-nav-link:hover { color: var(--blue-700); padding-left: 8px; }
.mobile-cta { margin-top: 24px; width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100dvh;
  padding-top: var(--header-h);
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - var(--header-h));
  width: 100%;
}

/* Left: content */
.hero-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 0;
  padding-left: calc((100vw - var(--container)) / 2 + 28px);
}

.hero-logo-mobile {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-full);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue-700);
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
  animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero-content-col h1 { margin-bottom: 20px; }
.hero-content-col h1 em { font-style: italic; color: var(--blue-700); }

.hero-lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero-text { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 32px; max-width: 460px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--gray-400);
  font-family: var(--font-ui);
  transition: color 0.2s;
}
.hero-location svg { color: var(--blue-500); }
.hero-location:hover { color: var(--gray-600); }

/* Right: image mosaic */
.hero-image-col {
  position: relative;
  overflow: hidden;
}

.hero-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, transparent 30%),
              linear-gradient(to top, rgba(11,26,51,0.5) 0%, transparent 40%);
}

/* Stats strip on image */
.hero-stats-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11,26,51,0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 18px 32px;
  gap: 0;
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 0 20px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; padding-right: 0; }

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  text-align: center;
  text-transform: uppercase;
}

/* Logo on dark sections / footer */

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-strip {
  background: var(--blue-700);
  padding: 13px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.marquee-sep { color: rgba(255,255,255,0.3); font-size: 1.2rem; }

/* ============================================================
   TRUST CARDS
   ============================================================ */
.trust-section {
  padding: 88px 0;
  background: var(--gray-50);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
  transform-origin: left;
}

.trust-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.trust-card:hover::before { transform: scaleX(1); }

.trust-icon {
  width: 48px; height: 48px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 20px;
  transition: all 0.3s;
}
.trust-card:hover .trust-icon { background: var(--blue-700); border-color: var(--blue-700); color: white; }

.trust-card h3 { font-size: 0.95rem; margin-bottom: 10px; }
.trust-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.65; }

/* ============================================================
   SERVICES — IMAGE CARDS
   ============================================================ */
.services-section {
  padding: 96px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-100);
}

/* Image on top of card */
.service-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

.service-card-image img,
.service-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card-image img,
.service-card:hover .service-card-image video { transform: scale(1.06); }

.service-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,26,51,0.55) 0%, transparent 60%);
  transition: opacity 0.3s;
}

.service-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue-700);
  color: white;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-full);
}

/* Content below image */
.service-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.service-card h3 { font-size: 1rem; color: var(--gray-900); }
.service-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.65; flex: 1; }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-700);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  transition: gap 0.2s, color 0.2s;
}
.service-card-link:hover { gap: 10px; color: var(--blue-800); }
.service-card-link .btn-arrow { transition: transform 0.2s var(--ease-spring); }
.service-card-link:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   SERVICES FULL — TABS
   ============================================================ */
.services-full-section {
  padding: 96px 0;
  background: var(--gray-50);
}

.services-full-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
}

.services-nav { background: var(--blue-950); padding: 8px 0; }

.service-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  background: none;
  border: none;
  border-left: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.service-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
.service-tab.active { color: white; border-left-color: var(--blue-400); background: rgba(176,152,130,0.15); }

.tab-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255,255,255,0.2);
  min-width: 22px;
  transition: color 0.2s;
}
.service-tab.active .tab-number { color: var(--blue-400); }

.services-content { background: var(--white); }

.service-panel { display: none; animation: fadeSlide 0.35s var(--ease); }
.service-panel.active { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }

@keyframes fadeSlide { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none} }

/* Image side */
.service-panel-image {
  position: relative;
  overflow: hidden;
}
.service-panel-image img,
.service-panel-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.service-panel:hover .service-panel-image img,
.service-panel:hover .service-panel-image video { transform: scale(1.03); }
.service-panel-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(11,26,51,0.15) 100%);
}

/* Content side */
.service-panel-content {
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.service-panel-content h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--gray-900);
}

.service-panel-content > p { font-size: 0.95rem; line-height: 1.8; }

.service-indications {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
  padding: 22px;
}
.service-indications h4 { margin-bottom: 12px; }
.service-indications ul { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.service-indications li {
  font-size: 0.84rem;
  color: var(--gray-600);
  padding-left: 16px;
  position: relative;
}
.service-indications li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--blue-500);
}

.services-cta {
  text-align: center;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.services-cta-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gray-500);
}

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.about-section {
  padding: 96px 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

/* Left: image panel */
.about-image-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  min-height: 580px;
}

.about-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, rgba(255,255,255,0.08));
}

.about-name-overlay {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: rgba(11,26,51,0.8);
  backdrop-filter: blur(12px);
  color: white;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  font-family: var(--font-ui);
}
.about-name-overlay strong { display: block; font-size: 1.05rem; font-weight: 600; }
.about-name-overlay span { font-size: 0.78rem; color: var(--blue-300); letter-spacing: 0.06em; text-transform: uppercase; }

/* Right: content */
.about-content-panel {
  background: var(--blue-950);
  padding: 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
}

.about-content-panel .section-label { color: var(--blue-300); }
.about-content-panel .section-label::before { background: var(--blue-400); }
.about-content-panel h2 { color: var(--white); }
.about-content-panel p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

.about-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--blue-300);
  border-left: 3px solid var(--blue-500);
  padding: 14px 22px;
  background: rgba(176,152,130,0.07);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  quotes: "\201C" "\201D";
}
.about-quote::before { content: open-quote; }
.about-quote::after { content: close-quote; }

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: all 0.25s;
}
.credential:hover { background: rgba(176,152,130,0.1); border-color: rgba(176,152,130,0.25); }

.credential-icon {
  width: 32px; height: 32px;
  background: rgba(176,152,130,0.15);
  border-radius: 8px;
  padding: 7px;
  color: var(--blue-400);
  flex-shrink: 0;
}

.credential strong { display: block; font-size: 0.84rem; color: white; font-weight: 600; margin-bottom: 2px; }
.credential span { font-size: 0.74rem; color: rgba(255,255,255,0.4); }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  padding: 96px 0;
  background: var(--gray-50);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-xl);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.3s var(--ease);
  position: relative;
}

.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }

.why-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 16px;
}

.why-icon {
  width: 44px; height: 44px;
  color: var(--blue-600);
  margin: 0 auto 18px;
}

.why-card h3 { margin-bottom: 10px; font-size: 0.95rem; }
.why-card p { color: var(--gray-500); font-size: 0.88rem; }

/* ============================================================
   TECH SECTION — IMPRESORA 3D
   ============================================================ */
.tech-section {
  padding: 0;
  background: var(--white);
  overflow: hidden;
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* Image side */
.tech-images-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}

.tech-img-cell {
  overflow: hidden;
  position: relative;
}

.tech-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}
.tech-img-cell:hover img { transform: scale(1.05); }

.tech-img-cell--large {
  grid-column: 1 / -1;
}

/* Content side */
.tech-content-col {
  background: var(--blue-950);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.tech-content-col .section-label { color: var(--blue-300); }
.tech-content-col .section-label::before { background: var(--blue-400); }
.tech-content-col h2 { color: var(--white); }
.tech-content-col p { color: rgba(255,255,255,0.6); }

.tech-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.tech-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  transition: all 0.25s;
}
.tech-highlight:hover { background: rgba(176,152,130,0.1); border-color: rgba(176,152,130,0.25); }

.tech-h-icon {
  width: 30px; height: 30px;
  background: rgba(176,152,130,0.15);
  border-radius: 8px;
  padding: 6px;
  color: var(--blue-300);
  flex-shrink: 0;
}

.tech-highlight strong { display: block; font-size: 0.84rem; color: white; font-weight: 600; margin-bottom: 2px; }
.tech-highlight span { font-size: 0.74rem; color: rgba(255,255,255,0.45); }

/* ============================================================
   GALERÍA — NUESTRO CENTRO
   ============================================================ */
.gallery-section {
  padding: 96px 0;
  background: var(--white);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 280px 280px;
  gap: 12px;
}

.gallery-cell {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-cell:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 3; }
.gallery-cell:nth-child(2) { grid-column: 6 / 9; grid-row: 1; }
.gallery-cell:nth-child(3) { grid-column: 9 / 13; grid-row: 1; }
.gallery-cell:nth-child(4) { grid-column: 6 / 10; grid-row: 2; }
.gallery-cell:nth-child(5) { grid-column: 10 / 13; grid-row: 2; }

.gallery-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-cell:hover img { transform: scale(1.05); }

.gallery-cell-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,26,51,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-cell:hover .gallery-cell-overlay { opacity: 1; }

.gallery-expand {
  margin-left: auto;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,0.96);
  backdrop-filter: blur(24px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-content img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--r-lg); }

/* ============================================================
   SEO LOCAL
   ============================================================ */
.seo-section {
  padding: 88px 0;
  background: var(--gray-50);
}

.seo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.seo-content { display: flex; flex-direction: column; gap: 22px; }
.seo-content h2 { font-size: 2rem; }
.seo-content p strong { color: var(--blue-700); font-weight: 500; }

.address-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
}
.address-block svg { color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }
.address-block address { font-size: 0.92rem; color: var(--gray-700); line-height: 1.6; }

.seo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.keyword-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-tag {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-600);
  font-family: var(--font-ui);
  transition: all 0.2s;
}
.keyword-tag:hover { background: var(--blue-700); color: white; border-color: var(--blue-700); transform: translateY(-2px); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 96px 0;
  background: var(--white);
}

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--gray-100); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue-700); }

.faq-icon {
  width: 26px; height: 26px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--blue-700);
  color: white;
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), opacity 0.3s; opacity: 0; }
.faq-answer.open { max-height: 400px; opacity: 1; }
.faq-answer p { padding-bottom: 22px; font-size: 0.92rem; color: var(--gray-500); }
.faq-answer a { color: var(--blue-700); border-bottom: 1px solid var(--blue-200); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 96px 0;
  background: var(--gray-50);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-ctas { display: flex; flex-direction: column; gap: 14px; }

.contact-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.contact-cta--wa {
  background: linear-gradient(135deg, rgba(37,211,102,0.08), rgba(18,140,126,0.06));
  border-color: rgba(37,211,102,0.2);
}
.contact-cta--wa:hover { border-color: rgba(37,211,102,0.4); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,211,102,0.12); }

.contact-cta--phone {
  background: var(--white);
  border-color: var(--gray-200);
}
.contact-cta--phone:hover { border-color: var(--blue-200); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.cta-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-cta--wa .cta-icon { background: rgba(37,211,102,0.12); color: #16a34a; }
.contact-cta--phone .cta-icon { background: var(--blue-50); color: var(--blue-700); }

.cta-text { display: flex; flex-direction: column; gap: 2px; }
.cta-text strong { font-size: 0.95rem; font-weight: 600; color: var(--gray-900); font-family: var(--font-ui); }
.cta-text span { font-size: 0.82rem; color: var(--gray-500); }
.cta-text .cta-number { font-size: 1.05rem; font-weight: 600; color: var(--gray-800); font-family: var(--font-ui); }

.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.contact-detail svg { color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.form-note { font-size: 0.82rem; color: var(--gray-400); margin-bottom: 28px; }

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); font-family: var(--font-ui); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gray-900);
  outline: none;
  transition: all 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group select option { background: white; color: var(--gray-900); }
.form-group textarea { resize: vertical; min-height: 96px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.checkbox-label input { display: none; }
.checkmark {
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  margin-top: 1px;
}
.checkbox-label input:checked + .checkmark { background: var(--blue-700); border-color: var(--blue-700); }
.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 5px; height: 8px;
  border: 1.5px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.checkbox-label a { color: var(--blue-700); border-bottom: 1px solid var(--blue-200); }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(22,163,74,0.06);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: var(--r-md);
  margin-top: 14px;
}
.form-success.visible { display: flex; }
.form-success svg { color: #16a34a; flex-shrink: 0; }
.form-success p { font-size: 0.88rem; color: var(--gray-600); margin: 0; }

/* ============================================================
   MAP
   ============================================================ */
.map-section { padding: 0 0 88px; background: var(--gray-50); }

.map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.map-wrap iframe { display: block; filter: saturate(0.85) contrast(1.02); }

.map-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--blue-700);
  color: white;
  border-radius: var(--r-full);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.map-btn:hover { background: var(--blue-800); transform: translateX(-50%) translateY(-3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-950);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
  opacity: 0.85;
}

.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.65; }

.footer-contact-info { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-contact-link:hover { color: white; }

.footer-address { font-size: 0.82rem; color: rgba(255,255,255,0.3); line-height: 1.65; }

.footer-nav h4 { color: rgba(255,255,255,0.25); margin-bottom: 18px; }

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-nav a:hover { color: white; }

.footer-cta-col h4 { color: rgba(255,255,255,0.25); margin-bottom: 12px; }
.footer-cta-col p { font-size: 0.88rem; color: rgba(255,255,255,0.4); margin-bottom: 18px; line-height: 1.6; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.76rem; color: rgba(255,255,255,0.25); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 100px; right: 24px;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 800;
  transition: all 0.3s var(--ease-spring);
  overflow: visible;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float-label {
  position: absolute;
  right: 68px;
  background: var(--gray-900);
  color: white;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-ui);
  padding: 6px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.2s;
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-float-label { opacity: 1; transform: translateX(0); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.5); }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.3);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
@keyframes wa-pulse { 0%{transform:scale(1);opacity:1}70%{transform:scale(1.45);opacity:0}100%{transform:scale(1.45);opacity:0} }

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--gray-100);
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px;
  transition: background 0.15s;
}
.mobile-bar-btn svg { width: 22px; height: 22px; }
.mobile-bar-call { border-right: 1px solid var(--gray-100); color: var(--gray-700); }
.mobile-bar-wa { background: var(--wa-green); color: white; }
.mobile-bar-wa:active { background: var(--wa-dark); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
  z-index: 2000;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   ANIMACIONES REVEAL
   ============================================================ */
.reveal-up { opacity:0; transform:translateY(28px); transition:opacity .6s var(--ease),transform .6s var(--ease); }
.reveal-left { opacity:0; transform:translateX(-28px); transition:opacity .6s var(--ease),transform .6s var(--ease); }
.reveal-right { opacity:0; transform:translateX(28px); transition:opacity .6s var(--ease),transform .6s var(--ease); }
.revealed { opacity:1!important; transform:none!important; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-content-col { padding: 60px 0 40px; padding-left: 28px; padding-right: 28px; }
  .hero-image-col { min-height: 450px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image-panel { border-radius: var(--r-xl) var(--r-xl) 0 0; min-height: 400px; }
  .about-content-panel { border-radius: 0 0 var(--r-xl) var(--r-xl); padding: 48px 40px; }
  .tech-inner { grid-template-columns: 1fr; }
  .tech-images-col { min-height: 400px; }
  .tech-content-col { padding: 56px 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .services-full-layout { grid-template-columns: 220px 1fr; }
  .service-panel.active { grid-template-columns: 1fr; }
  .service-panel-image { min-height: 280px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; z-index: 1600; }

  .hero-split { grid-template-columns: 1fr; }
  .hero-content-col { padding: 40px 24px; }
  .hero-logo-mobile {
    display: block;
    margin-bottom: 24px;
  }
  .hero-mobile-logo {
    height: 44px;
    width: auto;
    display: block;
  }
  .hero-image-col { display: none; }
  .hero-stats-overlay { flex-wrap: wrap; gap: 8px; padding: 16px; }
  .hero-stat { min-width: 40%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

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

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

  .services-full-layout { grid-template-columns: 1fr; }
  
  /* Horizontal scrollable tabs instead of vertical grid rows */
  .services-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 16px;
    gap: 8px;
  }
  .services-nav::-webkit-scrollbar { display: none; }
  
  .service-tab {
    flex: 0 0 auto;
    width: auto;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-size: 0.82rem;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-radius: var(--r-md);
  }
  .service-tab.active {
    border-bottom-color: var(--blue-400);
    background: rgba(59,130,246,0.08);
  }
  
  .service-panel.active { grid-template-columns: 1fr; }
  .service-panel-image { min-height: 220px; }
  .service-panel-content { padding: 28px 24px; }
  .service-indications ul { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; }
  .about-image-panel { border-radius: var(--r-xl) var(--r-xl) 0 0; min-height: 340px; }
  .about-content-panel { border-radius: 0 0 var(--r-xl) var(--r-xl); padding: 40px 28px; }
  .about-credentials { grid-template-columns: 1fr; }

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

  .tech-inner { grid-template-columns: 1fr; }
  .tech-images-col { min-height: 360px; }
  .tech-content-col { padding: 48px 28px; }
  .tech-highlights { grid-template-columns: 1fr; }

  /* Gallery mosaic override fix */
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-cell:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery-cell:nth-child(1) { grid-column: 1/-1; grid-row: auto; }

  .seo-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 32px 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; }

  /* Hide floating WA on mobile to avoid overlap/duplication with bottom quick bar */
  .whatsapp-float { display: none; }

  .mobile-bar {
    display: flex;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .trust-section,.services-section,.services-full-section,.about-section,.why-section,
  .gallery-section,.seo-section,.faq-section,.contact-section { padding: 64px 0; }
  .map-section { padding: 0 0 64px; }
  .section-header { margin-bottom: 40px; }
}

@media (max-width:480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .footer-legal { flex-direction: column; gap: 8px; }
  .hero-stats-overlay { display: none; }
}
