/* ===========================
   VARIABLES Y RESET
   =========================== */
:root {
  /* Colores principales */
  --primary: #021a51;
  --primary-dark: #01579b;
  --primary-light: #1976d2;
  --secondary: #00bcd4;
  --accent: #ffa726;

  /* Escala de grises */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;

  /* Colores de estado */
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --info: #2196f3;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Bordes */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Sombras */
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transiciones */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: #ffffff;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===========================
   UTILIDADES
   =========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: inline-block;
  }
}

/* ===========================
   BARRA SUPERIOR
   =========================== */
.top-bar {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 100%
  );
  color: white;
  font-size: 0.813rem;
  padding: 0.625rem 0;
}

.top-bar svg {
  display: block; /* Quita el comportamiento de 'letra' */
  flex-shrink: 0; /* Evita que el icono se aplaste si el texto es largo */
}

.top-bar-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.top-bar-item .icon {
  font-size: 1rem;
  line-height: 0;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar-item,
.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  line-height: 1;
}

.top-bar-phone:hover {
  opacity: 0.85;
}

.top-bar-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.688rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
  .top-bar {
    padding: 0.75rem 0;
  }

  .top-bar-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
  }

  .top-bar-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
  }

  .top-bar-info {
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  .top-bar-actions {
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }
  .top-bar-item,
  .top-bar-phone {
    justify-content: center;
    font-size: 0.75rem;
  }

  .top-bar-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
  }
}

/* ===========================
   NAVEGACIÓN
   =========================== */
.navbar {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.logo-image {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-light);
  font-weight: 500;
  margin-top: 0.2rem;
  opacity: 1;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 0.313rem;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 1.5rem;
  height: 0.125rem;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

.navbar-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: white;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  gap: 0.5rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}

.navbar-menu.active {
  display: flex;
}

.nav-link {
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.938rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.btn-whatsapp-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.938rem;
  transition: all var(--transition-base);
  justify-content: center;
}

