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

:root {
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --max-w: 80rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--slate-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: #dbeafe;
  color: #1e3a8a;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 1.75rem; height: 1.75rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
  padding: 0.75rem 0;
}

.navbar.scrolled,
.navbar.menu-open {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--slate-900);
  transition: color 0.3s;
  line-height: 1.1;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

@media (min-width: 480px) { .logo { font-size: 1.35rem; } }
@media (min-width: 768px) { .logo { font-size: 1.5rem; } }

.navbar .logo-image {
  width: auto;
  height: 2.5rem;
  max-width: 3.5rem;
  border-radius: 0.25rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .navbar .logo-image {
    height: 2.75rem;
    max-width: 4rem;
  }
}

.logo-text {
  display: block;
  line-height: 1.05;
}

@media (min-width: 640px) {
  .logo-text {
    white-space: nowrap;
  }
}

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

.nav-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  min-width: 0;
  line-height: 1.05;
}

.nav-mobile-brand .logo-image {
  height: 2.25rem;
  max-width: 2.75rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
}

.footer-brand .logo-image {
  height: 2.75rem;
  max-width: 3.25rem;
  width: auto;
  border-radius: 0.375rem;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.footer-brand .logo-accent { color: var(--blue-400); }

.nav-desktop {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
    margin-left: auto;
  }
}

@media (min-width: 1200px) {
  .nav-desktop { gap: 0.75rem 1.5rem; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active { color: var(--blue-600); }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  background: var(--blue-600);
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}

.btn-call:hover { background: var(--blue-700); }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  color: var(--slate-700);
  border-radius: var(--radius-lg);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.menu-toggle:active { transform: scale(0.95); }

@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Panel móvil */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(88vw, 22rem);
  height: 100dvh;
  background: var(--white);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-mobile.open { transform: translateX(0); }

@media (min-width: 1024px) {
  .nav-overlay,
  .nav-mobile { display: none !important; }
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
  flex-shrink: 0;
}

.nav-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--slate-100);
  color: var(--slate-600);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-mobile-close:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.nav-mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.nav-mobile-link:active { transform: scale(0.98); }

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--blue-600);
  background: #eff6ff;
}

.nav-mobile-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--slate-100);
  color: var(--slate-500);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.nav-mobile-link:hover .nav-mobile-link-icon,
.nav-mobile-link.active .nav-mobile-link-icon {
  background: var(--blue-600);
  color: var(--white);
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
}

.nav-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.nav-mobile-btn:active { transform: scale(0.98); }

.nav-mobile-btn-primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-mobile-btn-primary:hover { background: var(--blue-700); }

.nav-mobile-btn-secondary {
  color: var(--blue-600);
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.nav-mobile-btn-secondary:hover { background: #dbeafe; }

.nav-mobile-contacts {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile-contacts-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
}

.nav-mobile-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-600);
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.nav-mobile-contact:hover { color: var(--blue-600); }

.nav-mobile-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--blue-600);
  border: 1px solid var(--slate-200);
  flex-shrink: 0;
}

body.menu-open { overflow: hidden; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  padding-top: 0;
}

