:root {
  --primary: #1193d4;
  --primary-dark: #0e7ab0;
  --secondary: #f0f9ff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-body: #f9fafb;
  --white: #ffffff;
  --radius-lg: 1rem;
  --radius-md: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.theme-logo {
  --title-color: #1193d4;
  --accent-color: #0e7ab0;
  --bg-light: #1e3a4c;
  --bg-gradient: linear-gradient(135deg, #1e3a4c 0%, #2a4a5e 100%);
}

html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 100px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Lexend", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.hidden {
  display: none;
}

body:not(.theme-dark):not(.theme-green) {
  --title-color: #1193d4;
  --accent-color: #0e7ab0;
  --bg-light: #e0f2fe;
  --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #cffafe 100%);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  color: #111827;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.section-spacing {
  padding: 3rem 0;
}

body:not(.theme-dark):not(.theme-green) .about-section {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

body:not(.theme-dark):not(.theme-green) .testimonials-section {
  background: #ffffff;
}

body:not(.theme-dark):not(.theme-green) .services-section {
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
}

body:not(.theme-dark):not(.theme-green) .reembolsos-section {
  background: #fafafa;
}

body:not(.theme-dark):not(.theme-green) .team-section {
  background: #ffffff;
}

body:not(.theme-dark):not(.theme-green) .gallery-section {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

body:not(.theme-dark):not(.theme-green) .contact-section {
  background: linear-gradient(135deg, #fafafa 0%, #f0f9ff 100%);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--title-color);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 4px;
  background: linear-gradient(90deg, var(--title-color), var(--accent-color));
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(17, 147, 212, 0.3);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(17, 147, 212, 0.3), 0 0 0 0 rgba(17, 147, 212, 0.7);
  border: 3px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
  0% {
    box-shadow: 0 4px 6px -1px rgba(17, 147, 212, 0.3), 0 0 0 0 rgba(17, 147, 212, 0.7);
  }
  70% {
    box-shadow: 0 4px 6px -1px rgba(17, 147, 212, 0.3), 0 0 0 10px rgba(17, 147, 212, 0);
  }
  100% {
    box-shadow: 0 4px 6px -1px rgba(17, 147, 212, 0.3), 0 0 0 0 rgba(17, 147, 212, 0);
  }
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px -1px rgba(17, 147, 212, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
  animation: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25D366;
  backdrop-filter: blur(4px);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 3px solid rgba(37, 211, 102, 0.5);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse-btn-green 2s infinite;
}

@keyframes pulse-btn-green {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.btn-secondary:hover {
  background-color: #1da851;
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(37, 211, 102, 0.9);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.5);
  animation: none;
}

.btn-whatsapp-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}

body.theme-dark .btn-whatsapp-sm {
  background-color: #25D366;
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp-sm:hover {
  background-color: #1da851;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.header-main {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17,147,212,0.08);
  transition: all 0.22s ease;
}

body.theme-dark .header-main {
  background-color: rgba(10, 25, 41, 0.95);
  border-bottom-color: #2a5a7a;
}

body.theme-green .header-main {
  background-color: rgba(236, 253, 245, 0.95);
  border-bottom-color: #a7f3d0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  display: block;
}

.logo-img:hover {
  transform: translateY(-2px) scale(1.02);
}

body:not(.theme-dark):not(.theme-green) .logo-light {
  display: block !important;
}

body:not(.theme-dark):not(.theme-green) .logo-dark {
  display: none !important;
}

body.theme-dark .logo-light {
  display: none !important;
}

body.theme-dark .logo-dark {
  display: block !important;
}

body.theme-green .logo-dark {
  display: none !important;
}

@media (max-width: 768px) {
  .logo-img { height: 56px; }
  .header-container { height: 72px; padding: 0 1rem; }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.26s ease;
  border-radius: 4px;
}

.nav-link:hover {
  color: var(--title-color);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  font-size: 1.25rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-social-link:hover {
  color: #e4405f;
  background: rgba(228, 64, 95, 0.08);
  transform: translateY(-2px);
}

body.theme-dark .nav-social-link {
  color: #a0d9f2;
}

body.theme-dark .nav-social-link:hover {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
}

body.theme-green .nav-social-link {
  color: #047857;
}

body.theme-green .nav-social-link:hover {
  color: #e4405f;
  background: rgba(228, 64, 95, 0.08);
}

.nav-btn-agendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  height: 2.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--primary);
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-left: 2.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: pulse-aggressive 0.9s ease-in-out infinite;
}

@keyframes pulse-aggressive {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.nav-btn-agendar:hover {
  background-color: var(--primary-dark);
  opacity: 1;
}

.nav-btn-agendar:focus-visible {
  ring: 4px solid rgba(0, 0, 0, 0.4);
  border-color: transparent;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 55;
}

body.theme-dark .nav-mobile {
  background: #0a1929;
  border-top-color: #1f2937;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body.theme-green .nav-mobile {
  background: #ecfdf5;
  border-top-color: #a7f3d0;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

.nav-mobile .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
}

.mobile-link {
  display: block;
  padding: 0.75rem 0;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-link:last-of-type {
  border-bottom: none;
}

body.theme-dark .mobile-link {
  color: #e8f4f8;
  border-bottom-color: #1f3f5a;
}

body.theme-green .mobile-link {
  color: #065f46;
  border-bottom-color: #bbf7d0;
}

.nav-mobile .container > .flex {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.nav-mobile .container > .flex a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}

.nav-mobile .container > .flex a:last-child {
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(17, 147, 212, 0.25);
}

.hero-section {
  position: relative;
  height: 85vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 0;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5) saturate(0.9);
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay { background: linear-gradient(to bottom, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6)); z-index: 1; }
.hero-content { z-index: 2; position: relative; text-align: center; max-width: 900px; padding: 0 1.5rem; margin: 0 auto; }

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.7), 0 2px 4px rgba(0,0,0,0.5);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #f3f4f6;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-description {
  font-size: 1.2rem;
  color: #e5e7eb;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.services-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 1024px) {
  .services-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-bento-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 3rem 0;
  }

  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1rem;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 92%;
    max-width: 320px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    justify-content: center;
    text-align: center;
    min-height: 48px;
  }

  .hero-meta {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }

  .hero-meta-item {
    font-size: 0.95rem;
  }
}

.bento-card {
  position: relative;
  background: #ffffff;
  padding: 2.25rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  height: auto;
  min-height: 360px;
  transition: all 0.3s ease;
  overflow: visible;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--title-color);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #f0f9ff;
  color: #1193d4;
  font-size: 1.75rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s;
}

