:root {
  --azul-oscuro: #0D2AD1;
  --celeste: #70A9D5;
  --gris-claro: #F5F5F5;
  --blanco: #FFFFFF;
  --gris-texto: #4a4a4a;
  --azul-acento: #007bff;
  --azul-acento-hover: #0056b3;
  --azul-oscuro-oscuro: #1e1e2d;
  --verde-whatsapp: #128C7E;
  --verde-whatsapp-hover: #0F7A6D;
  --azul-profesional: #0D47A1;
  --azul-profesional-hover: #0A3D7A;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--blanco);
  color: var(--gris-texto);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent scrolling when chat is open */
body.chat-no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Improve focus indicators for accessibility */
*:focus-visible {
  outline: 3px solid var(--azul-acento);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth animations for better UX */
.chat-box, .chat-overlay, .whatsapp-button, .btn, .choice-btn {
  will-change: transform, opacity;
}

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

/* NAVBAR - Mejorado para mobile-first */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 42, 209, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1001;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(13, 42, 209, 0.98);
  box-shadow: 0 4px 20px rgba(13, 42, 209, 0.3);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.navbar-brand {
  flex-shrink: 0;
  z-index: 1002;
}

.navbar-logo {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 180px;
  transition: transform 0.3s ease;
  object-fit: contain;
  display: block;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 4px;
}

.nav-link:hover {
  color: var(--celeste);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--celeste);
  transition: width 0.3s ease;
}

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

.navbar-cta {
  padding: 0.75rem 1.75rem !important;
  font-size: clamp(0.875rem, 1.5vw, 1rem) !important;
  background: var(--azul-oscuro) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  white-space: nowrap;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(13, 42, 209, 0.25) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.navbar-cta:hover {
  background: var(--azul-profesional) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 42, 209, 0.35) !important;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
  z-index: 1002;
  position: relative;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--blanco);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Navbar: hamburger + overlay desde 1024px hacia abajo para que entren todos los links */
@media (max-width: 1024px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13, 42, 209, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 1.5rem 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 1.25rem;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .navbar-cta {
    width: 100%;
    text-align: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    margin-top: 0.5rem;
  }

  .navbar-toggle {
    display: flex;
  }
}

/* HERO SECTION - Optimizado para conversión */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), 
              url('../image/webp/Dr.Andersson_Tms (1).webp') center 40%/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: var(--blanco);
  margin-top: -70px;
  padding-top: 100px;
  padding-bottom: 3rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.5rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: var(--blanco);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.8s;
}

.hero-badge:hover::before {
  left: 100%;
}

.hero-content h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 7vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 2rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
  font-weight: 700;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-features {
  list-style: none;
  margin: 0 auto 2.5rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 550px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-weight: 500;
}

.hero-features i {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--celeste);
  margin-right: 1rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  min-height: 56px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--azul-oscuro);
  color: var(--blanco);
  box-shadow: 0 4px 16px rgba(13, 42, 209, 0.3);
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--azul-profesional);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 42, 209, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--azul-oscuro);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

/* RECONOCIDO POR */
.reconocido-por {
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100%;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.reconocido-texto {
  font-size: clamp(0.875rem, 2.5vw, 1.1rem);
  color: var(--blanco);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.media-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(0.5rem, 2vw, 1rem);
  width: 100%;
  box-sizing: border-box;
}

.media-logos img {
  height: clamp(35px, 5vw, 50px);
  width: auto;
  max-width: clamp(120px, 20vw, 180px);
  min-width: 80px;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1.2) contrast(1.1);
  will-change: transform;
  flex-shrink: 1;
}

.media-logos img:hover {
  opacity: 1;
  transform: scale(1.1) translateY(-2px);
  filter: brightness(1.3) contrast(1.2);
}

/* SCROLL DOWN INDICATOR */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounceDown 2s infinite;
  z-index: 2;
  cursor: pointer;
}

.scroll-down i {
  font-size: 2.5rem;
  color: var(--blanco);
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.scroll-down:hover i {
  opacity: 1;
  transform: translateY(5px);
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, 10px); }
  60% { transform: translate(-50%, 5px); }
}

/* BENEFICIOS SECTION - Mejorado para conversión */
.benefits-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2rem);
  background: var(--blanco);
  max-width: 1400px;
  margin: 0 auto;
}

.benefits-section h2 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--azul-oscuro);
  line-height: 1.2;
  font-weight: 700;
}