.hero-slider-track {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

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

.hero-slide .hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero.hero-slider .hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  background-image: none;
  color: var(--blue-600);
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero.hero-slider .hero-slider-arrow svg {
  opacity: 1;
  color: var(--blue-600);
  stroke: currentColor;
  stroke-width: 2.5;
}

.hero-slider-prev {
  left: 1rem;
  transform: translateY(-50%);
}

.hero-slider-next {
  right: 1rem;
  transform: translateY(-50%);
}

.hero.hero-slider .hero-slider-arrow:hover,
.hero.hero-slider .hero-slider-arrow:focus-visible {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--blue-700);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

.hero.hero-slider .hero-slider-arrow:hover svg,
.hero.hero-slider .hero-slider-arrow:focus-visible svg {
  color: var(--blue-700);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
  transform: translateY(calc(-50% - 1px));
}

.hero-slider-controls {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.hero-slider-controls > * {
  pointer-events: auto;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
  padding: 0;
  position: relative;
}

.hero-slider-dot::before {
  content: '';
  position: absolute;
  inset: -0.625rem;
}

.hero-slider-dot.is-active {
  width: 2rem;
  background: var(--blue-500);
}

@media (min-width: 768px) {
  .hero-slider-prev { left: 1.5rem; }
  .hero-slider-next { right: 1.5rem; }
}

@media (min-width: 1024px) {
  .hero-slider-prev { left: 2rem; }
  .hero-slider-next { right: 2rem; }
  .hero.hero-slider .hero-slider-arrow {
    width: 3.25rem;
    height: 3.25rem;
  }
}

@media (max-width: 767px) {
  .hero-slider-controls {
    inset: auto 0 max(1rem, env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    z-index: 25;
    padding: 0 max(0.75rem, env(safe-area-inset-right, 0px)) 0 max(0.75rem, env(safe-area-inset-left, 0px));
  }

  .hero-slider-dots {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    flex: 0 1 auto;
  }

  .hero.hero-slider .hero-slider-arrow {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    flex: 0 0 auto;
    transform: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(15, 23, 42, 0.72);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  }

  .hero.hero-slider .hero-slider-arrow svg {
    width: 1rem;
    height: 1rem;
    color: var(--white);
  }

  .hero-slider-prev,
  .hero-slider-next {
    left: auto;
    right: auto;
    transform: none;
  }

  .hero-slider-prev:hover,
  .hero-slider-next:hover {
    transform: none;
    background-color: rgba(15, 23, 42, 0.88);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .hero.hero-slider .hero-slider-arrow:hover,
  .hero.hero-slider .hero-slider-arrow:focus-visible {
    background-color: rgba(15, 23, 42, 0.88);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
  }

  .hero.hero-slider .hero-slider-arrow:hover svg,
  .hero.hero-slider .hero-slider-arrow:focus-visible svg {
    color: var(--white);
  }

  .hero-slide .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 4.5rem;
  }
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 5.5rem;
  max-width: 48rem;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .hero h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); }
}

.hero h1 .accent {
  color: var(--blue-400);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.625;
  max-width: 42rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: auto;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: var(--blue-600);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
}

.btn-primary .icon { margin-left: 0.5rem; transition: transform 0.2s; color: var(--white); stroke: currentColor; }
.btn-primary:hover .icon,
.btn-primary:focus-visible .icon { transform: translateX(4px); color: var(--white); }

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus-visible {
  color: var(--white);
}

.hero-buttons .btn-primary:hover .icon,
.hero-buttons .btn-primary:focus-visible .icon {
  color: var(--white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-900);
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-outline:hover {
  background: var(--slate-100);
  border-color: var(--slate-100);
  color: var(--slate-900);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── Sections common ── */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.section-title {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
}

@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

.section-title .accent { color: var(--blue-600); }

.section-desc {
  margin-top: 1rem;
  color: var(--slate-600);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.from-left { transform: translateX(-20px); }
.reveal.from-right { transform: translateX(20px); }
.reveal.scale-in { transform: scale(0.95); }

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

/* ── About ── */
.about { background: var(--white); overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-text h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .about-text h2 { font-size: 2.25rem; } }

.about-text p {
  color: var(--slate-600);
  line-height: 1.625;
  margin-bottom: 1rem;
}

.about-image-wrap { position: relative; }

.about-image {
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-quote {
  display: none;
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--blue-600);
  padding: 2rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  color: var(--white);
  max-width: 20rem;
}

@media (min-width: 768px) { .about-quote { display: block; } }

.about-quote p {
  font-size: 1.125rem;
  font-weight: 600;
  font-style: italic;
  margin: 0;
}

.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  transition: box-shadow 0.3s;
}

.card:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.card-icon {
  width: 3rem;
  height: 3rem;
  background: #dbeafe;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.625;
}

/* ── Services ── */
.services { background: var(--slate-50); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  padding: 0;
  border-radius: var(--radius-2xl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--slate-100);
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.service-card:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.service-thumb {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  display: block;
  background: var(--slate-100);
}

.service-body { padding: 1.5rem 2rem 2rem; }

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: #eff6ff;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 1.5rem;
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-icon {
  background: var(--blue-600);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.625;
}

/* ── Projects ── */
.projects { background: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover img { transform: scale(1.1); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.45) 45%, transparent 100%);
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  pointer-events: none;
}

.project-category {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  opacity: 0.92;
}

.project-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ── Quote section ── */
.quote-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
}

.quote-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.quote-section::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.quote-section .container {
  position: relative;
  z-index: 1;
}

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

@media (min-width: 1024px) {
  .quote-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
}

.quote-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.375rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
}

.quote-benefit-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-600);
}

