/* estilos.css */
/*******************************************ESTILO MINIMALISTA
/* Estilo global */
body {
  font-family: Arial, sans-serif; /* Fuente simple y legible */
  background-color: #fcfcfc; /* Color de fondo suave */
  color: #333; /* Color de texto oscuro */
  margin: 0;
  padding: 0;
}

/* Encabezados */
h1, h2, h3 {
  font-weight: bold; /* Texto en negrita */
  color: #555; /* Color de texto oscuro */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra de texto suave */
}

/*Texto para descripciones*/
.descripcion {
  font-size: 14px;
  color: #555; /* Color de texto oscuro */
  text-align: justify; /* Justificado */
}

/* Texto de párrafo */
p {
  line-height: 1.6; /* Espaciado de línea cómodo */
}

/* Enlaces */
a {
  color: #007bff; /* Color de enlace */
  text-decoration: none; /* Sin subrayado */
}

a:hover {
  text-decoration: underline; /* Subrayado al pasar el mouse */
}

/* Botones */
.boton {
  display: inline-block;
  background-color: #007bff; /* Color del botón */
  color: #fff; /* Color de texto blanco */
  padding: 10px 20px; /* Espaciado interno */
  border: none;
  border-radius: 5px; /* Bordes redondeados */
  cursor: pointer;
  text-align: center; /* Centrado del texto */
  text-decoration: none; /* Sin subrayado */
  transition: background-color 0.3s ease; /* Transición suave del color de fondo */
}

.boton:hover {
  background-color: #0056b3; /* Color del botón más oscuro al pasar el mouse */
}

/* Contenedor de tarjeta */
.tarjeta {
  background-color: #fff; /* Fondo blanco */
  border-radius: 5px; /* Bordes redondeados */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra suave */
  padding: 20px; /* Espaciado interno */
  margin: 20px auto; /* Margen y centrado horizontal */
  max-width: 600px; /* Ancho máximo */
}
/******************************************************************************************************/
/* Estilos para el contenedor DEL header con imagen de fondo */
.header-image {
  background-color: #ffcfc;
  max-width: 100%; /* La imagen ocupará como máximo el ancho del contenedor padre */
  height: auto; /* La altura se ajustará automáticamente manteniendo la proporción */
  background-position: top,left;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}


.header-text {
  text-align: right;
  position: absolute;
  left: 30%;
  color: white;
}

.sar-header-company,
.sar-header-user {
  display: block;
  line-height: 1.2;
  word-break: break-word;
}

@media (max-width: 576px) {
  .sar-header-company {
    font-size: 1rem !important;
    margin-bottom: 0.15rem !important;
  }

  .sar-header-user {
    font-size: 0.82rem;
  }
}

/* Estilos para el contenedor con imagen de fondo */
.hero-image {
  background-color: #000000;
  height: 520px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}
/*********************************************************************************************************/
.sar_sombra {
  text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.5); /* offsetX offsetY blurRadius color */
}

.texto-neon {
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff4da6, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 55px #ff4da6, 0 0 75px #ff4da6;
}

.texto-relieve {
  color: #fff;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.4), 0 0 25px rgba(255,255,255,0.4), 0 0 5px rgba(255,255,255,0.4);
}

.texto-escritura-mano {
  font-family: 'Pacifico', cursive;
}

.texto-fuego {
  color: transparent;
  background: url('ruta/a/imagen-de-fuego.png') repeat;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
}

