:root {
  --primary: #2ea3f2;
  --primary-deep: #147cc4;
  --secondary: #3ccb7f;
  --secondary-deep: #21a85f;
  --bg: #f7fcff;
  --text: #243147;
  --text-soft: #5f6f87;
  --card: #ffffff;
  --line: #e5edf6;
  --shadow: 0 18px 42px rgba(33, 79, 124, 0.12);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --chat-header: #1c2f63;
  --chat-header-soft: #274184;
  --chat-bubble-agent: #dce8fa;
  --chat-bubble-user: #2ea3f2;
  --chat-surface: #f8fbff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% -20%, rgba(46, 163, 242, 0.18), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(60, 203, 127, 0.16), transparent 45%),
    linear-gradient(180deg, #f7fcff 0%, #ffffff 35%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Poppins", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 237, 246, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.brand img {
  width: clamp(180px, 38vw, 310px);
  height: auto;
}

.menu-toggle {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 11px;
  font-size: 1.25rem;
  box-shadow: 0 10px 24px rgba(46, 163, 242, 0.3);
}

.main-nav {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 1px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  padding: 0.8rem 4vw 1rem;
  gap: 0.7rem;
  box-shadow: 0 10px 30px rgba(33, 79, 124, 0.1);
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  font-weight: 700;
  color: #314057;
  font-size: 1rem;
  padding: 0.5rem 0.2rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary-deep);
}

.lang-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-wrap label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.lang-wrap select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #223047;
  font-weight: 700;
}

