:root {
  --vs-violet: #9e4694;
  --vs-violet-dark: #55164f;
  --vs-violet-soft: #f7edf6;
  --vs-yellow: #fab515;
  --vs-yellow-soft: #fff4d4;
  --vs-ink: #24212a;
  --vs-muted: #655f6d;
  --vs-line: #eadfec;
  --vs-bg: #ffffff;
  --vs-bg-soft: #f7f4f8;
  --vs-card: #ffffff;
  --vs-shadow: 0 24px 70px rgba(66, 24, 70, 0.12);
  --vs-radius-sm: 14px;
  --vs-radius: 24px;
  --vs-radius-lg: 38px;
  --vs-container: 1180px;
  --vs-header-h: 78px;
}

* {
  box-sizing: border-box;
}

.vs-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.vs-toast {
  max-width: 420px;
  padding: 14px 18px;
  border-radius: var(--vs-radius-sm);
  box-shadow: var(--vs-shadow);
  background: var(--vs-card);
  border: 1px solid var(--vs-line);
  color: var(--vs-ink);
  font-size: 0.92rem;
}

.vs-toast-error {
  border-color: #f2b8b8;
  background: #fdeeee;
  color: #8a1f1f;
}

.vs-toast-success {
  border-color: #b8e0c4;
  background: #edfaf1;
  color: #1f6b3a;
}

.vs-toast-warning {
  border-color: var(--vs-yellow-soft);
  background: var(--vs-yellow-soft);
  color: #7a5400;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--vs-ink);
  background: var(--vs-bg);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--vs-muted);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  background: var(--vs-violet-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  left: 12px;
}

.vs-container {
  width: min(calc(100% - 40px), var(--vs-container));
  margin-inline: auto;
}

.vs-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--vs-header-h);
  z-index: 1000;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.vs-header.is-scrolled,
.vs-header.menu-open {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(66, 24, 70, 0.10);
  backdrop-filter: blur(12px);
}

.vs-nav {
  width: min(calc(100% - 40px), var(--vs-container));
  height: var(--vs-header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.vs-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.vs-menu a,
.vs-menu .vs-menu-logout {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
}

.vs-menu-logout {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.vs-menu-logout-form {
  display: contents;
}

.vs-header.is-scrolled .vs-menu a,
.vs-header.menu-open .vs-menu a,
.vs-header.is-scrolled .vs-menu-logout,
.vs-header.menu-open .vs-menu-logout {
  color: var(--vs-ink);
}

.vs-menu a::after,
.vs-menu .vs-menu-logout::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--vs-yellow), var(--vs-violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.vs-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(66, 24, 70, 0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.vs-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--vs-violet-dark);
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.vs-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.vs-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.vs-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.vs-hero {
  position: relative;
  min-height: 760px;
  padding: calc(var(--vs-header-h) + 92px) 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.vs-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 20, 68, 0.78), rgba(69, 20, 68, 0.42)), url("../img/Equipo-Viento-Sur.png") center/cover no-repeat;
  z-index: -2;
}

.vs-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -70px;
  height: 150px;
  background: var(--vs-bg);
  transform: rotate(-3deg);
  z-index: -1;
  border-radius: 50% 50% 0 0;
}

.vs-hero-grid,
.vs-two-cols,
.vs-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.vs-hero-copy {
  color: #fff;
  max-width: 720px;
}

.vs-eyebrow,
.vs-section-label,
.vs-card-kicker,
.vs-pro-tag {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--vs-violet);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vs-eyebrow,
.vs-hero-copy .vs-section-label {
  color: var(--vs-yellow);
}

.vs-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.vs-hero h1 strong {
  font-weight: 650;
}

.vs-hero-text {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  margin-bottom: 30px;
}

.vs-hero-actions,
.vs-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.vs-btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--vs-yellow) 0%, var(--vs-violet) 78%);
  box-shadow: 0 14px 30px rgba(158, 70, 148, 0.27);
}

.vs-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.vs-btn-outline {
  color: var(--vs-violet-dark);
  background: #fff;
  border: 1px solid var(--vs-line);
}

.vs-btn-small {
  min-height: 40px;
  padding: 9px 18px;
  color: #fff;
  background: var(--vs-violet);
  font-size: 0.72rem;
}

.vs-btn-full {
  width: 100%;
}

.vs-turn-card,
.vs-service-card,
.vs-step-card,
.vs-pro-card,
.vs-contact-item,
.vs-modal-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow);
}

.vs-turn-card {
  max-width: 440px;
  margin-left: auto;
  padding: clamp(26px, 4vw, 42px);
  backdrop-filter: blur(14px);
}

