/* Variables raiz (unificadas, sin duplicados) */
:root {
  --brand-blue: #0f4c81;      /* azul ingenieria */
  --brand-blue-500: #2b77e5;  /* azul acento */
  --brand-blue-700: #0a3a63;  /* azul profundo */
  --brand-blue-900: #082742;  /* azul oscuro para hover */
  --brand-silver: #c9d1d9;    /* plata suave */
  --brand-slate: #374151;     /* gris pizarra */
  --brand-red: #d62828;       /* acento rojo */

  --primary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-gray: #f9f9f9;
  --text-color: #333;
  --light-color: #ffffff;
  --neutral-color: #97a69a;
  --secondary-color: #007bff;
  --header-height: 3.75rem;

  --exec-deep: #0F2A3D;     /* azul profundo */
  --exec-blue: #2B77E5;     /* azul acento */
  --exec-silver: #D7DEE7;   /* gris plata */
  --exec-ink: #0E1621;      /* texto principal */
  --exec-soft: #F5F7FA;     /* fondo */
}

/* Reset y base (consistente con rem) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f6fa;
  padding-top: calc(var(--header-height) + 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Contenedores generales (unificados, eliminados duplicados) */
.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container, .container-fluid, .content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: none;
}

/* Header (consistente, colores de brand) */
.site-header, #headerContainer {
  background-color: var(--brand-blue);
  color: var(--light-color);
  padding: 0.625rem 1.25rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: var(--header-height);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.site-header .container {
  justify-content: space-between;
  flex-wrap: nowrap;
  max-width: none;
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

/* Logo (transiciones suaves para branding dinamico) */
.logo-img {
  max-width: 12.5rem;
  margin-bottom: 0.125rem;
}

.logo-trix {
  max-width: 11.25rem;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s ease-in-out;
}

.logo-trix:hover {
  transform: rotate(-8deg) scale(1.1);
  filter: drop-shadow(0 0.3125rem 0.625rem rgba(var(--brand-red), 0.3));
}

/* Navegacion (ordenada y con dropdowns) */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-list li {
  margin: 0;
}

.nav-group {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-trigger,
.nav-sublist li a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  background-color: var(--secondary-color);
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.nav-trigger {
  cursor: pointer;
  user-select: none;
  gap: 0.45rem;
}

.nav-trigger::after {
  content: "▾";
  font-size: 0.625rem;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.nav-dropdown[open] > .nav-trigger::after {
  transform: rotate(180deg);
}

.nav-trigger:hover,
.nav-sublist li a:hover {
  background-color: var(--brand-red);
}

.nav-sublist {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.35rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14.5rem;
  background-color: rgba(35, 47, 66, 0.98);
  border: 0.0625rem solid rgba(255, 255, 255, 0.14);
  border-radius: 0.35rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.38);
  display: none;
  z-index: 1106;
}

.nav-dropdown[open] > .nav-sublist {
  display: grid;
  gap: 0.3rem;
}

.nav-sublist li a {
  width: 100%;
  justify-content: flex-start;
}

.nav-group--language {
  flex-shrink: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.18);
}

.language-switcher__button {
  min-width: 2.15rem;
  min-height: 1.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--light-color);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.35rem 0.48rem;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-switcher__button:hover,
.language-switcher__button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.language-switcher__button.is-active,
.language-switcher__button[aria-pressed="true"] {
  background: var(--light-color);
  color: var(--brand-blue-700);
}

.google-translate-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body > .skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
iframe.skiptranslate,
#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
}

#menuButton {
  display: none;
  position: fixed;
  top: 0.9375rem;
  right: 0.9375rem;
  z-index: 1105;
  color: var(--brand-red);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.625rem;
  border-radius: 0.25rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#menuButton:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

#menuButton:active {
  transform: scale(0.9);
}

/* Main (simplificado) */
main {
  margin: 0 auto;
  padding: 1.25rem;
  width: 100%;
  max-width: 75rem;
}

/* Productos (consistente con cards) */
.product {
  background-color: var(--light-color);
  border-radius: 0.5rem;
  padding: 0.9375rem;
  width: 100%;
  max-width: min(90vw, 15.625rem);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  text-align: center;
}

