/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.hero {
  width: 100%;
  height: 100vh;
  background: url("../img/Hero-Signature168.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.hero-content {
  max-width: 80%;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.navbar {
  background: transparent !important;
}

/* Contacto */

.contacto .container {
  max-width: 1100px;
  min-height: 200px;
  padding: 20px;
}

.contacto .rectangulo {
  margin-top: 3rem;
  background-color: #2a2a2a;
  border-radius: 20px;
  box-shadow: 0px 1px 4px 1px white;
}

.contacto .row {
  width: 100%;
  display: flex;
  align-items: center;
}

.contacto .descripcion {
  color: white;
  font-size: 1.2rem;
}

.contacto button {
  color: white;
  font-weight: bold;
  background-color: transparent;
  border: 2px solid white;
  padding: 1.25em 2em;
  margin: 10px;
  border-radius: 100px;
  transition: all 0.2s ease-in-out;
}

.contacto button:hover {
  background-color: #0000ff;
  color: black;
}

.contacto button i {
  color: white;
  font-size: 1.3rem;
  transition: all 0.2s ease-in-out;
}

.contacto button:hover i {
  color: black;
}

/* Elementos con background oscuro con color de texto adecuado */
.bg-dark, .navbar-dark .navbar-nav .nav-link, .dropdown-item {
  color: #ffffff !important;
}

.seccion-oscura {
  color: white;
  background-color: #000;
}

.seccion-clara {
  color: black;
  background-color: white;
}

.seccion-titulo {
  font-size: 2rem;
  color: #ffffff;
  padding: 15px 0;
  font-family: 'Roboto', sans-serif;
}

.seccion-descripcion {
  font-size: 1.1rem;
  color: #E8E8E8;
}

.seccion-texto {
  font-size: 1.2rem;
}

.btn-info {
  font-size: 1.1rem;
  margin: 20px;
}

.texto-negro {
  color: black;
}

.texto-blanco {
  color: white;
}

/* styles FAQ */
.faq-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.accordion-button {
  font-weight: bold;
  background-color: #ffffff;
  color: #333;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: #007bff;
  color: white;
}

.accordion-body {
  text-align: left;
}
/* =========================================================
   Navbar dinámico al hacer scroll
   ========================================================= */
.navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.navbar-scrolled {
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* =========================================================
   Reveal de secciones al hacer scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeta la preferencia de accesibilidad del usuario */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Botón "Volver arriba"
   ========================================================= */
.btn-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
              background 0.2s ease;
  z-index: 1050;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
}

.btn-back-to-top:hover {
  background-color: var(--accent-hover);
  transform: translateY(0) scale(1.05);
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .btn-back-to-top {
    width: 42px;
    height: 42px;
    right: 0.9rem;
    bottom: 0.9rem;
    font-size: 1.3rem;
  }
}

/* =========================================================
   Barra de herramientas para firmas (optimizada)
   ========================================================= */
.firma-toolbar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  width: auto;
  max-width: calc(100% - 2rem);
  pointer-events: none; /* el contenedor no captura clics, solo el inner */
}

.firma-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: auto; /* el inner sí captura clics */
}

/* ---------- Botones base ---------- */
.firma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Poppins', system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
}

.firma-btn i {
  font-size: 1.15rem;
  line-height: 1;
}

/* ---------- Botón primario: Copiar ---------- */
.firma-btn-copiar {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
}

.firma-btn-copiar:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(13, 110, 253, 0.6);
  background: linear-gradient(135deg, #1178ff 0%, #0d6efd 100%);
}

.firma-btn-copiar:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

/* ---------- Botón secundario: Ver HTML ---------- */
.firma-btn-ver {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.firma-btn-ver:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.firma-btn-ver:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Foco accesible ---------- */
.firma-btn:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 3px;
}

/* ---------- Toast ---------- */
.firma-toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #10b981;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1070;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  max-width: calc(100% - 2rem);
  text-align: center;
}

.firma-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive: móvil ---------- */
@media (max-width: 640px) {
  .firma-toolbar {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: none;
  }

  .firma-toolbar-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.65rem;
    border-radius: 16px;
  }

  .firma-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    justify-content: center;
  }
}