.quote-benefit-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.quote-benefit h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.quote-benefit p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.quote-quick-call {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--slate-900);
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.35);
}

a.quote-quick-call:hover,
a.quote-quick-call:focus-visible {
  background: var(--blue-700);
  color: var(--white);
  transform: translateY(-1px);
}

a.quote-quick-call:hover strong,
a.quote-quick-call:focus-visible strong,
a.quote-quick-call:hover em,
a.quote-quick-call:focus-visible em {
  color: var(--white);
}

a.quote-quick-call:hover .quote-quick-call-icon,
a.quote-quick-call:focus-visible .quote-quick-call-icon {
  color: var(--white);
}

a.quote-quick-call:hover .quote-quick-call-icon svg,
a.quote-quick-call:focus-visible .quote-quick-call-icon svg {
  stroke: currentColor;
  color: var(--white);
}

.quote-quick-call strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.quote-quick-call em {
  font-style: normal;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue-400);
}

.quote-quick-call-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
}

.quote-quick-call-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.quote-form-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-3xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

.quote-form-inner .form-notice--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #166534;
}

.quote-form-inner .form-notice--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

.quote-section .form-group label {
  color: var(--slate-700);
}

.quote-section .form-group input,
.quote-section .form-group textarea,
.quote-section .form-group select {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-900);
}

.quote-section .form-group input::placeholder,
.quote-section .form-group textarea::placeholder {
  color: var(--slate-400);
}

.quote-section .form-group input:focus,
.quote-section .form-group textarea:focus,
.quote-section .form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--white);
}

.quote-section .form-help {
  color: var(--slate-500);
}

.quote-section .form-group input[type="file"] {
  background: var(--slate-50);
  border-style: dashed;
}

.quote-section .form-group input[type="file"]::file-selector-button {
  background: var(--blue-600);
  color: var(--white);
}

.quote-section .sam-quote-form .btn-submit {
  border-color: var(--slate-200);
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.35);
}

.quote-section .sam-quote-form .btn-submit:hover,
.quote-section .sam-quote-form .btn-submit:focus-visible {
  border-color: var(--slate-200);
  box-shadow: 0 14px 24px -8px rgba(37, 99, 235, 0.45);
}

.form-group-recaptcha {
  margin-bottom: 1.5rem;
}

.form-group-recaptcha .g-recaptcha {
  transform-origin: left top;
}

@media (max-width: 400px) {
  .form-group-recaptcha .g-recaptcha {
    transform: scale(0.82);
  }
}

/* ── Contact ── */
.contact {
  background: var(--slate-900);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 3rem;
  }
}

.contact-form-col,
.contact-info-col {
  min-width: 0;
}

.contact-info-col .contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .contact-info-col .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-centered {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.contact-centered .contact-cards {
  margin-bottom: 2.5rem;
}

.contact-cta {
  margin-top: 2rem;
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-xl);
  text-decoration: none;
  box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.5);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-cta-btn:hover,
.contact-cta-btn:focus-visible {
  background: var(--blue-700);
  color: var(--white);
  transform: translateY(-1px);
}

.contact-cta-btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .contact-header h2 { font-size: 2.25rem; } }

.contact-header h2 .accent { color: var(--blue-500); }

.contact-header p {
  color: var(--slate-400);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card .contact-item-icon {
  margin: 0 auto 1rem;
  width: fit-content;
}

.contact-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-card p { color: var(--slate-400); }

.contact-card a {
  color: var(--slate-300);
  transition: color 0.2s;
}

.contact-card a:hover { color: var(--white); }

.contact-social h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-300);
  margin-bottom: 1.25rem;
}