.img-product, .img-product_trix {
  width: 100%;
  max-width: 8.75rem;
  height: auto;
  margin-bottom: 0.625rem;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Botones (base unificada, con brand) */
.button-base {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  color: var(--light-color);
  text-decoration: none;
  border-radius: 0.3125rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-button {
  background-color: var(--secondary-color);
  border-radius: 0.9375rem;
}

.info-button:hover {
  background-color: #236ec0;
}

.phone-button {
  background-color: #2A89D4;
  padding: 0.9375rem 1.875rem;
  border-radius: 3.125rem;
  font-size: 1.125rem;
  font-weight: bold;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.phone-button:hover {
  background-color: #1C6BA6;
  transform: scale(1.05);
}

.phone-button:active {
  transform: scale(0.98);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

/* Servicios (unificados en una base, variants simplificados) */
.service-base {
  padding: 0.625rem;
  margin-bottom: 0.625rem;
  text-align: center;
  box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
  border-radius: 0.9375rem;
  background: var(--light-color);
}

.service-section {
  /* Hereda de .service-base */
}

.service-section-green {
  background: linear-gradient(135deg, #1C6BA6 0%, #a80b00 100%);
  box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.2);
  border-radius: 1.5625rem;
  width: 100%;
  max-width: min(90vw, 18.75rem);
  color: var(--light-color);
  max-height: 25rem;
}

.service-section-grey {
  background: var(--neutral-color);
  box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.2);
  border-radius: 1.5625rem;
}

.service-section ul, .service-section-green ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-section ul li, .service-section-green ul li {
  background: #f8f8f8;
  padding: 0.625rem;
  border-bottom: 0.0625rem solid #ddd;
}

.service-section ul li:last-child, .service-section-green ul li:last-child {
  border-bottom: none;
}

.service-section h4, .service-section h5 {
  color: var(--brand-blue);
}

.service-section-green h4, .service-section-green h5, .service-section-green h3 {
  color: #f4f4f4;
}

/* Hero section (con brand gradient) */
.hero-section2 {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
}

.hero-section2 h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Grid y cards (consistentes con exec-card) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 2rem;
  padding: 1rem;
  width: 100%;
}

.card {
  background: var(--light-color);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.5rem 0.9375rem rgba(0,0,0,0.15);
}

.card-image {
  width: 100%;
  height: 15.625rem;
  object-fit: cover;
  border-bottom: 0.25rem solid var(--accent-color);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Otras secciones (consistentes) */
.section-title {
  text-align: center;
  margin: 3rem 0;
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background: var(--accent-color);
  margin: 0.5rem auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: var(--light-color);
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-item img {
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1rem;
}

model-viewer {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  display: block;
  border: 0.0625rem solid #ddd;
  border-radius: 0.5rem;
  max-width: 18.75rem;
}

/* Footer (simplificado) */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  font-family: Arial, sans-serif;
}

.floating-entrypoints {
  position: fixed;
  right: 1rem;
  right: max(1rem, env(safe-area-inset-right));
  bottom: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.floating-entrypoints > a {
  pointer-events: auto;
}

.floating-entrypoints__erp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  max-width: min(18rem, calc(100vw - 6.5rem));
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--brand-blue-900) 0%, var(--brand-blue-700) 58%, var(--brand-blue) 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(8, 39, 66, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.floating-entrypoints__erp:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(8, 39, 66, 0.32);
  filter: brightness(1.03);
}

.floating-entrypoints__erp:focus-visible,
.floating-entrypoints__whatsapp:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.floating-entrypoints__erp-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.floating-entrypoints__erp-text {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.floating-entrypoints__erp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
}

.floating-entrypoints__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.floating-entrypoints__whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.28);
  filter: saturate(1.05);
}

.floating-entrypoints__whatsapp img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

/* Otros estilos (limpiados) */
.highlight {
  color: var(--secondary-color);
}

.recomendacion {
  padding: 0.625rem;
  margin-top: 1.25rem;
  background-color: #f5f5f5;
  border-radius: 0.3125rem;
}

#h3negro {
  color: black;
}

.center-content {
  text-align: center;
}

.whatsapp-button {
  color: #060606;
  text-decoration: none;
  padding: 0.625rem 0.9375rem;
  border-radius: 0.3125rem;
  transition: background-color 0.3s;
}

.whatsapp-button:hover {
  background-color: #333333;
}

.badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--light-color);
  padding: 0.3rem 0.8rem;
  border-radius: 1.25rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

#available-days {
  font-size: 1.125rem;
  font-weight: bold;
  color: #3498db;
  text-align: center;
  margin-top: 1.25rem;
  font-family: Arial, sans-serif;
}