.vs-turn-card h2 {
  margin-bottom: 10px;
  color: var(--vs-ink);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.vs-turn-card p {
  margin-bottom: 22px;
}

.vs-dni-form {
  display: grid;
  gap: 14px;
}

.vs-dni-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--vs-line);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--vs-ink);
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.vs-dni-form input:focus {
  border-color: var(--vs-violet);
  box-shadow: 0 0 0 4px rgba(158, 70, 148, 0.14);
}

/* Confirmación de la consulta, en el lugar del formulario. */
.vs-contact-sent {
  margin-top: 24px;
  padding: 32px 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--vs-line);
  box-shadow: 0 18px 40px rgba(69, 20, 68, .08);
}

.vs-contact-sent-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #eef8f1;
  color: #246b43;
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vs-contact-sent h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--vs-ink);
}

.vs-contact-sent p {
  margin: 0;
  color: var(--vs-muted, #6f6471);
}

.vs-contact-sent-note {
  margin-top: 14px !important;
  font-size: 0.88rem;
}

.vs-contact-sent-note a {
  color: var(--vs-violet-dark);
  font-weight: 700;
}

.vs-contact-alert {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff2f2;
  border: 1px solid #d7a8b8;
  color: #8b3d5a;
  font-size: 0.9rem;
}

/* Ingreso con Google, bajo el formulario de DNI del hero. */
.vs-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--vs-muted, #6f6471);
  font-size: 0.82rem;
}

.vs-or-divider::before,
.vs-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vs-line);
}

.vs-btn-google {
  gap: 10px;
  background: #fff;
  color: var(--vs-ink);
  border: 1px solid var(--vs-line);
}

.vs-btn-google:hover,
.vs-btn-google:focus-visible {
  border-color: var(--vs-violet);
  background: #fff;
}

.vs-register-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--vs-violet-dark);
}

.vs-section {
  padding: clamp(72px, 9vw, 120px) 0;
  scroll-margin-top: var(--vs-header-h);
}

.vs-section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.vs-section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.vs-section h2,
.vs-section-heading h2,
.vs-section-copy h2 {
  color: var(--vs-ink);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 750;
  margin-bottom: 20px;
}

.vs-section-copy p:not(.vs-section-label) {
  margin-bottom: 16px;
}

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

.vs-about-image::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 3%;
  width: 72%;
  aspect-ratio: 1;
  background: var(--vs-violet);
  border-radius: 50%;
  z-index: -1;
}

.vs-about-image::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 8%;
  width: 32%;
  aspect-ratio: 1;
  background: var(--vs-yellow);
  border-radius: 30% 30% 30% 70%;
  z-index: -1;
}

.vs-about-image img {
  width: min(520px, 100%);
  margin-inline: auto;
}

.vs-services,
.vs-professionals {
  background: var(--vs-bg-soft);
}

.vs-card-grid {
  display: grid;
  gap: 24px;
}

.vs-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vs-service-card {
  padding: 28px;
  min-height: 100%;
  background: #fff;
  border-color: var(--vs-line);
  display: flex;
  flex-direction: column;
}

.vs-service-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 20px;
}

.vs-service-card h3,
.vs-step-card h3,
.vs-pro-card h3,
.vs-contact-item h3 {
  color: var(--vs-ink);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.vs-service-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.vs-service-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.vs-link-button {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vs-violet);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

.vs-link-button:hover {
  color: var(--vs-violet-dark);
}

.vs-turns {
  background: #fff;
}

.vs-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vs-step-card {
  padding: 28px 18px;
  text-align: center;
  border-color: var(--vs-line);
  box-shadow: 0 18px 44px rgba(66, 24, 70, 0.08);
}

.vs-step-card i {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 16px;
  border-radius: 22px;
  background: var(--vs-violet-soft);
  color: var(--vs-violet);
  font-size: 2rem;
}

.vs-step-card h3 {
  margin: 0;
  font-size: 1rem;
}

.vs-card-grid.professionals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vs-pro-card {
  overflow: hidden;
  border-color: var(--vs-line);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.vs-pro-card img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: center top;
  background: var(--vs-violet-soft);
}

.vs-pro-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vs-pro-tag {
  margin-bottom: 8px;
  color: var(--vs-violet);
  font-size: 0.68rem;
}

.vs-pro-info h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.vs-pro-info p:not(.vs-pro-tag) {
  font-size: 0.92rem;
  line-height: 1.65;
}

.vs-pro-info .vs-btn {
  align-self: flex-start;
  margin-top: auto;
}

.vs-contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr);
}