.service-icon i {
  font-size: 1.75rem;
}

.bento-card:hover .service-icon {
  background-color: var(--title-color);
  color: #ffffff !important;
  border: none;
}

body.theme-dark .bento-card:hover .service-icon {
  background-color: #7dd3fc;
  color: #0a1929 !important;
}

.bento-card h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

body.theme-dark .bento-card h3 {
  color: #e0f7ff;
}

body.theme-green .bento-card h3 {
  color: #065f46;
}

.bento-card p {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

body.theme-dark .bento-card p {
  color: #c1e7f5;
}

body.theme-green .bento-card p {
  color: #047857;
}

/* ==============================
   CARD FLIP ANIMATION
   ============================== */

.bento-card-flip-wrapper {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 360px;
}

.bento-card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
}

.bento-card-flip-wrapper.flipped .bento-card-flip-inner {
  transform: rotateY(180deg);
}

.bento-card-front,
.bento-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.bento-card-front {
  transform: rotateY(0deg);
}

.bento-card-back {
  transform: rotateY(180deg);
  padding: 2rem;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
}

.bento-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}

.bento-card-flip-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(17, 147, 212, 0.3);
}

.bento-card-flip-btn-back {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: none;
}

.bento-card-flip-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0a5a8f);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(17, 147, 212, 0.5);
}

