/* ==========================================================================
   SM Ingeniería — Capa de mejoras de UX (páginas públicas)
   Se carga DESPUÉS de main.css. No se usa en el panel de administración.

   Principios (design engineering, E. Kowalski):
   - Animar solo transform/opacity, curvas ease-out fuertes, < 300 ms en UI.
   - Feedback inmediato al presionar (scale .97) y hovers solo en punteros finos.
   - Nada aparece desde scale(0); respetar prefers-reduced-motion.
   ========================================================================== */

:root {
  --sm-brand: #0fb0ee;
  --sm-brand-strong: #0a8fc4;
  --sm-ink: #0b1620;
  --sm-ink-soft: #444b52;
  --sm-surface: #ffffff;
  --sm-success: #127a3c;
  --sm-success-bg: #e8f6ee;
  --sm-danger: #b42318;
  --sm-danger-bg: #fdecea;
  --sm-whatsapp: #1fa855;
  --sm-focus: 0 0 0 3px rgba(15, 176, 238, 0.45);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --sm-header-h: 72px;
  --sm-actionbar-h: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sm-header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--sm-brand);
  color: #fff;
}

/* --------------------------------------------------------------------------
   1. Accesibilidad: foco visible y enlace "saltar al contenido"
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--sm-brand);
  outline-offset: 3px;
  border-radius: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--sm-focus);
}

.sm-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 12px 18px;
  background: var(--sm-ink);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.sm-skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.visually-hidden-sm {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. Preloader: salida rápida por opacidad (antes deslizaba 500 ms)
   -------------------------------------------------------------------------- */
.preloader {
  bottom: 0 !important;
  opacity: 1;
  transition: opacity 250ms var(--ease-out), visibility 0s linear 0s;
}
.page-loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out), visibility 0s linear 250ms;
}

/* --------------------------------------------------------------------------
   3. Botones: feedback al presionar, sin saltos de layout al hacer hover
   -------------------------------------------------------------------------- */
.theme-btn {
  line-height: 1.2;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-btn:before {
  border-radius: inherit;
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}
/* El hover original cambiaba line-height (mueve el texto y el layout) */
.theme-btn:hover {
  line-height: 1.2;
  text-indent: 0;
  color: #fff;
}
.theme-btn:hover:before {
  top: 0;
  left: 0;
}
@media (hover: hover) and (pointer: fine) {
  .theme-btn:hover {
    background-color: var(--sm-brand-strong);
    box-shadow: 0 10px 24px -10px rgba(15, 176, 238, 0.7);
  }
  .theme-btn:hover:before {
    transform: translate(5px, 5px);
    border-color: var(--sm-ink);
  }
  .theme-btn.w-color:hover:before {
    border-color: #fff;
  }
}
.theme-btn:active,
.sm-btn:active,
.sm-actionbar a:active,
#btn-chat-whatsapp:active .icon,
.social-media a:active,
.faq-question:active {
  transform: scale(0.97);
}
.theme-btn[disabled],
button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Botón secundario (contorno) reutilizable */
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.sm-btn--ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}
.sm-btn--whatsapp {
  color: #fff;
  background: var(--sm-whatsapp);
}
@media (hover: hover) and (pointer: fine) {
  .sm-btn--ghost:hover {
    color: var(--sm-ink);
    background: #fff;
    border-color: #fff;
  }
  .sm-btn--whatsapp:hover {
    color: #fff;
    background: #188a45;
  }
}

/* --------------------------------------------------------------------------
   4. Header fijo al hacer scroll (oscuro: el logo es blanco)
   -------------------------------------------------------------------------- */
header.two.sm-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: 0;
  background: rgba(11, 22, 32, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.6);
  z-index: 999;
  animation: sm-header-in 260ms var(--ease-out);
}
@keyframes sm-header-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
header.two.sm-stuck:before,
header.two.sm-stuck .header-top-bar {
  display: none;
}
header.two.sm-stuck .bottom-bar {
  padding-top: 8px;
  padding-bottom: 8px;
}
header.two.sm-stuck .navbar-links li > a {
  color: #fff;
}
header.two.sm-stuck li.menu-item-children > a:before {
  filter: invert(1);
}
header.two.sm-stuck .sub-menu a {
  color: #000;
}
header.two.sm-stuck .theme-btn {
  height: 46px;
  padding: 0 24px;
}
/* En escritorio, el logo pequeño aparece solo cuando el header está fijo */
@media (min-width: 1201px) {
  header.two.sm-stuck .two-bar .logo {
    display: block;
  }
  header.two.sm-stuck .two-bar .logo img {
    width: 150px;
    height: auto;
  }
}

