* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: auto;
}
html {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  height: 100%;
  background-color: #edf5fc;
  overflow-x: hidden;
}
body {
  width: 100%;
  margin: auto;
  max-width: 100%;
  background-color: #edf5fc;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
} 

/* Organización de la información de contacto superior */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 5%;
  text-decoration: none;
}

.info-contacto{
  display: flex;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.info-contacto a {
  text-decoration: none;
  color: inherit;
}

.info-contacto .ubicacion-item {
  margin-left: auto;
  align-self: flex-end;
}

.info-icon-map {
  width: auto;
  height: auto;
  font-size: 18px;
  color: #05518c;
  margin-right: 6px;
}

.modos {
  margin-left: auto;
}

.icon-btn {
  border: 1px solid #7db1d8;
  background: #ffffff;
  color: #05518c;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
}

.info-icon{
  width: 20px;
  height: 20px;
}

:root {
  --bg-color: #edf5fc;
  --text-color: #222222;
  --primary-color: #1e88e5;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: 0.3s ease;
}

.dark-mode {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --primary-color: #4dabf7;
}

.main-header {
  background: var(--bg-color);
}

.logo-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 8%;
}

/* Logo */

.logo{
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.logo img {
  width: 400px;
  height: auto;
}

/* Organización de los botones de navegación */

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

.nav-links {
  display: flex;
  gap: 15px;
  list-style: none;
  border-radius: 20%;
  border-color: #1e88e5;
}

.nav-links a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid #70a7cf;
  border-radius: 10px;
  background: #ffffff;
  text-decoration: none;
  color: #05518c;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
  transform: translateY(-1px);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #1e88e5;
  font-size: 30px;
  transition: 0.3s;
}

.social-icons a[aria-label="WhatsApp"] {
  color: #25d366;
}

.social-icons a[aria-label="Instagram"] {
  color: #e1306c;
}

.social-icons a[aria-label="Facebook"] {
  color: #1877f2;
}

.social-icons a:hover {
  transform: scale(1.2);
}


/* Sección del Hero */

