:root {
  --brand-red: #f32839;
  --brand-blue: #4544a3;
  --brand-ink: #16182a;
  --brand-surface: #f8fafe;
  --brand-line: #d8def0;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 20px 45px rgba(24, 32, 84, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(900px 550px at 95% -10%, rgba(69, 68, 163, 0.08), transparent 60%),
    radial-gradient(720px 420px at -10% 25%, rgba(243, 40, 57, 0.1), transparent 60%),
    var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

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

.hero-slider {
  width: 100%;
  margin-top: 0.3rem;
}

.heroSwiper {
  position: relative;
  width: 100%;
  height: min(73vh, 720px);
  min-height: 460px;
  border-radius: 0;
  overflow: hidden;
}

.slide-media {
  position: relative;
}

.slide-video,
.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mobile-media {
  display: none;
}

.fallback-media {
  display: none;
}

.video-failed .slide-video {
  display: none;
}

.video-failed .fallback-media {
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 11, 28, 0.76) 0%, rgba(8, 11, 28, 0.34) 45%, rgba(8, 11, 28, 0.1) 100%),
    radial-gradient(760px 280px at 12% 78%, rgba(243, 40, 57, 0.34), transparent 70%),
    radial-gradient(620px 260px at 76% 12%, rgba(69, 68, 163, 0.25), transparent 70%);
}

.promo-slide .slide-overlay {
  background: linear-gradient(90deg, rgba(8, 11, 28, 0.08), rgba(8, 11, 28, 0.02));
}

.promo-slide .slide-content {
  left: auto;
  right: clamp(1rem, 5.6vw, 5rem);
  bottom: clamp(2.2rem, 8vh, 5rem);
  max-width: min(360px, calc(100% - 2rem));
  padding: 1rem 1.15rem;
  background: rgba(8, 11, 28, 0.62);
}

.promo-slide .slide-content h2 {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.slide-content {
  position: absolute;
  left: clamp(1rem, 5.6vw, 5rem);
  bottom: clamp(2.2rem, 8vh, 5rem);
  z-index: 2;
  max-width: min(760px, calc(100% - 2rem));
  color: var(--white);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(2px);
  padding: clamp(1rem, 2.8vw, 2rem);
}

.slide-kicker {
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: #ffd9de;
}

.slide-content h1,
.slide-content h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.6rem);
  line-height: 1.12;
}

.slide-content p {
  margin-top: 0.75rem;
  max-width: 62ch;
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
}

.slide-content .btn {
  margin-top: 1.2rem;
}

