/* =============================== */
/* RESET Y CONFIGURACIÓN GENERAL */
/* =============================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-purple: #4103a3;
  --secondary-purple: #9800c7;
  --accent-purple: #750099;
  --light-purple: #f8f6ff;
  --dark-purple: #2a0a4d;
  --glow-color: rgba(195, 0, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-modern: 0 20px 40px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fdfbff 0%, #f3e8ff 100%);
  color: var(--dark-purple);
  min-height: 100vh;
}

/* Layout base del sitio: footer al fondo (excepto home, que usa su propio scroll) */
body:not(.home) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:not(.home) #main_container {
  flex: 1 0 auto;
}

body:not(.home) .footer {
  flex-shrink: 0;
}

/* Layout específico del home: el Hero llena hasta el footer */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Layout para login/auth: empuja el footer al fondo (sin espacio en blanco) */
body.auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.auth #main_container {
  flex: 1 0 auto;
}

body.auth .footer {
  flex-shrink: 0;
}

body.home .footer {
  margin-top: 0;
}

/* En login/auth queremos el footer igual que en index (sin gap extra) */
body.auth .footer {
  margin-top: 0;
}

/* Folio asignado (pantalla principal) */
body.auth .folio-assigned-label {
  color: var(--secondary-purple);
  font-size: 1.05rem;
}

body.auth .folio-assigned-number {
  font-weight: 800;
  font-size: 1.75rem;
}

/* Campos deshabilitados: gris para distinguirlos */
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #e0e0e0 !important;
  color: #6c757d !important;
  opacity: 1 !important;
}

/* Botón Guardar centrado y responsivo */
.guardar-center {
  display: flex;
  justify-content: center;
}

.btn-guardar-responsive {
  display: inline-block;
  width: auto;
  min-width: 260px;
  max-width: 520px;
}

@media (max-width: 576px) {
  .btn-guardar-responsive {
    width: 100% !important;
    min-width: 0;
  }
}

a:hover{
  color: var(--primary-purple);
  text-decoration: none;
}

a{
  color: var(--secondary-purple);
  transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5 {
  color: var(--secondary-purple);
  font-weight: 700;
}

/* =============================== */
/* ESTILOS GLOBALES DE BOTONES 3D  */
/* =============================== */

.btn:not(.btn-portada), button:not(.close):not(.navbar-toggler):not(.btn-portada), input[type="button"], input[type="submit"] {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 2px solid var(--secondary-purple);
  vertical-align: middle;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.7em 1.5em;
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
  margin-bottom: 10px;
  background-color: #ffffff;
  color: var(--secondary-purple);
  z-index: 1;
}

.btn:not(.btn-portada)::before, button:not(.close):not(.navbar-toggler):not(.btn-portada)::before, input[type="button"]::before, input[type="submit"]::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d1d1;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0.4em 0 0 var(--primary-purple);
  transform: translate3d(0, 0.4em, -1em);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
  z-index: -1;
}

.btn:not(.btn-portada):hover, button:not(.close):not(.navbar-toggler):not(.btn-portada):hover, input[type="button"]:hover, input[type="submit"]:hover {
  background-color: #f8f8f8;
  transform: translate(0, 0.2em);
  color: var(--primary-purple);
}

.btn:not(.btn-portada):hover::before, button:not(.close):not(.navbar-toggler):not(.btn-portada):hover::before, input[type="button"]:hover::before, input[type="submit"]:hover::before {
  transform: translate3d(0, 0.2em, -1em);
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0.2em 0 0 var(--primary-purple);
}

.btn:not(.btn-portada):active, button:not(.close):not(.navbar-toggler):not(.btn-portada):active, input[type="button"]:active, input[type="submit"]:active {
  transform: translate(0, 0.4em);
}

.btn:not(.btn-portada):active::before, button:not(.close):not(.navbar-toggler):not(.btn-portada):active::before, input[type="button"]:active::before, input[type="submit"]:active::before {
  transform: translate3d(0, 0, -1em);
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0 0 0 var(--primary-purple);
}

/* VARIACIONES DE COLOR */

.btn-primary {
  background-color: var(--primary-purple) !important;
  color: #ffffff !important;
  border-color: var(--dark-purple) !important;
}
.btn-primary::before {
  background-color: var(--accent-purple) !important;
  box-shadow: 0 0 0 2px var(--dark-purple), 0 0.4em 0 0 var(--dark-purple) !important;
}
.btn-primary:hover {
  background-color: var(--secondary-purple) !important;
  color: #ffffff !important;
}

.btn-secondary {
  background-color: #6c757d !important;
  color: #ffffff !important;
  border-color: #343a40 !important;
}
.btn-secondary::before {
  background-color: #adb5bd !important;
  box-shadow: 0 0 0 2px #343a40, 0 0.4em 0 0 #343a40 !important;
}
.btn-secondary:hover {
  background-color: #5a6268 !important;
  color: #ffffff !important;
}