/* Enlace de la página actual */
.navbar-links > li > a[aria-current="page"] {
  color: var(--sm-brand) !important;
}
.mobile-nav a[aria-current="page"] {
  color: var(--sm-brand) !important;
}

/* Submenú de escritorio: entrada corta desde su disparador */
@media (min-width: 1201px) {
  .navbar-links li.menu-item-children > .sub-menu {
    transform-origin: top left;
  }
}

/* Botón hamburguesa: área táctil de 44px */
#mobile-menu {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 1200px) {
  #mobile-menu {
    display: inline-flex;
  }
}
#mobile-menu i {
  margin-right: 0;
}

/* --------------------------------------------------------------------------
   5. Menú móvil: cajón más rápido con fondo oscurecido
   -------------------------------------------------------------------------- */
.mobile-nav {
  z-index: 10001;
  width: min(86vw, 380px) !important;
  padding: 28px 28px 32px;
  transition: transform 320ms var(--ease-drawer);
  box-shadow: 20px 0 40px -20px rgba(0, 0, 0, 0.6);
  overscroll-behavior: contain;
}
.mobile-nav .res-log {
  margin-bottom: 18px;
}
.mobile-nav .res-log img {
  width: 150px;
  height: auto;
}
.mobile-nav > ul > li {
  padding: 4px 0;
}
.mobile-nav > ul li > a {
  display: block;
  padding: 10px 0;
  font-size: 17px;
  line-height: 1.4;
  text-transform: none;
}
.mobile-nav .sm-mobile-ctas {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.mobile-nav .sm-mobile-ctas a {
  min-height: 50px;
  width: 100%;
}
.mobile-nav .sm-mobile-meta {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}
.mobile-nav a#res-cross {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.sm-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}
body.sm-nav-open .sm-nav-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 250ms ease, visibility 0s linear 0s;
}
body.sm-nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Hero de inicio: texto legible y llamadas a la acción
   -------------------------------------------------------------------------- */
