@charset "utf-8";
/* CSS Document */


body {
  background:#f5f5f5;
}

.dialogo-texto {
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ================================
   FOTO + FONÉTICA
================================ */
.foto-wrapper {
  position: relative;
  overflow: hidden;   /* 👈 ESTA ES LA CLAVE */
}
.foto-fonetica {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px;
  text-align: center;

  font-size: 1.2rem;
  line-height: 1.4;

  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;

  /* 👇 LO IMPORTANTE */
  overflow-wrap: break-word;
  word-break: break-word;
}
.foto-wrapper:hover .foto-fonetica {
  opacity: 1;
}

/* ================================
   BOTONES HOVER HEADER
================================ */
.btn-dialogo,
.btn-diccionario {
 
  top: 50%;
  transform: translateY(-50%);
 position: absolute;
 opacity: 0;
transition: opacity 0.2s ease;

 
}
.card-header:hover .btn-dialogo,
.card-header:hover .btn-diccionario {
  opacity: 1;
}
/* derecha */
.btn-dialogo {
  right: 8px;
}

/* izquierda */
.btn-diccionario {
  left: 8px;
}

/* aparecen SOLO al hover */
.card-header {
  position: relative;
  min-height: 52px;        /* 👈 da espacio real */
  padding-top: 10px;
  padding-bottom: 10px;
}



/* ================================
   TEXTO
================================ */
.texto-castellano {
  display: block;
}

.texto-ingles {
  display: none;
  font-style: italic;
}

/* ================================
   TEXTAREA VOZ
================================ */
.speechToText {
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid #bbb;
  padding: 6px;
  resize: none;
  cursor: pointer;
  background-color: #f9f9f9;
}