.btn-info {
  background-color: #17a2b8 !important;
  color: #ffffff !important;
  border-color: #0c5460 !important;
}
.btn-info::before {
  background-color: #5bc0de !important;
  box-shadow: 0 0 0 2px #0c5460, 0 0.4em 0 0 #0c5460 !important;
}

.btn-success {
  background-color: #28a745 !important;
  color: #ffffff !important;
  border-color: #155724 !important;
}
.btn-success::before {
  background-color: #71dd8a !important;
  box-shadow: 0 0 0 2px #155724, 0 0.4em 0 0 #155724 !important;
}

.btn-danger {
  background-color: #dc3545 !important;
  color: #ffffff !important;
  border-color: #721c24 !important;
}
.btn-danger::before {
  background-color: #ff6b6b !important;
  box-shadow: 0 0 0 2px #721c24, 0 0.4em 0 0 #721c24 !important;
}

.btn-light {
  background-color: var(--primary-purple) !important;
  color: #ffffff !important;
  border-color: var(--dark-purple) !important;
}
.btn-light::before {
  background-color: var(--accent-purple) !important;
  box-shadow: 0 0 0 2px var(--dark-purple), 0 0.4em 0 0 var(--dark-purple) !important;
}
.btn-light:hover {
  background-color: var(--secondary-purple) !important;
  color: #ffffff !important;
}

.btn:disabled, .btn.disabled {
  background: #e9ecef !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
  cursor: not-allowed;
  transform: none !important;
}
.btn:disabled::before, .btn.disabled::before {
  display: none;
}

/* EXCLUSIONES PARA BOTONES PEQUEÑOS O ESPECIALES */
.close, .navbar-toggler, .btn-sm {
  transform: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}
.close::before, .navbar-toggler::before, .btn-sm::before {
  display: none !important;
}

.style_disabled{
  background-color: #FFF;

}

.color-tooltip{
 /* background-color:#AA6611;
  border-color: #AA6611;*/

}
/*.tooltip-arrow,
.color-tooltip + .tooltip > .tooltip-inner{
  background-color:#AA6611;
  border-color: #AA6611;
}*/

.tooltip-inner {
  background-color: #8833CC !important;
  /*!important is not necessary if you place custom.css at the end of your css calls. For the purpose of this demo, it seems to be required in SO snippet*/
  color: #fff;
}

label{

  /*  font-weight: 600; /**/
  padding-top: 6px;

}
h5{
  color: #999;
  font-weight: 500;

  /*border-bottom: 1px solid #888;*/
}

.input-small{
  max-width: 200px;
}
.input-medium{
  max-width: 400px;
}

.datoscomite{
  /*font-size: 12px;*/

}

.rowborder{
  margin: 5px 0;

}

hr{

  margin: 40px 0;
  /* border: 0;
  height: 1px;
  background-image: -webkit-linear-gradient(left, #fff, #8c8b8b, #fff);
  background-image: -moz-linear-gradient(left, #fff, #8c8b8b, #fff);
  background-image: -ms-linear-gradient(left, #fff, #8c8b8b, #fff);
  background-image: -o-linear-gradient(left, #fff, #8c8b8b, #fff); */
}


hr.small{
  margin: 10px 0;

}

.btn a{
  margin-top: 50px;
}

