/*
* {
  outline: 1px solid red;
}
*/

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    background-color: #144A4A;
    color: white;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    font: bold 20px 'Calibri', sans-serif;
    cursor: pointer;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

nav a:hover {
    background-color: #555;
    border-radius: 5px;
}

.accesos {
    display: flex;
    gap: 15px;
    margin-right: 5px;
}

.accesos img {
    height: 40px;
    width: auto;
    cursor: pointer;
}

.accesos img:hover{
    background-color: #555;
    border-radius: 5px;
}

/*Ajustar la barra de navegación para pantallas de menor tamaño*/
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }

    .logo {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    nav {
        flex-basis: 100%;
        justify-content: center;
        margin-left: 10px;
    }

    nav a {
        padding: 10px 5px;
        /* font-size: 14px; */
    }

    .accesos {
        flex-basis: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .accesos img {
        height: 35px;
    }
}

/*MAIN---------------------------------------------------------------*/

main {
    padding: 0px;
    background-color: #f4f4f4;
    min-height: 70vh;
    margin: 0 auto;
    width: 100%;
}

main h1 {
    text-align: center;
    margin-top: 0px;
    font-size: 28px;
}

.seccion {
    background-color: #fff;
    padding: 10px 30px 20px 30px;
    border-radius: 10px;
}

.texto {
    font-size: 16px;
    margin-bottom: 10px;
}

main input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

main input::placeholder{
    color: #999;
}

.preguntas {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

.preguntas h1 {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #004040;
  margin-bottom: 20px;
}

.preguntas p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 16px;
}

/* Estilos de cada pregunta */
.faq {
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}

.faq-pregunta {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-size: 18px;
  padding: 10px;
  cursor: pointer;
  color: #004040;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-pregunta i {
  transition: transform 0.3s ease;
}

.faq-pregunta.activo i {
  transform: rotate(180deg);
}

.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 10px;
  font-size: 15px;
  color: #333;
}

.faq-respuesta ul {
  margin: 0;
  padding-left: 20px;
}

.faq-respuesta p {
  margin: 10px 0;
}