.hero {
  position: relative;
  height: 80vh;
  background-image: url("Imagenes/imagen banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.65),
    rgba(255,255,255,0.2)
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-content h1 {
  position: absolute;
  top: 48px;
  left: 48px;
  max-width: 560px;
  padding: 0;
  border-radius: 0;
  color: #05518c;
  background: transparent;
  font-size: 3rem;
}

.hero-content p {
  position: absolute;
  left: 48px;
  bottom: 48px;
  max-width: 410px;
  padding: 0;
  border-radius: 0;
  color: #333333;
  background: transparent;
  line-height: 1.35;
  font-size: 1.5rem;
}

.btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-block;
  padding: 12px 25px;
  background: #05518c;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn:hover {
  background: #0a66aa;
}

/* Sección para llamar la atención del cliente */

.familia {
  padding: 50px 8%;
}

.familia-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.familia-texto {
  flex: 1;
  max-width: 620px;
}

.familia-texto h1 {
  color: #05518c;
  font-size: 3.3rem;
  margin-bottom: 14px;
}

.familia-descripcion {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #2f3a45;
}

.familia-frase {
  margin-top: 24px;
  font-size: 1rem;
  color: #4b5f72;
}

.familia-content img {
  width: min(42vw, 520px);
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

/* Sección para servicios */


.servicios-destacados {
  padding: 20px 8% 60px;
  margin-top: 25px;
}

.servicios {
  color: #05518c;
  font-size: 3.3rem;
  margin-bottom: 14px;
  text-align: center;
}
.servi{
  font-size: 1.6rem;
  line-height: 1.6;
  color: #2f3a45;
  text-align: center;
  margin-bottom: 40px;
}

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

.servicio-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #d6e7f5;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 8px 18px rgba(5, 81, 140, 0.07);
  overflow: hidden;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.servicio-card::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 0;
  height: 3px;
  background: #05518c;
  transition: width 0.28s ease;
}


.servicio-icon {
  font-size: 1.6rem;
  color: #6fa6ce;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.servicio-card h3 {
  color: #05518c; 
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.servicio-card p {
  color: #32485b;
  line-height: 1.55;
  font-size: 0.96rem;
}

.servicio-card:hover {
  background: #f6fbff;
  border-color: #b6d5ec;
  transform: translateY(-3px);
}

.servicio-card:hover::after {
  width: calc(100% - 40px);
}

.servicio-card:hover .servicio-icon {
  color: #05518c;
}

.contenedor-boton{
  display: flex;
  justify-content: center;
}

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
  padding: 12px 26px;
  background: #05518c;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #05518c;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(5, 81, 140, 0.18);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  background: #0a66aa;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(5, 81, 140, 0.22);
}

.planes-page {
  padding: 24px 8% 60px;
}

.planes-hero-v2 {
  max-width: 1050px;
  margin: 0 auto 24px;
  text-align: center;
}

.planes-kicker {
  color: #4f7a98;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.planes-hero-v2 h1 {
  color: #05518c;
  font-size: 3rem;
  margin-bottom: 10px;
}

.planes-hero-v2 > p {
  color: #2f3a45;
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

.planes-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.planes-tags span {
  border: 1px solid #b8d5ea;
  background: #ffffff;
  color: #05518c;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.planes-layout-v2 {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.planes-nav-v2 {
  background: #ffffff;
  border: 1px solid #cfe3f2;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  position: sticky;
  top: 16px;
  height: fit-content;
}

.planes-nav-v2 h2 {
  color: #05518c;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.planes-menu-item {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: none;
  color: #2f4a60;
  font-size: 1.05rem;
  font-weight: 600;
  border-left: 3px solid #d4e6f5;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.planes-menu-item:hover,
.planes-menu-item.active {
  color: #05518c;
  border-left-color: #05518c;
  background: #f4faff;
}

.planes-detail-v2 {
  position: relative;
  background: #ffffff;
  border: 1px solid #cfe3f2;
  border-radius: 14px;
  padding: 20px;
  min-height: 420px;
  overflow: hidden;
}

.planes-detail-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.planes-detail-logo {
  width: min(520px, 70%);
  height: auto;
  opacity: 0.46;
  transition: opacity 0.25s ease;
}

.planes-detail-v2.has-selection .planes-detail-logo {
  opacity: 0;
}

.plan-group {
  position: relative;
  z-index: 2;
  display: none;
  scroll-margin-top: 16px;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3eff8;
}

.plan-group.active {
  display: block;
}

.planes-cta-global {
  max-width: 1250px;
  margin: 0 auto 34px;
  padding: 24px;
  border: 1px solid #cfe3f2;
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.planes-cta-global h2 {
  color: #05518c;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.planes-cta-global p {
  color: #2f3a45;
  margin-bottom: 14px;
}

.planes-cta-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #05518c;
  background: #05518c;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.planes-cta-btn:hover {
  background: #0a66aa;
  border-color: #0a66aa;
}

.plan-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.plan-group h2 {
  color: #05518c;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.plan-item {
  border: 1px solid #d7e8f5;
  border-left: 4px solid #90b9d8;
  border-radius: 10px;
  background: #f8fbff;
  margin: 10px 0;
}

.plan-item.plan-item-highlight {
  animation: planHighlightPulse 2s ease;
}

.plan-item[open] {
  border-left-color: #05518c;
  background: #f2f9ff;
}

.plan-item summary {
  color: #05518c;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding: 13px 14px;
}

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

.plan-item summary::after {
  content: '+';
  float: right;
  color: #4f7a98;
  font-size: 1.2rem;
  line-height: 1;
}

.plan-item[open] summary::after {
  content: '−';
}

.plan-item p {
  color: #2f4a60;
  line-height: 1.62;
  margin: 0 14px 10px;
}

.plan-item p:last-child {
  margin-bottom: 14px;
}

.oncology-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 32, 48, 0.45);
  z-index: 1300;
}

.oncology-modal-overlay.is-open {
  display: flex;
}

.oncology-modal {
  position: relative;
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid #cfe3f2;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(8, 44, 77, 0.22);
  padding: 22px 20px 16px;
}

.oncology-modal h3 {
  margin: 0 28px 10px 0;
  color: #05518c;
  font-size: 1.3rem;
}

.oncology-modal p {
  margin: 0 0 8px;
  color: #2f4a60;
  line-height: 1.55;
}

.oncology-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #4f7a98;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.oncology-modal-close:hover {
  background: #eff6fc;
  color: #05518c;
}