.bento-card-back h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
  text-align: left;
}

.bento-card-back p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  color: #4b5563;
}

.bento-card-back-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.bento-card-back-content > div {
  width: 100%;
}

.bento-card-back-content::-webkit-scrollbar {
  width: 6px;
}

.bento-card-back-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.bento-card-back-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.bento-card-back-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}


.service-recovery {
  border: 2px solid #bae6fd;
}


.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ==============================
   SECCIÓN REEMBOLSOS ISAPRES
   ============================== */
.reembolsos-section {
  position: relative;
  overflow: hidden;
}

.isapres-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
  margin: 3.5rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.isapres-track {
  display: flex;
  gap: 2.5rem;
  width: calc((240px + 2.5rem) * 16);
  animation: scroll-infinite 40s linear infinite;
  will-change: transform;
}

@keyframes scroll-infinite {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-8 * (240px + 2.5rem)));
  }
}

.isapre-item {
  flex-shrink: 0;
  width: 240px; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 160px;
}

body.theme-dark .isapre-item {
  background: #0f2844;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.theme-green .isapre-item {
  background: #ecfdf5;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.isapre-item:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 12px 30px rgba(17, 147, 212, 0.25);
}

body.theme-dark .isapre-item:hover {
  box-shadow: 0 12px 30px rgba(125, 211, 252, 0.3);
}

body.theme-green .isapre-item:hover {
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
}

.isapre-item img {
  max-height: 140px;
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.6);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.isapre-item:hover img {
  filter: grayscale(0);
  transform: scale(1.12);
}

.reembolsos-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.reembolsos-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

body.theme-dark .reembolsos-card {
  background: #0f2844;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.theme-green .reembolsos-card {
  background: #ecfdf5;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.reembolsos-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(17, 147, 212, 0.2);
}

body.theme-dark .reembolsos-card:hover {
  box-shadow: 0 12px 24px rgba(125, 211, 252, 0.25);
}

body.theme-green .reembolsos-card:hover {
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.25);
}

.reembolsos-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

body.theme-dark .reembolsos-card i {
  color: #7dd3fc;
}

body.theme-green .reembolsos-card i {
  color: #10b981;
}

.reembolsos-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--title-color);
}

.reembolsos-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

body.theme-dark .reembolsos-card p {
  color: #a8d5f0;
}

body.theme-green .reembolsos-card p {
  color: #059669;
}