.featured-area::before {
  opacity: 1;
  background: linear-gradient(90deg, rgba(5, 12, 18, 0.88) 0%, rgba(5, 12, 18, 0.65) 55%, rgba(5, 12, 18, 0.35) 100%);
}
.featured-area .hero-three-text h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}
.featured-area .hero-three-text h2 .sm-hero-sub {
  display: block;
  margin-top: 18px;
  font-size: 0.36em;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Epilogue", sans-serif;
  max-width: 34ch;
}
.sm-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.sm-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  list-style: none;
  padding: 0;
}
.sm-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sm-hero-trust i {
  color: var(--sm-brand);
}
/* Antes el titular esperaba 1.2 s en aparecer: ahora entra casi al instante */
.featured-area .hero-three-text h2,
.featured-area .hero-three-text .sm-hero-ctas,
.featured-area .hero-three-text .sm-hero-trust {
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out), visibility 0s;
}
.featured-area .hero-three-text .sm-hero-ctas,
.featured-area .hero-three-text .sm-hero-trust {
  opacity: 0;
  transform: translateY(12px);
}
.featured-area.swiper-slide.swiper-slide-active h2 {
  transition-delay: 100ms;
}
.featured-area.swiper-slide.swiper-slide-active .sm-hero-ctas,
.featured-area.swiper-slide.swiper-slide-active .sm-hero-trust {
  opacity: 1;
  transform: translateY(0);
}
.featured-area.swiper-slide.swiper-slide-active .sm-hero-ctas {
  transition-delay: 200ms;
}
.featured-area.swiper-slide.swiper-slide-active .sm-hero-trust {
  transition-delay: 280ms;
}
/* Los botones del hero no heredan la animación lateral del template */
.featured-area .hero-three-text .sm-hero-ctas a {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.featured-area .hero-three-text .sm-hero-ctas a:active {
  transform: scale(0.97);
}

@media (max-width: 1400px) {
  .featured-area .hero-three-text h2 { font-size: 58px; line-height: 1.1; }
}
@media (max-width: 992px) {
  .featured-area .hero-three-text h2 { font-size: 46px; }
}
@media (max-width: 556px) {
  .featured-area { padding-bottom: 110px; }
  .featured-area .hero-three-text h2 { font-size: 34px; line-height: 1.15; }
  .featured-area .hero-three-text h2 .sm-hero-sub { font-size: 16px; margin-top: 12px; }
  .sm-hero-ctas { flex-direction: column; align-items: stretch; }
  .sm-hero-ctas .theme-btn,
  .sm-hero-ctas .sm-btn { width: 100%; }
  .featured-area::before {
    background: linear-gradient(180deg, rgba(5, 12, 18, 0.7) 0%, rgba(5, 12, 18, 0.85) 100%);
  }
}

/* Banners internos: mejor contraste del título */
.bannr {
  isolation: isolate;
}
.bannr::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 12, 18, 0.55), rgba(5, 12, 18, 0.35));
  pointer-events: none;
}
.bannr h1 {
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   7. Lectura: textos más cómodos y títulos equilibrados
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   8. Formularios: etiquetas, foco claro y mensajes de estado
   -------------------------------------------------------------------------- */
.content-form input,
.content-form textarea,
.meet-experts input,
.meet-experts textarea {
  border: 1px solid #dfe5ea;
  border-radius: 6px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.content-form input:focus,
.content-form textarea:focus,
.meet-experts input:focus,
.meet-experts textarea:focus {
  border-color: var(--sm-brand);
  box-shadow: var(--sm-focus);
}
.content-form input:user-invalid,
.content-form textarea:user-invalid,
.meet-experts input:user-invalid,
.meet-experts textarea:user-invalid {
  border-color: var(--sm-danger);
}
.sm-field {
  margin-bottom: 18px;
}
.sm-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--sm-ink);
}
.sm-field label .sm-req {
  color: var(--sm-danger);
  margin-left: 2px;
}
.sm-field input,
.sm-field textarea {
  margin-bottom: 0 !important;
}
.sm-form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--sm-ink-soft);
}

.sm-form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}
.sm-form-status.is-visible {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: sm-fade-up 220ms var(--ease-out);
}
.sm-form-status.is-success {
  background: var(--sm-success-bg);
  color: var(--sm-success) !important;
}
.sm-form-status.is-error {
  background: var(--sm-danger-bg);
  color: var(--sm-danger) !important;
}
@keyframes sm-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sm-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sm-spin 600ms linear infinite;
}
@keyframes sm-spin {
  to { transform: rotate(360deg); }
}

/* Bloque de contacto: tarjetas con área táctil amplia */
.contact-information .get-in-touch h6 {
  color: var(--sm-ink);
  font-size: 16px;
  line-height: 1.5;
}
.contact-information .get-in-touch a,
footer .get-in-touch a {
  overflow-wrap: anywhere;
}
.sm-contact-quick {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.sm-contact-quick a {
  width: 100%;
}

/* CTA compartido (fondo azul): el botón principal pasa a oscuro para contrastar */
.project-section .sm-cta-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 14px auto 0;
}
.sm-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.project-section .project .sm-cta-actions .theme-btn {
  background: var(--sm-ink);
  color: #fff;
}
.project-section .project .sm-cta-actions .theme-btn i {
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .project-section .project .sm-cta-actions .theme-btn:hover {
    color: #fff;
    background: #000;
  }
  .project-section .sm-cta-actions .theme-btn:hover:before {
    border-color: #fff;
  }
}
@media (max-width: 556px) {
  .sm-cta-actions { flex-direction: column; }
  .sm-cta-actions a { width: 100%; }
}

/* --------------------------------------------------------------------------
   9. Barra de acción fija en móvil (Llamar · WhatsApp · Cotizar)
   -------------------------------------------------------------------------- */
