/* Historia.css */
.historia-nosotros-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  font-family: sans-serif;
  color: #333;
  width: 100%;
  box-sizing: border-box;
}

.contenido-principal {
  display: flex;
  flex-direction: row;
  align-items: center; /* Evita que la imagen se estire verticalmente */
  width: 100%;
  gap: 60px; /* Espacio entre imagen y texto */
}

.imagen-izquierda {
  width: 40%;
  display:flex;
  justify-content: flex-start;
  height: auto;
  overflow: hidden;
}

.imagen-izquierda img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1; /* Mantiene la proporción cuadrada */
  object-fit: cover; /* Evita que la imagen se estire */
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
  transition: border-radius 0.5s ease-in-out;
}

.imagen-izquierda img:hover {
  border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
}

.texto-container {
  display: flex;
  flex-direction: column; /* Change to column to stack logo and text columns */
  flex: 1;  
  align-items: center; /* Center the logo horizontally within texto-container */
}

.Logo-container {
  width: auto;
  height: auto;
  margin-bottom: 20px; /* Space between logo and text columns */
}

.Logo-container img {
  display: block;
  max-width: 300px;
  height: auto;
  
}

.columnas-container {
  display: flex; /* Layout for the text columns */
  flex-direction: row;
  gap: 40px;
  width: 100%; /* Make the columns container take full width of texto-container */
}

.columna {
  flex: 0.1;
}

.columna.nosotros {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-mas-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding: 14px 28px;
  background-color: #8b0000;
  color: white;
  text-decoration: none;
  border-radius: 50px; /* Botón redondeado tipo píldora */
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-mas-info svg {
  transition: transform 0.3s ease;
}

.btn-mas-info:hover {
  background-color: #a00000;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
  color: white;
}

.btn-mas-info:hover svg {
  transform: translateX(5px);
}

.columna.historia {
  display: none;
}

.columna h2 {
  font-family: GeneralSans, sans-serif;
  font-weight: 700;
  font-size: 2em;
  margin-bottom: 10px;
  color: #222;
}

.columna p {
  font-family: GeneralSans, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 1.1em;
  color: #444;
}

/* For smaller screens (Mobile) */
@media (max-width: 768px) {
  .historia-nosotros-container {
    padding: 30px 15px; 
  }

  .contenido-principal {
    flex-direction: column;
    align-items: center;
    gap: 30px; 
  }

  .imagen-izquierda {
    width: 100%; 
    height: auto;
    max-height: 400px; 
    margin-bottom: 30px;
    display: flex;
    justify-content: center; 
    align-items: center;
  }

  .imagen-izquierda img {
    display: block;
    width: 100%; 
    height: auto;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }    

  .texto-container {
    flex-direction: column;
    padding: 0 20px; /* Padding para el texto */
    align-items: center; 
    width: 100%;
    box-sizing: border-box;
  }
  
  .Logo-container img {
    max-width: 200px; 
  }

  .columna h2 {
    font-size: 1.6em; 
  }

  .columna p {
    font-family: GeneralSans, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    font-size: 1em; 
    color: #444;
    text-align: center; 
  }

  .columnas-container {
    flex-direction: column; 
    width: 100%; 
    gap: 20px;
  }

  .columna.nosotros {
    flex: 1;
    align-items: center; 
  }
  
  .btn-mas-info {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 0.9em;
  }
}