/* =========================================================
   LC Teleprompter para Locutores
   Estilos principales del plugin
   Versión visual 0.2.2
   ========================================================= */

.lc-tp-app {
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Trebuchet MS", sans-serif;
  color: #121826;
}

/* ---------------------------------------------------------
   Cabecera interna de la herramienta
   --------------------------------------------------------- */

.lc-tp-header {
  margin-bottom: 24px;
  text-align: center;
}

.lc-tp-title {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  color: #121826;
}

.lc-tp-description {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #4B5563;
}

/* ---------------------------------------------------------
   Caja de texto para pegar el guion
   --------------------------------------------------------- */

.lc-tp-panel {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.lc-tp-label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.lc-tp-textarea {
  width: 100%;
  min-height: 280px;
  border: 1px solid #D1D5DB;
  border-radius: 14px;
  padding: 18px;
  font-size: 17px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  background: #ffffff;
  color: #121826;
}

.lc-tp-textarea:focus {
  outline: none;
  border-color: #FF7A1A;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16);
}

/* ---------------------------------------------------------
   Tarjetas de estadísticas
   --------------------------------------------------------- */

.lc-tp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.lc-tp-stat {
  background: #F5F1EA;
  border: 1px solid #E5E0DA;
  border-radius: 14px;
  padding: 18px;
}

.lc-tp-stat-label {
  display: block;
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 6px;
}

.lc-tp-stat strong {
  font-size: 24px;
  color: #121826;
}

/* ---------------------------------------------------------
   Controles
   --------------------------------------------------------- */

.lc-tp-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.lc-tp-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  flex: 0 0 250px;
}

.lc-tp-controls select,
.lc-tp-controls button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #FF7A1A;
  padding: 0 16px;
  font-weight: 700;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.lc-tp-controls select {
  width: 100%;
  background: #ffffff;
  color: #121826;
}

.lc-tp-controls button {
  background: #FF7A1A;
  color: #18120D;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lc-tp-controls button:hover {
  background: #18120D;
  border-color: #18120D;
  color: #ffffff;
  transform: translateY(-1px);
}

.lc-tp-controls button:focus-visible,
.lc-tp-controls select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.22);
}

/* Botones principales */

.lc-tp-controls button[data-action="prepare"] {
  min-width: 132px;
}

.lc-tp-controls button[data-action="start"],
.lc-tp-controls button[data-action="pause"] {
  min-width: 74px;
}

.lc-tp-controls button[data-action="reset"] {
  min-width: 96px;
}

/* Botones de ajuste manual del texto */

.lc-tp-controls button[data-action="move-up"],
.lc-tp-controls button[data-action="move-down"] {
  min-width: 86px;
  background: #ffffff;
  color: #FF7A1A;
  border-color: #FF7A1A;
}

.lc-tp-controls button[data-action="move-up"]:hover,
.lc-tp-controls button[data-action="move-down"]:hover {
  background: #FF7A1A;
  color: #18120D;
  border-color: #FF7A1A;
}

/* Botones de tamaño de letra */

.lc-tp-controls button[data-action="font-down"],
.lc-tp-controls button[data-action="font-up"] {
  min-width: 52px;
  padding-left: 12px;
  padding-right: 12px;
}

/* Botón de pantalla completa */

.lc-tp-controls button[data-action="fullscreen"] {
  min-width: 154px;
  background: #18120D;
  color: #ffffff;
  border-color: #18120D;
}

.lc-tp-controls button[data-action="fullscreen"]:hover {
  background: #FF7A1A;
  border-color: #FF7A1A;
  color: #18120D;
}

/* ---------------------------------------------------------
   Caja de atajos del teleprompter
   --------------------------------------------------------- */

.lc-tp-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #F7EFE4;
  border: 1px solid #E5E0DA;
  border-radius: 14px;
  color: #4B5563;
  font-size: 14px;
  line-height: 1.45;
}

.lc-tp-shortcuts strong {
  color: #121826;
  font-weight: 800;
}

.lc-tp-shortcuts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lc-tp-shortcuts kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #D8CEC2;
  color: #121826;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(18, 24, 38, 0.12);
}

/* ---------------------------------------------------------
   Pantalla negra del teleprompter
   --------------------------------------------------------- */

.lc-tp-reader {
  height: 520px;
  overflow: hidden;
  position: relative;
  background: #0B0D12;
  color: #F3F4F6;
  border-radius: 20px;
  padding: 0 64px;
  font-size: 30px;
  line-height: 1.65;
  box-sizing: border-box;
}

/* Capa interna que se mueve suavemente */

.lc-tp-track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  padding-top: 420px;
  padding-bottom: 520px;
}

/* ---------------------------------------------------------
   Líneas del teleprompter
   --------------------------------------------------------- */

.lc-tp-line {
  color: #F3F4F6;
  opacity: 1;
  margin-bottom: 26px;
  font-weight: 500;
}

.lc-tp-line.is-active {
  color: #ffffff;
  opacity: 1;
}

.lc-tp-line.is-read {
  opacity: 0.7;
}

/* Mensaje inicial dentro de la pantalla negra */

.lc-tp-empty {
  color: #C7CDD6;
  font-size: 22px;
  line-height: 1.5;
  padding: 48px;
  margin: 0;
}

/* ---------------------------------------------------------
   Modo pantalla completa del teleprompter
   --------------------------------------------------------- */

.lc-tp-reader:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  border-radius: 0;
  padding: 0 9vw;
  background: #050608;
  color: #F9FAFB;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.65;
}

.lc-tp-reader:fullscreen::backdrop {
  background: #050608;
}

.lc-tp-reader:fullscreen .lc-tp-track {
  padding-top: 48vh;
  padding-bottom: 90vh;
}

