body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
}

header {
  background-image: url("a3.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 600px 0 0px 0;
}

header h1 {
  background-color: rgba(0, 0, 0, 0);
  padding: 5px;
  display: inline-block;
  border-radius: 100px;
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 5.5em;
  color: rgb(58, 58, 59);
  font-family: "Times New Roman", serif;
  font-weight: 700;
}

nav {
  background-color: #343a40;
  color: white;
  padding: 15px 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline;
  margin: 0 20px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #5a6268;
}

.container {
  width: 95%;
  margin: 30px auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.section {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  color: #007bff;
  margin-bottom: 20px;
}

.section ul {
  list-style-type: disc;
  margin-left: 20px;
}

.servicio-detalle {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.header-content img {
  max-width: 80px;
  height: auto;
  margin-left: 20px;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  color: #ffffff;
  z-index: 1;
  margin-top: -170px;
}

.header-content h1,
.header-content h2,
.header-content h3 {
  margin: 0;
  animation: fadeIn 2s ease-in-out;
}

.header-content h2,
.header-content h3 {
  animation: fadeIn 2s ease-in-out 1s;
}

.header-title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-title h0 {
  font-size: 2rem;
  font-weight: bold;
  padding-top: 30px;
  color: blue;
}

.header-wrapper {
  position: relative;
  width: 100%;
}

.header-wrapper img {
  filter: none;
}

.curves {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0078d7;
  overflow: hidden;
  z-index: -3;
}

.curve,
.curve2,
.curve3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -3;
}

.curve {
  height: 80px;
  background: #0056a0;
  border-top-left-radius: 90% 30px;
  border-top-right-radius: 90% 40px;
}

.curve2 {
  height: 65px;
  background: red;
  border-top-left-radius: 90% 20px;
  border-top-right-radius: 90% 30px;
}

.curve3 {
  height: 55px;
  background: white;
  border-top-left-radius: 50% 20px;
  border-top-right-radius: 50% 20px;
}

.image-slide.active {
  opacity: 1;
}

.image-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.image-container img {
  width: 150px;
  height: auto;
  border-radius: 10px;
}

main {
  flex: 1; 
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

footer {
  background-color: #0078D7;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: white;
  width: 100%;
  height: 165px;
}


.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.social-item {
  text-align: center;
  margin: 0;
}

.social-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
}

.social-name {
  font-size: 12px;
  margin: 2px 0;
}

.social-image img {
  width: 40px;
  height: 40px;
  margin: 0;
}

@keyframes slideUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 400px;
  max-width: 80%;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.5s ease-out;
}

#mensaje {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

.close {
  float: right;
  font-size: 25px;
  cursor: pointer;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close:hover {
  color: #e74c3c;
}

input[type="date"] {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
}

textarea:focus,
input[type="date"]:focus {
  border-color: #3498db;
  outline: none;
}

#guardarComunicado {
  background-color: #3498db;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

#guardarComunicado:hover {
  background-color: #2980b9;
}

h6 {
  font-size: 18px;
  color: #2c3e50;
  font-weight: bold;
  margin-bottom: 15px;
  width: auto;
}

#comunicadoActivo {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#comunicadoActivo h2 {
  color: #333;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.8em;
}

#comunicadoComunicado {
  text-align: left;
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

#comunicadoActivo > div {
  position: relative;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.769);
}

#siguienteComunicado {
  background-color: #3498db;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

#siguienteComunicado:hover {
  background-color: #2980b9;
}

.btn-custom {
  background-color: #4c5caf;
  color: white;
  font-size: 18px;
  padding: 12px 30px;
  border-radius: 25px;
  border: 2px solid #4c57af;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.btn-custom:hover {
  background-color: transparent;
  color: #4c8caf;
  border: 2px solid #4c95af;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  #autoridadesModal .item {
    flex: 1 1 100%;
    max-width: 90%;
  }
}