/* =============================== */
/* SECCIÓN HERO Y BOTÓN PRINCIPAL */
/* =============================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 6rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 40px;
  box-shadow: var(--shadow-modern);
  margin: clamp(1.75rem, 4vw, 4rem) auto;
  max-width: 1100px;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

/* Variante full-page para index.php */
.hero.hero-fullpage {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero.hero-fullpage:hover {
  transform: none;
  box-shadow: none;
}

/* Separador difuminado entre el contenedor y el hero */
.hero-fade-separator {
  width: 100%;
  height: clamp(18px, 3.2vw, 44px);
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--glass-bg) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.hero.hero-fullpage .hero-inner {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(123, 1, 160, 0.15);
}

.hero h1 {
  font-size: clamp(1.4rem, 3.2vw, 2.8rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero h1 i {
  -webkit-text-fill-color: var(--accent-purple);
  margin-left: 15px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* BOTÓN DE REGISTRO REDISEÑADO CON EFECTO 3D */
.btn-portada {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border: 2px solid var(--primary-purple);
  background: var(--light-purple);
  padding: 0;
  border-radius: 35px;
  transform-style: preserve-3d;
  transition: all 175ms cubic-bezier(0, 0, 1, 1);
  z-index: 5;
}

.btn-portada img {
  display: block;
  width: 100%;
  max-width: min(450px, 85vw);
  height: auto;
  border-radius: 30px;
  transition: all 175ms cubic-bezier(0, 0, 1, 1);
  position: relative;
  z-index: 2;
}

.btn-portada::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-purple);
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0.75em 0 0 var(--primary-purple);
  transform: translate3d(0, 0.75em, -1em);
  transition: all 175ms cubic-bezier(0, 0, 1, 1);
  z-index: -1;
}

.btn-portada::after {
  content: '';
  position: absolute;
  inset: -15px;
  border: 2px dashed var(--accent-purple);
  border-radius: 50px;
  opacity: 0;
  transition: var(--transition-smooth);
  transform: scale(0.9);
  pointer-events: none;
  z-index: 3;
}

.btn-portada:hover {
  background: white;
  transform: translate(0, 0.375em);
}

.btn-portada:hover img {
  transform: scale(1.02);
}

.btn-portada:hover::before {
  transform: translate3d(0, 0.375em, -1em);
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0.375em 0 0 var(--primary-purple);
}

.btn-portada:hover::after {
  opacity: 0.5;
  transform: scale(1);
  animation: rotateDashed 10s linear infinite;
}

@keyframes rotateDashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-portada:active {
  transform: translate(0, 0.75em);
}

.btn-portada:active::before {
  transform: translate3d(0, 0, -1em);
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0.25em 0 0 var(--secondary-purple);
}

.btn-portada .text-overlay {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
  color: white;
  padding: clamp(10px, 1.2vw, 12px) clamp(18px, 4vw, 35px);
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(1.0rem, 2.2vw, 1.4rem);
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(123, 1, 160, 0.4);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 10;
}

.btn-portada:hover .text-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ANILLOS DE PULSO */
.pulse-ring {
  position: absolute;
  width: clamp(200px, 35vw, 300px);
  height: clamp(200px, 35vw, 300px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 0, 255, 0.15) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* =============================== */
/* SECCIÓN DE INFORMACIÓN */
/* =============================== */

.info-section {
  margin-top: clamp(1.75rem, 4vw, 6rem);
  padding: clamp(1.75rem, 4vw, 4rem) clamp(1rem, 3vw, 2rem);
  background: white;
  border-radius: 30px;
  box-shadow: var(--shadow-modern);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  border-bottom: 6px solid var(--primary-purple);
}

.info-section h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  color: var(--primary-purple);
  text-align: center;
}

.info-section .info-text {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

.info-section .info-text p {
  font-size: clamp(1.0rem, 1.4vw, 1.1rem);
  color: #555;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin: 0 0 1rem 0;
}

.info-section .info-text p:last-child {
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 4vw, 4rem);
}

.feature {
  background: var(--light-purple);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 24px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-align: center;
}

.feature:hover {
  background: white;
  border-color: var(--accent-purple);
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(123, 1, 160, 0.1);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-purple);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.feature:hover i {
  transform: scale(1.2) rotate(5deg);
  color: var(--accent-purple);
}

.feature p {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  color: var(--secondary-purple);
}

/* =============================== */
/* FOOTER REDISEÑADO */
/* =============================== */

.footer {
  background: var(--dark-purple);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple), var(--primary-purple));
}

.footer p {
  margin-bottom: 1rem;
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer .copyright {
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 1;
  margin-bottom: 1.5rem;
}

.footer-socials {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  color: white;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background: var(--accent-purple);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--glow-color);
}


/* =============================== */
/* HEADER BANNER VOTAFILMFEST COMPLETO */
/* =============================== */

.header {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: clamp(96px, 9vw, 150px);
  padding: clamp(8px, 1.6vw, 14px) clamp(12px, 2vw, 28px);
  background: rgba(42, 10, 77, 0.52);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);

  overflow: hidden;
  box-shadow: none;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(150, 75, 255, 0.12) 0%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 55% 30%, rgba(255, 210, 255, 0.14) 0%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.18) 0%, rgba(200, 160, 255, 0.05) 34%);
  pointer-events: none;
  z-index: 2;
}

/* Contenedor principal del header */
.header-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Contenido del header */
.header-content {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 0;
}

/* =============================== */
/* LOGO IZQUIERDO */
/* =============================== */

