/* Tipografía y base */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f1f5f9; /* fondo gris claro moderno */
  color: #1f2937;
  line-height: 1.6;
}

/* Encabezado */
header {
  background: #3b82f6;
  color: white;
  text-align: center;
  padding: 3em 1em;
  position: relative;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.logo.grande {
  width: 100px;
}

.logo.grande.xl {
  width: 300px; /* 3 veces más grande */
}

.icono-ia {
  width: 60px;
  height: auto;
  animation: rotateIcon 8s linear infinite;
}

@keyframes rotateIcon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

header p {
  margin-top: 1em;
  font-size: 1.2em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contenido */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em 1em;
}

/* Tarjetas */
.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 0;
}

.card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.card h2 {
  margin-top: 0;
  color: #111827;
}

.card-somos {
  background: #e0f2fe; /* azul clarito */
  margin-bottom: 2em;
}

.centered {
  text-align: center;
}

/* Columnas */
.grid-2cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
}

/* Imágenes centradas */
.image-wrapper {
  text-align: center;
}

.card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}

/* Botones centrados */
.button-wrapper {
  text-align: center;
  margin-top: 1em;
}

.button {
  display: inline-block;
  padding: 0.75em 1.5em;
  background: #2563eb;
  color: white;
  border: none;
  font-size: 1em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
  background: #1d4ed8;
  transform: scale(1.07);
}

.button.alt {
  background: #10b981;
}

.button.alt:hover {
  background: #059669;
}

/* Cita estilo tarjeta */
blockquote {
  background: #f9fafb;
  border-left: 6px solid #3b82f6;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  border-radius: 12px;
  font-style: italic;
  color: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

blockquote:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Footer */
footer {
  text-align: center;
  padding: 2em 1em;
  background: #e2e8f0;
  font-size: 0.9em;
  color: #334155;
}

/* Animaciones */
.animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards ease;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2cols {
    grid-template-columns: 1fr;
  }

  .logo.grande.xl {
    width: 180px;
  }

  .icono-ia {
    width: 40px;
  }

  .card img {
    max-width: 100%;
  }
}