#carousel {
  width: 100%;
  max-width: 50rem;
  height: 25rem;
  margin: auto;
  overflow: hidden;
  border: 0.25rem solid var(--neutral-color);
}

#carousel img {
  width: 100%;
  height: auto;
}

#loader {
  display: none;
  margin-top: 1.25rem;
}

.text-dark {
  color: #000;
  font-family: Arial, sans-serif;
}

.whatsapp-link {
  text-decoration: none;
  color: #25D366;
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-link span {
  font-weight: 500;
}

.whatsapp-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Brand elements (unificados, sin duplicados) */
.brand-gradient {
  background: linear-gradient(135deg, rgba(15,76,129,.12), rgba(201,209,217,.3));
}

.irregular-clip {
  clip-path: polygon(0 0, 75% 0, 100% 35%, 85% 100%, 0 100%);
}

.irregular-clip-right {
  clip-path: polygon(0 25%, 20% 0, 100% 0, 100% 100%, 15% 100%);
}

.brand-text-gradient {
  background: linear-gradient(90deg, var(--brand-blue) 0%, #7aa9d6 50%, var(--brand-silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue-700), var(--brand-blue));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.trix-hero__layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.trix-hero__copy {
  max-width: 44rem;
}

.trix-hero__actions {
  align-items: center;
}

.trix-hero__form-shell {
  width: 100%;
}

.trix-hero__form-card {
  width: min(100%, 36rem);
  margin: 0 auto;
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 24px 60px rgba(15, 42, 61, 0.12);
}

.trix-hero__form-title,
.trix-hero__form-intro {
  text-align: left;
}

.trix-hero__form-row {
  align-items: stretch;
}

.trix-visit-form {
  position: relative;
  isolation: isolate;
  min-height: 18rem;
}

.trix-hero__form-fields {
  display: grid;
  gap: 1rem;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.trix-visit-form[data-auth-state="guest"] .trix-hero__form-fields {
  opacity: 0.36;
  filter: blur(1px) saturate(0.78);
  pointer-events: none;
  user-select: none;
}

.trix-hero__phone-field {
  width: 100%;
}

.trix-hero__meta {
  align-items: flex-start;
}

.trix-visit-auth {
  display: grid;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem;
  border: 1px solid rgba(15, 76, 129, 0.16);
  border-radius: 1.45rem;
  background:
    linear-gradient(135deg, rgba(236, 247, 255, 0.96), rgba(255, 255, 255, 0.94) 52%, rgba(219, 235, 255, 0.82)),
    #f7fbff;
  box-shadow: 0 16px 38px rgba(15, 42, 61, 0.1);
  color: #16324f;
}

.trix-visit-form[data-auth-state="guest"] .trix-visit-auth {
  position: absolute;
  inset: -0.35rem;
  z-index: 4;
  min-height: calc(100% + 0.7rem);
  align-content: center;
  justify-items: center;
  padding: clamp(1rem, 3vw, 1.45rem);
  border-color: rgba(15, 76, 129, 0.2);
  background:
    linear-gradient(135deg, rgba(245, 251, 255, 0.96), rgba(230, 242, 255, 0.92) 52%, rgba(255, 255, 255, 0.96)),
    rgba(248, 252, 255, 0.96);
  box-shadow: 0 24px 64px rgba(15, 42, 61, 0.18);
  backdrop-filter: blur(10px);
}

.trix-visit-auth[data-state="authenticated"] {
  border-color: rgba(4, 120, 87, 0.22);
  background:
    linear-gradient(135deg, rgba(4, 120, 87, 0.08), rgba(15, 76, 129, 0.04)),
    #f7fffb;
}

.trix-visit-auth__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trix-visit-form[data-auth-state="guest"] .trix-visit-auth__header,
.trix-visit-form[data-auth-state="guest"] .trix-visit-auth__body {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

.trix-visit-auth__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-blue-700);
  font-size: 0.78rem;
  box-shadow: inset 0 0 0 1px rgba(15, 76, 129, 0.14), 0 6px 14px rgba(15, 76, 129, 0.12);
}

.trix-visit-auth__icon i {
  display: inline-block;
}

.trix-visit-auth__icon::before {
  content: none;
}

.trix-visit-auth[data-state="authenticated"] .trix-visit-auth__icon {
  background: #ffffff;
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.18), 0 6px 14px rgba(4, 120, 87, 0.1);
}

.trix-visit-auth[data-state="authenticated"] .trix-visit-auth__icon::before {
  background: #047857;
}

.trix-visit-auth__copy {
  min-width: 0;
  flex: 1;
}

.trix-visit-auth__body {
  min-width: 0;
}

.trix-visit-auth__title {
  margin: 0;
  color: var(--brand-blue-900);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.22;
}

.trix-visit-form[data-auth-state="guest"] .trix-visit-auth__title {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.trix-visit-auth__message {
  margin: 0.18rem 0 0;
  color: #455c74;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.42;
}

.trix-visit-auth__hint {
  margin: -0.15rem 0 0.55rem;
  color: #53667a;
  font-size: 0.78rem;
  line-height: 1.4;
}

.trix-visit-auth__email {
  overflow-wrap: anywhere;
}

.trix-visit-auth__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.trix-visit-auth__btn,
.trix-visit-auth__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.trix-visit-auth__btn {
  border: 1px solid transparent;
  padding: 0.58rem 0.85rem;
  box-shadow: 0 6px 16px rgba(15, 42, 61, 0.06);
  white-space: nowrap;
}

.trix-visit-auth__btn:hover,
.trix-visit-auth__whatsapp:hover {
  transform: translateY(-1px);
}

.trix-visit-auth__btn--primary {
  background: linear-gradient(135deg, var(--brand-blue-700), var(--brand-blue));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 76, 129, 0.2);
}

.trix-visit-auth__btn--primary:hover {
  background: var(--brand-blue-900);
}

.trix-visit-auth__btn--secondary {
  background: #ffffff;
  border-color: rgba(15, 76, 129, 0.24);
  color: var(--brand-blue-700);
}

.trix-visit-auth__btn--secondary:hover {
  border-color: var(--brand-blue-500);
  color: var(--brand-blue-900);
}

.trix-visit-auth__btn--google {
  background: #ffffff;
  border-color: rgba(15, 76, 129, 0.18);
  color: #24364a;
}

.trix-visit-auth__btn--google::before {
  content: "G";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
}

.trix-visit-auth__btn--google:hover {
  border-color: rgba(214, 40, 40, 0.38);
}

.trix-visit-auth__btn--link {
  min-height: auto;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: #53667a;
  font-size: 0.78rem;
}

.trix-visit-auth__btn--link:hover {
  color: var(--brand-blue-700);
}

.trix-visit-auth__whatsapp {
  width: fit-content;
  min-height: 2rem;
  margin: 0.2rem auto 0;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(4, 120, 87, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: none;
}

.trix-visit-auth__whatsapp::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: #25d366;
}

.trix-hero__steps {
  max-width: 32rem;
  margin-left: 0;
}

.trix-hero__confirmation-note {
  margin: 1rem 0 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 1rem;
  background: rgba(248, 252, 255, 0.88);
  color: #53667a;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.badge-accent {
  background: var(--brand-red);
  color: #fff;
}

.exec-card {
  border: 1px solid rgba(15,76,129,.12);
  box-shadow: 0 10px 30px rgba(15,76,129,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.exec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(15,76,129,.12);
}

/* Section skin (con brand, responsive integrado) */
.section-skin {
  position: relative;
  overflow: hidden;
}

.section-skin::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 65%;
  background: linear-gradient(135deg, rgba(15,76,129,.12), rgba(201,209,217,.3));
  clip-path: polygon(0 0, 75% 0, 100% 35%, 85% 100%, 0 100%);
  pointer-events: none;
}

.section-skin::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  background: linear-gradient(to bottom, rgba(100,116,139,.6), rgba(226,232,240,.4));
  clip-path: polygon(0 25%, 20% 0, 100% 0, 100% 100%, 15% 100%);
  pointer-events: none;
}