@media (max-width: 768px) {
  .isapres-carousel {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    gap: 0.75rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .isapres-track {
    gap: 1.5rem;
    animation: scroll-infinite 36s linear infinite;
  }

  .isapre-item {
    flex: 0 0 180px;
    padding: 1.5rem;
    min-height: 140px;
  }

  .isapre-item img {
    max-height: 110px;
    max-width: 160px;
  }

  .reembolsos-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .reembolsos-card {
    padding: 1.5rem;
  }

  .reembolsos-card i {
    font-size: 2rem;
  }

  .reembolsos-card h3 {
    font-size: 1.1rem;
  }

  .reembolsos-card p {
    font-size: 0.9rem;
  }
}

.about-section {
  background: var(--bg-gradient);
  padding: 4rem 2rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(17, 147, 212, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

body.theme-dark .about-section::before {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15), transparent);
}

body.theme-green .about-section::before {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-content-main {
  font-size: 1.15rem;
  color: #374151;
  margin-bottom: 2rem;
  line-height: 1.9;
  text-align: justify;
}

body.theme-dark .about-content-main {
  color: #c1e7f5;
}

body.theme-green .about-content-main {
  color: #065f46;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.features-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem;
  border-radius: 0.75rem;
}

.features-list i {
  font-size: 1.5rem;
  color: var(--primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  border: 1px solid #e5e7eb;
}

body.theme-dark .team-card {
  background: #1a3a52;
  border-color: #2a5a7a;
}

body.theme-green .team-card {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-img-wrapper {
  height: 33.125rem;
  background-color: #e5e7eb;
}

.team-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 35%;
}

.professional1 {
  background-image: url("/images/team/cristopher_fondo_kineon_pequeno.jpg");
}

.professional2 {
  background-image: url("/images/team/jose_fondo_kineon_pequeno.jpg");
}

.team-body {
  padding: 1.5rem;
  text-align: center;
}

.team-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--title-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.divider-small {
  width: 40px;
  height: 3px;
  background-color: #f3f4f6;
  margin: 0 auto 1rem;
  border: none;
}

.team-specs {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.team-specs li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.testimonials-scroller {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.testimonial-card {
  min-width: 300px;
  max-width: 350px;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: center;
  border: 1px solid #f3f4f6;
  flex-shrink: 0;
}

body.theme-dark .testimonial-card {
  background: #1a3a52;
  border-color: #2a5a7a;
  color: #e8f4f8;
}

body.theme-green .testimonial-card {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-text {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

body.theme-dark .review-text {
  color: #c1e7f5;
}

body.theme-green .review-text {
  color: #047857;
}

.contact-wrapper-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background: white;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
}

body.theme-dark .contact-wrapper-grid {
  background: #1a3a52;
  color: #e8f4f8;
}

body.theme-green .contact-wrapper-grid {
  background: #ecfdf5;
}

.contact-details p {
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item strong {
  font-size: 1.1rem;
}

.contact-item p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--title-color);
  background: var(--bg-light);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-socials a {
  font-size: 1.5rem;
  color: #6b7280;
  transition: color 0.2s;
}

.contact-socials a:hover {
  color: var(--primary);
}

.phone-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.phone-link:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(17, 147, 212, 0.3);
}

body.theme-dark .phone-link {
  color: #7dd3fc;
}

body.theme-dark .phone-link:hover {
  background-color: #7dd3fc;
  color: #0a1929;
}

body.theme-green .phone-link {
  color: #10b981;
}

body.theme-green .phone-link:hover {
  background-color: #10b981;
  color: white;
}

.phone-separator {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.map-wrapper {
  min-height: 300px;
  border-radius: 1rem;
  overflow: hidden;
}

.footer-main {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  color: white;
  padding: 4rem 2rem;
  border-top: 3px solid var(--primary);
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}

.footer-logo-section {
  margin-bottom: 1rem;
}

.footer-logo-link {
  display: inline-block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  transition: all 0.3s ease;
  border: none;
}

.footer-logo-link:hover {
  background: transparent;
  transform: translateY(-8px);
}

.footer-logo-large {
  width: 300px;
  height: auto;
}

.footer-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 0.75rem;
  color: #c1e7f5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-contact-item i {
  font-size: 1.8rem;
  color: #7dd3fc;
}

.footer-contact-item:hover {
  background: rgba(125, 211, 252, 0.1);
  border-color: #7dd3fc;
  transform: translateY(-4px);
}

.footer-contact-item small {
  font-size: 0.8rem;
  color: #a0d9f2;
}

.footer-address {
  cursor: pointer;
}

.footer-address:hover {
  transform: translateY(-4px);
}

.footer-cta-section {
  width: 100%;
  max-width: 400px;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 3px solid rgba(17, 147, 212, 0.5);
  box-shadow: 0 6px 20px rgba(17, 147, 212, 0.5), 0 0 0 0 rgba(17, 147, 212, 0.7);
  animation: pulse-footer-btn 2s infinite;
  width: 100%;
}

@keyframes pulse-footer-btn {
  0% {
    box-shadow: 0 6px 20px rgba(17, 147, 212, 0.5), 0 0 0 0 rgba(17, 147, 212, 0.7);
  }
  70% {
    box-shadow: 0 6px 20px rgba(17, 147, 212, 0.5), 0 0 0 15px rgba(17, 147, 212, 0);
  }
  100% {
    box-shadow: 0 6px 20px rgba(17, 147, 212, 0.5), 0 0 0 0 rgba(17, 147, 212, 0);
  }
}

.footer-cta-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0a5a8f);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(17, 147, 212, 0.7);
  animation: none;
  border-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(125, 211, 252, 0.3);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #a0d9f2;
  font-size: 0.85rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #25D366, #20ba5a) !important;
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.2);
  animation: none;
}

body.modal-open {
  overflow: hidden;
}

.tooltip-text {
  position: absolute;
  right: 70px;
  background: white;
  color: #1f2937;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  white-space: nowrap;
}

.whatsapp-float:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

@media (min-width: 768px) {
  .services-bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
  }
  .service-main { grid-column: span 2; }
  .service-sports { grid-row: span 2; }
  .service-recovery { grid-column: span 2; }
  .contact-wrapper-grid { grid-template-columns: 1fr 1fr; padding: 3rem; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: block; font-size: 1.5rem; }
  .section-title { font-size: 2rem; }
  .hero-content h1 { font-size: 2.5rem; }
  .contact-wrapper-grid { padding: 1.5rem; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
  .container { padding: 0 1rem; }
  .header-container { padding: 0 1rem; }
  
  .theme-switcher {
    top: 90px;
    right: 1rem;
    padding: 0.35rem;
  }

  .theme-switcher button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ==============================
   GALERÍA INTERACTIVA
   ============================== */
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-md);
  cursor: pointer; 
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 147, 212, 0.4); 
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1); 
}