.vs-contact-list {
  display: grid;
  gap: 16px;
}

.vs-contact-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-color: var(--vs-line);
  box-shadow: 0 18px 44px rgba(66, 24, 70, 0.07);
}

.vs-contact-item i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--vs-violet-soft);
  color: var(--vs-violet);
  font-size: 1.45rem;
}

.vs-contact-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.vs-contact-item p {
  margin: 0;
  font-size: 0.95rem;
}

.vs-contact-item a:hover {
  color: var(--vs-violet);
}

.vs-map-wrap {
  margin-top: 46px;
  border-radius: var(--vs-radius-lg);
  overflow: hidden;
  box-shadow: var(--vs-shadow);
  border: 1px solid var(--vs-line);
}

.vs-map-wrap iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

.vs-footer {
  background: radial-gradient(circle at 80% 20%, rgba(158, 70, 148, 0.32), transparent 30%), var(--vs-violet-dark);
  color: #fff;
  padding-top: 70px;
}

.vs-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 54px;
}

.vs-footer-logo {
  max-width: 150px;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
}

.vs-footer h2 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-weight: 750;
}

.vs-footer p,
.vs-footer a,
.vs-footer li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.vs-footer li + li {
  margin-top: 10px;
}

.vs-footer a:hover {
  color: #fff;
}

.vs-footer-bottom {
  margin-top: 58px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.vs-footer-bottom p {
  margin: 0;
}

.vs-modal[hidden] {
  display: none;
}

.vs-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.vs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 33, 42, 0.62);
  backdrop-filter: blur(8px);
}

.vs-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: clamp(28px, 5vw, 46px);
  border-color: var(--vs-line);
  animation: vsModalIn 0.22s ease both;
}

@keyframes vsModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vs-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--vs-violet-soft);
  color: var(--vs-violet-dark);
}

.vs-modal-panel h2 {
  padding-right: 42px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.vs-modal-panel h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
  font-weight: 750;
}

.vs-check-list {
  display: grid;
  gap: 8px;
}

.vs-check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--vs-muted);
}

.vs-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--vs-yellow-soft);
  color: var(--vs-violet-dark);
  font-size: 0.75rem;
  font-weight: 750;
}

.vs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .vs-card-grid.four,
  .vs-card-grid.professionals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-hero-grid,
  .vs-two-cols,
  .vs-contact-grid {
    grid-template-columns: 1fr;
  }

  .vs-turn-card {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --vs-header-h: 70px;
  }

  .vs-menu-btn {
    display: inline-flex;
  }

  .vs-menu {
    position: fixed;
    top: var(--vs-header-h);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--vs-line);
    border-radius: 22px;
    box-shadow: var(--vs-shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .vs-header.menu-open .vs-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .vs-menu a,
  .vs-menu .vs-menu-logout {
    display: block;
    width: 100%;
    text-align: left;
    color: var(--vs-ink);
    padding: 13px 14px;
    border-radius: 14px;
  }

  .vs-menu a:hover,
  .vs-menu a:focus-visible,
  .vs-menu .vs-menu-logout:hover,
  .vs-menu .vs-menu-logout:focus-visible {
    background: var(--vs-violet-soft);
  }

  .vs-menu a::after,
  .vs-menu .vs-menu-logout::after {
    display: none;
  }

  .vs-hero {
    min-height: auto;
    padding: calc(var(--vs-header-h) + 48px) 0 82px;
  }

  .vs-hero::after {
    bottom: -86px;
    height: 130px;
  }

  .vs-hero-actions,
  .vs-contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vs-btn {
    width: 100%;
  }

  .vs-step-grid {
    grid-template-columns: 1fr;
  }

  .reverse-mobile .vs-step-grid {
    order: 2;
  }
}

@media (max-width: 640px) {
  .vs-container,
  .vs-nav {
    width: min(calc(100% - 28px), var(--vs-container));
  }

  .vs-hero {
    padding-top: calc(var(--vs-header-h) + 34px);
  }

  .vs-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.3rem);
  }

  .vs-hero-text {
    font-size: 1rem;
  }

  .vs-turn-card {
    padding: 24px;
  }

  .vs-section {
    padding: 66px 0;
  }

  .vs-card-grid.four,
  .vs-card-grid.professionals {
    grid-template-columns: 1fr;
  }

  .vs-service-card,
  .vs-pro-info,
  .vs-contact-item {
    padding: 22px;
  }

  .vs-contact-item {
    grid-template-columns: 44px 1fr;
  }

  .vs-contact-item i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.25rem;
  }

  .vs-map-wrap iframe {
    height: 300px;
  }

  .vs-footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .vs-modal {
    padding: 12px;
    align-items: end;
  }

  .vs-modal-panel {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
  }
}

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


