/* ======== ESTILOS GENERALES ======== */
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background-color: #fff;
  color: #000;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ======== HEADER ======== */
header {
  text-align: center;
  padding: 3rem 1rem 1rem;
  border-bottom: 2px solid #f47a0b;
  animation: fadeInDown 1.2s ease;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: transform 0.4s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 55px;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}

header h1 {
  font-size: 2rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slogan {
  font-size: 1rem;
  color: #f47a0b;
  margin-top: 0.5rem;
  opacity: 0.9;
  animation: fadeIn 2s ease;
}

/* ======== SECCIÓN PRINCIPAL ======== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ======== TARJETAS ======== */
.card {
  background-color: #000;
  color: #fff;
  padding: 2.2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Efecto naranja al pasar el cursor */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(244, 122, 11, 0.2) 50%, transparent 100%);
  transition: all 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  border-color: #f47a0b;
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card h2 {
  color: #f47a0b;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.card:hover h2 {
  color: #fff;
}

.card p {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ======== FOOTER ======== */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #000;
  color: #fff;
  font-size: 0.9rem;
  margin-top: 2rem;
  letter-spacing: 0.5px;
}

/* ======== ANIMACIONES ======== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
