html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #eef6ff;
  color: #0d2e66;
  overflow-x: hidden;
}

/* =========================
   HEADER
==========================*/
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
   background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(13, 46, 102, 0.12);
}

.navbar {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0c3f7f;
  letter-spacing: 1px;
  
}

.logo img {
  width: 33%;
  padding: 4px;
}

.menu {
  position: absolute;
  top: 90px;
  right: 5%;
  width: 260px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: 0.4s ease;
  z-index: 999;
}

.menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu a {
  color: #0d3e81;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.menu a:hover {
  color: #1b6fd3;
}

/* =========================
   HAMBURGUESA
==========================*/
.menu-toggle {
  width: 45px;
  height: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  background: #0f4274;
  border-radius: 10px;
  transition: 0.3s;
}

/* =========================
   HERO
==========================*/
.hero {
  position: relative;
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  max-width: 900px;
  z-index: 5;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  color: #fff;
}

.hero button {
  padding: 16px 38px;
  border: none;
  background: #2368d1;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50px;
  transition: 0.3s;
  opacity: 0;
}

.hero button:hover {
  transform: scale(1.08);
  background: #1b56b8;
  box-shadow: 0 0 20px rgba(35, 104, 209, 0.35);
}

/* =========================
   SERVICIOS
==========================*/
.services {
  padding: 120px 10%;
  background: #eef6ff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 70px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(35, 104, 209, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.4s;
  cursor: pointer;
  transform: translateY(50px);
  opacity: 0;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(35, 104, 209, 0.18);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.4s;
}

.card:hover img {
  transform: scale(1.08);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #0d3f7e;
}

.card-content p {
  color: #4a5c7c;
  line-height: 1.7;
}

/* =========================
   EQUIPO
==========================*/
.team {
  padding: 120px 10%;
  background: #f3f8ff;
  text-align: center;
  color: #0f3e78;
}

.team .section-title {
  color: #1d5bb6;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
}

.member {
  width: 280px;
  transition: 0.4s;
  opacity: 0;
  transform: translateY(40px);
}

.member img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
}

.member h3 {
  color: #0b3d78;
}

.member:hover {
  transform: translateY(-10px);
}

/* =========================
   CONTACTO
==========================*/
.contact {
  padding: 120px 10%;
  background: #f8fbff;
  text-align: center;
}

.contact p {
  margin-top: 20px;
  color: #4e688f;
  line-height: 1.8;
}

.contact-button {
  margin-top: 40px;
  display: inline-block;
  padding: 15px 35px;
  background: #1d5bd0;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.contact-button:hover {
  transform: scale(1.05);
  background: #164aad;
}

.contact h3 {
  margin-top: 30px;
  font-weight: 400;
  font-size: 1.2rem;
}

/* =========================
   FOOTER
==========================*/
footer {
  padding: 30px;
  text-align: center;
  background: #0d2e55;
  color: #d8e4ff;
  font-size: 0.9rem;
}

/* =========================
   SLIDE (HERO SLIDER)
==========================*/
.slide {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: top 1.2s ease-in-out;
}

.slide.active {
  top: 0;
  z-index: 2;
}

.slide.prev {
  top: -100%;
}

/* =========================
   RESPONSIVE
==========================*/
@media (max-width: 1024px) {
  .hero {
    height: 100vh;
    min-height: 700px;
  }

  .hero-content {
    width: 100%;
    padding: 40px 25px;
  }

  .hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .menu {
    gap: 15px;
  }

  .menu a {
    font-size: 0.9rem;
  }

  .hero {
    height: 100vh;
    min-height: 650px;
  }

  .hero-content {
    width: 100%;
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .hero-content button {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
}