.btn-outline-light {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.slider-controls {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  backdrop-filter: blur(6px);
}

.slider-btn {
  appearance: none;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
  position: static;
  inset: auto;
  margin: 0;
}

.slider-btn::after {
  content: "";
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.heroSwiper .swiper-pagination {
  position: static;
  color: var(--white);
  font-weight: 800;
  font-family: "Sora", "Segoe UI", sans-serif;
  min-width: 64px;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.04em;
}

.heroSwiper .swiper-pagination-current,
.heroSwiper .swiper-pagination-total {
  font-variant-numeric: tabular-nums;
}

.scroll-hint {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 3;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.mouse {
  width: 20px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  display: inline-block;
  position: relative;
}

.mouse::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 8px;
  left: 6px;
  animation: wheel 1.4s infinite;
}

@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  z-index: -1;
  filter: blur(2px);
}

.shape-a {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -100px;
  background: linear-gradient(140deg, rgba(243, 40, 57, 0.24), rgba(243, 40, 57, 0));
}

.shape-b {
  width: 300px;
  height: 300px;
  left: -140px;
  bottom: -120px;
  background: linear-gradient(140deg, rgba(69, 68, 163, 0.24), rgba(69, 68, 163, 0));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: saturate(1.3) blur(8px);
  background: rgba(255, 255, 255, 0.88);
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 64px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  color: #222842;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--brand-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #222842;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.78rem 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(132deg, var(--brand-red), #d62231);
  box-shadow: 0 12px 26px rgba(243, 40, 57, 0.3);
}

.btn-outline {
  color: var(--brand-blue);
  border: 2px solid rgba(69, 68, 163, 0.35);
  background: rgba(255, 255, 255, 0.7);
}

.hero-intro {
  padding: 5.4rem 0 4.4rem;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  color: var(--brand-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-intro h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  color: #13162b;
}

.hero-text {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.8vw, 1.14rem);
  max-width: 64ch;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-card {
  background: linear-gradient(160deg, var(--brand-blue), #32357d);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.24rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-head h2,
.section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(35, 45, 89, 0.07);
  display: flex;
  flex-direction: column;
  min-height: 282px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(243, 40, 57, 0.42);
  box-shadow: 0 18px 34px rgba(35, 45, 89, 0.13);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.service-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  color: var(--brand-red);
  background: rgba(243, 40, 57, 0.09);
}

.service-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.service-number {
  color: #9aa3c1;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
  color: var(--brand-blue);
}

.service-card p {
  color: #535b78;
  font-size: 0.94rem;
}

.service-card .service-card-highlight {
  color: var(--brand-red);
  font-weight: 800;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--brand-red);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.service-link span {
  transition: transform 0.2s ease;
}

.service-link:hover {
  text-decoration: underline;
}

.service-link:hover span {
  transform: translateX(3px);
}

.service-more-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--brand-red);
  background: linear-gradient(100deg, #fff8f8, #f7f8ff);
}

.service-more-links p {
  color: #535b78;
}

.service-page {
  min-height: 100vh;
}

.service-page-main {
  padding: 4rem 0 5rem;
}

.service-page-hero {
  max-width: 800px;
  padding: clamp(2rem, 5vw, 4rem) 0 2.5rem;
}

.service-page-hero h1 {
  color: var(--brand-blue);
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
}

.service-page-hero p:last-child {
  max-width: 64ch;
  margin-top: 1rem;
  font-size: 1.08rem;
  color: #535b78;
}

.portfolio-page .service-page-hero {
  max-width: none;
}

.portfolio-page .service-page-hero h1 {
  max-width: 100%;
}

.portfolio-page .service-page-grid {
  grid-template-columns: 1fr;
}

.portfolio-page > .service-page-main > .service-page-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.service-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.service-page-panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(35, 45, 89, 0.07);
}

.service-page-wide {
  margin-top: 1rem;
}

.service-page-wide + .service-page-grid {
  margin-top: 1rem;
}

.service-group > h2 {
  margin-top: 0.45rem;
  color: var(--brand-blue);
  font-size: 1.35rem;
}

.service-group > .service-page-grid {
  margin-top: 1rem;
}

.condition-group {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.condition-group > h2 {
  margin-bottom: 1rem;
  color: var(--brand-blue);
  font-size: 1.35rem;
}

.condition-group > .service-page-grid {
  margin-top: 0;
}

.condition-grid {
  grid-template-columns: 1fr;
}

.condition-grid + .condition-grid {
  margin-top: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

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

.value-card {
  border-top: 3px solid var(--brand-red);
  padding: 1rem;
  background: linear-gradient(145deg, #fff, #f7f8ff);
}

.management-card-image {
  display: block;
  width: calc(100% + 2rem);
  height: 150px;
  margin: -1rem -1rem 1rem;
  object-fit: cover;
}

.value-card h3 {
  color: var(--brand-blue);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.value-card p {
  color: #535b78;
  font-size: 0.93rem;
}

.institutional-note {
  background: linear-gradient(145deg, #f6f8ff, #fffafb);
}

.service-page-panel h2 + p,
.service-page-panel h2 + ul,
.service-page-panel h2 + ol {
  margin-top: 0.8rem;
}

.service-page-panel ol {
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

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

.service-faq p {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(216, 222, 240, 0.9);
}

.service-contact-note {
  margin-top: 0.8rem;
  color: #535b78;
  font-size: 0.92rem;
}

.service-page-panel h2 {
  margin-bottom: 0.8rem;
  color: var(--brand-blue);
  font-size: 1.35rem;
}

.service-page-panel h2.subsection-title {
  margin-top: 1.25rem;
}

.service-page-panel > h3,
.service-page-panel p + h3,
.service-page-panel ul + h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--brand-blue);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.service-page-panel p + p {
  margin-top: 0.8rem;
}

.service-page-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.diagnostic-photo {
  margin: 1.2rem 0 0;
  cursor: zoom-in;
}

.diagnostic-photo img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
}

.service-page-wide > .diagnostic-photo img {
  height: auto;
  max-height: 620px;
  object-fit: contain;
  background: #f7f8fc;
}

.diagnostic-photo figcaption {
  margin-top: 0.5rem;
  color: #68718d;
  font-size: 0.8rem;
  line-height: 1.4;
}

.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.service-photo-grid .diagnostic-photo {
  margin-top: 0;
}

.service-photo-grid .diagnostic-photo img {
  height: 190px;
}

.portfolio-link-list {
  list-style: none;
  padding-left: 0 !important;
  gap: 0.45rem !important;
}

.portfolio-link-list li a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.2rem;
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.portfolio-link-list li a:hover {
  color: var(--brand-red);
  text-decoration: none;
}

.portfolio-link-list .service-icon,
.service-group .service-icon {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
}

.portfolio-link-list .service-icon svg,
.service-group .service-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-group .service-page-panel h3 {
  color: var(--brand-blue);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.service-group .service-page-panel .service-card-top + h3 {
  margin-top: 0.25rem;
}

.service-page-cta {
  margin-top: 1rem;
}

.back-link {
  display: inline-flex;
  margin-top: 2rem;
  color: var(--brand-blue);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.alt .split {
  border: 1px solid rgba(69, 68, 163, 0.2);
  background: linear-gradient(155deg, #f6f8ff 0%, #fffafb 100%);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}

.info-note {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--brand-red);
  background: rgba(243, 40, 57, 0.07);
  border-radius: 0.75rem;
  color: #2f3650;
}

.detail-stack {
  display: grid;
  gap: 0.8rem;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(24, 32, 84, 0.06);
}

.detail-card h3 {
  margin-bottom: 0.45rem;
  color: var(--brand-blue);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(69, 68, 163, 0.1);
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.cta {
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #1c2147, #272f67);
  color: var(--white);
  padding: clamp(1.3rem, 4vw, 2rem);
}

.cta p {
  margin-top: 0.6rem;
  opacity: 0.92;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr;
  gap: 1rem;
  align-items: center;
}

.contact-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-route {
  background: linear-gradient(135deg, #3342aa, #2a3586);
}

.map-card {
  margin-top: 1rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(24, 32, 84, 0.1);
}

.map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--brand-line);
}

.map-head h3 {
  color: var(--brand-blue);
  font-size: 1.08rem;
}

.map-head a {
  color: #2a3586;
  font-weight: 700;
  text-decoration: none;
}

.map-head a:hover {
  text-decoration: underline;
}

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

.social-links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.convenios-list {
  display: grid;
  gap: 1.2rem;
}

.convenio-group {
  display: grid;
  gap: 0.65rem;
}

.convenio-group h3 {
  color: var(--brand-blue);
  font-size: 1.05rem;
  margin: 0;
}

.convenio-group-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.convenio-logo {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(24, 32, 84, 0.06);
}

.convenio-logo img {
  display: block;
  width: min(100%, 170px);
  height: 76px;
  object-fit: contain;
}

.cases-group {
  margin-top: 1.4rem;
  width: 100%;
  min-width: 0;
}

#casos .section-head,
#casos .cases-filter,
#casos .cases-disclaimer {
  width: 100%;
  min-width: 0;
}

.cases-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid rgba(69, 68, 163, 0.32);
  background: #f7f8ff;
  color: #222b5f;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.is-active {
  background: linear-gradient(132deg, var(--brand-blue), #303da6);
  color: var(--white);
  border-color: transparent;
}

.cases-title-row {
  display: grid;
  gap: 0.2rem;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.cases-title-row h3 {
  color: var(--brand-blue);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.cases-title-row span {
  color: #44507d;
  font-weight: 700;
}

.cases-set[hidden] {
  display: none;
}

.cases-carousel {
  position: relative;
  width: 72%;
  min-width: 360px;
  margin-inline: auto;
}

.casesSwiper {
  padding-bottom: 0.35rem;
}

.cases-controls {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(69, 68, 163, 0.22);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.35rem 0.55rem;
}

.cases-nav {
  appearance: none;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(69, 68, 163, 0.12);
  color: var(--brand-blue);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cases-nav:hover {
  background: rgba(69, 68, 163, 0.2);
}

.cases-counter {
  min-width: 58px;
  text-align: center;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: #2c3a91;
  font-weight: 800;
}

.case-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--brand-line);
  box-shadow: 0 12px 26px rgba(24, 32, 84, 0.1);
  background: var(--white);
  cursor: zoom-in;
}

.case-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #f7f8fc;
  aspect-ratio: 1 / 1;
}

.cases-disclaimer {
  margin-top: 1rem;
  color: #3f4664;
  font-size: 0.95rem;
  border-left: 3px solid var(--brand-red);
  padding-left: 0.8rem;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 38, 0.84);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-width: min(980px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-content img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #fff;
}

.lightbox-content p {
  margin: 0;
  padding: 0.7rem 1rem;
  color: #28315f;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1e2552;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

body.no-scroll {
  overflow: hidden;
}

.social {
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.social-ig {
  background: linear-gradient(135deg, #f53655, #5d4fc8);
}

.social-wa {
  background: linear-gradient(135deg, #0dbf72, #0ca167);
}

.site-footer {
  margin-top: 3.5rem;
  background: linear-gradient(145deg, #1f2b6d, #2e3c96);
  color: #e8fbff;
}

.footer-shell {
  padding: 3.4rem 0 1.1rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 1.8rem;
  align-items: start;
  border-top: 1px solid rgba(232, 251, 255, 0.14);
  border-bottom: 1px solid rgba(232, 251, 255, 0.14);
  padding: 2rem 0;
}

.footer-brand-col {
  padding-right: 1.6rem;
  border-right: 1px solid rgba(232, 251, 255, 0.12);
}

.footer-brand-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.footer-brand-subtitle {
  opacity: 0.9;
  margin-bottom: 1.4rem;
}

.footer-brand-col h3,
.footer-contact-card h3 {
  color: #d7ddff;
  margin-bottom: 0.7rem;
  font-size: 1.18rem;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links-list a,
.footer-contact-card a {
  color: #e8fbff;
  text-decoration: none;
}

.footer-links-list a:hover,
.footer-contact-card a:hover {
  color: #d7ddff;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.footer-contact-card {
  min-height: 190px;
  border-left: 3px solid rgba(163, 178, 255, 0.85);
  padding: 0.25rem 0 0.25rem 0.85rem;
}

.footer-contact-card p {
  margin-top: 0.45rem;
  opacity: 0.95;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: in 0.72s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

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

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

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

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

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 26px rgba(19, 22, 43, 0.12);
    padding: 0.5rem 1.2rem 1rem;
  }

  .main-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(34, 40, 66, 0.08);
  }

  .site-header {
    position: relative;
  }

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

  .heroSwiper {
    height: 64vh;
    min-height: 420px;
  }

  .slide-content {
    left: 1rem;
    right: 1rem;
    max-width: unset;
    bottom: 1.2rem;
  }

  .scroll-hint {
    display: none;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    padding-top: 3.2rem;
  }

  .services-grid,
  .service-page-grid,
  .service-more-links,
  .service-photo-grid,
  .values-grid,
  .convenios-list,
  .convenio-group-list,
  .alt .split,
  .contact-card,
  .footer-main,
  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .map-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-card img {
    aspect-ratio: 1 / 1;
  }

  .cases-group {
    width: 100%;
    min-width: 0;
  }

  #casos .section-head,
  #casos .cases-filter,
  #casos .cases-disclaimer {
    width: 100%;
    min-width: 0;
  }

  .cases-carousel {
    width: 100%;
    min-width: 0;
  }

  .footer-brand-col {
    border-right: none;
    border-bottom: 1px solid rgba(232, 251, 255, 0.16);
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .footer-contact-card {
    min-height: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: left;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .site-header {
    backdrop-filter: none;
    background: transparent;
  }

  .brand-logo {
    height: 54px;
  }
}

@media (max-width: 640px) {
  .desktop-media {
    display: none;
  }

  .mobile-media {
    display: block;
  }

  .heroSwiper {
    height: 76vh;
    min-height: 460px;
  }

  .slider-controls {
    bottom: 0.8rem;
  }

  .slider-btn {
    width: 34px;
    height: 34px;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-intro h1 {
    font-size: 1.9rem;
  }

  .cases-title-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.6rem;
  }

  .cases-controls {
    margin-top: 0.65rem;
  }

  .footer-shell {
    padding-top: 2.5rem;
  }
}
