* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  border-block-color: #0003ac;
}

.header {
  background-color:rgb(255, 255, 255);
  padding: 10px 20px;
  color:#0003ac;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo */
.logo img {
  height: 60px;
}

/* Menú */
.nav-links,
.nav-icons {
  list-style: none;
  display: flex;
  gap: 15px;
  /* align-items: center; */
}

.nav-links a,
.nav-icons a {
  text-decoration: none;
  color: #0003ac;
  font-size: 1.8rem;
  /* display: flex;
  align-items: center; */
  gap: 5px;
}

.nav-links .icon {
  font-size: 2rem;
}

/* Oculta iconos en tablet y desktop */
.nav-icons {
  display: none;
}


.servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f7f7f7;
}

.card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 300px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card .icono {
  font-size: 40px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #004080;
}

.card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 15px;
}

.card .btn {
  text-decoration: none;
  background-color: #004080;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-block;
  font-weight: bold;
}


.subscripciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f4f4f4;
}

.card-sub {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  flex: 1 1 calc(100% - 40px);
  max-width: 300px;
  transition: transform 0.3s ease;
}

.card-sub:hover {
  transform: translateY(-5px);
}

.card-sub .tipo {
  font-weight: bold;
  color: #004080;
  font-size: 1rem;
  margin-bottom: 10px;
  display: block;
}

.card-sub img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;  /* ⬅️ Cambiado de "cover" a "contain" */
  border-radius: 8px;
  margin-bottom: 15px;
}

.card-sub .precio {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 15px;
}

.btn-comprar {
  padding: 10px 20px;
  background-color: #004080;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.btn-comprar:hover {
  background-color: #0066cc;
  text-decoration: none;
}

.currency-select {
    width:100%;
    padding: 5px;
    margin: 5px auto;
    border-radius: 5px;
    text-align: center;
}
.currency-select ul li {
    display: inline-block;
    list-style-type: none;
}
.currency-select ul li a {
    text-decoration: none;
    color: #0003ac;
    padding: 5px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.currency-select ul li a:hover {
    background-color: #f0f0f0;
    color: #0003ac;
}
.currency-select ul li a:active {
    background-color: #0003ac;
    color: #f0f0f0;
}

    .form-compra {
      max-width: 600px;
      margin: 30px auto;
      background: #fff;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    .form-compra article {
        padding: 10px;
    }
    .form-compra h2 {
      color: #004080;
      margin-bottom: 10px;
    }
    .form-compra p {
        color: #666;
        margin-bottom: 20px;
    }
    .form-compra input[type="checkbox"]{
      width: 20px;
      height: 20px;
      color: #ddddff;
      border: 5px solid #004080;
      border-radius: 10px;
    }
    .form-group {
      margin-bottom: 15px;
      display: flex;
      flex-direction: column;
    }

    .form-group label {
      margin-bottom: 5px;
      font-weight: bold;
    }

    .form-group input,
    .form-group select {
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 1rem;
    }

    .cantidad-controls {
      display: flex;
      gap: 10px;
      text-align: center;
    }

    .cantidad-controls button {
      padding: 8px 15px;
      background-color: #004080;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .form-buttons {
      display: flex;
      justify-content: space-between;
      gap: 10px;
    }

    .form-buttons button {
      flex: 1;
      padding: 10px;
      font-size: 1rem;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    button.limpiar { background-color: #999; color: white; }
    button.whatsapp { background-color: #25d366; color: white; }

.footer {
  background-color: #002f5f;
  color: white;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Secciones */
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  flex: 2;
}

.footer-section {
  min-width: 140px;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  border-bottom: 2px solid #ffffff50;
  padding-bottom: 4px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: white;
}

/* Logo y redes sociales */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex: 1;
  min-width: 180px;
  margin-top: 20px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  font-size: 24px;
  color: #ccc;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: white;
}


/* MÓVILES: mostrar solo iconos */
@media (max-width: 419px) {
  .nav-links {
    display: none;
  }

  .nav-icons {
    display: flex;
  }

  .logo {
    order: 2;
  }

  .nav-icons {
    order: 1;
  }
    .servicios {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 90%;
  }
  
.currency-select {
    width:100%;
    border: 2px solid #dddddd;
    padding: 5px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}
.currency-select ul li {
    display: inline-block;
    list-style-type: none;
}
.currency-select ul li a {
    text-decoration: none;
    color: #0003ac;
    padding: 5px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.currency-select ul li a:hover {
    background-color: #f0f0f0;
    color: #0003ac;
}
.currency-select ul li a:active {
    background-color: #0003ac;
    color: #f0f0f0;
}

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    margin-top: 30px;
  }
}

/* TABLET: mostrar icono + texto */
@media (min-width: 420px) and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-icons {
    display: flex;
  }

  .logo {
    order: 2;
  }

  .nav-icons {
    order: 1;
  }
    .servicios {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 90%;
  }

.form-compra {
      max-width: 420px;
      margin: 30px auto;
      background: #fff;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .card-sub {
    flex: 1 1 calc(50% - 40px);
  }
  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    margin-top: 30px;
  }
}

/* DESKTOP: igual a tablet */
@media (min-width: 769px) {

  .card-sub {
    flex: 1 1 calc(25% - 40px);
  }
  .nav-links {
    display: flex;
  }

  .nav-icons {
    display: none;
  }

  .nav-links .icon {
    display: inline;
  }
  
}