body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    color: #333;
    scroll-behavior: smooth;
}

.telefonos-navbar {
  font-size: 0.85rem;
  line-height: 1.2;
}

.telefonos-navbar a:hover {
  text-decoration: underline;
}

.especialidades-link {
  cursor: pointer;
  color: rgb(89, 238, 195);
  transition: color 0.3s ease;
}

.especialidades-link:hover {
  color: rgb(25, 182, 235);
}



h1, h2 {
    color: rgb(89, 238, 195);
    font-weight: 600;
}

#carouselInicio .carousel-item img {
  height: 300px;         /* Ajusta la altura según prefieras */
  object-fit: cover;     /* Mantiene el aspecto bonito sin deformar */
}



/* ===================== */
/* ESPECIALIDADES */
/* ===================== */

.especialidades {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 1rem;
  text-align: center;
}

.slider {
  position: relative;
  overflow: hidden;
}

/* TRACK */
.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: stretch;
}


/* Desktop: 3 cards */
@media (min-width: 768px) {
  .slider-track {
    grid-auto-columns: 33.333%;
  }
}

/* CARD */
.card-especialidad {
  background: #fff;
  border-radius: 15px;
  margin: 0 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;

  display: flex;
  flex-direction: column;
  height: 100%;
}


.card-especialidad:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-especialidad img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.card-body {
  padding: 1rem;
  flex-grow: 1;
}


.card-body h3 {
  font-size: 1.2rem;
  color: rgb(25, 182, 235);
  margin-bottom: 0.5rem;
}

/* DETALLE (SIN BUGS) */
.card-detalle {
  margin-top: 0.5rem;
  background: #f0faff;
  padding: 0 1rem;
  border-radius: 10px;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition: max-height 0.4s ease, opacity 0.3s ease;
}


.card-especialidad.active .card-detalle {
  max-height: 300px;
  opacity: 1;
  padding: 1rem;
}


/* ===================== */
/* BOTONES DEL SLIDER */
/* ===================== */

.slider .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(25, 182, 235, 0.9);
  color: #fff;
  border: none;

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

  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;

  z-index: 10;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.slider .slider-nav:hover {
  background: rgb(25, 182, 235);
  transform: translateY(-50%) scale(1.1);
}

.slider .prev { left: 10px; }
.slider .next { right: 10px; }

/* ===================== */
/* BOTONES SLIDER ESPECIALIDADES */
/* ===================== */

.especialidades .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(25, 182, 235, 0.9);
  color: #fff;
  border: none;

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

  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;

  z-index: 20;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.especialidades .nav:hover {
  background: rgb(25, 182, 235);
  transform: translateY(-50%) scale(1.1);
}

.especialidades .prev {
  left: 10px;
}

.especialidades .next {
  right: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .especialidades .nav {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .especialidades .prev { left: 5px; }
  .especialidades .next { right: 5px; }
}


/* ===================== */
/* BOTONES FLOTANTES */
/* ===================== */

.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;

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

  color: #fff;
  font-size: 26px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* WhatsApp */
.floating-btn.whatsapp {
  background-color: #25d366;
}

/* Teléfono */
.floating-btn.phone {
  background-color: rgb(25, 182, 235);
}

/* Mobile */
@media (max-width: 768px) {
  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}



.card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/*acordion*/
.custom-accordion {
  max-width: 700px;
  margin: auto;
}

.accordion-item {
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.accordion-header {
  width: 100%;
  background-color: rgb(25, 182, 235);
  color: white;
  border: none;
  padding: 15px 20px;
  text-align: left;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header .arrow {
  transition: transform 0.3s;
}

.accordion-header.active .arrow {
  transform: rotate(180deg);
}

.accordion-body {
  background-color: #f0faff;
  padding: 15px 20px;
  display: none;
}

.accordion-body.show {
  display: block;
}

.accordion-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.accordion-header {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.accordion-body {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.accordion-item:last-child {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}


/* Footer Styles */
.footer {
    color: #fff;
    padding: 20px;
}

.footer .footer-links {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.footer .footer-section {
    width: 30%;
}

.footer .footer-section h4 {
    margin-bottom: 10px;
}

.footer .footer-section p {
    margin: 5px 0;
}
.footer h5 {
    font-weight: bold;
    margin-bottom: 10px;
}

.footer p {
    margin: 5px 0;
}

.footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

button.btn {
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

button.btn:hover {
    background-color: #0056b3;
}
.custom-navbar {
    background-color: rgb(25, 182, 235) !important;
}

.custom-footer {
    background-color: rgb(25, 182, 235);
    color: white;
}


/* Color sólido para los enlaces del navbar */
.navbar .nav-link {
    color: #ffffff !important;  /* Blanco puro */
    opacity: 1 !important;      /* Sin transparencia */
}

/* Efecto al pasar el mouse */
.navbar .nav-link:hover {
    color: #c5e8ff !important;  /* Amarillo */
    opacity: 1 !important;
}

/* Más grande en celulares */
@media (max-width: 768px) {
    .navbar.navbar-dark .nav-link {
        font-size: 1.2rem !important;
    }
}