.benefits-intro {
  text-align: center;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  margin-bottom: 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: var(--gris-texto);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--gris-claro);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul-acento), var(--celeste));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 42, 209, 0.2);
}

.benefit-card.featured {
  background: linear-gradient(135deg, var(--azul-acento), var(--celeste));
  color: var(--blanco);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
}

.benefit-card.featured::before {
  background: rgba(255, 255, 255, 0.3);
}

.benefit-card i {
  font-size: clamp(3rem, 6vw, 4rem);
  color: var(--azul-acento);
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.benefit-card:hover i {
  transform: scale(1.1) rotate(5deg);
}

.benefit-card.featured i {
  color: var(--blanco);
}

.benefit-card h3 {
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  margin-bottom: 1.25rem;
  color: var(--azul-oscuro);
  line-height: 1.3;
  font-weight: 700;
}

.benefit-card.featured h3 {
  color: var(--blanco);
}

.benefit-card p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--gris-texto);
}

.benefit-card.featured p {
  color: rgba(255, 255, 255, 0.95);
}

/* CTA SECTION - Optimizado para conversión */
.cta-section {
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-section h3 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 1.25rem 3rem;
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(13, 42, 209, 0.3);
  position: relative;
  z-index: 1;
  min-height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.cta-btn:hover {
  background: var(--azul-profesional);
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(13, 42, 209, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-btn:active {
  transform: translateY(-1px);
}

/* SOBRE INBA SECTION */
.sobre-inba-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(to bottom, var(--gris-claro), var(--blanco));
}

.sobre-inba-container {
  max-width: 1400px;
  margin: 0 auto;
}

.sobre-inba-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.sobre-inba-text h2 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  color: var(--azul-oscuro);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
  font-weight: 700;
}

.sobre-inba-intro {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  text-align: center;
  margin-bottom: 4rem;
  line-height: 1.7;
  color: var(--gris-texto);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.inba-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.inba-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.inba-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--azul-acento);
}

.feature-icon {
  background: linear-gradient(135deg, var(--azul-acento), var(--celeste));
  color: var(--blanco);
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  min-height: 4rem;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.inba-feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

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

.feature-content h4 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--azul-oscuro);
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.feature-content p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--gris-texto);
  line-height: 1.7;
}

/* TESTIMONIOS SECTION */
.testimonios-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--blanco);
}

.testimonios-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2rem);
}

.testimonios-section h2 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--azul-oscuro);
  line-height: 1.2;
  font-weight: 700;
}

.testimonios-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  text-align: center;
  margin-bottom: 4rem;
  color: var(--gris-texto);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonios-carousel {
  position: relative;
  margin-top: 3rem;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 16px;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: stretch;
  gap: 1rem;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blanco);
  border: 3px solid var(--azul-acento);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.carousel-button:hover {
  background: var(--azul-acento);
  color: var(--blanco);
  transform: translateY(-50%) scale(1.15);
  box-shadow: var(--shadow-xl);
}

.carousel-button.prev {
  left: -25px;
}

.carousel-button.next {
  right: -25px;
}

.carousel-button i {
  font-size: 1.5rem;
  color: var(--azul-acento);
  transition: color 0.3s ease;
}

.carousel-button:hover i {
  color: var(--blanco);
}

.testimonio-card {
  flex: 0 0 calc(33.33% - 1rem);
  padding: 2.5rem;
  background: var(--blanco);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  margin: 0 0.5rem;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid rgba(13, 42, 209, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 42, 209, 0.25);
}

.stars {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stars-icons {
  font-size: 1.5rem;
  color: #FFB800;
  letter-spacing: 2px;
  filter: drop-shadow(0 2px 4px rgba(255, 184, 0, 0.3));
}

.stars-rating {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gris-texto);
  background: var(--gris-claro);
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  min-width: 32px;
  text-align: center;
}

.quote-icon {
  font-size: 2rem;
  color: var(--azul-acento);
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.7;
}

.testimonio-content {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.testimonio-content p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--gris-texto);
  margin: 0;
}

.testimonio-text {
  display: block;
}

.testimonio-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonio-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(13, 42, 209, 0.1);
}

.testimonio-author h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin: 0;
}

.google-badge {
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.google-badge:hover {
  opacity: 1;
  transform: scale(1.1);
}

.google-badge img {
  width: 32px;
  height: 32px;
}

.read-more {
  color: var(--azul-acento);
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--azul-acento-hover);
  text-decoration: underline;
}

