body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f8f8;
    color: #333;
  }

  header {
    background: linear-gradient(to right, #0d47a1, #1976d2, #64b5f6);
    color: white;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  header img {
    height: 100px;
  }
  
  .header-text {
    text-align: center;
    flex: 1;
  }
  
  .header-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    margin: 0;
  }
  
  nav {
    background: linear-gradient(to right, #002f6c, #0d47a1, #1565c0);
    display: flex;
    justify-content: center;
    position: relative;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: inline-block;
    position: relative;
  }
  
  nav a:hover {
    background-color: rgba(255,255,255,0.15);
  }
  
  /* Dropdown */
  .dropdown {
    position: relative;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, #0d47a1, #1565c0);
    min-width: 200px;
    z-index: 1;
  }
  
  .dropdown-content a {
    display: block;
    padding: 12px 20px;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }

  .banner {
    background: url('/imagen/foro.png') no-repeat center;
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
  }

  .banner::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .banner h2 {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    text-align: center;
  }

  .container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
  }

  h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #5a2a27;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
  }

  label {
    font-weight: bold;
  }

  input[type="text"], select, textarea {
    width: 100%;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }

  textarea {
    resize: vertical;
  }

  button {
    background: #3c8dff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 200px;
    align-self: flex-start;
  }

  button:hover {
    background: #0415aa;
  }

  .opiniones {
    margin-top: 30px;
  }

  .opinion {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
  }

  .opinion .nombre {
    font-weight: bold;
    color: #004080;
  }

  .opinion .estrellas {
    color: #ffcc00;
    font-size: 16px;
  }

  .opinion .detalle {
    font-size: 14px;
    margin-top: 5px;
  }

  .filtro {
    margin: 20px 0;
  }

  .filtro select {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }

  footer {
    background: linear-gradient(to right, #002f6c, #0d47a1, #1976d2);
    color: white;
    text-align: center;
    padding: 30px 10px;
  }

  @media (max-width: 768px) {
  html, body { overflow-x: hidden; width: 100%; }
  header { flex-direction: column !important; text-align: center; padding: 15px 10px !important; }
  .header-left { flex-direction: column; margin-right: 0 !important; gap: 10px; }
  header img { height: 70px; }
  .header-text h1 { font-size: 1.5em !important; }
  nav { flex-direction: column !important; align-items: stretch !important; width: 100% !important; display: flex !important; }
  nav a, .dropdown > a { display: block !important; width: 100% !important; box-sizing: border-box !important; padding: 12px 20px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left !important; }
  .dropdown { width: 100%; }
  .dropdown-content { position: static !important; width: 100% !important; box-shadow: none !important; background-color: rgba(0, 40, 80, 0.15) !important; }
  .dropdown-content a { padding-left: 40px !important; }
  
  /* Ajustes del contenedor de foros */
  .container { margin: 15px 12px !important; padding: 15px !important; width: auto !important; }
  button { width: 100% !important; align-self: stretch !important; } /* Botón de enviar al ancho del celular */
}