.gallery-item:hover .gallery-overlay {
  opacity: 1; 
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1); 
}

.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ==============================
   MODAL WHATSAPP
   ============================== */
.whatsapp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.whatsapp-modal.hidden {
  display: none;
}

.whatsapp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.whatsapp-modal-content {
  position: relative;
  z-index: 10;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modal-slide-up 0.3s ease;
}

body.theme-dark .whatsapp-modal-content {
  background: #1a3a52;
  color: #e8f4f8;
}

body.theme-green .whatsapp-modal-content {
  background: #ecfdf5;
  color: #065f46;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.theme-dark .whatsapp-modal-close {
  color: #a0d9f2;
}

body.theme-green .whatsapp-modal-close {
  color: #047857;
}

.whatsapp-modal-close:hover {
  color: #111827;
  transform: rotate(90deg);
}

body.theme-dark .whatsapp-modal-close:hover {
  color: #e0f7ff;
}

.whatsapp-modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111827;
  margin-top: 0;
}

body.theme-dark .whatsapp-modal-content h3 {
  color: #e0f7ff;
}

body.theme-green .whatsapp-modal-content h3 {
  color: #065f46;
}

.whatsapp-modal-content > p {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

body.theme-dark .whatsapp-modal-content > p {
  color: #a0d9f2;
}

body.theme-green .whatsapp-modal-content > p {
  color: #047857;
}

.whatsapp-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.whatsapp-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  transition: all 0.3s ease;
  cursor: pointer;
}

body.theme-dark .whatsapp-option {
  background: #0f3a52;
  border-color: #2a5a7a;
  color: #e8f4f8;
}

body.theme-green .whatsapp-option {
  background: #d1fae5;
  border-color: #a7f3d0;
  color: #065f46;
}

.whatsapp-option:hover {
  border-color: var(--primary);
  background: #f0f9ff;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(17, 147, 212, 0.2);
}

body.theme-dark .whatsapp-option:hover {
  background: #1a5a7a;
  border-color: #7dd3fc;
}

body.theme-green .whatsapp-option:hover {
  background: #a7f3d0;
  border-color: #10b981;
}

.whatsapp-option-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(17, 147, 212, 0.1), rgba(14, 122, 176, 0.05));
  border-radius: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.whatsapp-option-content {
  flex: 1;
}

.whatsapp-option-content strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.whatsapp-option-content p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

body.theme-dark .whatsapp-option-content p {
  color: #7dd3fc;
}

body.theme-green .whatsapp-option-content p {
  color: #047857;
}