@keyframes planHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 81, 140, 0);
    background: #f2f9ff;
  }
  20% {
    box-shadow: 0 0 0 4px rgba(5, 81, 140, 0.28);
    background: #e8f4ff;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 81, 140, 0);
    background: #f2f9ff;
  }
}

.planes {
  padding: 24px 8% 60px;
  text-align: center;
}

.planes h1 {
  color: #05518c;
  font-size: 3rem;
  margin-bottom: 12px;
}

.planes > p {
  color: #2f3a45;
  font-size: 1.2rem;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.planes-carousel {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.planes-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #8fb8d8;
  background: #ffffff;
  color: #05518c;
  cursor: pointer;
  transition: all 0.25s ease;
}

.planes-arrow:hover {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
}

.planes-viewport {
  overflow: hidden;
}

.planes-track {
  display: flex;
  transition: transform 0.38s ease;
}

.plan-slide {
  min-width: 100%;
  border-radius: 16px;
  border: 1px solid #d5e6f4;
  border-left: 6px solid #9fc3dd;
  padding: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6fd 100%);
  box-shadow: 0 10px 20px rgba(5, 81, 140, 0.08);
  text-align: left;
}

.plan-recommended {
  box-shadow: 0 12px 24px rgba(5, 81, 140, 0.15);
}

.member.active .plan-slide {
  border-left-color: #05518c;
}

.member.left .plan-slide,
.member.right .plan-slide {
  border-left-color: #9fc3dd;
}

.plan-slide h3 {
  color: #05518c;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.plan-slide h3 i {
  color: #4c89b5;
}

.plan-label {
  color: #355874;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-slide ul {
  margin: 0 0 12px 18px;
  line-height: 1.6;
  color: #304b61;
}

.plan-note {
  color: #355874;
  font-weight: 600;
}

.plan-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #8fb8d8;
  background: #ffffff;
  color: #05518c;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.plan-more-btn:hover {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
}

/* Carrusel */

.team-carrusel{
  position: relative;
  width: min(100%, 980px);
  margin: 36px auto 0;
}