.lc-tp-reader:fullscreen .lc-tp-line {
  margin-bottom: 34px;
  color: #F9FAFB;
}

.lc-tp-reader:fullscreen .lc-tp-line.is-active {
  color: #ffffff;
  opacity: 1;
}

.lc-tp-reader:fullscreen .lc-tp-line.is-read {
  opacity: 0.55;
}

.lc-tp-reader:fullscreen .lc-tp-empty {
  padding: 12vh 8vw;
  font-size: clamp(24px, 3vw, 42px);
}

/* Compatibilidad WebKit */

.lc-tp-reader:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  padding: 0 9vw;
  background: #050608;
  color: #F9FAFB;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.65;
}

.lc-tp-reader:-webkit-full-screen .lc-tp-track {
  padding-top: 48vh;
  padding-bottom: 90vh;
}

.lc-tp-reader:-webkit-full-screen .lc-tp-line {
  margin-bottom: 34px;
  color: #F9FAFB;
}

.lc-tp-reader:-webkit-full-screen .lc-tp-line.is-active {
  color: #ffffff;
  opacity: 1;
}

.lc-tp-reader:-webkit-full-screen .lc-tp-line.is-read {
  opacity: 0.55;
}

.lc-tp-reader:-webkit-full-screen .lc-tp-empty {
  padding: 12vh 8vw;
  font-size: clamp(24px, 3vw, 42px);
}

/* Compatibilidad antigua Firefox */

.lc-tp-reader:-moz-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  padding: 0 9vw;
  background: #050608;
  color: #F9FAFB;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.65;
}

.lc-tp-reader:-moz-full-screen .lc-tp-track {
  padding-top: 48vh;
  padding-bottom: 90vh;
}

.lc-tp-reader:-moz-full-screen .lc-tp-line {
  margin-bottom: 34px;
  color: #F9FAFB;
}

/* Compatibilidad antigua Microsoft */

.lc-tp-reader:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  padding: 0 9vw;
  background: #050608;
  color: #F9FAFB;
  font-size: 48px;
  line-height: 1.65;
}

.lc-tp-reader:-ms-fullscreen .lc-tp-track {
  padding-top: 48vh;
  padding-bottom: 90vh;
}

.lc-tp-reader:-ms-fullscreen .lc-tp-line {
  margin-bottom: 34px;
  color: #F9FAFB;
}

/* ---------------------------------------------------------
   Nota inferior
   --------------------------------------------------------- */

.lc-tp-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #4B5563;
  text-align: center;
}

/* =========================================================
   Responsive tablet
   ========================================================= */

@media (max-width: 1024px) {
  .lc-tp-app {
    max-width: 100%;
  }

  .lc-tp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lc-tp-controls {
    gap: 10px;
  }

  .lc-tp-control {
    flex: 1 1 100%;
  }

  .lc-tp-controls select {
    max-width: 100%;
  }

  .lc-tp-shortcuts {
    font-size: 13px;
  }

  .lc-tp-reader {
    height: 480px;
    font-size: 28px;
    padding-left: 48px;
    padding-right: 48px;
  }

  .lc-tp-track {
    padding-top: 380px;
    padding-bottom: 480px;
  }
}

/* =========================================================
   Responsive móvil
   ========================================================= */

@media (max-width: 767px) {
  .lc-tp-title {
    font-size: 28px;
  }

  .lc-tp-description {
    font-size: 16px;
  }

  .lc-tp-panel {
    padding: 18px;
  }

  .lc-tp-textarea {
    min-height: 240px;
    font-size: 16px;
  }

  .lc-tp-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .lc-tp-stat {
    padding: 14px;
  }

  .lc-tp-stat strong {
    font-size: 22px;
  }

  .lc-tp-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .lc-tp-control,
  .lc-tp-controls button,
  .lc-tp-controls select {
    width: 100%;
  }

  .lc-tp-control {
    flex: 1 1 auto;
  }

  .lc-tp-controls button[data-action="prepare"],
  .lc-tp-controls button[data-action="start"],
  .lc-tp-controls button[data-action="pause"],
  .lc-tp-controls button[data-action="reset"],
  .lc-tp-controls button[data-action="move-up"],
  .lc-tp-controls button[data-action="move-down"],
  .lc-tp-controls button[data-action="font-down"],
  .lc-tp-controls button[data-action="font-up"],
  .lc-tp-controls button[data-action="fullscreen"] {
    min-width: 0;
  }

  .lc-tp-shortcuts {
    align-items: flex-start;
    padding: 12px 14px;
    font-size: 13px;
  }

  .lc-tp-shortcuts span {
    width: 100%;
  }

  .lc-tp-reader {
    height: 420px;
    padding-left: 28px;
    padding-right: 28px;
    font-size: 24px;
    border-radius: 18px;
  }

  .lc-tp-track {
    padding-top: 320px;
    padding-bottom: 420px;
  }

  .lc-tp-line {
    margin-bottom: 22px;
  }

  .lc-tp-empty {
    font-size: 20px;
    padding: 28px;
  }

  .lc-tp-reader:fullscreen {
    padding: 0 7vw;
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1.6;
  }

  .lc-tp-reader:fullscreen .lc-tp-track {
    padding-top: 46vh;
    padding-bottom: 86vh;
  }

  .lc-tp-reader:fullscreen .lc-tp-line {
    margin-bottom: 28px;
  }

  .lc-tp-reader:-webkit-full-screen {
    padding: 0 7vw;
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1.6;
  }

  .lc-tp-reader:-webkit-full-screen .lc-tp-track {
    padding-top: 46vh;
    padding-bottom: 86vh;
  }

  .lc-tp-reader:-webkit-full-screen .lc-tp-line {
    margin-bottom: 28px;
  }
}