/* =====================================================
   LOGO HEADER
   ===================================================== */

.vs-brand{
    position:relative;
    display:flex;
    align-items:center;
    width:280px;
    height:58px;
}

.vs-logo{
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:auto;
    height:52px;
    transition:opacity .25s ease;
}

/* Hero */

.vs-logo-light{
    opacity:1;
    visibility:visible;
}

.vs-logo-dark{
    opacity:0;
    visibility:hidden;
}

/* Scroll */

.vs-header.is-scrolled .vs-logo-light,
.vs-header.menu-open .vs-logo-light{
    opacity:0;
    visibility:hidden;
}

.vs-header.is-scrolled .vs-logo-dark,
.vs-header.menu-open .vs-logo-dark{
    opacity:1;
    visibility:visible;
}

/* Mobile */

@media (max-width:860px){

    .vs-brand{
        width:210px;
        height:46px;
    }

    .vs-logo{
        height:42px;
    }

}

/* =====================================================
   Formulario de Contacto
   ===================================================== */

.vs-contact-form{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:24px;
}

.vs-form-group input,
.vs-form-group textarea{
    width:100%;
    border:1px solid var(--vs-line);
    border-radius:18px;
    padding:14px 18px;
    font-family:inherit;
    font-size:.95rem;
    background:#fff;
    transition:.2s;
}

.vs-form-group textarea{
    resize:vertical;
    min-height:140px;
}

.vs-form-group input:focus,
.vs-form-group textarea:focus{
    outline:none;
    border-color:var(--vs-violet);
    box-shadow:0 0 0 4px rgba(158,70,148,.12);
}

/* =====================================================
   MOBILE UX OPTIMIZADO
   ===================================================== */

@media (max-width: 640px) {

  /* Hero más compacto */

  .vs-hero{
    padding-top: calc(var(--vs-header-h) + 20px);
    padding-bottom: 50px;
  }

  .vs-hero h1{
    font-size: 2.1rem;
    line-height: 1.05;
    margin-bottom: 14px;
  }

  .vs-hero-text{
    font-size: .95rem;
    margin-bottom: 18px;
  }

  .vs-turn-card{
    padding: 18px;
    border-radius: 20px;
  }

  .vs-turn-card h2{
    font-size: 1.6rem;
    margin-bottom: 6px;
  }

  /* Secciones más compactas */

  .vs-section{
    padding: 48px 0;
  }

  .vs-section h2,
  .vs-section-heading h2,
  .vs-section-copy h2{
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  /* Quienes somos */

  .vs-about-image img{
    max-width: 260px;
  }

  /* Servicios */

  .vs-service-card{
    padding: 18px;
  }

  .vs-service-card h3{
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .vs-service-card p{
    font-size: .88rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .vs-service-icon{
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
  }

  /* Turnos */

  .vs-step-card{
    padding: 18px 14px;
  }

  .vs-step-card i{
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .vs-step-card h3{
    font-size: .9rem;
  }

  /* PROFESIONALES */

  .vs-pro-card img{
    aspect-ratio: 4 / 3.2;
  }

  .vs-pro-info{
    padding: 16px;
  }

  .vs-pro-info h3{
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .vs-pro-tag{
    margin-bottom: 4px;
  }

  .vs-pro-info p{
    font-size: .82rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .vs-pro-info .vs-btn{
    width: 100%;
  }

  /* CONTACTO */

  .vs-contact-form{
    gap: 12px;
  }

  .vs-form-group input,
  .vs-form-group textarea{
    padding: 12px 14px;
  }

  .vs-contact-item{
    padding: 16px;
  }

  /* MAPA */

  .vs-map-wrap{
    margin-top: 24px;
  }

  .vs-map-wrap iframe{
    height: 220px;
  }

  /* FOOTER */

  .vs-footer{
    padding-top: 50px;
  }

  .vs-footer-grid{
    gap: 22px;
  }

  .vs-footer p,
  .vs-footer a,
  .vs-footer li{
    font-size: .85rem;
  }

}

@media (max-width:640px){

    /* Fotos médicos */

    .vs-pro-card img{
        height:180px;
        width:100%;
        object-fit:cover;
        object-position:center top;
    }

    /* Footer */

    .vs-footer-grid{
        grid-template-columns:1fr;
    }

    .vs-footer-grid > div:nth-child(2){
        display:none;
    }

}
