/* ================================
   ESTILO GENERAL DEL SITIO
================================ */

body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================
   HERO PRINCIPAL (imagen superior)
================================ */

.hero {
  background-image: url("img/encabezado.png"); /* ✅ ruta corregida */
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  position: relative;
  color: white;
  text-align: center;
}

/* capa oscura para mejorar lectura */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* ================================
   CONTENEDOR PRINCIPAL
================================ */

.main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ================================
   TARJETAS
================================ */

.card {
  border-radius: 12px;
  overflow: hidden;
  transition: all .3s ease;
}

/* efecto hover */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

/* tamaño uniforme de imágenes */
.card img {
  height: 180px;
  object-fit: cover;
}

/* ================================
   BOTONES
================================ */

.btn {
  transition: all .3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

/* ================================
   INPUTS Y TEXTAREA
================================ */

input, textarea {
  transition: all .3s ease;
}

input:focus, textarea:focus {
  box-shadow: 0 0 8px rgba(13, 110, 253, .4);
  border-color: #0d6efd;
}

/* ================================
   FOOTER
================================ */

footer {
  margin-top: auto;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  .card {
    margin-bottom: 20px;
  }

  .hero {
    padding: 80px 20px;
  }
}