:root {
  --blue: #303f86;
  --blue-dark: #29387d;
  --blue-mid: #293468;
  --blue-btn: #4054b2;
  --red: #dd0505;
  --red-btn: #ce0101;
  --primary: #6ec1e4;
  --white: #fff;
  --max: 1200px;
  --header-h: 90px;
  --ticker-h: 40px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: #333;
  background: var(--white);
  font-family: Roboto, Helvetica Neue, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

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

h1, h2, h3, h4, p, ul {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  padding: 10px 18px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.05);
  transform: scale(0.97);
}

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

.btn-red {
  background: var(--red);
}

.btn-block {
  width: 100%;
  border-radius: 11px;
  background: var(--red-btn);
  box-shadow: none;
}

/* Ticker + header */
.ticker {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.21);
  text-align: center;
  padding: 8px 12px;
  color: var(--blue-mid);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.site-header {
  position: sticky;
  top: var(--ticker-h);
  z-index: 30;
  background: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: var(--max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  width: 120px;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav ul {
  display: flex;
  gap: 50px;
  list-style: none;
  padding: 0;
}

.nav a {
  display: inline-block;
  color: var(--blue);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 8px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--blue);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.menu-toggle[aria-expanded="true"] .icon-open,
.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 49% 51%;
  min-height: 100vh;
  margin-top: -90px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 132px 56px 38px;
}

.social {
  display: flex;
  gap: 9px;
  margin: 50px 1px 1px;
  list-style: none;
  padding: 0;
}

.social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
}

.social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social .ig { background: #4054b2; }
.social .fb { background: #3b5998; }
.social .in { background: #0077b5; }

.hero-promo {
  margin: 10px 41px;
  width: auto;
  max-width: 420px;
}

.hero-visual {
  background-image: url("../images/servicio-cliente.jpg");
  background-image: image-set(
    url("../images/servicio-cliente.webp") type("image/webp"),
    url("../images/servicio-cliente.jpg") type("image/jpeg")
  );
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
  min-height: 420px;
}

main {
  padding-bottom: 120px;
}

/* Terms banner (home) */
.terms-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
  box-shadow: 0 -4px 24px rgba(48, 63, 134, 0.15);
}

.terms-banner-inner {
  max-width: 720px;
  margin: 0 auto;
}

.terms-banner h2 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.terms-banner p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.95;
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
}

.btn-white:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 16px;
  padding: 14px 32px;
}

/* Terms page */
.terms-page main {
  padding-bottom: 60px;
}

.terms-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--ticker-h) + 32px) 20px 48px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.terms-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--ticker-h) + 16px);
  background: #f5f7fb;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  padding: 20px 16px;
  max-height: calc(100vh - var(--header-h) - var(--ticker-h) - 32px);
  overflow-y: auto;
}

.terms-toc h2 {
  font-family: Montserrat, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 12px;
}

.terms-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.terms-toc li {
  counter-increment: toc;
  margin-bottom: 6px;
}

.terms-toc a {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #555;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 8px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.terms-toc a::before {
  content: counter(toc) ". ";
  color: var(--blue-btn);
  font-weight: 600;
}

.terms-toc a:hover,
.terms-toc a:focus {
  color: var(--blue);
  border-left-color: var(--blue-btn);
}

.terms-content {
  min-width: 0;
}

.terms-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--blue);
}

.terms-eyebrow {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-btn);
  margin-bottom: 8px;
}

.terms-header h1 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: 12px;
}

.terms-version {
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blue-btn);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.terms-meta {
  font-size: 0.95rem;
  color: #666;
}

.terms-content section {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--header-h) + var(--ticker-h) + 16px);
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.terms-content h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8ecf5;
}

.terms-content h3 {
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin: 20px 0 10px;
}

.terms-content p,
.terms-content li,
.terms-content dd {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
}

.terms-content p + p {
  margin-top: 12px;
}

.terms-content ul,
.terms-content ol {
  padding-left: 1.35rem;
  margin: 12px 0 0;
}

.terms-content li + li {
  margin-top: 10px;
}

.terms-definitions {
  margin: 0;
}

.terms-definitions dt {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 16px;
}

.terms-definitions dt:first-child {
  margin-top: 0;
}

.terms-definitions dd {
  margin: 6px 0 0;
  padding-left: 0;
}