.whatsapp-option i {
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.whatsapp-option:hover i {
  transform: translateX(4px);
}

/* ==============================
   SELECTOR DE TEMAS
   ============================== */
.theme-switcher {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 40;
  background: white;
  border-radius: 9999px;
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.theme-switcher button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switcher button:hover {
  transform: scale(1.1);
}

.theme-btn-logo {
  background: linear-gradient(135deg, #1193d4, #0e7ab0);
  color: white;
  box-shadow: 0 4px 12px rgba(17, 147, 212, 0.3);
}

.theme-btn-logo:hover {
  box-shadow: 0 6px 16px rgba(17, 147, 212, 0.5);
}

.theme-btn-dark {
  background: #1f2937;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-btn-dark:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.theme-btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.theme-btn-green:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.theme-switcher button.active {
  transform: scale(1.15);
  border: 3px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.testimonials-section {
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(17, 147, 212, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.services-section {
  background: linear-gradient(to bottom, transparent, var(--bg-light));
  position: relative;
}

body.theme-dark .services-section {
  background: linear-gradient(to bottom, transparent, rgba(31, 41, 55, 0.5));
}

body.theme-green .services-section {
  background: linear-gradient(to bottom, transparent, rgba(209, 250, 229, 0.3));
}

.gallery-section {
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

.gallery-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(17, 147, 212, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 768px) {
  .footer-content-wrapper {
    gap: 2rem;
  }

  .footer-logo-large {
    width: 140px;
  }

  .footer-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cta-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .nav-btn-agendar {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
  }

  .whatsapp-modal-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .whatsapp-modal-content h3 {
    font-size: 1.3rem;
  }

  .whatsapp-option {
    padding: 1rem;
    gap: 0.75rem;
  }

  .whatsapp-option-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
  }

  .whatsapp-option-content strong {
    font-size: 1rem;
  }

  .whatsapp-option-content p {
    font-size: 0.85rem;
  }

  .about-content-main {
    text-align: justify;
    text-align-last: left;
    word-spacing: -0.08em;
    letter-spacing: -0.3px;
    line-height: 1.5;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .bento-card-back {
    text-align: justify;
    text-align-last: left;
    word-spacing: -0.08em;
    letter-spacing: -0.3px;
    line-height: 1.5;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .bento-card-back p {
    text-align: justify;
    text-align-last: left;
    word-spacing: -0.08em;
    letter-spacing: -0.3px;
    line-height: 1.5;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

@media (min-width: 768px) {
  .services-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card {
    min-height: 320px;
  }
  
  .bento-card-flip-wrapper {
    min-height: 320px;
  }
  
  .bento-card-flip-inner {
    min-height: 320px;
  }
}

.header-actions {
  display: none;
}

@media (max-width: 1023px) {
  .header-actions {
    display: flex;
  }
  
  .nav-desktop {
    display: none !important;
  }

  .nav-mobile {
    display: none;
  }

  #mobile-menu.hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  #mobile-menu {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .section-spacing {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    padding-bottom: 1rem;
  }

  .section-title::after {
    width: 45%;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-section {
    padding: 2.5rem 0;
  }

  .hero-content {
    padding: 0 0.75rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  .hero-subtitle,
  .hero-description {
    font-size: 1rem;
  }

  .services-bento-grid {
    gap: 1.25rem;
  }

  .bento-card {
    padding: 1.75rem;
    min-height: 300px;
  }

  .bento-card-flip-wrapper,
  .bento-card-flip-inner {
    min-height: 300px;
  }

  .team-grid {
    gap: 1.5rem;
  }

  .team-img-wrapper {
    height: 18rem;
  }

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

  .gallery-item {
    height: 200px;
  }

  .reembolsos-section .isapre-item {
    flex: 0 0 150px;
    padding: 1.25rem;
  }

  .contact-wrapper-grid {
    padding: 1.25rem 1rem;
  }

  .contact-item {
    align-items: flex-start;
  }

  .map-wrapper {
    min-height: 240px;
  }

  .footer-main {
    padding: 3rem 1.25rem;
  }

  .footer-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    bottom: 1rem;
    right: 1rem;
  }
}
