/* Custom Stylesheet */
/**
 * Use this file to override Materialize files so you can update
 * the core Materialize files in the future
 *
 * Made By MaterializeCSS.com
 */

nav ul a,
nav .brand-logo {
  color: #444;
}

.brand-logo img {
  max-height: 56px;
  vertical-align: middle;
}

/* Estilos para el navbar fijo al hacer scroll */
.navbar-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
  transition: top 0.3s;
}

/* Clase para el espacio que ocupa el navbar cuando se fija */
.navbar-spacer {
  display: none;
  height: 64px; /* Altura del navbar */
}

@media only screen and (max-width: 600px) {
  .navbar-spacer {
    height: 56px; /* Altura del navbar en móviles */
  }
}

@media only screen and (max-width: 992px) {
  .brand-logo img {
    max-height: 48px;
  }
}

body {
  background-color: white;
  font-family: var(--font-body), sans-serif;
}

p {
  line-height: 2rem;
}

.sidenav-trigger {
  color: #c0ca33; /* lime darken-1 */
}

.parallax-container {
  min-height: 380px;
  line-height: 0;
  height: auto;
  color: rgba(255,255,255,.9);
}
  .parallax-container .section {
    width: 100%;
  }

@media only screen and (max-width : 992px) {
  .parallax-container .section {
    position: absolute;
    top: 40%;
  }
  #index-banner .section {
    top: 10%;
  }
}

@media only screen and (max-width : 600px) {
  #index-banner .section {
    top: 0;
  }
}

.icon-block {
  padding: 0 15px;
}
.icon-block .material-icons {
  font-size: inherit;
}

footer.page-footer {
  margin: 0;
}

footer .footer-copyright {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.lime-button {
  background-color: #eeff41; /* lime accent-2 */
}

.lime-text {
  color: #eeff41; /* lime accent-2 */
}

/* Estilos para botones en la página principal */
#servicios-button {
  margin-right: 10px;
}

#urgencias-button {
  margin-left: 10px;
}

/* Estilos para la sección de contacto en el footer */
footer ul li {
  margin-bottom: 10px;
}

footer ul li i {
  vertical-align: middle;
  margin-right: 5px;
}

/* Estilos para mejorar la legibilidad en parallax */
h1, h2, h3, h4, h5, h6, .brand-logo {
  font-family: var(--font-title), sans-serif;
  font-weight: var(--weight-title);
}

.parallax-container .header {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Estilos para el botón de asistente virtual */
.btn-asistente {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-asistente:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px 0 rgba(0,0,0,0.25), 0 5px 20px 0 rgba(0,0,0,0.2);
}

.btn-asistente i {
  font-size: 24px;
}

/* Estilos para el modal del chat */
.chat-modal {
  width: 350px;
  max-width: 100%;
  height: 500px;
  max-height: 80vh;
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .chat-modal {
    width: 480px;
    height: 80vh;
    max-height: 90vh;
  }
}

.chat-modal .modal-content {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background-color: #eeff41; /* lime accent-2 */
  color: #333;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: #f5f5f5;
}

.message {
  margin-bottom: 10px;
  max-width: 80%;
  padding: 10px;
  border-radius: 15px;
  position: relative;
  clear: both;
}

.message-user {
  background-color: #eeff41; /* lime accent-2 */
  float: right;
  border-bottom-right-radius: 5px;
}

.message-assistant {
  background-color: #fff;
  float: left;
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-input {
  padding: 10px;
  background-color: #fff;
  border-top: 1px solid #eee;
  display: flex;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 20px;
  background-color: #f5f5f5;
  margin-right: 10px;
}

.chat-input button {
  border: none;
  background-color: #eeff41; /* lime accent-2 */
  color: #333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-input button:hover {
  background-color: #c0ca33; /* lime darken-1 */
}

/* Refuerzo para evitar superposición de tarjetas del dashboard */
.card, .card-content {
  z-index: 1 !important;
  position: relative !important;
}

/* Estilos para el indicador de escritura */
.typing {
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 15px;
  display: block;
  margin-bottom: 10px;
  max-width: 80%;
  float: left;
  border-bottom-left-radius: 5px;
}

.typing .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #999;
  margin-right: 3px;
  animation: typing 1.5s infinite ease-in-out;
}

.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0% { transform: translateY(0); }
  25% { transform: translateY(-5px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}
/* Estilos para las tarjetas de especialidades con altura uniforme */
.especialidades-row {
    display: flex;
    flex-wrap: wrap;
}

.especialidades-row > .col {
    display: flex;
}

.especialidad-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.especialidad-card .card-image img {
    height: auto;
    width: 100%;
}

.especialidad-card .card-content {
    flex-grow: 1;
}

.separa {
  height: 60px;
}

/* Colores de Redes Sociales con alta especificidad */
.btn-floating.btn-facebook {
  background-color: #1877F2 !important;
}

.btn-floating.btn-instagram {
  background-color: #E4405F !important; /* Color representativo de Instagram */
}

.btn-floating.btn-whatsapp {
  background-color: #25D366 !important;
}

.btn-floating.btn-google-maps {
  background-color: #EA4335 !important; /* Rojo Google para Google Maps/Pin */
}

/* Soporte para iconos SVG en botones flotantes */
.btn-floating .svg-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.btn-floating .svg-icon-container svg {
    width: 28px;
    height: 28px;
    fill: white !important;
}

/* Efecto hover premium para redes sociales */
.btn-floating.btn-facebook:hover,
.btn-floating.btn-instagram:hover,
.btn-floating.btn-whatsapp:hover,
.btn-floating.btn-google-maps:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.1);
}

/* Sección de Testimonios */
.testimonial-section {
    padding: 60px 0;
    background-color: #fafafa;
}

.testimonial-link {
    text-decoration: none !important;
    display: block;
    height: 100%;
    color: inherit;
}

.testimonial-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease;
    border-top: 4px solid #d4e157; /* Lime darken-1 */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.testimonial-card .review-text {
    font-style: italic;
    color: #424242;
    margin-bottom: 20px;
    min-height: 80px;
}

.testimonial-card .author {
    font-weight: bold;
    color: #33691e;
    display: flex;
    align-items: center;
}

.testimonial-card .author i {
    margin-right: 8px;
    font-size: 1.5rem;
}

.testimonial-card .source {
    font-size: 0.8rem;
    color: #9e9e9e;
    margin-top: 4px;
}

.share-buttons {
    margin-top: 15px;
}

.share-buttons .btn-floating {
    margin-right: 10px;
}