.terms-content a {
  color: var(--blue-btn);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-content a:hover {
  color: var(--blue);
}

.terms-date {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.terms-back {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--blue);
  color: var(--white);
  padding: 30px 0 15px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue) url("../images/footer-pattern.png") center / cover;
  opacity: 0.03;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-brand img {
  width: 45%;
  margin-left: -20px;
}

.footer-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px -15px;
}

.footer-nav a {
  color: var(--white);
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  padding: 0 14px;
}

.contact-list {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list svg {
  width: 14px;
  height: 14px;
  fill: var(--white);
}

.follow {
  margin-top: 50px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.footer-media iframe {
  width: 100%;
  height: 290px;
  border: 0;
  background: #e8ecf5;
}

.footer-media iframe[data-lazy-src]:not([src]),
.footer-media iframe[src="about:blank"] {
  min-height: 290px;
}

.footer-media h4 {
  margin: 10px 0 12px;
  font-size: 18px;
  font-weight: 500;
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 20px auto 0;
  padding: 20px 20px 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.59);
  text-align: right;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.legal a {
  color: inherit;
}

/* Software dock */
.software-dock {
  display: none;
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(120%);
  z-index: 50;
  width: 151px;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
  padding: 16px 12px;
  text-align: center;
}

.software-dock.is-visible {
  display: block;
  animation: slide-in-right 0.8s ease forwards;
}

.software-dock h2 {
  color: var(--blue-dark);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.software-dock a {
  display: block;
}

.software-dock .anydesk img {
  width: 70%;
  margin: 0 auto;
}

@keyframes slide-in-right {
  from { transform: translateY(-50%) translateX(120%); }
  to { transform: translateY(-50%) translateX(0); }
}

/* Ticket modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  align-items: flex-start;
  justify-content: center;
  padding: 100px 16px 24px;
}

.modal.is-open {
  display: flex;
}

.modal-box {
  position: relative;
  width: min(640px, 95%);
  background: #f9f9f9;
  box-shadow: 1px 1px 3px rgba(2, 2, 2, 0.23);
  padding: 18px;
}

.modal-box h2 {
  font-size: 32px;
  line-height: 36px;
  font-weight: 400;
  margin-bottom: 0.5em;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  background: #00b7cd;
  color: var(--white);
  border: 0;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 36px;
  box-shadow: 1px 1px 3px rgba(2, 2, 2, 0.23);
}

@media (max-width: 1024px) {
  .hero-copy { padding: 120px 30px 30px; }
  .header-inner { flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-media { margin-top: 0; }
}

@media (max-width: 767px) {
  .ticker {
    font-size: 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .site-header { top: 0; padding-top: max(20px, env(safe-area-inset-top)); }
  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .logo { width: 40%; }
  .logo img { width: 100%; max-width: 120px; }
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    flex-basis: 100%;
    justify-content: center;
  }
  .nav.is-open { display: flex; }
  .nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  }
  .nav a {
    display: block;
    padding: 25px 16px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    text-align: center;
    border-bottom: 1px solid #efefef;
  }
  .nav a:hover {
    background: var(--blue);
    color: var(--white);
  }
  .nav a::after { display: none; }
  .header-actions {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
    padding: 8px 15px 10px 0;
  }
  .header-actions .btn {
    font-size: 12px;
    min-height: 44px;
    padding: 10px 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 80px;
    min-height: auto;
  }
  .hero-copy { padding: 30px 20px; }
  .hero-promo { margin: 10px 0; max-width: 100%; }
  .hero-visual {
    min-height: 280px;
    background-position: center bottom;
    background-size: 85% auto;
  }
  main { padding-bottom: 80px; }
  .terms-banner {
    padding: 36px 16px;
  }
  .terms-banner p {
    font-size: 0.95rem;
  }
  .terms-layout {
    grid-template-columns: 1fr;
    padding: calc(var(--header-h) + var(--ticker-h) + 20px) 16px 32px;
    gap: 24px;
  }

  .terms-toc {
    position: static;
    max-height: none;
  }

  .terms-toc ol {
    columns: 1;
  }
  .footer-brand img {
    width: 100%;
    margin: 0 auto;
  }
  .footer-brand { text-align: center; }
  .footer-nav ul {
    justify-content: center;
    margin-left: 0;
  }
  .legal {
    text-align: center;
    margin-top: 30px;
    padding-top: 0;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
  .software-dock { display: none !important; }
}
