@font-face {
  font-family: "Averia Serif Libre";
  src: url(../AveriaSerif-Bold.ttf);
}

* {
  box-sizing: border-box;
  font-family: "Averia Serif Libre";
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #f5ebd2;
  min-height: 100vh;
}

/* ---------------- HEADER ---------------- */
header {
  width: 100%;
  background-color: #c81e2d;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

/* ----------- NAVBAR ----------- */
.div_navbar {
  width: 100%;
  background-color: #c81e2d;
  padding: 1.5rem;
}

.navbar {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5ebd2;
  border-radius: 2rem;
  padding: 1.5rem 2rem;
  color: #503214;
  position: relative;
}

.nombre_sitio {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  z-index: 101;
}

.nombre_sitio img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.nombre_sitio p {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.2;
}

/* Menú Hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #503214;
  padding: 0.5rem;
  z-index: 101;
  position: relative;
}

.menu-toggle::before {
  content: "☰";
}

.menu-toggle.active::before {
  content: "✕";
}

/* Opciones de navegación */
.opciones {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}

.opciones a {
  text-decoration: none;
}

.opciones a p {
  color: #503214;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.opciones a p:hover {
  color: #c81e2d;
}

.preguntas {
  white-space: nowrap;
  cursor: pointer;
}

.preguntas p {
  font-size: 1.1rem;
  color: #503214;
  transition: color 0.3s ease;
}

.preguntas p:hover {
  color: #c81e2d;
}

/* ---------------- BIENVENIDA ---------------- */
.bienvenida {
  text-align: center;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.titulo {
  font-size: 4rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.subtitulo {
  font-size: 1.6rem;
  color: white;
  line-height: 1.5;
  max-width: 650px;
  margin: 0 auto;
}

/* ---------------- BOTONES SESIÓN ---------------- */
.sesion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2rem 3rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.inicio,
.registro {
  border-radius: 3rem;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  min-width: 160px;
  flex: 1;
  text-align: center;
}

.inicio {
  background-color: #7d121b;
  color: white;
}

.inicio:hover {
  background-color: #640f16;
}

.registro {
  background-color: #fe2639;
  color: white;
}

.registro:hover {
  background-color: #e42333;
}

/* ---------------- MAIN ---------------- */
main {
  background-color: #f5ebd2;
  padding: 2rem 1rem;
}

.div_opiniones {
  text-align: center;
  padding: 0 1rem;
}

.opiniones {
  font-size: 2.5rem;
  margin: 2rem 0;
  color: #503214;
}

.opinion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ejemplo {
  background-color: rgb(224, 215, 186);
  border-radius: 2rem;
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.foto_usuario {
  width: 100%;
  display: flex;
  justify-content: center;
}

.foto_usuario img {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
}

.text_opinion {
  font-size: 1rem;
  color: rgb(60, 60, 60);
  line-height: 1.5;
  word-break: break-word;
}

.text_opinion p {
  margin: 0;
}

.nombre_usuario {
  font-size: 1.1rem;
  font-weight: bold;
  color: #503214;
}

.nombre_usuario p {
  margin: 0;
}

/* ---------------- PREGUNTAS FRECUENTES ---------------- */
.preguntas_frecuentes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1rem;
}

.texto_principal {
  font-size: 2.5rem;
  text-align: center;
  color: #503214;
}

.pregunta {
  background-color: rgb(224, 215, 186);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.text_pregunta {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #503214;
  line-height: 1.3;
}

.respuesta_pregunta {
  font-size: 1.3rem;
  color: rgb(60, 60, 60);
  line-height: 1.5;
}

/* ---------------- FOOTER ---------------- */
footer {
  background-color: #f5ebd2;
  padding: 3rem 1rem;
  text-align: center;
}

.redes_sociales {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.text_redes {
  font-size: 2.5rem;
  color: #503214;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.red_social {
  width: 2rem;
  height: 2rem;
  color: #503214;
  transition: transform 0.2s ease, color 0.3s ease;
  cursor: pointer;
}

.red_social:hover {
  color: #c81e2d;
  transform: scale(1.2);
}

/* ============================================ */
/*           MEDIA QUERIES - RESPONSIVE        */
/* ============================================ */

/* Tablets y Pantallas Medianas */
@media (max-width: 1024px) {
  .navbar {
    max-width: 100%;
    padding: 1.2rem 1.5rem;
  }

  .titulo {
    font-size: 3.5rem;
  }

  .subtitulo {
    font-size: 1.4rem;
  }

  .opinion {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
}

/* Tablets Pequeñas - ACTIVAR MENÚ HAMBURGUESA */
@media (max-width: 850px) {
  .enlace_aplicacion{
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .div_navbar {
    padding: 1rem;
  }

  .navbar {
    padding: 1rem 1.2rem;
    flex-wrap: wrap;
  }

  .nombre_sitio {
    flex: 0 0 auto;
    max-width: 60%;
  }

  .nombre_sitio img {
    width: 70px;
    height: 70px;
  }

  .nombre_sitio p {
    font-size: 1.1rem;
    word-wrap: break-word;
  }

  /* Menú desplegable */
  .opciones {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #f5ebd2;
    border-radius: 0 0 20px 20px;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    order: 3;
  }

  .opciones.show {
    display: flex;
  }

  .opciones a p {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .preguntas {
    display: none;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .preguntas.show {
    display: block;
  }

  .bienvenida {
    padding: 2.5rem 1.5rem;
  }

  .titulo {
    font-size: 3rem;
  }

  .subtitulo {
    font-size: 1.3rem;
  }

  .sesion {
    gap: 1rem;
    padding: 1.5rem 1rem 2.5rem;
  }

  .inicio,
  .registro {
    flex: 1 1 45%;
    min-width: 140px;
  }

  .opiniones {
    font-size: 2.2rem;
  }

  .opinion {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .texto_principal {
    font-size: 2.2rem;
  }

  .text_pregunta {
    font-size: 1.5rem;
  }

  .respuesta_pregunta {
    font-size: 1.1rem;
  }

  .text_redes {
    font-size: 2.2rem;
  }
}

/* Móviles Grandes */
@media (max-width: 640px) {
  .div_navbar {
    padding: 0.75rem 0.5rem;
  }

  .navbar {
    padding: 1rem 0.75rem;
    border-radius: 1.5rem;
  }

  .nombre_sitio {
    gap: 0.5rem;
    max-width: 65%;
  }

  .nombre_sitio img {
    width: 60px;
    height: 60px;
  }

  .nombre_sitio p {
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .menu-toggle {
    font-size: 1.8rem;
  }

  .bienvenida {
    padding: 2rem 1rem;
  }

  .titulo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .subtitulo {
    font-size: 1.1rem;
  }

  .sesion {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem 2rem;
  }

  .inicio,
  .registro {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    padding: 1rem 2rem;
  }

  main {
    padding: 1.5rem 0.75rem;
  }

  .opiniones {
    font-size: 2rem;
    margin: 1.5rem 0;
  }

  .opinion {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .ejemplo {
    padding: 1.5rem;
  }

  .foto_usuario img {
    width: 8rem;
    height: 8rem;
  }

  .text_opinion {
    font-size: 0.95rem;
  }

  .nombre_usuario {
    font-size: 1.05rem;
  }

  .preguntas_frecuentes {
    padding: 2.5rem 1rem;
    gap: 1.5rem;
  }

  .texto_principal {
    font-size: 2rem;
  }

  .pregunta {
    padding: 1.5rem 1.2rem;
  }

  .text_pregunta {
    font-size: 1.3rem;
  }

  .respuesta_pregunta {
    font-size: 1rem;
  }

  footer {
    padding: 2.5rem 1rem;
  }

  .text_redes {
    font-size: 2rem;
  }

  .redes {
    gap: 1.2rem;
  }

  .red_social {
    width: 1.8rem;
    height: 1.8rem;
  }
}

/* Móviles Medianos */
@media (max-width: 480px) {
  .div_navbar {
    padding: 0.5rem;
  }

  .navbar {
    padding: 0.85rem 0.7rem;
  }

  .nombre_sitio {
    max-width: 70%;
  }

  .nombre_sitio img {
    width: 56px;
    height: 56px;
  }

  .nombre_sitio p {
    font-size: 0.9rem;
  }

  .menu-toggle {
    font-size: 1.75rem;
  }

  .bienvenida {
    padding: 1.75rem 1rem;
  }

  .titulo {
    font-size: 2.2rem;
  }

  .subtitulo {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .sesion {
    padding: 1.25rem 0.75rem 1.75rem;
  }

  .inicio,
  .registro {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
  }

  .opiniones {
    font-size: 1.8rem;
  }

  .ejemplo {
    padding: 1.25rem;
  }

  .foto_usuario img {
    width: 7rem;
    height: 7rem;
  }

  .text_opinion {
    font-size: 0.9rem;
  }

  .nombre_usuario {
    font-size: 1rem;
  }

  .preguntas_frecuentes {
    padding: 2rem 0.75rem;
  }

  .texto_principal {
    font-size: 1.8rem;
  }

  .pregunta {
    padding: 1.25rem 1rem;
  }

  .text_pregunta {
    font-size: 1.2rem;
  }

  .respuesta_pregunta {
    font-size: 0.95rem;
  }

  footer {
    padding: 2rem 0.75rem;
  }

  .text_redes {
    font-size: 1.8rem;
  }

  .redes {
    gap: 1rem;
  }

  .red_social {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Móviles Pequeños */
@media (max-width: 360px) {
  .navbar {
    padding: 0.75rem 0.6rem;
  }

  .nombre_sitio {
    gap: 0.4rem;
    max-width: 70%;
  }

  .nombre_sitio img {
    width: 50px;
    height: 50px;
  }

  .nombre_sitio p {
    font-size: 0.8rem;
    line-height: 1.05;
  }

  .menu-toggle {
    font-size: 1.6rem;
  }

  .titulo {
    font-size: 1.9rem;
  }

  .subtitulo {
    font-size: 0.9rem;
  }

  .inicio,
  .registro {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .foto_usuario img {
    width: 6.5rem;
    height: 6.5rem;
  }

  .text_opinion {
    font-size: 0.85rem;
  }

  .nombre_usuario {
    font-size: 0.95rem;
  }

  .texto_principal {
    font-size: 1.6rem;
  }

  .text_pregunta {
    font-size: 1.1rem;
  }

  .respuesta_pregunta {
    font-size: 0.9rem;
  }

  .text_redes {
    font-size: 1.6rem;
  }
}

/* Fix para elementos que pueden causar overflow */
img {
  max-width: 100%;
  height: auto;
}

.container,
.form-container,
.body_login,
.body_registro {
  max-width: 100%;
  box-sizing: border-box;
}

/* Asegurar que ningún elemento cause scroll horizontal */
header, main, footer {
  width: 100%;
}