.brand-block {
  position: relative;
  padding: clamp(8px, 1.2vw, 12px) clamp(10px, 1.8vw, 20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.brand-block img {
  height: clamp(78px, 7vw, 120px);
  width: auto;
  max-width: clamp(260px, 22vw, 360px);
  transition: transform 0.2s ease;
}

.brand-block:hover img {
  transform: scale(1.08);
}

/* =============================== */
/* TÍTULO CENTRAL */
/* =============================== */

.header-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  margin: 0 30px;
  text-align: center;
  flex-grow: 0;

  /* Evita que el texto animado empuje al resto del header */
  width: var(--typing-width, auto);
  max-width: 100%;
  display: flex;
  justify-content: center;
}

/* Nuevo bloque central: título + imagen + regresar */
.header-center {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  flex: 1 1 auto;
  min-width: 260px;
  column-gap: 12px;
}

.header-center-extras {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  flex-wrap: wrap;
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* En fila, el título no necesita margen lateral extra */
.header-center .header-title {
  margin: 0;
  justify-self: center;
}

.header-center-extras {
  justify-self: end;
}

.header-center-logo {
  height: clamp(179px, 4.8vw, 92px);
  width: auto;
  max-width: min(420px, 92vw);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)) brightness(1.05);
  margin-left: -10px;
}

.header-center-extras .btn-header-back {
  width: auto;
  min-width: 180px;
  justify-content: center;
}

.title-typing {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid rgba(255, 255, 255, 0.85);
  padding-right: 6px;
  width: 0;
  animation: typing 2.4s steps(14, end) 0.15s forwards, blink 0.9s steps(1) infinite 2.55s;
}

/* Quitar el efecto brilloso (shine) del título */
.header-title::before {
  content: none;
}

/* =============================== */
/* AUTH / LOGIN (solo login.php)   */
/* =============================== */

body.auth #main_container {
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: 0;
}

body.auth .auth-container {
  max-width: 1400px;
}

body.auth .auth-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(42, 10, 77, 0.10);
  border-radius: 26px;
  box-shadow: var(--shadow-modern);
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
}

body.auth .auth-grid {
  position: relative;
  row-gap: 22px;
}

@media (min-width: 992px) {
  body.auth .auth-grid::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 1px;
    background: rgba(42, 10, 77, 0.10);
    transform: translateX(-50%);
    pointer-events: none;
  }
}

body.auth .auth-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(42, 10, 77, 0.12);
  box-shadow: none;
}

/* Alinear headers de ambas tarjetas (mismo alto y centrados) */
body.auth .auth-card .card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 56px;
  padding: 14px 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: rgba(123, 1, 160, 0.10);
  border-bottom: 1px solid rgba(42, 10, 77, 0.10);
}

body.auth .auth-card .card-body {
  padding: clamp(1rem, 2.2vw, 1.25rem);
}

/* Botones del panel: mismo alto (Ingresar / Recuperar / Registro) */
body.auth .auth-card .btn.btn-block {
  min-height: 56px;
}

body.auth .auth-main-btn {
  min-height: 56px;
}

/* Variante más compacta (para pantallas con muchos controles) */
body.auth .auth-main-btn-sm {
  min-height: 44px;
  padding: 0.55em 1.1em;
  font-size: 0.92rem;
}

/* Botón full-width en móvil, auto en md+ */
body.auth .auth-btn-auto-md {
  width: 100% !important;
}

@media (min-width: 768px) {
  body.auth .auth-btn-auto-md {
    width: auto !important;
  }
}

/* Botones inferiores: mismo tamaño entre sí y centrados */
body.auth .auth-bottom-btn {
  min-height: 56px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Anuncio de periodo de registro (traslúcido) */
body.auth .auth-announce {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(123, 1, 160, 0.10);
  border: 1px solid rgba(123, 1, 160, 0.22);
  color: var(--dark-purple);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.auth .auth-announce-title {
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

body.auth .auth-announce-text {
  opacity: 0.92;
  line-height: 1.35;
}

body.auth .auth-bars {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

body.auth .auth-bar {
  border-radius: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.auth .auth-collapse {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 10, 77, 0.10);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

/* Botón regresar en header (cuando se usa $header_back_href) */
.btn-header-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
  z-index: 1;
}

/* Versión compacta para usar debajo de usuario/logout */
.btn-header-back.btn-header-back-compact {
  padding: 6px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-header-back.btn-header-back-compact::before {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 0.3em 0 0 rgba(0, 0, 0, 0.35);
  transform: translate3d(0, 0.3em, -1em);
}

.btn-header-back::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 0.4em 0 0 rgba(0, 0, 0, 0.35);
  transform: translate3d(0, 0.4em, -1em);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
  z-index: -1;
}

.btn-header-back:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translate(0, 0.2em);
}

.btn-header-back:hover::before {
  transform: translate3d(0, 0.2em, -1em);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 0.2em 0 0 rgba(0, 0, 0, 0.35);
}

.btn-header-back:active {
  transform: translate(0, 0.4em);
}

.btn-header-back:active::before {
  transform: translate3d(0, 0, -1em);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 0 0 0 rgba(0, 0, 0, 0.35);
}

@keyframes typing {
  from { width: 0; }
  to { width: var(--typing-width, 100%); }
}

@keyframes blink {
  0%, 50% { border-color: rgba(255, 255, 255, 0.85); }
  50.01%, 100% { border-color: transparent; }
}

.title-vota,
.title-film,
.title-fest {
  color: #ffffff;
}

.title-vota {
  text-shadow: none;
}

.title-film {
  font-weight: 900;
  text-shadow: none;
}

.title-fest {
  text-shadow: none;
  display: inline-block;
  padding: 0 5px;
}

@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =============================== */
/* BLOQUE DERECHO */
/* =============================== */

.edition-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  padding: 10px 20px;

}

.edition-block img {
  height: 100px; /* Reducido para un header más delgado */
  width: auto;
  max-width: 220px;
  filter: 
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5))
    brightness(1.1);
  transition: transform 0.3s ease;
}