.carrusel-container{
  position: relative;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.member{
  position: absolute;
  width: min(72vw, 620px);
  height: auto;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  transition: all 0.5s ease-in-out;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}
.member img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.member.active{
  transform: translate(-50%, 0) scale(1);
  z-index: 3;
  opacity: 1;
  visibility: visible;
}
.member.left{
  transform: translate(-122%, 0) scale(0.82);
  opacity: 0.5;
  z-index: 2;
  visibility: visible;
  filter: grayscale(70%);
}
.member.right{
  transform: translate(22%, 0) scale(0.82);
  opacity: 0.5;
  z-index: 2;
  visibility: visible;
  filter: grayscale(50%);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #8fb8d8;
  background: #ffffff;
  color: #05518c;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(5, 81, 140, 0.12);
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

/* Sección porque elegirnos */

.eleccion {
  padding: 36px 8% 64px;
}

.eleccion .container {
  max-width: 1200px;
  margin: 0 auto;
}

.eleccion h1 {
  color: #05518c;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
}

.eleccion .intro {
  text-align: center;
  color: #2f3a45;
  font-size: 1.2rem;
  margin-bottom: 28px;
}

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

.bloque {
  background: #ffffff;
  border: 1px solid #d6e7f5;
  border-left: 5px solid #8fb8d8;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 8px 18px rgba(5, 81, 140, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bloque:hover {
  transform: translateY(-2px);
  border-left-color: #05518c;
  box-shadow: 0 12px 22px rgba(5, 81, 140, 0.15);
}

.bloque .icono {
  font-size: 2rem;
  margin-bottom: 10px;
}

.bloque h3 {
  color: #05518c;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.bloque p {
  color: #304b61;
  line-height: 1.55;
  font-size: 1.02rem;
}

.faq-home {
  padding: 18px 8% 56px;
}

.faq-home-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d6e7f5;
  border-left: 5px solid #8fb8d8;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 8px 18px rgba(5, 81, 140, 0.08);
}

.faq-home-content h1 {
  color: #05518c;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.faq-home-content p {
  color: #304b61;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Botón flotante de whatsapp */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  min-width: 50px;
  min-height: 50px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float i {
  font-size: 1.25rem;
}

.whatsapp-float:hover {
  background: #20be5c;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

/* Footer */

.site-footer {
  background: #123a5a;
  color: #eaf4fc;
  padding: 36px 8% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: #d0e4f3;
  text-decoration: none;
  line-height: 1.55;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-logo {
  width: 300px;
  height: auto;
  margin-bottom: 10px;
}

.footer-copy {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: #d7e9f7;
}

@media (max-width: 1366px) {
  .top-bar {
    padding: 10px 4%;
  }

  .info-contacto {
    gap: 24px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .info-contacto p {
    font-size: 0.95rem;
  }

  .logo img {
    width: 320px;
  }

  .logo-nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-logo {
    width: min(100%, 240px);
  }

  .footer-col p,
  .footer-col li,
  .footer-col a {
    overflow-wrap: anywhere;
  }
}



@media (max-width: 900px) {
  .logo img {
    width: 280px;
  }

  .logo-nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    height: 70vh;
  }

  .hero-content h1 {
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    font-size: 1.6rem;
  }

  .hero-content p {
    left: 16px;
    right: 16px;
    bottom: 74px;
    max-width: none;
  }

  .btn {
    right: 16px;
    bottom: 16px;
  }

  .familia {
    padding: 40px 6%;
  }

  .familia-content {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 22px;
  }

  .familia-content img {
    width: 100%;
    max-width: 100%;
  }

  .familia-texto h1 {
    font-size: 3rem;
    font-weight: bold;
  }

  .familia-descripcion {
    font-size: 1.5rem;
  }

  .familia-frase {
    font-size: 1rem;
  }

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

  .servicios {
    font-size: 3rem;
    font-weight: bold;
  }

  .planes {
    padding: 20px 6% 50px;
  }

  .planes h1 {
    font-size: 2.4rem;
  }

  .planes > p {
    font-size: 1.05rem;
  }

  .planes-page {
    padding: 20px 6% 50px;
  }

  .planes-hero-v2 h1 {
    font-size: 2.4rem;
  }

  .planes-layout-v2 {
    grid-template-columns: 1fr;
  }

  .planes-nav-v2 {
    position: static;
  }

  .planes-detail-v2 {
    min-height: 340px;
  }

  .planes-cta-global {
    margin: 0 6% 28px;
  }

  .plan-group h2 {
    font-size: 1.5rem;
  }

  .team-carrusel {
    width: 100%;
  }

  .carrusel-container {
    width: min(100%, 620px);
    height: auto;
  }

  .member {
    width: min(84vw, 540px);
    height: auto;
  }

  .member.left,
  .member.right {
    opacity: 0;
    visibility: hidden;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .carousel-btn.prev {
    left: 0;
  }

  .carousel-btn.next {
    right: 0;
  }

  .planes-carousel {
    grid-template-columns: 1fr;
  }

  .planes-arrow {
    display: none;
  }

  .plan-slide h3 {
    font-size: 1.5rem;
  }

  .eleccion {
    padding: 30px 6% 48px;
  }

  .eleccion h2 {
    font-size: 2rem;
  }

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

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

  .catalogo-page {
    padding: 20px 6% 50px;
  }

  .catalogo-container h1 {
    font-size: 2.2rem;
  }

  .exam-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-bar {
    padding: 10px 4%;
  }

  .info-contacto {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .planes-detail-v2 {
    min-height: 280px;
  }

  .planes-hero-v2 h1 {
    font-size: 2rem;
  }

  .planes-hero-v2 > p {
    font-size: 1rem;
  }

  .planes-cta-global h2 {
    font-size: 1.45rem;
  }

  .plan-item summary {
    font-size: 1rem;
  }

  .servicios-destacados {
    padding: 14px 6% 40px;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .whatsapp-float {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 10px 12px;
    min-width: 48px;
    min-height: 48px;
    gap: 8px;
    font-size: 0.9rem;
  }

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

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


