html, body {
    height: 100%;
  }

  body {
    display: flex;
    flex-direction: column;
  
  }

  .principal {
    margin-top: 7rem;
  }
  main.principal {
    flex: 1;
  }

  .identidad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 4rem 2rem;
    gap: 2rem;
  }

  .identidad__texto h2 {
    color: var(--gris-oscuro);
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .identidad__texto ul {
    list-style: disc;
    padding-left: 3rem;
    color: var(--gris-oscuro);
    font-size: 1.2rem;
  }

  .identidad__texto li {
    margin-bottom: 1rem;
  }

  .identidad__carrusel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 100vh;
    max-height: 600px;
  }

  .identidad__imagenes {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

  .identidad__imagenes img {
    width: 100%;
    height: 100vh;
    max-height: 600px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 2;
  }

  .flecha.izquierda {
    left: 0;
  }

  .flecha.derecha {
    right: 0;
  }
  
  @media (max-width: 768px) {
  .identidad {
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .identidad__texto {
    order: 1;
    width: 100%;
  }

  .identidad__texto h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .identidad__texto ul {
    font-size: 1rem;
    padding-left: 1.5rem;
  }

  .identidad__carrusel {
    order: 2;
    width: 100%;
    height: auto;
    max-height: 300px;
    margin-top: 1.5rem;
  }

  .identidad__imagenes {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

  .identidad__imagenes img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .flecha {
    padding: 0.5rem;
    font-size: 1.5rem;
  }
}