.texto-salpicadura-pintura {
  background: url('ruta/a/imagen-de-salpicadura.png') repeat;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.texto-degradado-animado {
  background: linear-gradient(to right, #ffcc00, #ff6699, #cc33ff, #6699ff, #33ccff, #00ccff, #00ff99, #33ff33, #ccff33, #ffff00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: animate 5s linear infinite;
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.texto-sombra-flotante {
  color: transparent;
  text-shadow: 0 0 10px rgba(255,255,255,0.7);
  animation: shadow-float 2s linear infinite;
}

@keyframes shadow-float {
  0% {
    text-shadow: 0 0 10px rgba(255,255,255,0.7);
  }
  50% {
    text-shadow: 0 0 20px rgba(255,255,255,0.7);
  }
  100% {
    text-shadow: 0 0 10px rgba(255,255,255,0.7);
  }
}

.imagen-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Coloca la imagen detrás de los otros elementos */
  opacity: 0.8; /* Opacidad reducida para un efecto de fondo */
}

/***************************************************************************ESTILOS*/
/* Estilos para el contenedor de la tarjeta */
.tarjeta {
  width: 300px;
  height: 400px;
  background-color: #ffcc00; /* Fondo amarillo brillante */
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Estilos para el mensaje de felicitación */
.mensaje {
  font-family: 'Comic Sans MS', cursive; /* Tipografía cómica */
  font-size: 24px;
  text-align: center;
  color: #fff; /* Texto blanco */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra de texto */
  margin: 20px;
}

/* Estilos para el botón de cierre */
.boton-cierre {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4d4d; /* Color rojo brillante */
  color: #fff; /* Texto blanco */
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
}

/* Estilos para la imagen de fondo */
.imagen-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Coloca la imagen detrás de los otros elementos */
  opacity: 0.8; /* Opacidad reducida para un efecto de fondo */
}

/* Estilos para el contenedor de la firma */
.firma {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  color: #666; /* Texto gris */
}

/******************************************************************************************************TEXTOS LLAMATIVOS */


/*Texto para botones*/
.boton {
  font-family: 'Roboto', sans-serif; /* Fuente legible */
  font-size: 16px;
  color: #fff; /* Texto blanco */
  background-color: #ff6f61; /* Color coral brillante */
  padding: 10px 20px; /* Espaciado interior */
  border: none;
  border-radius: 5px; /* Bordes redondeados */
  cursor: pointer;
  transition: background-color 0.3s ease; /* Transición suave del color de fondo */
}

.boton:hover {
  background-color: #ff5444; /* Color coral más oscuro al pasar el mouse */
}

/*Texto destacado*/
.texto-destacado {
  font-weight: bold; /* Texto en negrita */
  color: #ff6f61; /* Color coral brillante */
}

/*Texto para títulos de sección*/
.titulo-seccion {
  font-family: 'Lobster', cursive; /* Fuente elegante */
  font-size: 24px;
  color: #333; /* Color de texto oscuro */
  text-align: center; /* Centrado */
  margin-bottom: 20px; /* Margen inferior */
}

/* MENUS. Mostrar submenú cuando tenga clase "show" (controlada por JS) */
.dropdown-submenu.show > .dropdown-menu {
  display: block !important;
}

/*Thumbnails */
/* Asegura que el contenedor sea visible y permita scroll horizontal */

#thumbContainer {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 5px 0;
}

.template-thumb {
  width: 144px;        /* o el tamaño que desees para la miniatura */
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  object-fit: contain; /* Para que la imagen no se recorte */
  flex-shrink: 0;     /* No reducir tamaño en flexbox */
}

.template-thumb.selected {
    border: 3px solid #198754; /* verde bootstrap */
    box-shadow: 0 0 10px #198754aa;
    background-color: #e9f7ef;
}

#previewTemplate {
    max-width: 100%;
    max-height: 300px;
    margin: 10px auto;
    display: none;
    border: 2px solid #198754;
    border-radius: 6px;
    object-fit: contain;
}

/*Botón Guardar*/
#btnGuardar.disabled,
#btnGuardar[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none; /* evita clicks */
  filter: grayscale(60%);
  transition: opacity 0.3s ease;
}

#btnGuardar:not(.disabled):hover {
  opacity: 1;
  cursor: pointer;
}

/*Botón Revertir*/
#btnRevertir.disabled,
#btnRevertir[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none; /* evita clicks */
  filter: grayscale(60%);
  transition: opacity 0.3s ease;
}

#btnRevertir:not(.disabled):hover {
  opacity: 1;
  cursor: pointer;
}

/*******************************/
.btn-audio-playing {
    background-color: #0461e0 !important;
    color: white !important;
    animation: blinkColor 1s infinite;
}

@keyframes blinkColor {
    0%, 100% {
        background-color: #0461e0;
        box-shadow: 0 0 0px rgba(0,0,0,0);
    }
    50% {
        background-color: #84ccfa;
        box-shadow: 0 0 12px rgba(0,123,255,0.7); /* resalta */
    }
}

.track-item.track-playing {
    background-color: #e0f7fa;
    border-color: #00acc1;
}
.accordion-button i {
    font-size: 1.2rem;
}

/* Dropdowns de navbar siempre al frente */
.navbar .dropdown-menu {
    z-index: 2000; /* mayor que los contextuales */
}

/* Botones contextuales y barra de audio por debajo */
#btnTemplateContainer {
    z-index: 1000; /* menor que los dropdowns pero suficiente para estar encima de templates */
}

#audioProgressContainer {
    z-index: 1000; /* menor que dropdowns, mayor que template */
}

/* Impedir arrastre de imágenes */
img {
  -webkit-user-drag: none;
  user-drag: none;
}

img, body {
  -webkit-user-select: none; /* Bloquea selección */
  -webkit-touch-callout: none; /* Bloquea menú emergente en iOS */
  user-select: none;
}

/* Contenedor principal de la SAR */
.sar-container {
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centrado vertical */
    align-items: center;
    text-align: center;
}

/* Contenido principal: imagen SAR */
.sar-content {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Imagen de la SAR */
.sar-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 0.8s ease;
}

/* Activar efecto al cargar */
.sar-img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Footer con botones de agradecimiento */
.sar-footer {
    margin-top: 2rem;
}

/* Botones de agradecimiento */
.sar-footer .btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Ajustes responsivos */
@media (min-width: 768px) {
    .sar-footer .d-flex.flex-md-row {
        flex-direction: row;
    }
}

.sar-audio {
    text-align: center;        /* Centra el contenido horizontalmente */
    margin: 1rem 0;            /* Margen arriba y abajo */
}

.sar-audio audio {
    width: 100%;               /* Hace que el reproductor ocupe el ancho del contenedor */
    max-width: 400px;          /* Ancho máximo razonable */
    outline: none;             /* Quita el borde azul al enfocarlo */
}