/* KC#01-BEGIN : BOTON FLOTANTE WHATSAPP */
.kc-btn-whatsapp-floating {
  position: fixed;
  bottom: 20px;     /* posicion en pantalla */
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 28px;
  text-align: center;
  line-height: 40px;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.kc-btn-whatsapp-floating:hover {
  background-color: #1ebe5d;
  color: white;
}
.kc-btn-whatsapp-floating i {
  pointer-events: none;
}
/* KC#01-END */


/*-----------------------------------------------------------------------------------------------------------------------------------*/

/* KC#02-BEGIN : BOTON FLOTANTE IR ARRIBA */
#kc-btn-arrow-up-floating {
    position: fixed;
    bottom: 80px;      /* posicion en pantalla */
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--wp--preset--color--palette-color-2, var(--theme-palette-color-2, #24417C));		/* color del icono */
    color: white;
    border-radius: 10%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    z-index: 9999;
    display: none;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
#kc-btn-arrow-up-floating:hover {
    background-color: var(--wp--preset--color--palette-color-2, var(--theme-palette-color-2, #24417C));		/* color del icono */
}
#kc-btn-arrow-up-floating i {
    pointer-events: none;
}
/* KC#02-END */


/*-----------------------------------------------------------------------------------------------------------------------------------*/


/* KC#03-BEGIN : BOTONES FLOTANTES REDES SOCIALES (CUADRADO) */
.kc-social-floating-square {
  position: fixed;
  top: 40%;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.kc-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: background 0.3s;
}

.kc-icon + .kc-icon {
  border-top: 1px solid rgba(255, 255, 255, 0.5); /* sutil división sin espacio */
}

.kc-icon span {
  position: absolute;
  left: 100%;
  top: 0;
  height: 100%;
  width: 120px; /* MISMO ancho para todos */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  border-radius: 0 4px 4px 0;
}

/* Mostrar texto al pasar el mouse */
.kc-icon:hover span {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Estilo por red (icono y etiqueta del mismo color) */
.kc-icon.facebook {
  background: black;		
}
.kc-icon.facebook span {
  background: var(--wp--preset--color--palette-color-2, var(--theme-palette-color-2, #3b5998));		/*#3b5998;*/
}

.kc-icon.twitter {
  background: black;
}
.kc-icon.twitter span {
  background: var(--wp--preset--color--palette-color-2, var(--theme-palette-color-2, #1da1f2));		/*#1da1f2;*/
}

.kc-icon.instagram {
  background: black;
}
.kc-icon.instagram span {
  background: var(--wp--preset--color--palette-color-2, var(--theme-palette-color-2, #e4405f));		/*#e4405f;*/
}

.kc-icon.whatsapp {
  background: black;
}
.kc-icon.whatsapp span {
  background: var(--wp--preset--color--palette-color-2, var(--theme-palette-color-2, #25d366));		/*#25d366;*/
}

.kc-icon.phone {
  background: #000000;
}
.kc-icon.phone span {
  background: #000000;
}
/* KC#03-END */


/*-----------------------------------------------------------------------------------------------------------------------------------*/

/* KC#04-BEGIN : BOTON TELEFONO FLOTANTE */
.kc-btn-call-floating {
  display: none;
}

@media (max-width: 768px) {
  .kc-btn-call-floating {
    display: inline;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--wp--preset--color--palette-color-2, var(--theme-palette-color-2, #24417C));
    color: white;
    border-radius: 10%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    z-index: 9999;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  .kc-btn-call-floating:hover {
    background-color: var(--wp--preset--color--palette-color-2, var(--theme-palette-color-2, #24417C));
  }

  .kc-btn-call-floating i {
    line-height: 40px;
    color: white !important;
  }

  .kc-btn-call-floating:hover i {
    color: white !important;
  }
}
/* KC#04-END */


/*-----------------------------------------------------------------------------------------------------------------------------------*/

/* KC#05-BEGIN : BOTON HACER CITA AMELIA FLOTANTE */
.kc-btn-cita {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #24417C;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: background 0.3s;
}
.kc-btn-cita:hover {
  background: #1a3162;
}

/* MODAL */
.kc-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 90%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.kc-modal-content {
  background-color: #fff;
  margin: 1% auto;
  padding: 10px;
  padding-top:1px;
  padding-bottom:1px;
  border-radius: 10px;
  width: 100% !important;
  max-width: 700px;	
  max-height: 90vh;           /* altura máxima: 90% de la pantalla */
  position: relative;
}

.kc-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
/* KC#05-END */
/*-----------------------------------------------------------------------------------------------------------------------------------*/

/* KC#08-BEGIN : MODO OSCURO / CLARO (dark mode toggle) */
/* Estilo del botón toggle */
#dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #8b5e3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#dark-mode-toggle:hover {
  background: #a87450;
}

/* Estilos modo oscuro */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f4f4f4;
}

body.dark-mode a {
  color: #f4d58d;
}

body.dark-mode header,
body.dark-mode footer,
body.dark-mode .site {
  background-color: #2c2c2c !important;
  color: #f4f4f4;
}
/* KC#08-END */

/* Para testear que archivo css se carga 
body::after {
  content: "✅ style_child.css cargado correctamente";
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #198754;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
*/
/*-----------------------------------------------------------------------------------------------------------------------------------*/

