/* base */
:root{
  --bg:#bccbd2;
  --text:#222;
  --primary:#1a202c;
  --brand:#ff8c42;
  --brand-dark:#d9702e;
  --red:#ef4444;
  --muted:#e5e7eb;
  --card:#fff;
  --line:#ddd;
  --shadow:0 4px 12px rgba(0,0,0,.08);
}

html,body{
  height:100%;
}

body{
  margin:0;
  font-family:"Segoe UI", Arial, sans-serif;
  line-height:1.35;
  background: var(--bg);

  /* mantener footer abajo */
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* header */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#fff;
  padding:15px 40px;
  background:var(--primary);
}

header .logo{
  display:flex;
  align-items:center;
  gap:15px;
}

header .logo img{
  width:80px;
}

header .logo h2{
  margin:0;
  font-size:1.5em;
}

nav ul{
  list-style:none;
  display:flex;
  gap:20px;
  margin:0;
  padding:0;
}

nav a{
  color:#fff;
  text-decoration:none;
  padding:8px 12px;
  border-radius:5px;
  font-weight:600;
  transition:background .3s;
}

nav a:hover{
  background:var(--brand);
}

/* contenedor principal */
.container{
  max-width:900px;
  margin:20px auto;
  padding:30px;
  background:var(--card);
  border-radius:8px;

  /* hace que el footer se quede abajo */
  flex:1;
}

.container h1{
  margin-top:0;
  margin-bottom:20px;
  color:#34495e;
  border-bottom:2px solid #ecf0f1;
  padding-bottom:12px;
  text-align:center;
}

/* formulario de pregunta */
form{
  display:flex;
  flex-direction:column;
  gap:20px;
}

label{
  font-weight:700;
  margin-bottom:8px;
  color:#555;
}

/* Inputs */
input[type="text"],
textarea{
  width:100%;
  padding:12px;
  border:1px solid #bdc3c7;
  border-radius:6px;
  font-size:1rem;
  background:#fff;
}

input:focus,
textarea:focus{
  border-color:#7f8c8d;
  outline:none ;
  box-shadow:0 0 4px rgba(127,140,141,.3);
}

/* Textarea */
textarea{
  resize:vertical;
  min-height:130px;
}

/* botón principal */
button[type="submit"]{
  background:var(--brand);
  color:#fff;
  padding:12px 25px;
  font-size:1rem;
  font-weight:700;
  border:none;
  border-radius:6px;
  cursor:pointer;
  width:180px;
  align-self:center;
  transition:background .3s ease;
}

button[type="submit"]:hover{
  background:var(--brand-dark);
}

/* tarjetas en lista */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:25px;
}

.card{
  background:#fff;
  border-radius:8px;
  padding:15px;
  box-shadow: var(--shadow);
}

.card h3{
  margin-top:0;
  color:#34495e;
}

.actions{
  display:flex;
  justify-content:space-between;
  margin-top:15px;
}

.actions a{
  padding:8px 12px;
  border-radius:6px;
  text-decoration:none;
  font-weight:bold;
  color:white;
}

.actions a:first-child{
  background:#1f6feb;
}

.actions .delete{
  background:#ef4444;
}

/* footer */
footer{
  background:var(--primary);
  color:#fff;
  padding:25px;
  text-align:center;

  /* mantenerlo abajo */
  margin-top:auto;
}

/* secciones FAQ colapsables */
.section-box {
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-box h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
  color: #1a202c;
}

/* tarjetas FAQ */
.faq-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-card h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: bold;
}

.faq-card p {
  margin-bottom: 15px;
  color: #333;
}

.faq-actions {
  display: flex;
  gap: 10px;
}

/* botón de accesibilidad */
#btnAccesibilidad {
  position: fixed;
  top: 100px;
  right: 15px;
  width: 65px;
  height: 65px;
  background-color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#btnAccesibilidad:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

#btnAccesibilidad img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

#menuAccesibilidad {
  position: fixed;
  top: 85px;
  right: 20px;
  width: 320px;
  height: 400px;
  border: none;
  border-radius: 12px;
  display: none;
  z-index: 9999;
  background: transparent;
}