.btn-whatsapp-nav:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }

  .navbar-menu {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    max-height: none;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 50%,
    var(--primary-light) 100%
  );
  color: white;
  padding: 3rem 0 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 767px) {
  .hero-left {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .feature-item {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-cta {
    justify-content: center;
    gap: 1rem;
  }
  .feature-item span:last-child {
    flex: 1;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  display: flex;
  flex-direction: column;
  text-align: left; /* ← antes era center */
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.813rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-features {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.938rem;
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
}

.btn-primary .icon svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
  transition: transform var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
}

.arrow {
  font-size: 1.25rem;
  transition: transform var(--transition-base);
}

.btn-secondary:hover .arrow {
  transform: translateX(5px);
}

.hero-info-card {
  min-height: 100px; /* Evita que colapse mientras carga */
  display: block !important;
}

.info-card-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.info-icon {
  font-size: 1.5rem;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 2px;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: white;
}

.info-card-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(400px, 50vw, 700px);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  animation: none;
}

.floating-card {
  position: absolute;
  background: white;
  color: var(--gray-900);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-card-1 {
  top: -1rem;
  left: -1rem;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 40%;
  right: -1.5rem;
  animation-delay: 1s;
}

.floating-card-3 {
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
}

.floating-icon {
  font-size: 1.5rem;
}

.floating-text {
  display: flex;
  flex-direction: column;
}

.floating-title {
  font-size: 0.688rem;
  color: var(--gray-600);
  font-weight: 500;
}

.floating-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

@media (min-width: 1024px) {
  .hero {
    padding: 4rem 0 0;
  }

  .hero-content {
    display: grid !important;
    grid-template-columns: 1.1fr 1.1fr;
    gap: 4rem;
    align-items: stretch;
    text-align: left;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-left {
    padding-top: 0;
  }

  .hero-right {
    height: 100%;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-left {
    order: 2; /* El texto y reviews bajan al segundo lugar */
  }

  .hero-right {
    order: 1;
    margin-bottom: 2rem; /* Espacio para que no pegue con el título */
    width: 100%;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    display: inline-flex; /* Para que el ancho se ajuste al contenido y no al 100% */
    justify-content: center;
    align-items: center;
    width: fit-content;
  }

  .hero-image-wrapper {
    min-height: clamp(280px, 78vw, 500px);
  }

  .hero-image {
    width: 100%;
    height: 100%;
  }

  .hero-info-card {
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .info-card-divider {
    display: none;
  }

  .floating-card {
    padding: 0.75rem;
    font-size: 0.813rem;
  }

  .floating-card-2 {
    right: -0.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-right {
    display: none;
  }

  .hero-left {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-info-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .info-card-divider {
    width: 100%;
    height: 1px;
  }
}

/* ===========================
   FOCUS SECTION
   =========================== */
.focus-section {
  background: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    var(--secondary) 5%,
    var(--gray-50) 95%
  );
  padding: 3rem 0;
  overflow: hidden;
}

.focus-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.focus-text {
  /* Le damos un poco más de peso visual al texto */
  max-width: 600px;
  margin: 0 auto;
}

.focus-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.focus-subtitle {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.focus-icon {
  display: inline-block;
  z-index: 2;
  transition: transform 0.6s ease-out;
}

.focus-icon img {
  /* Controlamos el tamaño de la imagen en móvil */
  width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@media (min-width: 768px) {
  .focus-content {
    grid-template-columns: 2.5fr 1fr;
    text-align: left;
    gap: 4rem;
  }

  .focus-title {
    font-size: 2.5rem;
  }

  .focus-icon img {
    width: 200px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  }
}

.focus-section:hover .focus-icon {
  transform: scale(1.05) rotate(2deg);
}

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-top: 1.5rem;
}

/* ===========================
   SERVICIOS
   =========================== */
.services-section {
  padding: 4rem 0;
  background: white;
}

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

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;

  border: 1px solid var(--gray-100);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0; /* Elimina espacios de tipografía */
}

.service-overlay svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  display: block;
}

.service-content {
  padding: 2rem;
}

.service-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.service-list {
  margin-bottom: 1.5rem;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.938rem;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.25rem;
}

.service-benefit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gray-100);
  color: var(--primary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
}

.benefit-icon {
  color: var(--secondary);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ===========================
   BENEFICIOS
   =========================== */
.benefits-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

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

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.benefit-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--secondary) 100%
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.benefit-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.benefit-icon-wrapper svg {
  width: 2.2rem;
  height: 2.2rem;
  color: white;
  fill: currentColor;
  filter: none;
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.benefit-text {
  font-size: 0.938rem;
  color: var(--gray-600);
  line-height: 1.6;
}

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

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ===========================
   DOCTOR SECTION
   =========================== */
.doctor-section {
  padding: 4rem 0;
  background: white;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.doctor-image-wrapper {
  position: relative;
}

.doctor-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.doctor-badge {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-dot-active {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.doctor-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.doctor-specialty {
  font-size: 1.125rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.doctor-description {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.expertise-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.expertise-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.expertise-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.938rem;
  color: var(--gray-700);
}

.expertise-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.doctor-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.813rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--gray-300);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .doctor-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }

  .doctor-name {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .doctor-grid {
    gap: 2.25rem;
  }

  .doctor-image-wrapper {
    max-width: 460px;
    margin: 0 auto;
  }

  .doctor-image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
  }

  .doctor-content {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .doctor-stats {
    flex-direction: column;
  }

  .stat-divider {
    width: 60%;
    height: 1px;
    margin: 0 auto;
    opacity: 0.5;
  }
}

/* ===========================
   PARTNERS
   =========================== */
.partners-section {
  padding: 5rem 0;
  background: var(--bg-light,);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.partner-card {
  background: #fdfdfd;
  border-radius: 28px;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.02),
    0 0 0 0.5px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(0);
  min-height: 130px;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 30px -12px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(0, 0, 0, 0.04);
  background: #fdfdfd;
}

.partner-logo {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.2s ease;
}

/* Efecto sutil al hover (opcional, puedes quitarlo) */
.partner-card:hover .partner-logo {
  filter: none;
}

/* Responsive: en móviles más compacto */
@media (max-width: 768px) {
  .partners-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .partner-card {
    padding: 1.25rem;
    min-height: 110px;
  }
  .partner-logo {
    max-height: 65px;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .partner-card {
    padding: 1rem;
    min-height: 100px;
  }
  .partner-logo {
    max-height: 55px;
  }
}

/* ===========================
   FAQ
   =========================== */

.faq-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  transition: all var(--transition-base);
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===========================
   TESTIMONIOS
   =========================== */
.testimonials-section {
  padding: 4rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 100%
  );
  color: white;
}

.testimonials-section .section-title {
  color: white;
}

.testimonials-section .section-title::after {
  background: linear-gradient(90deg, white 0%, var(--secondary) 100%);
}

.testimonials-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.testimonial-text {
  font-size: 0.938rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 1rem;
}

.testimonial-date {
  font-size: 0.813rem;
  opacity: 0.7;
}

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

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.cta-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.cta-check {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

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

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25d366;
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
}

.btn-cta-primary:hover {
  background: #128c7e;
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--primary);
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid var(--primary);
  transition: all var(--transition-base);
}

.btn-cta-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 767px) {
  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1.125rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   CONTACTO
   =========================== */
.contact-section {
  padding: 4rem 0;
  background: white;
}

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

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba((2), 26, 81, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
}

.contact-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.contact-text {
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.6;
}

.contact-text.highlight {
  color: var(--success);
  font-weight: 600;
}

.contact-text.price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--primary-light);
}

.contact-map {
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.map-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.map-placeholder p {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.map-note {
  font-size: 0.938rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #161616;
  color: white;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo-icon img {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1; /* Pegamos el texto para que se lea como un bloque */
  margin: 0;
  color: #ffffff;
}

.footer-logo h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.footer-description {
  font-size: 0.938rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  opacity: 0.7;
}

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

.footer-menu a {
  font-size: 0.938rem;
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.footer-menu a:hover {
  opacity: 1;
  padding-left: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.938rem;
  opacity: 0.8;
}

.footer-contact-item a {
  transition: opacity var(--transition-fast);
}

.footer-contact-item a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-copyright {
  font-size: 0.813rem;
  opacity: 0.7;
}

.footer-credits {
  font-size: 0.813rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credits-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===========================
   WHATSAPP FLOTANTE - form
   =========================== */

.wa-form-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  pointer-events: all;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wa-card {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-header {
  background: #075e54;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  object-fit: cover;
}

.wa-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}
.wa-status {
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0;
}
.wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.wa-body {
  padding: 1.25rem;
  background: #e5ddd5;
}
.wa-welcome {
  background: white;
  padding: 0.75rem;
  border-radius: 0 10px 10px 10px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  position: relative;
}

.wa-input {
  width: 100%;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  outline: none;
}

.wa-textarea {
  height: 80px;
  resize: none;
}

.wa-btn-send {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.wa-btn-send:hover {
  background: #128c7e;
}

/* ===========================
   WHATSAPP FLOTANTE
   =========================== */

.whatsapp-float {
  width: 3.75rem;
  height: 3.75rem;
  background: #25d366;
  border-radius: 50%;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  position: relative;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128c7e;
}

/* TOOLTIP: Oculto por defecto */
.wa-tooltip {
  position: absolute;
  right: 120%;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: white;
  color: #333;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Cuando hacemos scroll, el JS añade esta clase al botón */
.whatsapp-float.scrolled .wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Triangulito del tooltip */
.wa-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.whatsapp-float svg {
  width: 2.2rem;
  height: 2.2rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128c7e;
  box-shadow: 0 15px 30px rgba(18, 140, 126, 0.4);
}

.wa-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff3b30;
  color: white;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.whatsapp-icon {
  font-size: 2rem;
}

@keyframes float-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 0.5rem;
  }

  .wa-form-container {
    bottom: 1rem;
    right: 0.8rem;
    width: auto;
    height: auto;
  }

  .whatsapp-float svg {
    width: 1.8rem;
    height: 1.8rem;
  }

  .wa-tooltip {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    right: 110%;
  }

  .wa-card {
    width: 280px;
    right: 0;
    bottom: 4.5rem;
    border-radius: 1.25rem;
  }
}

/* ========== CARRUSEL PREMIUM TIPO APPLE ========== */
/* ========== CARRUSEL PREMIUM TIPO APPLE ========== */
.premium-reviews-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 1.5rem 0 0 0;
  background: transparent;
  border-radius: 32px;
}

/* Track del carrusel */
.reviews-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.review-slide {
  flex: 0 0 100%;
  padding: 0.5rem 0.5rem 0.5rem 0;
  box-sizing: border-box;
  display: flex;
}

/* Tarjeta individual */
.rp-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow:
    0 12px 28px -8px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.rp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.12);
}

/* Header de la reseña */
.rp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.rp-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rp-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.rp-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1d1d1f;
  letter-spacing: -0.2px;
}

.rp-date {
  font-size: 0.7rem;
  color: #8e8e93;
}

.rp-google {
  height: 18px;
  width: auto;
  opacity: 0.8;
}

/* Estrellas */
.rp-stars {
  color: #f5a623;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
}

/* Texto de reseña */
.rp-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #3a3a3c;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Dots (puntos) */
.rp-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0 1.2rem 0;
  margin: 0;
}

.rp-dot {
  width: 6px;
  height: 6px;
  background: #c6c6c8;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-dot.active {
  width: 20px;
  background: #007aff;
  border-radius: 3px;
}

/* Flechas de navegación */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 2;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  opacity: 0;
  pointer-events: none;
}

.premium-reviews-wrapper:hover .carousel-prev,
.premium-reviews-wrapper:hover .carousel-next {
  opacity: 1;
  pointer-events: auto;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: white;
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

/* Iconos de flecha (SVG inline) */
.carousel-prev svg,
.carousel-next svg {
  width: 18px;
  height: 18px;
  stroke: #1d1d1f;
  stroke-width: 2;
  fill: none;
}

/* Responsive: en móvil las flechas más pequeñas y siempre visibles? */
@media (max-width: 640px) {
  .carousel-prev,
  .carousel-next {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    pointer-events: auto;
  }
  .carousel-prev {
    left: 6px;
  }
  .carousel-next {
    right: 6px;
  }

  .rp-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .rp-name {
    display: block;
    margin-bottom: 2px;
  }

  .rp-date {
    display: block;
    font-size: 0.7rem;
    margin: 0;
  }

  .rp-card {
    padding: 1rem;
  }
  .rp-avatar {
    width: 38px;
    height: 38px;
  }
  .rp-text {
    font-size: 0.8rem;
  }
}

/* ========== TARJETA GOOGLE PEQUEÑA (ARRIBA) ========== */
.google-rating-card {
  background: white;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.google-rating-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.google-logo-small {
  height: 18px;
  width: auto;
}

.google-rating-stars {
  color: #f5a623;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.google-rating-value {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1d1d1f;
  background: #f5f5f7;
  padding: 0.2rem 0.5rem;
  border-radius: 30px;
  line-height: 1;
}

.google-rating-right {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.google-excellent {
  font-weight: 500;
  color: #1d1d1f;
}

.google-reviews {
  color: #8e8e93;
  font-weight: 400;
}

/* Ajuste responsive */
@media (max-width: 640px) {
  .google-rating-card {
    display: flex; /* Cambiamos de inline-flex a flex para controlar el ancho */
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 0.8rem;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .google-rating-left {
    gap: 0.4rem;
  }
  .google-rating-stars {
    font-size: 0.75rem;
  }
  .google-rating-value {
    font-size: 0.75rem;
  }
  .google-excellent,
  .google-reviews {
    font-size: 0.7rem;
  }
}

.reviews-track-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  margin-top: -10px;
}

/*  GOOGLE MAPS, REVIEWS */
.google-widget-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 5px;
  /* margin: 20px 0 0 0; */
  padding: 0 15px;
}

.google-widget-card {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 14px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  font-family: "DM Sans", sans-serif;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.gw-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #4285f4 0%,
    #ea4335 33%,
    #fbbc04 66%,
    #34a853 100%
  );
  opacity: 0.9;
}

.gw-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gw-brand {
  font-size: 10px;
  color: #9aa0a6;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 5px;
  text-transform: uppercase;
}

.gw-divider {
  width: 1px;
  height: 36px;
  background: #e8eaed;
  flex-shrink: 0;
}

.gw-stats-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gw-score {
  font-size: 32px;
  font-weight: 800;
  color: #1f4e79;
  letter-spacing: -2px;
  line-height: 1;
}

.gw-stars-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-left: 1px solid #e8eaed;
  padding-left: 14px;
}

.gw-stars {
  display: flex;
  gap: 2px;
}

.gw-text {
  font-size: 13px;
  color: #4a5568;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.gw-text span {
  font-weight: 500;
  color: #718096;
  font-size: 13px;
}

@media (max-width: 480px) {
  .google-widget-card {
    padding: 12px 16px;
    gap: 12px;
    border-radius: 16px;
  }

  .gw-logo-col svg {
    width: 60px;
    height: auto;
  }

  .gw-brand {
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  .gw-divider {
    height: 38px;
  }

  .gw-stats-row {
    gap: 10px;
  }

  .gw-score {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .gw-stars-col {
    padding-left: 10px;
  }

  .gw-stars svg {
    width: 12px;
    height: 12px;
  }

  .gw-text {
    font-size: 10px;
  }

  .gw-text span {
    font-size: 10px;
  }
}

/* barra divisora hero */

.rating-divider {
  width: 1px;
  height: 12px;
  background-color: #d1d1d6;
  display: inline-block;
  margin: 0 4px;
  align-self: center;
}

.google-rating-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