.contact-info h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

@media (min-width: 768px) { .contact-info h2 { font-size: 2.25rem; } }

.contact-info h2 .accent { color: var(--blue-500); }

.contact-info > p {
  color: var(--slate-400);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 3rem;
}

.contact-items { display: flex; flex-direction: column; gap: 2rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  flex-shrink: 0;
  padding: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  color: var(--blue-500);
}

.contact-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p { color: var(--slate-400); }

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.quote-form-title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quote-form-desc {
  color: var(--slate-400);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-notice {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-notice--success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.form-notice--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.sam-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-help {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

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

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

@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: outline 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--blue-600);
}

.form-group input[type="file"] {
  padding: 0.625rem 0.875rem;
  background: var(--slate-900);
}

.form-group input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.875rem;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 6rem; }

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.quote-section .form-group.is-invalid input,
.quote-section .form-group.is-invalid select,
.quote-section .form-group.is-invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.contact-form-wrap .sam-quote-form button.btn-submit,
.sam-quote-form .btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  color: var(--slate-900);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #ffffff;
  border-radius: var(--radius-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s, transform 0.2s;
}

.contact-form-wrap .sam-quote-form button.btn-submit:hover,
.contact-form-wrap .sam-quote-form button.btn-submit:focus,
.contact-form-wrap .sam-quote-form button.btn-submit:focus-visible,
.contact-form-wrap .sam-quote-form button.btn-submit:active,
.sam-quote-form .btn-submit:hover,
.sam-quote-form .btn-submit:focus,
.sam-quote-form .btn-submit:focus-visible,
.sam-quote-form .btn-submit:active {
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  color: var(--slate-900);
  border-color: #ffffff;
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.contact-form-wrap .sam-quote-form button.btn-submit .icon,
.sam-quote-form .btn-submit .icon {
  color: var(--slate-900);
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s;
}

.contact-form-wrap .sam-quote-form button.btn-submit:hover .icon,
.contact-form-wrap .sam-quote-form button.btn-submit:focus-visible .icon,
.sam-quote-form .btn-submit:hover .icon,
.sam-quote-form .btn-submit:focus-visible .icon {
  color: var(--slate-900);
  transform: translate(4px, -4px);
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #ffffff;
  background-color: #ffffff;
  color: var(--slate-900);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #ffffff;
  border-radius: var(--radius-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-submit:hover,
.btn-submit:focus,
.btn-submit:focus-visible,
.btn-submit:active {
  background: #ffffff;
  background-color: #ffffff;
  color: var(--slate-900);
  border-color: #ffffff;
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.22);
}

.btn-submit .icon { transition: transform 0.2s; }
.btn-submit:hover .icon { transform: translate(4px, -4px); }

/* ── Social links ── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links--contact {
  justify-content: center;
}

.social-links--footer {
  margin-top: 1.25rem;
}

.social-link {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}

.social-link--whatsapp:hover { background: #25d366; border-color: #25d366; }
.social-link--facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-link--instagram:hover { background: #e4405f; border-color: #e4405f; }
.social-link--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.social-link--youtube:hover { background: #ff0000; border-color: #ff0000; }
.social-link--tiktok:hover { background: #010101; border-color: #010101; }

/* ── Footer ── */
.footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }
}

.footer-col { min-width: 0; }

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-brand-col { align-items: flex-start; }
}

.footer-nav-col {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-nav-col { justify-content: center; }
}

.footer-copy-col {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-copy-col { justify-content: flex-end; }
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--white);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue-400);
}

.footer-copy { font-size: 0.875rem; }

/* ── Inner pages / Noticias ── */
.sam-main { padding-top: 5.5rem; }

.news-hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a8a 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
}

.news-hero--single { padding-bottom: 2rem; }

.news-hero-inner { max-width: 48rem; }

.news-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
}

.news-intro {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  line-height: 1.7;
}

.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.news-breadcrumb a:hover { color: var(--white); }