.sm-actionbar {
  display: none;
}
@media (max-width: 991.98px) {
  .sm-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 24px -12px rgba(0, 0, 0, 0.35);
    transform: translateY(110%);
    transition: transform 280ms var(--ease-out);
  }
  .sm-actionbar.is-visible {
    transform: translateY(0);
  }
  body.sm-nav-open .sm-actionbar {
    transform: translateY(110%);
  }
  .sm-actionbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    color: var(--sm-ink);
    background: #f1f4f7;
    transition: transform 160ms var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }
  .sm-actionbar a i {
    font-size: 17px;
  }
  .sm-actionbar a.is-whatsapp {
    background: var(--sm-whatsapp);
    color: #fff;
  }
  .sm-actionbar a.is-primary {
    background: var(--sm-brand);
    color: #fff;
  }
  /* La barra ya ofrece WhatsApp: se oculta el botón flotante duplicado */
  #btn-chat-whatsapp {
    display: none !important;
  }
  /* Espacio para que la barra no tape el pie de página */
  body.sm-has-actionbar {
    padding-bottom: calc(var(--sm-actionbar-h) + env(safe-area-inset-bottom));
  }
  #scroll-percentage,
  #scroll-percentage.active {
    bottom: calc(var(--sm-actionbar-h) + 16px + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   10. Botón flotante de WhatsApp y "volver arriba"
   -------------------------------------------------------------------------- */
#btn-chat-whatsapp .icon {
  background-color: var(--sm-whatsapp);
  transition: transform 160ms var(--ease-out);
}
#btn-chat-whatsapp .icon i {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.get-in-touch i {
  flex: 0 0 40px;
  font-size: 17px;
}

/* El botón flotante de WhatsApp no debe tapar el copyright */
@media (min-width: 992px) {
  footer .f-bottom {
    padding-left: 96px;
  }
}

/* Pie de página: lista de garantías */
.sm-footer-badges {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  gap: 8px;
}
.sm-footer-badges li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.5;
}
.sm-footer-badges i {
  color: var(--sm-brand);
  margin-top: 4px;
}
@media (hover: hover) and (pointer: fine) {
  #btn-chat-whatsapp:hover .icon {
    transform: scale(1.06);
  }
}
#scroll-percentage {
  transform: scale(0.9);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
#scroll-percentage.active {
  transform: scale(1);
  animation: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
}

/* --------------------------------------------------------------------------
   11. Tarjetas e imágenes: hover sutil solo con mouse
   -------------------------------------------------------------------------- */
.service-card,
.blog-one,
.faq-item {
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .blog-one:hover {
    transform: translateY(-4px);
  }
}

/* --------------------------------------------------------------------------
   Tarjetas de proyectos (página /proyectos)
   Imagen con proporción fija y texto siempre visible debajo: antes la caja
   negra superpuesta tenía altura fija y cortaba el título.
   -------------------------------------------------------------------------- */
.sm-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 22, 32, 0.04);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
}
.sm-project-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f5;
}
.sm-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}
.sm-project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 22, 32, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sm-project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.sm-project-client {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sm-brand-strong);
}
.sm-project-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sm-project-title a {
  color: var(--sm-ink);
  text-decoration: none;
}
/* Toda la tarjeta es clicable */
.sm-project-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.sm-project-title a:focus-visible {
  outline: none;
}
.sm-project-card:focus-within {
  outline: 2px solid var(--sm-brand);
  outline-offset: 3px;
}
.sm-project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  color: var(--sm-ink-soft);
}
.sm-project-meta i {
  margin-right: 4px;
}
.sm-project-more {
  font-weight: 700;
  color: var(--sm-brand-strong);
  white-space: nowrap;
}
.sm-project-more i {
  margin: 0 0 0 4px;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .sm-project-card:hover {
    transform: translateY(-4px);
    border-color: #d5e3ec;
    box-shadow: 0 18px 40px -20px rgba(11, 22, 32, 0.35);
  }
  .sm-project-card:hover .sm-project-media img {
    transform: scale(1.04);
  }
  .sm-project-card:hover .sm-project-more i {
    transform: translateX(4px);
  }
}
.sm-project-card:active {
  transform: scale(0.99);
}
@media (max-width: 556px) {
  .sm-project-title { font-size: 19px; }
  .sm-project-body { padding: 18px; }
}

