/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* ================= NAVBAR ================= */
.navbar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  height: 78px;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 30px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: #0052cc;
}

/* ================= HERO ================= */
.hero {
  height: 65vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("imagenes/hero.jpg") center / cover no-repeat;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Contenido del hero */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-logo {
  width: 300px;
  max-width: 85%;
  margin-bottom: 18px;
}

/* Botón */
.btn {
  padding: 10px 26px;
  background: rgba(1, 144, 180, 0.75);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ================= SECCIONES ================= */
.section {
  width: 92%;
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
}

.section h2 {
  margin-bottom: 10px;
  color: #04285f;
}

.section p {
  color: #444;
}

/* ================= CARDS ================= */
.cards {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 22px;
  width: 33%;
  cursor: pointer;
  transition: .25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
}

.card h3 {
  margin-bottom: 6px;
  color: #04285f;
}

/* Icono de la card */
.card-icon {
  width: 42px;
  margin: 12px auto;
  display: block;
  opacity: 0.85;
  transition: transform .25s ease, opacity .25s ease;
}

.card.active .card-icon {
  transform: scale(1.1);
  opacity: 1;
}

/* Texto desplegable */
.card .extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  color: #333;
  font-size: 15px;
}

.card.active .extra {
  max-height: 200px;
  margin-top: 10px;
}

/* ================= PROCESO ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.step {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
}

.step span {
  font-size: 28px;
  color: #0052cc;
  font-weight: bold;
}

/* ================= CTA ================= */
.cta {
  background: #01132e;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.btn-dark {
  background: #063a4e;
  color: #fff;
  padding: 14px 34px;
  border-radius: 8px;
  text-decoration: none;
}

/* ================= FOOTER ================= */
.footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .cards {
    flex-direction: column;
  }

  .card {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    width: 220px;
  }
}
