/* Google Fonts */
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* Cursor */
.cursor{
    position: relative;
    width: 24em;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 30px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);    
}
/* Animation */
.typewriter-animation {
  animation: 
    typewriter 5s steps(50) 1s 1 normal both, 
    blinkingCursor 500ms steps(50) infinite normal;
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkingCursor{
  from { border-right-color: rgba(255,255,255,.75); }
  to { border-right-color: transparent; }
}


body {
  margin: 0;
  font-family: "Cascadia Code", sans-serif;
  background-color: #f5f7fa;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background-color: #0077b6;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empresas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 90%;
  max-width: 1000px;
  margin: 50px 0;
}

.card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.logo {
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.btn {
  background-color: #0077b6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
}

.btn:hover {
  background-color: #005f87;
}

footer {
  margin-top: 30px;
  padding: 10px;
  font-size: 0.9rem;
  color: #666;
}


@media (max-width: 768px) {
  header {
    font-size: 1.5rem;
    padding: 1.5rem;
  }

  .empresas {
    grid-template-columns: 1fr; /* una tarjeta por fila en celulares */
    gap: 15px;
  }

  .card {
    padding: 15px;
  }

  .logo {
    height: 50px;
  }
}