.news-section { background: var(--slate-50); }

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.news-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.news-filter:hover,
.news-filter.is-active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, transform 0.3s;
}

.news-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.news-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-100);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-card-media img { transform: scale(1.05); }

.news-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.news-card-body { padding: 1.5rem; }

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.news-card-category {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: var(--blue-700);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-card-title a:hover { color: var(--blue-600); }

.news-card-excerpt {
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.875rem;
}

.news-card-link:hover { color: var(--blue-700); }

.news-pagination { margin-top: 3rem; }

.news-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-weight: 600;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.news-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-100);
}

.news-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-empty p { color: var(--slate-600); }

.news-single { background: var(--white); }

.news-single-layout { max-width: 48rem; margin: 0 auto; }

.news-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
}

.news-single-featured {
  margin-bottom: 2rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-single-featured img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.sam-prose {
  color: var(--slate-700);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.sam-prose > * + * { margin-top: 1.25rem; }

.sam-prose h2,
.sam-prose h3 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.3;
}

.sam-prose h2 { font-size: 1.75rem; margin-top: 2rem; }
.sam-prose h3 { font-size: 1.375rem; margin-top: 1.5rem; }

.sam-prose a {
  color: var(--blue-600);
  text-decoration: underline;
}

.sam-prose ul,
.sam-prose ol {
  padding-left: 1.25rem;
}

.sam-prose blockquote {
  border-left: 4px solid var(--blue-600);
  padding-left: 1rem;
  color: var(--slate-600);
  font-style: italic;
}

.news-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-100);
}

.news-single-tags span {
  font-weight: 700;
  color: var(--slate-900);
}

.news-single-tags a {
  display: inline-flex;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.875rem;
}

.news-single-tags a:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.news-single-back { margin-top: 2rem; }

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-300);
  color: var(--slate-800);
  font-weight: 700;
  transition: all 0.2s;
}

.btn-outline-dark:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.news-related { background: var(--slate-50); }

.nav-mobile-link.active {
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.08);
}

/* ── Responsive refinements (mobile / tablet / accesibilidad) ── */

html {
  scroll-padding-top: 5.5rem;
}

[id] {
  scroll-margin-top: 5.5rem;
}

.navbar .container {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (max-width: 767px) {
  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .section-desc {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-content {
    padding-top: 4.75rem;
    padding-bottom: 4.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-text {
    white-space: normal;
    max-width: 11rem;
  }

  .quote-form-card {
    padding: 1.25rem;
  }

  .quote-benefit {
    padding: 1rem;
  }

  .quote-section,
  .contact {
    padding-bottom: calc(clamp(3.5rem, 8vw, 6rem) + 4.5rem);
  }

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

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 2.75rem;
    font-size: 16px;
  }

  .form-group textarea {
    min-height: 6rem;
  }

  .sam-quote-form .btn-submit,
  .contact-cta-btn {
    min-height: 3rem;
    width: 100%;
  }

  .contact-header p {
    font-size: 1rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.5rem 1.25rem;
  }

  .footer-links {
    gap: 0.75rem 1rem;
    font-size: 0.8125rem;
  }

  .news-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem 0.5rem;
    scrollbar-width: none;
  }

  .news-filters::-webkit-scrollbar { display: none; }

  .news-filter {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 2.75rem;
  }

  .news-single-content,
  .news-single-featured {
    overflow-wrap: anywhere;
  }

  .footer {
    padding-bottom: max(3rem, calc(3rem + env(safe-area-inset-bottom, 0px)));
  }

  .form-group-recaptcha .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left top;
  }

  .swal2-popup {
    width: calc(100% - 2rem) !important;
    margin: 0 1rem !important;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer-brand-col {
    align-items: flex-start;
  }

  .footer-copy-col {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
  }

  .contact-centered .contact-cards {
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-link {
    font-size: 0.8125rem;
  }

  .btn-call {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* WhatsApp flotante (plugin externo) */
.qlwapp__container {
  max-width: calc(100vw - 1.5rem) !important;
  right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
}

.qlwapp__button,
.qlwapp-toggle {
  max-width: calc(100vw - 2rem);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
  