/* === RESET Y ESTRUCTURA BASE === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.servicios {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #1C1C1C;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

footer {
  flex-shrink: 0;
}

/* === TIPOGRAFÍA GENERAL === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  color: #044F8B;
}

p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #1C1C1C;
  font-size: 1.1rem;
}

b {
  color: #044F8B;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* === HEADER === */
.header-wrapper {
  position: relative;
  z-index: 1;
}

.header-bg {
  background-color: #044F8B;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.header-bg h1 {
  color: white;
  font-size: 3rem;
}

.header-bg p {
  color: white;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 500;
}

/* === NAVBAR === */
.custom-navbar {
  background-color: #6BA6DA;
}

.custom-navbar .navbar-brand img {
  height: 40px;
}

.custom-navbar .nav-link {
  color: #044F8B;
  font-weight: 500;
}

.custom-navbar .nav-link:hover {
  color: #0175BE;
}

/* === CARRITO === */
#cart-button {
  background-color: transparent;
  border-color: #044F8B;
  color: #044F8B;
}

#cart-button:hover {
  background-color: #0175BE;
  color: white;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

body.cart-open #cart-dropdown {
  display: block !important;
}

body.cart-open .cart-overlay {
  display: block;
}

.total-carrito .titulo-total {
  color: #044F8B;
}

.total-carrito .cantidad-total {
  color: black;
  font-weight: bold;
}

/* === TARJETAS DE PACK === */
.card {
  background-color: white;
  border: 2px solid #f39c12;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card:hover {
  transform: scale(1.05);
}

.card-body {
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.card-img-placeholder {
  height: 150px;
  background-color: #D7E7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #044F8B;
}

.card-title {
  font-size: 1.25rem;
  color: #0175BE;
}

.card-text {
  color: #044F8B;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.precio {
  font-size: 1.2rem;
  font-weight: bold;
  color: #F39C12;
}

/* === SECCIÓN DESCRIPTIVA === */
.paquete-info {
  align-items: center;
}

.paquete-info img {
  max-width: 85%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.paquete-texto h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  color: #044F8B;
}

.paquete-texto p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #1C1C1C;
}

.bloque-pack {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}

.bloque-pack p {
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #1C1C1C;
}

/* === LISTA PERSONALIZADA === */
.paquete-texto ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.paquete-texto li {
  position: relative;
  padding-left: 2.2rem;
  font-size: 1.25rem;
  color: #1C1C1C;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.paquete-texto li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url('../imagen/lista.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* === VENTAJAS DE PACK === */
.ventajas-pack {
  margin: 3rem 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: #044F8B;
}

.ventajas-pack .fila {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.ventajas-pack .item {
  font-size: 1.25rem;
  font-weight: 500;
  background-color: #D7E7FA;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  min-width: 250px;
  max-width: 320px;
  flex: 1 1 auto;
}

.fila-superior {
  margin-bottom: 2.5rem;
}

.fila-inferior {
  justify-content: space-evenly;
  gap: 6rem;
}

/* === BOTONES === */
.btn-primary {
  background-color: #f39c12;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #c67800;
}

.btn-primary:active {
  background-color: #044F8B !important;
  transform: scale(0.97);
  transition: none;
}

.btn-outline-success {
  border: 2px solid #198754;
  color: #198754;
  background-color: white;
  font-weight: 500;
}

.btn-outline-success:hover {
  background-color: #198754;
  color: white;
}

/* === FOOTER === */
.footer {
  background-color: #044F8B;
  color: white;
}

.footer a {
  color: #6BA6DA;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.footer p {
  color: white;
}

/* === REDES SOCIALES === */
.social-icons {
  margin-top: 15px;
}

.social-icon img {
  width: 30px;
  height: 30px;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.social-icon img:hover {
  transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 576px) {
  .header-bg h1 {
    font-size: 2rem;
  }

  .header-bg p {
    font-size: 1.2rem;
  }

  .paquete-texto h2 {
    font-size: 1.8rem;
  }

  .paquete-texto p,
  .bloque-pack p {
    font-size: 1.1rem;
    text-align: justify;
  }

  .bloque-pack {
    padding: 1rem;
  }

  .ventajas-pack .item {
    max-width: 90%;
    font-size: 1rem;
    padding: 1.2rem;
  }

  .btn-primary {
    width: 100%;
    padding: 12px;
  }

  .paquete-info img {
    max-width: 100%;
  }
}

@media (min-width: 1400px) {
  .bloque-pack p,
  .paquete-texto p {
    font-size: 1.8rem;
    line-height: 1.9;
  }

  .ventajas-pack .item {
    font-size: 1.4rem;
    padding: 2rem;
  }

  .header-bg h1 {
    font-size: 3.5rem;
  }

  .header-bg p {
    font-size: 2rem;
  }
}
