/* Estilo general */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(to bottom right, #e0f2ff, #f8fbff);
  color: #0B132B;
}

header {
  background: linear-gradient(90deg, #0B132B 0%, #1e3a8a 100%);
  padding: 2rem 1rem 2.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  height: 60px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-texto {
  text-align: center;
  flex: 1;
  min-width: 300px;
}

.header-texto h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.header-texto p {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  opacity: 0.95;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

nav ul li a {
  color: white;
  background: #1e3a8a;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background: #3346b2;
}

main.contenido {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 1.5rem;
}

.bloque {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.bloque.show {
  opacity: 1;
  transform: translateY(0);
}

.bloque:nth-child(even) {
  flex-direction: row-reverse;
}

.bloque-texto {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  text-align: left;
}

.bloque-texto h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  border-left: 5px solid #0EA5E9;
  padding-left: 12px;
  color: #0B132B;
}

.bloque-texto ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
  color: #374151;
}

.bloque-texto ul li {
  margin-bottom: 0.4rem;
}

.bloque-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
}

.referenc {
  width: 100%;
  max-width: 420px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: cover;
}

.main-footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #0B132B;
  color: #fff;
  font-size: 0.95rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-float .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  right: 60px;
  background: #24d736;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.bloque.invertido {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

    .bloque.invertido {
    flex-direction: column !important;
  }

  nav ul {
    justify-content: center;
  }

  .bloque {
    flex-direction: column !important;
  }

  .referenc {
    max-width: 100%;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float .tooltip {
    right: auto;
    left: -10px;
    bottom: 60px;
  }

  .header-texto h1 {
    font-size: 2rem;
  }

  .header-texto p {
    font-size: 1rem;
  }

}