.edition-block:hover img {
  transform: scale(1.05);
}

.edition-badge {
  font-size: 1rem; /* Ajustado */
  padding: 6px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #8c00ff, #ba44ff, #c300ff);
  color: #5b1178;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 4px 15px rgba(76, 0, 255, 0.4),
    0 0 10px rgba(255, 255, 255, 0.2);
  animation: pulse 2s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.edition-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.tagline {
  font-size: 1rem; /* Ajustado */
  color: #fff;
  font-weight: 700;
  opacity: 0.95;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

/* BLOQUE DE USUARIO EN HEADER */
.user-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 15px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 260px;
}

/* Usuario + Cerrar sesión en una sola fila */
.user-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.user-info span {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info i {
  font-size: 1.2rem;
  color: var(--accent-purple);
}

.btn-logout-header {
  position: relative;
  background: var(--primary-purple);
  color: white !important;
  padding: 6px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--dark-purple);
  transform-style: preserve-3d;
  margin-top: 5px;
  width: 100%;
  justify-content: center;
}

.btn-logout-header::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-purple);
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--dark-purple), 0 0.3em 0 0 var(--dark-purple);
  transform: translate3d(0, 0.3em, -1em);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
  z-index: -1;
}

.btn-logout-header:hover {
  background: var(--secondary-purple);
  transform: translate(0, 0.15em);
  color: white !important;
}

.btn-logout-header:hover::before {
  transform: translate3d(0, 0.15em, -1em);
  box-shadow: 0 0 0 2px var(--dark-purple), 0 0.15em 0 0 var(--dark-purple);
}

.btn-logout-header:active {
  transform: translate(0, 0.3em);
}

.btn-logout-header:active::before {
  transform: translate3d(0, 0, -1em);
  box-shadow: 0 0 0 2px var(--dark-purple), 0 0 0 0 var(--dark-purple);
}

/* Botón regresar debajo de cerrar sesión (variante de layout) */
.btn-header-back.btn-header-back-under-logout {
  width: 100%;
  margin-top: 6px;
  padding: 6px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-header-back.btn-header-back-under-logout::before {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 0.3em 0 0 rgba(0, 0, 0, 0.35);
  transform: translate3d(0, 0.3em, -1em);
}

/* =============================== */
/* ONDAS ANIMADAS - FONDO COMPLETO */
/* =============================== */

.waves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.wave {
  position: absolute;
  width: 220%;
  height: 180%;
  opacity: 1;
  pointer-events: none;
  border-radius: 40%;
  background: radial-gradient(
    ellipse at center,
    rgba(125, 70, 170, 0.9) 0%,
    rgba(125, 70, 170, 0.6) 32%,
    rgba(125, 70, 170, 0.32) 60%,
    transparent 82%
  );
}

.wave1 {
  top: -52%;
  left: -130%;
  animation: waveMove 18s linear infinite;
  transform: rotate(15deg);
}

.wave2 {
  top: -46%;
  left: -190%;
  animation: waveMoveReverse 30s linear infinite;
  background: radial-gradient(
    ellipse at center,
    rgba(155, 90, 220, 0.78) 0%,
    rgba(155, 90, 220, 0.48) 34%,
    rgba(155, 90, 220, 0.26) 60%,
    transparent 82%
  );
  transform: rotate(-10deg);
}

.wave3 {
  top: -62%;
  left: -220%;
  animation: waveMove 35s linear infinite;
  animation-delay: -12s;
  background: radial-gradient(
    ellipse at center,
    rgba(180, 120, 230, 0.72) 0%,
    rgba(180, 120, 230, 0.46) 34%,
    rgba(180, 120, 230, 0.24) 60%,
    transparent 84%
  );
  transform: rotate(5deg);
}

/* Partículas flotantes */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

.particle:nth-child(1) { 
  width: 6px; height: 6px; 
  top: 15%; left: 10%; 
  animation-delay: 0s; 
  background: rgba(255, 255, 255, 0.9);
}
.particle:nth-child(2) { 
  width: 8px; height: 8px; 
  top: 60%; left: 25%; 
  animation-delay: 1s; 
  background: rgba(255, 204, 255, 0.8);
}
.particle:nth-child(3) { 
  width: 5px; height: 5px; 
  top: 40%; left: 85%; 
  animation-delay: 2s; 
  background: rgba(255, 255, 255, 0.7);
}
.particle:nth-child(4) { 
  width: 7px; height: 7px; 
  top: 85%; left: 70%; 
  animation-delay: 3s; 
  background: rgba(255, 255, 255, 0.85);
}
.particle:nth-child(5) { 
  width: 4px; height: 4px; 
  top: 30%; left: 60%; 
  animation-delay: 4s; 
  background: rgba(255, 204, 255, 0.6);
}
.particle:nth-child(6) { 
  width: 9px; height: 9px; 
  top: 75%; left: 45%; 
  animation-delay: 5s; 
  background: rgba(255, 255, 255, 0.95);
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) translateX(0) scale(1); 
    opacity: 0.3; 
  }
  25% { 
    transform: translateY(-25px) translateX(15px) scale(1.2); 
    opacity: 0.8; 
  }
  50% { 
    transform: translateY(0) translateX(30px) scale(1); 
    opacity: 0.5; 
  }
  75% { 
    transform: translateY(-15px) translateX(15px) scale(1.1); 
    opacity: 0.7; 
  }
}

