/* =========================================================
   🎨 ESTILOS GENERALES DEL SISTEMA QSL – RADIO CLUB ROSARIO
   Versión responsive completa para panel_admin, módulos y buscador
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@400;700&display=swap');


/* ----- puede ser de index del boton que muestra los eventos ----- */



/* 📌 Botón acordeón */
.boton-acordeon {
  background:#004aad;
  color:white;
  border:none;
  padding:12px 24px;
  font-size:18px;
  border-radius:10px;
  cursor:pointer;
  display:block;
  margin:0 auto 20px auto;
  transition:background 0.3s, transform 0.2s;
  box-shadow:0 2px 6px rgba(0,0,0,0.25);
  text-align:center;
}
.boton-acordeon:hover { background:#0066cc; transform:scale(1.03); }

/* 📂 Contenido ocultable */
#acordeonEventos {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease;
  background: white;
}
#acordeonEventos.activo {
  max-height: 5000px;
  opacity: 1;
  transition: all 0.6s ease;
}


/* ----- BUSCADOR EN INDEX ----- */


.buscador {
    display: flex
;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}









/* ----- RESETEO BÁSICO ----- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Roboto', 'Arial', sans-serif;

  color: #003366;
  background: #dce9f9;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ----- CONTENEDORES --BUSCADOR--- */
.container {
  max-width: 1200px;
  margin: 20px auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 10px;
}

/* ----- TITULOS ----- */
h1, h2, h3 {
  text-align: center;
  color: #003366;
  margin-bottom: 15px;
}

/* ----- BOTONES ----- */
button, .btn {
  background: #004aad;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

button:hover, .btn:hover {
  background: #00357a;
}

.btn-secundario { background: #777; }
.btn-rojo { background: #b00020; }
.btn-verde { background: #28a745; }

/* ----- FORMULARIOS ----- */
form {
  margin: 10px auto;
  max-width: 800px;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 8px;
}

input[type=text],
input[type=date],
input[type=time],
input[type=number],
select,
input[type=color],
input[type=file] {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  margin-top: 4px;
  font-size: 15px;
}

/* ----- TABLAS ----- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th {
  background: #004aad;
  color: white;
  padding: 10px;
  text-align: center;
}

table td {
  padding: 6px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.tabla-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   🖼️ PREVISUALIZACIONES DE IMAGEN Y QSL GENERADAS
   ========================================================= */
.qsl-wrapper {
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 1080 / 566;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  background: #fff;
}

.qsl-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border: none;
  border-radius: 12px;
}

#previewContainer {
  width: 100%;
  max-width: 1080px;
  margin: 15px auto;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

#previewImage {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.texto-movible {
  position: absolute;
  cursor: move;
  user-select: none;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;

  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  padding: 0 10px;
}

/* ----- MENSAJES ----- */
.alerta-exito {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 6px;
  margin: 10px auto;
  width: 80%;
  border: 1px solid #c3e6cb;
  text-align: center;
}

.alerta-error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 6px;
  margin: 10px auto;
  width: 80%;
  border: 1px solid #f5c6cb;
  text-align: center;
}

/* ----- PIE DE PÁGINA ----- */
footer {
  text-align: center;
  color: #555;
  font-size: 13px;
  margin-top: 30px;
}

/* =========================================================
   📱 RESPONSIVE: PANTALLAS PEQUEÑAS
   ========================================================= */
@media (max-width: 992px) {
  .container {
    width: 95%;
    padding: 15px;
  }

  h1, h2, h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  input, select, button {
    font-size: 16px;
  }

  form { width: 100%; }

  .tabla-scroll { margin-top: 10px; }

  table {
    font-size: 13px;
    min-width: 600px;
  }

  table th, table td { padding: 8px; }

  button, .btn {
    width: 100%;
    margin-bottom: 8px;
  }

  .qsl-wrapper {
    width: 100vw;
    max-width: 100vw;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .qsl-img {
    width: 100vw;
    height: auto;
    border-radius: 0;
  }
}









/* =========================================================
   🔹 EVENTOS PÚBLICOS (módulo_eventos_publico.php)
   ========================================================= */

.eventos-container-publico {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  color: #003366;
  box-sizing: border-box;
}


.evento {
  margin-bottom: 30px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 20px;
}

.evento h3 {
  color: #004aad;
  margin-bottom: 5px;
}

.estado {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
}

.estado-activo { background: #2e7d32; }
.estado-proximo { background: #1976d2; }
.estado-finalizado { background: #b71c1c; }

.evento img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
}

.licencia {
  background: #004aad;
  color: #fff;
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.titulo-seccion {
  background: #004aad;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  margin-top: 30px;
}

.contador {
  color: #d32f2f;
  font-weight: bold;
  margin-top: 5px;
}























/* =========================================================
   🔹 EXTRA: <480px
   ========================================================= */
@media (max-width: 480px) {
  body { font-size: 15px; }
  h3 { font-size: 18px; }
  input, select { font-size: 15px; }
  table { font-size: 12px; }
}