#autoridadesModal .modal-dialog.custom-modal-dialog {
  width: 70%; 
  max-width: 80%; 
  margin-left: auto; 
  margin-right: auto; 
  animation: fadeIn 0.3s ease-in-out; 
}

#autoridadesModal .modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
}

#autoridadesModal .modal-body {
  text-align: center;
  padding: 10px;
}

.modal-header {
  background-color: rgba(76, 175, 80, 0);
  color: rgb(0, 0, 0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

#autoridadesModal h4 {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  color: #0056a0;
  margin-bottom: 10px;
}

#autoridadesModal .item {
  flex: 1 1 250px;
  max-width: 300px;
  background: #f8f9fa00;
  padding: 15px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
  text-align: center;
}

#autoridadesModal .item img {
  width: 100px;
  height: auto;
  margin: 10px auto;
  border-radius: 50%;
  border: 2px solid #0056a0;
}

#autoridadesModal .direccion,
#autoridadesModal .trabajosocial,
#autoridadesModal .psicopedagogia,
#autoridadesModal .pasantes,
#autoridadesModal .psicologia {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.seccion-autoridades h4,
.seccion-coordinadores h4,
.seccion-psicopedagogia h4,
.seccion-pasantes h4,
.seccion-psicologia h4 {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #0056a0;
  font-weight: bold;
}

.seccion-autoridades,
.seccion-coordinadores,
.seccion-psicopedagogia,
.seccion-pasantes,
.seccion-psicologia {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.item {
  flex: 1 1 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  background: #f8f9fa;
  padding: 15px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.item img {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #0056a0;
}

@media (max-width: 768px) {
  .item {
    flex: 1 1 100%;
    max-width: 90%;
  }
}

#passwordModal input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}

#passwordModal button {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.accessibility-menu {
  position: fixed;
  top: 280px;
  right: 10px;
  z-index: 1000;
}

#toggleAccessibility {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#toggleAccessibility img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

#accessibilityOptions {
  width: 200px;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  top: 180px;
  right: 50px;
  margin-right: 10px;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: top 0.3s ease-in-out;
}

.accessibility-menu {
  position: fixed !important;
  top: 280px;
  right: 10px;
  z-index: 1000;
  cursor: move;
}

#toggleAccessibility {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

}

#toggleAccessibility img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}


#accessibilityOptions {
  width: 200px;
  position: fixed;
  top: 180px;
  right: 50px;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#accessibilityOptions.show {
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 1;
  visibility: visible;
}

#accessibilityOptions button {
  width: 100%;
  padding: 8px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 3px;
  text-align: left;
}

#accessibilityOptions button:hover {
  background: #0056b3;
}

.magnifier {
  zoom: 1.5;
}

.hidden {
  display: none;
}


.high-contrast img {
  filter: invert(100%) !important;
}

.large-text {
  font-size: 1.5em;
}

.highlight-links a {
  background-color: yellow !important;
  color: black !important;
  font-weight: bold;
  padding: 2px 5px;
}

/* ====== DISEÑO RESPONSIVO DEL NAV EN MÓVIL ====== */
/* Nav oculto en móvil inicialmente */
body.mobile nav {
  display: none;
  /* Otros estilos que ya tienes */
}

/* Cuando tenga clase 'show', se muestra */
body.mobile nav.show {
  display: block;
  /* Mantén estilos móviles que pasamos antes */
  margin-top: 50px;
  padding: 20px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

body.mobile nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

body.mobile nav li {
  display: block;
  margin: 0;
}

body.mobile nav a {
  display: block;
  background-color: #ffffff10;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s ease;
}

body.mobile nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

body.mobile .form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 110px;
  padding: 0 60px 50px;
  width: 100%;
  box-sizing: border-box;
}

body.mobile .form-container h5 {
  color: #000000;
  font-size: 68px;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-in-out;
  text-align: center;
}

body.mobile {
  padding-top: 1px;
}

#menuToggle {
  transition: background-color 0.3s ease;
}

#menuToggle:hover {
  background-color: #0056b3;
}