/* INFORMACIÓN TRATAMIENTO TMS */
.info-tms-section {
  padding: 4rem 1.5rem;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.info-tms-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--azul-oscuro);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-tms-intro {
  text-align: center;
  color: var(--gris-texto);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.info-tms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-tms-card {
  background: var(--gris-claro);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(13, 42, 209, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-tms-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 42, 209, 0.1);
}

.info-tms-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 42, 209, 0.1);
  color: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-tms-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.info-tms-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
}

.info-tms-card p {
  font-size: 0.95rem;
  color: var(--gris-texto);
  line-height: 1.6;
  margin: 0;
}

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

.info-tms-cta .btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-tms-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 42, 209, 0.35);
}

@media (max-width: 768px) {
  .info-tms-section {
    padding: 3rem 1.25rem;
  }
  .info-tms-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .info-tms-intro {
    margin-bottom: 2rem;
  }
  .info-tms-cta {
    margin-top: 2rem;
  }
  .info-tms-cta .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
  }
}

/* Video Testimonios */
.video-testimonios {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(13, 42, 209, 0.1);
}

.video-testimonios-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--azul-oscuro);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.video-testimonios-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--gris-texto);
  text-align: center;
  margin-bottom: 2.5rem;
}

.video-testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-testimonio-card {
  background: var(--blanco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gris-claro);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-testimonio-caption {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--gris-texto);
  margin: 0;
  font-weight: 500;
}

.video-testimonio-card.video-medico .video-link-medico {
  display: inline-block;
  margin: 0 1.25rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul-oscuro);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.video-testimonio-card.video-medico .video-link-medico:hover {
  color: #0a1f9e;
  text-decoration: underline;
}

/* PREGUNTAS FRECUENTES (FAQ) */
.faq-tms.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background: #fff;
}

.faq-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--azul-oscuro);
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--azul-oscuro);
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.5;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--azul-acento);
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--azul-acento);
}

.faq-item p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gris-texto);
}

.faq-section details summary {
  user-select: none;
}

@media (max-width: 1024px) {
  .faq-section {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 1.25rem;
  }
  .faq-section h2 {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    margin-bottom: 1.5rem;
  }
  .faq-item {
    margin-bottom: 0.875rem;
  }
  .faq-item summary {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    padding-right: 2.5rem;
    line-height: 1.4;
  }
  .faq-item summary::after {
    right: 1.25rem;
    font-size: 1.4rem;
  }
  .faq-item p {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

@media (max-width: 600px) {
  .faq-section {
    padding: 2.5rem 1rem;
  }
  .faq-item summary {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    padding-right: 2.25rem;
  }
  .faq-item summary::after {
    right: 1rem;
    font-size: 1.3rem;
  }
  .faq-item p {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 2rem 0.875rem;
  }
  .faq-item summary {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
    padding-right: 2rem;
  }
  .faq-item p {
    padding: 0 0.875rem 0.875rem 0.875rem;
    font-size: 0.85rem;
  }
}

/* CONTACTO SECTION */
.contacto-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(to bottom, var(--blanco), var(--gris-claro));
  max-width: 1400px;
  margin: 0 auto;
}

.contacto-section h2 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--azul-oscuro);
  line-height: 1.2;
  font-weight: 700;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 3rem;
  align-items: start;
}

.contacto-info h3 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  margin-bottom: 2rem;
  color: var(--azul-oscuro);
  line-height: 1.3;
  font-weight: 700;
}

.contacto-info ul {
  list-style: none;
  padding: 0;
}

.contacto-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  gap: 1rem;
}

.contacto-info li span {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contacto-info a {
  color: var(--azul-acento);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contacto-info a:hover {
  color: var(--azul-acento-hover);
  text-decoration: underline;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 450px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* CTA dentro de contacto section */
.contacto-section > div:last-child {
  text-align: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(13, 42, 209, 0.1);
}

.contacto-section > div:last-child h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--azul-oscuro);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.contacto-section > div:last-child p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gris-texto);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(13, 42, 209, 0.85);
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  background: rgba(13, 42, 209, 0.95);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top i {
  font-size: 1.25rem;
}

/* WhatsApp Button - Estilo profesional */
.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--verde-whatsapp);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.3);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  max-width: 280px;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(18, 140, 126, 0.4);
  background: var(--verde-whatsapp-hover);
  color: white;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.whatsapp-button:active {
  transform: translateY(-1px);
}