/* --------------------------------------------------------------------------
   Página Nosotros
   Flujo: quiénes somos → qué hacemos → historia → por qué confiar → resultados
   -------------------------------------------------------------------------- */
.sm-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sm-brand-strong);
}
.sm-about-title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--sm-ink);
  margin: 0 0 18px;
}
.sm-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--sm-ink);
  margin-bottom: 14px;
}
.sm-about-intro p:not(.sm-kicker):not(.sm-lead) {
  margin-bottom: 0;
}
.sm-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.sm-section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--sm-ink);
  margin: 0 0 12px;
}
.sm-section-head p:not(.sm-kicker) {
  margin: 0;
}

/* Cifras clave */
.sm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 30px;
}
.sm-stats > div {
  padding: 16px 14px;
  border: 1px solid #e3eaf0;
  border-radius: 10px;
  background: #f7fafc;
}
.sm-stats dt {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: var(--sm-brand-strong);
  font-family: "Titillium Web", sans-serif;
}
.sm-stats dd {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--sm-ink-soft);
}
.sm-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sm-btn--outline {
  color: var(--sm-ink);
  border: 2px solid var(--sm-ink);
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .sm-btn--outline:hover {
    color: #fff;
    background: var(--sm-ink);
  }
}

/* Composición de imágenes */
.sm-about-media {
  position: relative;
  padding: 0 0 70px 60px;
}
.sm-about-media figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}
.sm-about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sm-about-media-main {
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 24px 50px -28px rgba(11, 22, 32, 0.5);
}
.sm-about-media-sub {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  border: 6px solid #fff;
  box-shadow: 0 20px 40px -20px rgba(11, 22, 32, 0.45);
}
.sm-about-badge {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--sm-ink);
  color: #fff;
  box-shadow: 0 16px 32px -16px rgba(11, 22, 32, 0.6);
}
.sm-about-badge strong {
  font-size: 38px;
  line-height: 1;
  color: var(--sm-brand);
}
.sm-about-badge span {
  font-size: 14px;
  line-height: 1.35;
}

/* Qué hacemos: pasos */
.sm-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sm-step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid #e3eaf0;
  border-radius: 14px;
  background: #fff;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
}
.sm-step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(15, 176, 238, 0.12);
  color: var(--sm-brand-strong);
  font-size: 22px;
  margin-bottom: 18px;
}
.sm-step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #b7c3cc;
}
.sm-step h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--sm-ink);
  margin: 0 0 8px;
}
.sm-step p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
@media (hover: hover) and (pointer: fine) {
  .sm-step:hover {
    transform: translateY(-4px);
    border-color: #cfe3ee;
    box-shadow: 0 18px 36px -22px rgba(11, 22, 32, 0.35);
  }
}

/* Historia: línea de tiempo */
.sm-history {
  background: var(--sm-ink);
}
.sm-history .sm-section-head h2 {
  color: #fff;
}
.sm-history .sm-kicker {
  color: var(--sm-brand);
}
.sm-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.sm-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 2px;
  background: linear-gradient(90deg, var(--sm-brand), rgba(15, 176, 238, 0.15));
}
.sm-timeline-item {
  position: relative;
  padding-top: 44px;
}
.sm-timeline-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sm-ink);
  border: 3px solid var(--sm-brand);
}
.sm-timeline-year {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: var(--sm-brand);
  margin-bottom: 10px;
  font-family: "Titillium Web", sans-serif;
}
.sm-timeline-item h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.sm-timeline-item p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Por qué confiar */
.sm-trust-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.sm-trust-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sm-trust-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
}
.sm-trust-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.sm-trust-list i {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sm-brand);
  color: #fff;
  font-size: 18px;
}
.sm-trust-list h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--sm-ink);
  margin: 2px 0 6px;
}
.sm-trust-list p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1199.98px) {
  .sm-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
  .sm-about-media { padding: 0 0 60px 40px; margin-top: 10px; }
  .sm-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-left: 34px;
  }
  .sm-timeline::before {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--sm-brand), rgba(15, 176, 238, 0.15));
  }
  .sm-timeline-item { padding-top: 0; }
  .sm-timeline-item::before { top: 6px; left: -34px; }
  .sm-trust-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 575.98px) {
  .sm-steps,
  .sm-trust-list { grid-template-columns: 1fr; }
  .sm-stats dt { font-size: 24px; }
  .sm-stats dd { font-size: 13px; }
  .sm-about-media { padding: 0 0 50px 24px; }
  .sm-about-badge { right: 10px; bottom: 10px; padding: 12px 14px; max-width: 190px; }
  .sm-about-badge strong { font-size: 30px; }
  .sm-about-actions a { width: 100%; }
}

