/* ==========================================
   ESTILOS BASE GENERALES
========================================== */
body {
  font-family: 'Poppins', sans-serif;
  padding-top: 50px;
  background-color: #f9fbfd;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5 {
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.9;
}

/* ==========================================
   NAVBAR
========================================== */
.navbar {
  background: rgba(0, 123, 255, 0.9);
  backdrop-filter: blur(6px);
  transition: background 0.4s ease;
}

.navbar-brand i {
  color: #fff;
  margin-right: 5px;
}

.nav-link {
  color: #eaf3ff !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #fff !important;
  text-shadow: 0 0 5px rgba(255,255,255,0.4);
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
  background: linear-gradient(to right, rgba(0,123,255,0.85), rgba(0,200,255,0.7)),
              url('../img/bg-water.png') center/cover no-repeat;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.1);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero img {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ==========================================
   BOTONES
========================================== */
.btn {
  transition: all 0.3s ease;
  border-radius: 50px;
  font-weight: 500;
}

.btn-primary, .btn-success {
  border-radius: 50px;
}

.btn-primary {
  background: linear-gradient(90deg, #007bff, #0062cc);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #0062cc, #004fa3);
}

.btn-success {
  background: linear-gradient(90deg, #28a745, #218838);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(90deg, #218838, #1e7e34);
}

/* ==========================================
   TARJETAS Y PLANES
========================================== */
.card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.card-header {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ==========================================
   FONDOS Y SECCIONES
========================================== */
.bg-gradient-primary {
  background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
}

.bg-light {
  background-color: #f8fafc !important;
}

/* ==========================================
   FORMULARIO DE CONTACTO
========================================== */
form {
  border-radius: 15px;
}

form .form-control {
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid #d0e3ff;
  transition: all 0.3s ease;
}

form .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0,123,255,0.3);
}

form button {
  font-size: 1rem;
}

/* ==========================================
   FOOTER
========================================== */
footer {
  font-size: 0.9rem;
  background: linear-gradient(90deg, #007bff, #0056b3);
}

/* ==========================================
   BOTÓN WHATSAPP FLOTANTE
========================================== */
.btn-success.position-fixed {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    background-position: center top;
  }
  .hero img {
    width: 75%;
  }
  .navbar {
    background: #007bff;
  }
  .btn-success.position-fixed {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}