.whatsapp-button img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* RESPONSIVE - Mobile First Approach */
/* Mobile Small */
@media (max-width: 480px) {
  .navbar-container {
    padding: 0 1rem;
    height: 65px;
  }
  
  .navbar-logo {
    height: 40px;
    max-height: 40px;
    max-width: 120px;
  }
  
  .navbar-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(13, 42, 209, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 1.5rem 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 1.25rem;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
  }
  
  .navbar-cta {
    width: 100%;
    text-align: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    margin-top: 0.5rem;
  }
  
  .navbar-toggle {
    display: flex;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 75px;
    padding-bottom: 2.5rem;
  }

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

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }

  .hero-features {
    gap: 0.875rem;
    margin-bottom: 1.75rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .hero-features li {
    font-size: 0.9375rem;
    text-align: left;
    justify-content: flex-start;
    line-height: 1.5;
  }

  .hero-features i {
    font-size: 1.375rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }

  .hero-badge {
    font-size: 0.6875rem;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
    width: 100%;
    padding: 0 0.5rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    padding: 0.9375rem 1.75rem;
    font-size: 0.9375rem;
    min-height: 52px;
  }

  .media-logos {
    gap: 0.875rem;
    padding: 1rem 0.5rem;
    justify-content: center;
  }

  .media-logos img {
    height: 30px;
    max-width: 90px;
    min-width: 65px;
  }

  .reconocido-texto {
    font-size: 0.8125rem;
    margin-bottom: 0.875rem;
    padding: 0 0.5rem;
  }

  .scroll-down {
    bottom: 1.5rem;
  }

  .scroll-down i {
    font-size: 2rem;
  }

  .benefits-section {
    padding: 2.5rem 1rem;
  }

  .benefits-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .benefits-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .benefit-card {
    padding: 1.75rem 1.25rem;
  }

  .benefit-card i {
    font-size: 2.75rem;
    margin-bottom: 1rem;
  }

  .benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
  }

  .benefit-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .cta-section {
    padding: 2.5rem 1rem;
  }

  .cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
    padding: 0 0.5rem;
  }

  .cta-section p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
  }
  
  .cta-btn {
    padding: 0.9375rem 2rem;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
  }
  
  .sobre-inba-section {
    padding: 2.5rem 1rem;
  }

  .sobre-inba-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }

  .sobre-inba-intro {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .inba-features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
  
  .inba-feature {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .inba-feature:hover {
    transform: translateY(-3px);
  }
  
  .feature-icon {
    align-self: center;
    min-width: 3.5rem;
    min-height: 3.5rem;
    padding: 1rem;
  }

  .feature-icon i {
    font-size: 1.5rem;
  }

  .feature-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
  }

  .feature-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .testimonios-section {
    padding: 2.5rem 0;
  }

  .testimonios-container {
    padding: 0 1rem;
  }

  .testimonios-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.875rem;
    padding: 0 0.5rem;
  }

  .testimonios-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .testimonio-card {
    flex: 0 0 calc(100% - 0.5rem);
    padding: 1.75rem 1.25rem;
    min-height: auto;
    margin: 0 0.25rem;
  }

  .testimonio-card:hover {
    transform: translateY(-4px);
  }

  .testimonio-content p {
    font-size: 0.9375rem;
  }

  .testimonio-author {
    padding-top: 1.25rem;
    margin-top: 1rem;
  }

  .testimonio-author h4 {
    font-size: 0.875rem;
  }

  .video-testimonios {
    margin-top: 3rem;
    padding-top: 2.5rem;
  }

  .video-testimonios-grid {
    gap: 1.5rem;
  }
  
  .carousel-button {
    width: 40px;
    height: 40px;
  }

  .carousel-button i {
    font-size: 1.125rem;
  }
  
  .carousel-button.prev {
    left: 5px;
  }
  
  .carousel-button.next {
    right: 5px;
  }

  .contacto-section {
    padding: 2.5rem 1rem;
  }

  .contacto-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacto-info h3 {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
  }

  .contacto-info li {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    gap: 0.875rem;
  }

  .contacto-info li span {
    font-size: 1.75rem;
  }

  .map-container {
    min-height: 300px;
    border-radius: 12px;
  }

  .map-container iframe {
    height: 300px;
  }

  .contacto-section > div:last-child {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }

  .contacto-section > div:last-child h3 {
    font-size: 1.375rem;
    margin-bottom: 0.875rem;
  }

  .contacto-section > div:last-child p {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .whatsapp-button span {
    display: none;
  }

  .whatsapp-button {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.875rem;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    max-width: 56px;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .whatsapp-button img {
    width: 28px;
    height: 28px;
  }

  .scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: 1.25rem;
    left: 1.25rem;
  }

  .scroll-to-top i {
    font-size: 1.125rem;
  }

  footer {
    padding: 2rem 1rem !important;
  }

  footer p {
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
  }

  footer a {
    font-size: 0.875rem !important;
    margin-right: 1rem !important;
    display: inline-block;
    margin-bottom: 0.25rem;
  }
}