/* --------------------------------------------------------------------------
   Página de inicio
   Flujo: hero → logos → servicios → por qué elegirnos → proceso → proyectos
   -------------------------------------------------------------------------- */
.sm-logos-compact {
  padding-top: 48px !important;
  padding-bottom: 56px !important;
}
.sm-logos-title {
  text-align: center;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sm-ink-soft);
}
.sm-logos-compact .partner img {
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 200ms ease, opacity 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .sm-logos-compact .partner:hover img {
    filter: none;
    opacity: 1;
  }
}

/* Tarjetas de servicio (toda la tarjeta es clicable) */
.sm-service {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e3eaf0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, border-color 220ms ease;
}
.sm-service-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f5;
}
.sm-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-out);
}
.sm-service-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 34px 24px 24px;
}
.sm-service-icon {
  position: absolute;
  top: -26px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sm-brand);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 20px -10px rgba(15, 176, 238, 0.8);
}
.sm-service h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 8px;
}
.sm-service h3 a {
  color: var(--sm-ink);
  text-decoration: none;
}
.sm-service h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.sm-service h3 a:focus-visible {
  outline: none;
}
.sm-service:focus-within {
  outline: 2px solid var(--sm-brand);
  outline-offset: 3px;
}
.sm-service p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.sm-service-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--sm-brand-strong);
}
.sm-service-more i {
  margin-left: 4px;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .sm-service:hover {
    transform: translateY(-4px);
    border-color: #cfe3ee;
    box-shadow: 0 20px 40px -22px rgba(11, 22, 32, 0.4);
  }
  .sm-service:hover .sm-service-media img {
    transform: scale(1.04);
  }
  .sm-service:hover .sm-service-more i {
    transform: translateX(4px);
  }
}
.sm-service:active {
  transform: scale(0.99);
}

/* Por qué elegirnos */
.sm-home-why {
  background: #f5f8fb;
}
.sm-why-grid {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.sm-why-grid li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sm-why-grid i {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--sm-brand-strong);
  font-size: 17px;
  box-shadow: 0 4px 12px -6px rgba(11, 22, 32, 0.25);
}
.sm-why-grid h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--sm-ink);
  margin: 2px 0 4px;
}
.sm-why-grid p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.sm-home-why .sm-about-media-sub {
  border-color: #f5f8fb;
}
@media (max-width: 575.98px) {
  .sm-why-grid { grid-template-columns: 1fr; }
}

/* FAQ: el signo + rota menos tiempo y el panel abre con curva ease-out */
.faq-answer {
  transition: max-height 280ms var(--ease-out) !important;
}
.faq-icon {
  transition: transform 220ms var(--ease-out), background 200ms ease, color 200ms ease !important;
}
.faq-question {
  transition: transform 160ms var(--ease-out);
}

/* --------------------------------------------------------------------------
   12. Aparición al hacer scroll (solo si hay JS y sin reducción de movimiento)
   -------------------------------------------------------------------------- */
.sm-js .sm-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: var(--sm-delay, 0ms);
}
.sm-js .sm-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   13. Movimiento reducido: sin desplazamientos, solo fundidos
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  .sm-js .sm-reveal {
    transform: none;
    transition: opacity 200ms ease;
  }
  header.two.sm-stuck {
    animation: none;
  }
  .featured-area .hero-three-text h2,
  .featured-area .hero-three-text .sm-hero-ctas,
  .featured-area .hero-three-text .sm-hero-trust {
    transform: none !important;
    transition: opacity 200ms ease !important;
  }
  #btn-chat-whatsapp .gota1,
  #btn-chat-whatsapp .gota2 {
    display: none;
  }
  .theme-btn:active,
  .sm-btn:active {
    transform: none;
  }
}