.section-skin .skin-content {
  position: relative;
  z-index: 10;
}

/* Media queries (unificados por breakpoint) */
@media (max-width: 768px) {
  #menuButton {
    display: block;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + 0.35rem);
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 1rem);
    overflow-y: auto;
    background-color: rgba(46, 56, 71, 0.96);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    z-index: 1104;
    border-radius: 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-list.active {
    display: flex;
    flex-direction: column;
  }

  .nav-list > li {
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.386);
    padding: 0.5rem 0.625rem;
    margin: 0.125rem 0;
    text-align: center;
  }

  .nav-group,
  .nav-dropdown,
  .nav-trigger {
    width: 100%;
  }

  .nav-trigger,
  .nav-sublist li a {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
  }

  .nav-sublist {
    position: static;
    min-width: 0;
    margin: 0.4rem 0 0;
    background-color: rgba(20, 28, 40, 0.72);
    border-radius: 0.25rem;
    box-shadow: none;
  }

  .nav-sublist li {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .language-switcher__button {
    min-height: 2.25rem;
    min-width: 3.25rem;
    font-size: 0.84rem;
  }

  .product {
    width: 100%;
    max-width: none;
    margin: 0.625rem 0;
  }

  .service-section-green {
    width: 100%;
    float: none;
    margin: 0 0 1.25rem 0;
  }

  .hero-section2 h1 {
    font-size: 4rem;
  }

  .card-image {
    height: 7.5rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    padding: 0;
  }

  model-viewer {
    height: 12.5rem;
    max-width: 15.625rem;
  }

  .img-product, .img-product_trix {
    max-width: 6.25rem;
  }

  .product {
    max-width: 7.5rem;
    padding: 0.75rem;
  }

  .flex-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .section-skin::before { width: 85%; }
  .section-skin::after  { width: 70%; }

  .trix-hero__layout {
    gap: 2rem;
  }

  .trix-hero__form-card {
    width: 100%;
  }

  .trix-visit-auth {
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .trix-visit-form {
    min-height: 23.5rem;
  }

  .trix-visit-form[data-auth-state="guest"] .trix-visit-auth {
    inset: -0.2rem;
    min-height: calc(100% + 0.4rem);
  }

  .trix-visit-auth__actions {
    grid-template-columns: 1fr;
  }

  .trix-visit-auth__btn {
    width: 100%;
  }

  .trix-visit-auth__whatsapp {
    width: 100%;
    justify-content: center;
    line-height: 1.35;
  }

  .floating-entrypoints {
    right: 0.75rem;
    bottom: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    gap: 0.6rem;
  }

  .floating-entrypoints__erp {
    display: none;
    max-width: min(15.5rem, calc(100vw - 5.5rem));
    padding: 0.75rem 0.85rem;
  }

  .floating-entrypoints__erp-text {
    font-size: 0.84rem;
  }

  .floating-entrypoints__whatsapp {
    width: 3.2rem;
    height: 3.2rem;
  }

  .floating-entrypoints__whatsapp img {
    width: 1.6rem;
    height: 1.6rem;
  }
}

@media (max-width: 480px) {
  .img-product, .img-product_trix {
    max-width: 6.25rem;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .product {
    max-width: 7.5rem;
    padding: 0.75rem;
  }

  .trix-hero__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .trix-hero__copy h1 {
    font-size: 2.55rem;
  }

  .trix-hero__copy h2 {
    font-size: 1.65rem;
  }
}

@media (min-width: 769px) {
  #menuButton {
    display: none;
  }

  header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .trix-hero__meta {
    flex-direction: row;
    justify-content: space-between;
  }

  .trix-visit-auth__actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(9.75rem, 1.25fr);
    align-items: stretch;
  }

  .trix-visit-auth__btn {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .trix-hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
    gap: 3.5rem;
  }

  .trix-hero__copy {
    padding-right: 0.75rem;
  }

  .trix-hero__form-shell {
    display: flex;
    justify-content: flex-end;
  }

  .trix-hero__form-card {
    margin: 0;
  }

  .trix-hero__form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
  }

  .trix-hero__form-row button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  body {
    padding: 2rem 2rem;
  }

  .container, .container-fluid, .content-wrapper {
    max-width: none;
    padding: 0 2rem;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    padding: 0 2rem;
  }

  .product {
    max-width: 21.875rem;
    padding: 1.25rem;
  }

  .service-section-green {
    width: 25rem;
    max-height: 31.25rem;
  }

  .card-image {
    height: 18.75rem;
  }

  .img-product, .img-product_trix {
    max-width: 12.5rem;
  }

  model-viewer {
    max-width: 25rem;
  }

  .hero-section2 h1 {
    font-size: 5.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  #carousel {
    max-width: 62.5rem;
  }
}

@media (min-width: 1600px) {
  body {
    padding: 2rem 1rem;
  }

  .container, .container-fluid, .content-wrapper {
    padding: 0 1rem;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(28.125rem, 1fr));
    gap: 4rem;
    padding: 0 1rem;
  }

  .product {
    max-width: 25rem;
  }

  .service-section-green {
    width: 31.25rem;
  }

  #carousel {
    max-width: 75rem;
  }
}
