:root {
      --verde-oscuro: #2e4a1f;
      --verde-claro:  #7fa97a;
      --marrón-tierra: #a47551;
      --beige-suave:  #f5f0e1;
      --texto-principal: #333333;
    }

    /* ------------ RESET BÁSICO ------------ */
    body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      background-color: var(--beige-suave);
      color: var(--texto-principal);
      line-height: 1.6;
    }


    h2 {
      color: #333;
      margin-top: 30px;
      text-align: center;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    a {
      color: var(--verde-oscuro);
      text-decoration: none;
      transition: color 0.2s ease;
    }
    a:hover {
      color: var(--verde-claro);
    }

    /* ===================== HEADER ===================== */
    header {
      background-color: var(--verde-oscuro);
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 1rem;
      flex-wrap: wrap;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .logo-container {
      display: flex;
      align-items: center;
    }
    .logo {
      height: 40px;
      margin-right: 0.5rem;
    }
    header h1 {
      margin: 0;
      font-size: 1.5rem;
    }
    nav ul {
      list-style: none;
      display: flex;
      gap: 1rem;
      margin: 0;
      padding: 0;
    }
    nav ul li a {
      color: white;
      text-decoration: none;
      font-weight: bold;
    }
    nav ul li a:hover {
      text-decoration: underline;
    }
    .user-info {
      display: none;
      align-items: center;
    }
    #usernameDisplay {
      margin-right: 0.5rem;
    }

    /* ===================== SECCIONES PRINCIPALES ===================== */
    main {
      max-width: 1000px;
      margin: 20px auto;
      padding: 0 1rem;
    }
    .section-content {
      margin-bottom: 20px;
    }

    /* ===================== GRID DE TARJETAS (OPCIONAL) ===================== */
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }
    .card {
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      overflow: hidden;
    }
    .card img {
  width: 100%;
  height: 200px;        /* Altura fija para todas */
  object-fit: cover;    /* Corta y ajusta la imagen para cubrir el espacio sin deformar */
  display: block;
  border-bottom: 1px solid #ddd; /* opcional, para separarlo del contenido */
  border-radius: 8px 8px 0 0;    /* para que coincida con las esquinas redondeadas de la tarjeta */
}

    .card-content {
      padding: 15px;
    }
    .card-content h3 {
      margin: 0 0 10px;
      color: var(--verde-oscuro);
      font-size: 1.2rem;
    }
    .card-content p {
      margin: 0;
      font-size: 0.95rem;
      color: #555;
    }

    /* ===================== FOOTER ===================== */
    footer {
      background-color: var(--verde-oscuro);
      color: white;
      text-align: center;
      padding: 1rem 0;
      margin-top: 2rem;
    }
    footer nav ul {
      list-style: none;
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin: 0;
      padding: 0;
    }
    footer nav ul li a {
      color: white;
      text-decoration: none;
      font-size: 0.9rem;
    }
    footer nav ul li a:hover {
      text-decoration: underline;
    }
    
  
   .back-link-button {
    background-color: var(--verde-oscuro);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px var(--sombra-oscura);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }
  .back-link-button:hover {
    background-color: var(--verde-claro);
    transform: translateY(-2px);
  }
  .back-link-button:focus {
    outline: 2px solid var(--verde-claro);
    outline-offset: 2px;
  }