/* Efecto de brillo general */
.glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 204, 255, 0.12) 0%,
      transparent 50%
    );
  animation: glow 5s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes glow {
  0% { 
    opacity: 0.4; 
    transform: scale(1); 
  }
  100% { 
    opacity: 0.7; 
    transform: scale(1.05); 
  }
}

/* =============================== */
/* RESPONSIVE */
/* =============================== */

@media (max-width: 1200px) {
  .header {
    padding: 8px 20px;
    min-height: clamp(110px, 12vw, 150px);
  }
  
  .header-title {
    font-size: clamp(2.0rem, 4.6vw, 3.0rem);
    padding: 6px 0;
    margin: 0 16px;
  }
  
  .brand-block img {
    height: clamp(72px, 7.5vw, 110px);
  }
  
  .edition-block img {
    height: clamp(54px, 6vw, 80px);
  }
}

@media (max-width: 992px) {
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 25px 0;
  }
  
  .brand-block,
  .header-center,
  .edition-block {
    flex: 0 0 auto;
  }
  
  .header-center {
    order: 1;
    width: 100%;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .header-center-extras {
    flex-direction: column;
    gap: 10px;
    justify-self: auto;
    justify-content: center;
  }

  .header-title {
    margin: 0;
  }
  
  .brand-block {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .brand-block img {
    margin-left: auto;
    margin-right: auto;
  }
  
  .edition-block {
    order: 3;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .header {
    min-height: auto;
    padding: 6px 10px;
    border-radius: 0;
  }
  
  .header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand title promo"
      "back back back"
      "user user user";
    align-items: start;
    gap: 8px 10px;
    padding: 10px 0;
  }
  
  .brand-block {
    grid-area: brand;
    padding: 0;
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }

  .brand-block img {
    margin: 0;
    height: 64px;
    max-width: 160px;
  }

  /* Aplanar wrappers para ubicar piezas en el grid */
  .header-center {
    display: contents;
  }

  .header-center-extras {
    display: contents;
  }

  .header-title {
    grid-area: title;
    font-size: clamp(1.3rem, 6vw, 2.0rem);
    padding: 2px 0;
    letter-spacing: 1px;
    width: auto;
    min-width: 0;
    justify-self: center;
    align-self: start;
  }

  .header-center-logo {
    grid-area: promo;
    justify-self: end;
    align-self: start;
    height: 92px;
    margin-left: 0;
    max-width: 140px;
  }

  .btn-header-back {
    grid-area: back;
    justify-self: center;
    width: min(320px, 92vw);
  }
  
  .edition-block {
    grid-area: user;
    padding: 0;
    align-items: center;
  }

  .edition-block:empty {
    display: none;
  }
  
  .edition-badge {
    font-size: 1rem;
    padding: 8px 18px;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  /* Optimizar animaciones para móvil */
  .wave1, .wave2, .wave3 {
    animation-duration: 20s;
  }
}

/* =============================== */
/* RESPONSIVE PARA NUEVAS SECCIONES */
/* =============================== */

@media (max-width: 992px) {
  .hero {
    margin: 2rem 1rem;
    padding: 4rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .btn-portada img {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn-portada img {
    max-width: 320px;
  }
  
  .btn-portada .text-overlay {
    font-size: 1.1rem;
    padding: 10px 25px;
  }
  
  .info-section {
    padding: 3rem 1.5rem;
    margin-top: 4rem;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }

  .feature {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .feature i {
    margin-bottom: 1rem;
  }

  .feature p {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .btn-portada img {
    max-width: 280px;
  }
  
  .footer {
    padding: 3rem 1rem;
  }
}

/* Ajustes finos para móvil: evitar “ríos” en justificado */
@media (max-width: 576px) {
  .info-section .info-text p {
    hyphens: manual;
  }
}
.nav-link{
  padding:10px 50px;
  font-weight: 700;
}
.nav-tabs{
  margin-bottom: 10px;
}


/* ////////////////////// upload button */

.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
}

.btn-upload-custom {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
  outline: none;
  border: 2px solid #adb5bd;
  vertical-align: middle;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7em 1.4em;
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
  background-color: #ffffff;
  color: #212529;
  margin-bottom: 10px;
  z-index: 1;
}

.btn-upload-custom::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d1d1;
  border-radius: inherit;
  box-shadow: 0 0 0 2px #adb5bd, 0 0.4em 0 0 var(--primary-purple);
  transform: translate3d(0, 0.4em, -1em);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
  z-index: -1;
}

.btn-upload-custom:hover {
  background-color: #f8f8f8;
  transform: translate(0, 0.2em);
}

.btn-upload-custom:hover::before {
  transform: translate3d(0, 0.2em, -1em);
  box-shadow: 0 0 0 2px #adb5bd, 0 0.2em 0 0 var(--primary-purple);
}

.btn-upload-custom:active {
  transform: translate(0, 0.4em);
}

.btn-upload-custom:active::before {
  transform: translate3d(0, 0, -1em);
  box-shadow: 0 0 0 2px #adb5bd, 0 0 0 0 var(--primary-purple);
}

.btn-upload-custom i {
  color: var(--primary-purple);
  margin-right: 8px;
}

.upload-btn-wrapper:hover .btn-upload-custom {
  background-color: #e8e9ea;
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Cuando el file input se deshabilita, la regla global input:disabled fuerza opacity:1.
   Aquí lo sobreescribimos para que NO aparezca el control nativo ("Seleccionar archivo..."). */
.upload-btn-wrapper input[type=file]:disabled {
  opacity: 0 !important;
  cursor: not-allowed;
}

/* Estado visual deshabilitado manteniendo el look 3D del botón de upload */
.upload-btn-wrapper[aria-disabled="true"] .btn-upload-custom {
  background: #e9ecef;
  color: #6c757d;
  border-color: #dee2e6;
}
.upload-btn-wrapper[aria-disabled="true"] .btn-upload-custom::before {
  background-color: #f1f3f5;
  box-shadow: 0 0 0 2px #dee2e6, 0 0.4em 0 0 #cfd4da;
}
.upload-btn-wrapper[aria-disabled="true"]:hover .btn-upload-custom {
  background: #e9ecef;
}

/* Documentación: botón para ver PDF + título */
.doc-row-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-action-btn {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Separadores compactos entre filas de documentos */
.auth-card hr.doc-sep {
  margin: 0.35rem 0;
  opacity: 0.35;
}

.doc-required-legend {
  margin: 0;
  margin-top: 2px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--dark-purple);
  opacity: 0.75;
}

.btn-icon{
  font-size: 20px;
}


.div-incompleto{
  /*background-color:#FEE;*/
  color:#F00;
  font-weight: 700;
}

.color-blue{
  /*color:#3f76ff;*/
  color:#7642ba;
  font-weight: 700;
  font-size: 14px;
}

.btn-verificar{
  position: relative;
  background-color: #FFF;
  color:#7642ba;
  border: 2px solid var(--secondary-purple);
  border-radius: 10px;
  padding: 5px 15px;
  font-weight: 700;
  transform-style: preserve-3d;
  transition: all 150ms ease;
  z-index: 1;
}

.btn-verificar::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #f0f0f0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0.3em 0 0 var(--primary-purple);
  transform: translate3d(0, 0.3em, -1em);
  z-index: -1;
}

.btn-verificar:hover{
  color: var(--primary-purple);
  transform: translate(0, 0.15em);
}

.btn-verificar:hover::before {
  transform: translate3d(0, 0.15em, -1em);
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0.15em 0 0 var(--primary-purple);
}

.btn-verificar:active {
  transform: translate(0, 0.3em);
}

.btn-verificar:active::before {
  transform: translate3d(0, 0, -1em);
  box-shadow: 0 0 0 2px var(--secondary-purple), 0 0 0 0 var(--primary-purple);
}

.btn-exportar{
  display: block;
  margin: 50px auto;


  width:400px;
}

.btn-block{
  display: block;
  margin: 0 auto;
  width:100%;
}


/******** radio buttons invisibles **********/

.labl {
    display : block;
    width: 400px;
}
.labl > input{ /* HIDE RADIO */
    visibility: hidden; /* Makes input not-clickable */
    position: absolute; /* Remove input from document flow */
}
.labl > input + div{ /* DIV STYLES */
    cursor:pointer;
    border:2px solid transparent;
}
.labl > input:checked + div{ /* (RADIO CHECKED) DIV STYLES */
    background-color: #ffd6bb;
    border: 1px solid #ff6600;
}


.headerconsultas{
  border-bottom: 1px solid #EEE;
  margin-bottom: 2px;
  font-weight: 700;
  text-align: center;

}

.rowconsultas{
  border-bottom: 1px solid #EEE;
  margin-bottom: 2px;
  /*font-size: 12px;*/

}

.grouprowconsultas .rowconsultas:nth-child(even){
  background-color: #EEE;


}

/* En móvil: registros tipo "tarjeta" con colores tenues alternados */
@media (max-width: 767.98px) {
  .rowconsultas{
    border: 1px solid rgba(42, 10, 77, 0.16);
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.88);
  }

  .grouprowconsultas .rowconsultas:nth-child(even){
    background: rgba(123, 1, 160, 0.12);
  }
}

.rowconsultas .btn{
  font-size: 12px;
  margin: 5px 0;
  overflow: hidden;

}

#res1,#res2,#res4,#res5,#res7,#res8{
  font-size: 18pt;

}

.card-body .row{
  min-height: 80px;
}
.anim{
  margin-bottom: 20px;
}

.anim1{
  font-weight: 600;

  /*height: 50px;*/
  padding:5px 10px;

 background-color: #d4edda;/**/
  color: #143d1a;/**/


  border-radius: 5px;
  position: relative;
  -webkit-animation-name: example; /* Safari 4.0 - 8.0 */
  -webkit-animation-duration: 8s; /* Safari 4.0 - 8.0 */
  animation-name: example;
  animation-duration: 8s;
  animation-fill-mode: forwards;

}

.anim2{
  font-weight: 600;

  /*height: 50px;*/
  padding:5px 10px;

/*  background-color: #5bc0de;/**/
  /*color: #143d1a;/**/
  /*color: #FFF;/**/
  border-radius: 5px;
  position: relative;
  -webkit-animation-name: example; /* Safari 4.0 - 8.0 */
  -webkit-animation-duration:8s; /* Safari 4.0 - 8.0 */
  animation-name: example;
  animation-duration: 8s;
  animation-fill-mode: forwards;
  animation-delay: 6s;

}

@-webkit-keyframes example {
  0%   {left:0px; top:0px;opacity: 0;}
  10%  {left:0px; top:0px;opacity: 1;}
  25%  {left:10px; top:0px;}
  50%  {left:0px; top:0px;}
  75%  {left:10px; top:0px;opacity: 1;}
  100% {left:0px; top:0px; opacity: 0;}
}

/* Standard syntax */
@keyframes example {
  0%   {left:0px; top:0px;opacity: 0;}
  1%   {left:0px; top:0px;opacity: 1;}
  25%  {left:10px; top:0px;}
  50%  {left:0px; top:0px;}
  75%  {left:10px; top:0px;opacity: 1;}
  100% {left:0px; top:0px; opacity: 0;}
}


@media only screen and (max-width: 600px) {
  .container{
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;/**/
  }



  body{
    /*width:100%;*/
  }

  .col-sm-5 #imgheader1{
    width: 100px;
  }

  /* Header actual (header.php): centrar logo IECM en móvil */
  .header .brand-block{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  #imgheader1{
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }

  .col-sm-6 #imgheader2{
    width: 220px;
    margin-top: -20px;
    padding-bottom: 4px;
  }

  .header, header{
    overflow-x: hidden;
  }

  .btn-portada2{
     margin:0;
    display: none;

  }

  .btn-portada2 img{
    display:none;
    height: 50px;
    right:30px;
  }

  .contenido .text{
  /* position: absolute;
  top: 30%;
  left: 20%; */
  color:#FFF;
  font-size: 2em;
   font-weight: 600;

}


}

/* Botón PDF rojo independiente */
.btn-pdf {
  background-color: #BD0000 !important;
  color: #fff !important;
  border: 2px solid #8d0505 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}
.btn-pdf:hover, .btn-pdf:focus {
  background-color: #8A0000 !important;
  color: #fff !important;
}
.btn-pdf::before {
  background-color: #720000 !important;
  box-shadow: 0 0 0 2px #470000, 0 0.4em 0 0 #b71c1c !important;
}
