#preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease;
    }
    
    #preloader img {
        max-width: 300px; /* Ajusta según el tamaño de tu logo */
        width: auto;
        height: auto;
        animation: fadeIn 1s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
    }
    
    body.loaded #preloader {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Ocultar el contenido inicialmente */
    body:not(.loaded) > *:not(#preloader) {
        visibility: hidden;
    }

    @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
    /* Reset and base */
    * {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #fff;
      color: #000;
    }
    /* Header */
    header {
      background-color: #222222;
      padding: 2rem 1rem;
      text-align: center;
    }
    header h1 {
      font-family: "Poppins", sans-serif; /* Aqui cambiar el tipo de letra */
      font-size: 55px; /* Aqui mover el px para hacerlo mas grande */
      font-weight: 900;
      line-height: 38px;
      letter-spacing: 0.1em;
      color: #fff;
      margin: 0;
      text-transform: uppercase;
    }
    /* Container */
    main {
      max-width: 75%; /* Aqui mover el porcentaje o en px */
      margin: 2rem auto;
      padding: 0 0.5rem 2rem; /* Reduced horizontal padding */
    }
    /* Title and description container */
    .intro {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }
    @media (min-width: 768px) {
      .intro {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
      }
    }
    .intro h2 {
      font-family: "Poppins", sans-serif;
      font-weight: 700;
      font-size: 24px;
      line-height: 22px;
      letter-spacing: 0.05em;
      margin: 0;
      flex: 1 1 33%;
    }
    .intro h2 br {
      display: none;
    }
    @media (max-width: 767px) {
      .intro h2 br {
        display: block;
      }
    }
    .intro p {
      font-size: 18px;
      line-height: 25px;
      margin: 0;
      flex: 1 1 65%;
    }
    /* Grid for blog cards */
    .grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    @media (min-width: 640px) {
      .grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (min-width: 1024px) {
      .grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    /* Blog card */
    article {
      display: flex;
      flex-direction: column;
      /* For mobile smaller width */
      max-width: 100%;
    }
    @media (max-width: 639px) {
      article {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
      }
    }
    article img {
      width: 100%;
      height: 220px;
      margin-bottom: 0.75rem;
      border-radius: 15px;
      object-fit: cover;
    }
    .meta {
      font-size: 14px;
      line-height: 16px;
      margin-bottom: 0.25rem;
      color:rgb(255, 9, 9);
    }
    .meta span {
      font-weight: 800;
    }
    .meta span + span {
      font-weight: 700;
      margin: 0 0.25rem;
    }
    .title {
      font-size: 18px;
      line-height: 24px;
      font-weight: 700;
      margin: 0 0 1rem 0;
    }
    /* Button */
    button {
      background-color:rgb(15, 182, 15);
      color: #fff;
      font-size: 20px;
      line-height: 14px;
      font-weight: 700;
      border: none;
      border-radius: 9999px;
      padding: 0.5rem 2rem;
      width: max-content;
      cursor: pointer;
      transition: transform 0.3s ease, background-color 0.3s ease;
      outline-offset: 2px;
    }
    button:focus-visible {
      outline: 2px solid #094a09;
      outline-offset: 4px;
    }
    button:hover {
      background-color: #094a09;
      transform: scale(1.1);
    }
    button:active {
      transform: scale(0.95);
    }
    /* Comments */
    .comments-section {
      border-top: 1px solid #cbd5e1;
      padding-top: 2rem;
    }
    .comments-section h3 {
      margin-bottom: 1.5rem;
    }
    form.comment-form {
      margin-bottom: 2rem;
    }
    .form-row {
      display: flex;
      align-items: flex-start;
      margin-bottom: 1rem;
    }
    .form-row label {
      width: 80px;
      font-weight: 600;
      color: #475569;
      padding-top: 0.5rem;
    }
    .form-row input,
    .form-row textarea {
      flex: 1;
      padding: 0.5rem 0.75rem;
      border: 1px solid #cbd5e1;
      border-radius: 0.5rem;
      font-size: 1rem;
      font-family: inherit;
      resize: none;
      transition: border-color 0.3s ease;
    }
    .form-row input:focus,
    .form-row textarea:focus {
      outline: none;
      border-color: #4f46e5;
      box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
    }
    .form-row textarea {
      min-height: 80px;
    }
    .form-actions {
      text-align: right;
    }
    .form-actions button {
      background-color:rgb(0, 85, 7);
      color: white;
      border: none;
      padding: 0.5rem 1.25rem;
      border-radius: 0.5rem;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    .form-actions button:hover {
      background-color:rgb(4, 131, 0);
    }

.btn-verde {
  background-color: #164d19;       
  color: rgb(255, 255, 255);
  font-weight: bold;               
  border: none;
  padding: 10px 20px;              
  border-radius: 25px;             
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-verde:hover {
  background-color: #209227;       
}