.hero {
  padding-block: 2.25rem 1.75rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-copy,
.hero-media {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(46, 163, 242, 0.15);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 1.25rem;
}

.hero-media {
  padding: 1.1rem;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  background: rgba(46, 163, 242, 0.12);
  color: #0d70b4;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.65rem, 6vw, 2.7rem);
  margin-top: 0.85rem;
  color: #1f304a;
}

.hero p {
  margin-top: 0.95rem;
  font-size: clamp(1rem, 3.8vw, 1.1rem);
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2a8fd6 60%, #44c98a);
  box-shadow: 0 12px 26px rgba(46, 163, 242, 0.3);
}

.btn-secondary {
  color: var(--primary-deep);
  background: #edf7ff;
  border: 1px solid rgba(46, 163, 242, 0.35);
}

.btn-whatsapp {
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
}

.hero-service-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-service-tile {
  min-height: 150px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 255, 0.94) 58%, rgba(228, 250, 239, 0.9));
  border: 1px solid rgba(46, 163, 242, 0.2);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(27, 66, 122, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

.hero-service-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(20, 124, 196, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-service-icon {
  inline-size: 82px;
  block-size: 82px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 2.25rem;
  line-height: 1;
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.95), rgba(237, 247, 255, 0.68) 42%, rgba(46, 163, 242, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(20, 124, 196, 0.2);
}

.hero-service-icon,
.hero-service-tile p {
  position: relative;
  z-index: 1;
}

.hero-service-tile p {
  margin-top: 0.65rem;
  color: #1f3f81;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.28;
}

.section {
  padding-block: 1.8rem;
}

.section-title {
  font-size: clamp(1.35rem, 4.8vw, 2rem);
  color: #1f304a;
}

.section-sub {
  margin-top: 0.55rem;
  max-width: 70ch;
}

.cards {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(25, 81, 132, 0.08);
}

.card h3 {
  font-size: 1.05rem;
  color: #21334f;
}

.card p {
  margin-top: 0.45rem;
  font-size: 0.96rem;
}

.icon-chip {
  inline-size: 46px;
  block-size: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(160deg, rgba(46, 163, 242, 0.15), rgba(60, 203, 127, 0.15));
  font-size: 1.3rem;
}

.steps .card {
  position: relative;
  padding-top: 2.4rem;
}

.step-index {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.9rem;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.service-card .btn {
  margin-top: 0.9rem;
  width: 100%;
}

.appointment-layout,
.contact-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.form-card,
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(25, 81, 132, 0.08);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-weight: 700;
  color: #2a3b55;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #dbe7f4;
  border-radius: 11px;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: #1e2f48;
  background: #fcfeff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.inline-two {
  display: grid;
  gap: 0.7rem;
}

.form-message {
  min-height: 1.5rem;
  margin-top: 0.65rem;
  color: #187847;
  font-weight: 700;
}

.form-message.is-success {
  color: #187847;
}

.form-message.is-error {
  color: #b42318;
}

.info-list {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.info-dot {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin-top: 0.45rem;
}

.seo-strip {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, rgba(46, 163, 242, 0.1), rgba(60, 203, 127, 0.12));
  border: 1px solid rgba(46, 163, 242, 0.2);
}

.footer {
  margin-top: 1.7rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.7rem;
  background: #fff;
}

.footer-grid {
  display: grid;
  gap: 0.75rem;
}

.footer small {
  color: var(--text-soft);
}

.whatsapp-float {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-start: auto;
  inset-inline-end: 1rem;
  z-index: 60;
  display: grid;
  place-items: center;
  inline-size: 72px;
  block-size: 72px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(140deg, var(--chat-header-soft), var(--chat-header));
  color: transparent;
  font-size: 0;
  box-shadow:
    0 16px 32px rgba(23, 52, 102, 0.36),
    0 0 0 14px rgba(46, 163, 242, 0.08);
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  overflow: visible;
  animation: whatsapp-vibrate 1.7s ease-in-out infinite;
}

.whatsapp-float::before {
  content: "WA";
  color: #fff;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
}

.whatsapp-float::after {
  content: "1";
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  inline-size: 24px;
  block-size: 24px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.45);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  filter: brightness(1.06);
}

.support-chat-panel {
  position: fixed;
  inset-inline-start: auto;
  inset-inline-end: 1rem;
  inset-block-end: 5.9rem;
  z-index: 65;
  width: min(400px, calc(100vw - 2rem));
  border: 1px solid rgba(34, 64, 113, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 50px rgba(22, 49, 95, 0.24);
  overflow: hidden;
  display: none;
}

.support-chat-panel.open {
  display: grid;
}

.support-chat-header {
  background: linear-gradient(145deg, var(--chat-header), var(--chat-header-soft));
  color: #fff;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.support-chat-agent {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.support-chat-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.support-chat-avatar {
  inline-size: 56px;
  block-size: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(9, 20, 43, 0.3);
}

.support-chat-agent-status {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 2px;
  inline-size: 12px;
  block-size: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.support-chat-agent-meta {
  min-width: 0;
}

.support-chat-agent-meta strong {
  display: block;
  color: #fff;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.52rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.support-chat-agent-meta span {
  display: block;
  color: rgba(237, 245, 255, 0.95);
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 600;
}

.support-chat-close {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.support-chat-close:hover,
.support-chat-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.support-chat-content {
  padding: 0.85rem 1rem 1rem;
  background: #fff;
}

.support-chat-time {
  margin: 0.08rem 0 0.68rem;
  text-align: center;
  color: #98a8c1;
  font-size: 0.92rem;
  font-weight: 700;
}

.support-chat-messages {
  max-height: min(34vh, 260px);
  overflow-y: auto;
  display: grid;
  gap: 0.58rem;
  padding-inline-end: 0.2rem;
}

.support-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.support-chat-row--user {
  justify-content: flex-end;
}

.support-chat-mini-avatar {
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.support-chat-message {
  margin: 0;
  max-width: 84%;
  border-radius: 20px;
  padding: 0.82rem 0.95rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.support-chat-message--agent {
  background: var(--chat-bubble-agent);
  color: #152845;
  border-top-left-radius: 10px;
}

.support-chat-message--user {
  background: var(--chat-bubble-user);
  color: #fff;
  border-top-right-radius: 10px;
  box-shadow: 0 10px 20px rgba(46, 163, 242, 0.24);
}

.support-chat-form {
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.52rem;
}

.support-chat-form input {
  min-height: 46px;
  border: 1px solid #d5e4f1;
  border-radius: 13px;
  padding: 0.6rem 0.78rem;
  font: inherit;
  color: #1f304a;
  background: var(--chat-surface);
}

.support-chat-form .btn {
  min-height: 46px;
  padding-inline: 1rem;
  border-radius: 13px;
  box-shadow: none;
  font-size: 0.86rem;
}

.support-chat-discuss {
  margin-top: 0.95rem;
  text-align: center;
  color: #172b4c;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.support-chat-help {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6c7b91;
}

.support-chat-open-link {
  margin-top: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  min-height: 60px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(140deg, var(--chat-header-soft), var(--chat-header));
  box-shadow: 0 18px 28px rgba(23, 52, 102, 0.28);
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1;
}

.support-chat-open-link::before {
  content: "WA";
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
}

.support-chat-open-link:hover,
.support-chat-open-link:focus-visible {
  filter: brightness(1.04);
}

.support-chat-title-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes whatsapp-vibrate {
  0%,
  72%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  76% {
    transform: translateX(-2px) rotate(-8deg);
  }
  80% {
    transform: translateX(2px) rotate(8deg);
  }
  84% {
    transform: translateX(-2px) rotate(-7deg);
  }
  88% {
    transform: translateX(2px) rotate(7deg);
  }
  92% {
    transform: translateX(-1px) rotate(-4deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.75s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.22s;
}

.delay-3 {
  animation-delay: 0.34s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 460px) {
  .support-chat-panel {
    inset-inline-start: auto;
    inset-inline-end: 0.5rem;
    inset-block-end: 5.5rem;
    width: calc(100vw - 1rem);
  }

  .support-chat-agent-meta strong {
    font-size: 1.36rem;
  }

  .support-chat-open-link {
    min-height: 56px;
    font-size: 1.1rem;
  }
}

@media (min-width: 720px) {
  .hero {
    padding-block: 2.8rem 2.2rem;
  }

  .hero-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-layout,
  .contact-layout {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

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

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    gap: 1.2rem;
  }

  .main-nav a {
    padding: 0.25rem 0;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards.trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards.services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards.steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

[dir="rtl"] .main-nav {
  text-align: right;
}

[dir="rtl"] .step-index {
  inset-inline-start: auto;
  inset-inline-end: 0.9rem;
}

[dir="rtl"] .info-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .whatsapp-float {
  inset-inline-start: auto;
  inset-inline-end: 1rem;
}

[dir="rtl"] .support-chat-panel {
  inset-inline-start: auto;
  inset-inline-end: 1rem;
}

[dir="rtl"] .support-chat-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .support-chat-row--agent {
  flex-direction: row-reverse;
}

[dir="rtl"] .support-chat-row--user {
  justify-content: flex-start;
}

[dir="rtl"] .support-chat-message--agent {
  border-top-left-radius: 20px;
  border-top-right-radius: 10px;
}

[dir="rtl"] .support-chat-message--user {
  border-top-right-radius: 20px;
  border-top-left-radius: 10px;
}

@media (max-width: 460px) {
  [dir="rtl"] .support-chat-panel {
    inset-inline-start: auto;
    inset-inline-end: 0.5rem;
  }
}
