/* ============================ */
/* style.css - Help Desk Responsive */
/* ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  background-color: #f5f5f5;
  color: #333;
  background-image: url('../img/gobierno.jpeg'); 
  background-size: cover; 
  background-position: center; 
  background-attachment: fixed; 
}


/* Links e imágenes */
a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Contenedor */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(90deg, #682b2c, #5e2728);
  color: white;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 60px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Logo */
.logo img {
  height: 70px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

nav a.btn-primary {
  font-size: 1rem;
  padding: 8px 15px;
}

/* Botón de menú hamburguesa */
.btn-sidebar {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Nav */
nav a.btn-primary {
  font-size: 12px; /* Botón más pequeño */
  padding: 5px 10px;
}

/* ================= SIDEBAR ========== */
aside {
  width: 220px;
  background: #d9dfe6;
  height: 100vh;
  padding: 20px;
  position: fixed;
  top: 60px;
  left: 0;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

aside h3 {
  color: #0e1011;
  font-size: 0.9rem;
  margin-top: 20px;
}

aside ul {
  list-style: none;
  padding-left: 0;
}

aside li {
  margin: 10px 0;
}

aside a {
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
}

aside i {
  margin-right: 8px;
}

aside.active {
  transform: translateX(0);
}


/*regreso*/

.btn-icon {
  display: inline-block;
  text-decoration: none;
}

.icono-salida {
  width: 50px;   /* tamaño pequeño */
  height: 50px;
  vertical-align: middle;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icono-salida:hover {
  transform: scale(1.1);
  opacity: 0.8;
  cursor: pointer;
}


/* ================= MAIN CONTENT ================= */
main.main-dashboard {
  margin-left: 220px;
  padding: 40px;
  width: calc(100% - 220px);
  min-height: calc(100vh - 60px);
  background-color: #f5f7fa;
  transition: margin-left 0.3s ease, padding 0.3s ease;
}

/* ================= HERO SECTION ================= */
.hero {
  margin-top: 72px;
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: linear-gradient(to bottom, #ffffff, #f3f4f6);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ================= FEATURES CARDS ================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.icon-card {
  font-size: 2.5rem;
  color: #d2ae42;
  margin-bottom: 10px;
}

.card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

/* ================= BOTONES (MANTENIDOS) ================= */
.btn-primary,
.btn-secondary {
  background-color: #ebe8e8;
  color: rgb(19, 17, 17);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #bcbfc7;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
}

/* ================= FAQ ================= */
.faq-section {
  margin-top: 40px;
  margin-bottom: 50px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.faq-list {
  max-width: 800px;
  margin: auto;
}

.faq-item {
  background: rgb(240, 236, 236);
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h4 {
  color: #333;
  font-size: 1rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: #666;
}


/* ================= FOOTER ================= */
footer {
  background: linear-gradient(90deg, #dfe0e2, #a99e9d);
  color: black;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* ================= FAQ Y FORMULARIO EN LÍNEA ================= */
.faq-form-container {
  display: flex;
  justify-content: space-between;
  gap: 30px; 
  align-items: flex-start;
  margin-top: 60px; 
}


/* ================= FAQ ================= */
.faq-section {
  margin-top: 40px;
  margin-bottom: 50px;
  padding: 20px;
  background-color: #ffdd57; /* Color de fondo amarillo para destacar */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Sombra para crear profundidad */
  border: 8px solid #385d40; /* Borde de color dorado para más énfasis */
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
}

.faq-list {
  max-width: 800px;
  margin: auto;
}

.faq-item {
  background: #ffffff; /* Fondo blanco para las preguntas */
  padding: 15px 20px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 5px solid #913d3d; /* Borde izquierdo dorado */
  transition: transform 0.3s ease; /* Efecto de hover */
}

.faq-item:hover {
  transform: translateY(-10px); /* Efecto al pasar el mouse */
}

.faq-item h4 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item p {
  font-size: 0.9rem;
  color: #666;
}



/* Estilos para el formulario */
.ticket-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 35%; 
  background: rgb(226, 226, 226);
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
  margin-right: 80px; 
  border: 8px solid #5b1c1c; /* Borde de color dorado para más énfasis */
}

.ticket-form h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.ticket-form label {
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.ticket-form input,
.ticket-form textarea,
.ticket-form select {
  display: block;
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  box-sizing: border-box;
  resize: vertical;
  max-height: 200px;
  overflow-y: auto;
}

.ticket-form button {
  margin-top: 18px;
  padding: 10px 16px;
  font-size: 0.95rem;
  background: linear-gradient(90deg, #dc6264, #521c1d);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 180px;
  align-items: center;
  transition: background-color 0.3s ease;
}

.ticket-form button:hover {
  background: linear-gradient(to right, #5c2526, #dc6264);
}

@media (max-width: 768px) {
  .faq-form-container {
    flex-direction: column;
    gap: 15px;
  }

  .ticket-form {
    width: 100%;
  }

  .faq-list {
    max-width: 100%;
  }
}


/* ================= FAQ Y FORMULARIO EN LÍNEA ================= */
.faq-form-container {
  display: flex;
  justify-content: space-between;
  gap: 20px; 
  align-items: flex-start;
  margin-top: 60px; 
  margin-left: 20px;  
  margin-right: 20px; 
}

.faq-section {
  margin-left: 20px; 
  margin-right: 20px; 
}


/* ================= EFECTOS EXTRA PARA FORMULARIO ================= */

/* Fondo dinámico con degradado animado */
.ticket-form {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  transition: all 0.5s ease;
  animation: backgroundShift 6s ease-in-out infinite alternate;
  border: 3px solid #913d3d;
}

@keyframes backgroundShift {
  0% {
    background: linear-gradient(135deg, #fdf2f2, #fef9c3);
  }
  50% {
    background: linear-gradient(135deg, #ffe5e5, #fff8dc);
  }
  100% {
    background: linear-gradient(135deg, #f3e8ff, #fff3cd);
  }
}

/* Efecto hover brillante */
.ticket-form:hover {
  box-shadow: 0 0 55px rgba(220, 98, 100, 0.8), 0 0 40px rgba(82, 28, 29, 0.6);
  transform: translateY(-5px);
}

/* Encabezado con texto animado */
.ticket-form h1 {
  background: linear-gradient(90deg, #000000, #ffe601, #4f2222);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s linear infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faq-section h2{
  background: linear-gradient(90deg, #f8f8f8, #000000, #682828);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s linear infinite;
  text-transform: uppercase;
  letter-spacing: 1px; 
}

@keyframes textShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Campos del formulario con bordes brillantes al enfocar */
.ticket-form input:focus,
.ticket-form textarea:focus,
.ticket-form select:focus {
  outline: none;
  border-color: #dc6264;
  box-shadow: 0 0 10px rgba(220, 98, 100, 0.6);
  transition: 0.3s ease;
}

/* Botón con efecto de pulso y brillo */
.ticket-form button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(90deg, #dc6264, #521c1d);
  animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(220, 98, 100, 0.4); }
  100% { box-shadow: 0 0 25px rgba(220, 98, 100, 0.9); }
}

/* Brillo que pasa por encima del botón */
.ticket-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.918), rgba(255,255,255,0));
  transform: skewX(-20deg);
  transition: 0.5s;
  z-index: 2;
}

.ticket-form button:hover::before {
  left: 130%;
}

/* Placeholder animado al enfocar */
.ticket-form input::placeholder,
.ticket-form textarea::placeholder {
  color: #888;
  transition: color 0.3s ease;
}

.ticket-form input:focus::placeholder,
.ticket-form textarea:focus::placeholder {
  color: #dc6264;
}

/* Animación de entrada del formulario */
@keyframes formAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ticket-form {
  animation: formAppear 1s ease forwards;
}

/* Efecto sutil en los labels */
.ticket-form label {
  position: relative;
  display: inline-block;
  color: #333;
  transition: color 0.3s ease;
}

.ticket-form label:hover {
  color: #dc6264;
}