/* Mobile Medium */
@media (min-width: 481px) and (max-width: 640px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-features li {
    font-size: 1rem;
  }

  .benefits-section {
    padding: 3rem 1.5rem;
  }

  .contacto-section {
    padding: 3rem 1.5rem;
  }

  .whatsapp-button {
    width: 60px;
    height: 60px;
    max-width: 60px;
  }

  .whatsapp-button img {
    width: 30px;
    height: 30px;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 768px) {
  .navbar-container {
    padding: 0 1.5rem;
    height: 70px;
  }
  
  .navbar-logo {
    height: 44px;
    max-height: 44px;
  }
  
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13, 42, 209, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 1.125rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .navbar-cta {
    width: 100%;
    text-align: center !important;
    padding: 1.125rem 2rem !important;
    font-size: 1.0625rem !important;
    margin-top: 0.5rem;
  }
  
  .navbar-toggle {
    display: flex;
  }

  .hero {
    padding-top: 85px;
    padding-bottom: 3rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    max-width: 700px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1.75rem;
  }

  .hero-features {
    gap: 1.125rem;
    margin-bottom: 2.25rem;
  }

  .hero-features li {
    font-size: 1.0625rem;
  }

  .hero-buttons {
    gap: 1.125rem;
    margin-bottom: 2.25rem;
  }

  .hero-buttons .btn {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
  }

  .benefits-section {
    padding: 4rem 2rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.75rem;
  }

  .benefit-card {
    padding: 2.25rem 1.75rem;
  }

  .cta-section {
    padding: 4rem 2rem;
  }

  .sobre-inba-section {
    padding: 4rem 2rem;
  }

  .inba-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .testimonios-section {
    padding: 4rem 0;
  }

  .testimonio-card {
    flex: 0 0 calc(50% - 1rem);
    padding: 2rem 1.75rem;
  }

  .contacto-section {
    padding: 4rem 2rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .map-container {
    min-height: 400px;
  }

  .map-container iframe {
    height: 400px;
  }

  .whatsapp-button {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
  }

  .whatsapp-button span {
    display: inline;
  }
}

/* Desktop Small */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar-container {
    padding: 0 2rem;
  }
  
  .navbar-logo {
    height: 44px;
    max-height: 44px;
  }
  
  .nav-link {
    font-size: 1rem;
  }

  .hero-content {
    max-width: 700px;
  }

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

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

  .testimonio-card {
    flex: 0 0 calc(50% - 1rem);
  }

  .carousel-button.prev {
    left: -20px;
  }
  
  .carousel-button.next {
    right: -20px;
  }
}

/* Desktop Medium */
@media (min-width: 1025px) {
  .navbar-container {
    padding: 0 3rem;
  }
  
  .navbar-logo {
    height: 44px;
    max-height: 44px;
  }
  
  .nav-link {
    font-size: 1.0625rem;
  }

  .hero-content {
    max-width: 850px;
    padding: 3rem 2rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .testimonio-card {
    flex: 0 0 calc(33.33% - 1rem);
  }

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

/* Desktop Large */
@media (min-width: 1440px) {
  .hero-content {
    max-width: 950px;
  }

  .benefits-grid {
    gap: 2.5rem;
  }

  .inba-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* AOS Animation Overrides */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition-property: opacity, transform;
  will-change: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Performance: Optimize animations */
@media (prefers-reduced-motion: no-preference) {
  [data-aos] {
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

/* Improve image loading performance */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  height: auto;
  max-width: 100%;
}

/* Footer styles */
footer {
  background-color: var(--azul-oscuro) !important;
  color: var(--blanco) !important;
  padding: 3rem 2rem !important;
  text-align: center !important;
  margin-top: 0 !important;
}

footer p {
  margin-bottom: 0.75rem !important;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  margin-right: 1.5rem !important;
  transition: color 0.3s ease !important;
}

footer a:hover {
  color: var(--blanco) !important;
  text-decoration: underline !important;
}

/* Utility classes for better spacing */
.section-spacing {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 2rem);
}

/* Print styles */
@media print {
  .navbar,
  .whatsapp-button,
  .scroll-to-top,
  .chat-box {
    display: none !important;
  }
}
