body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #066EB7;
    padding: 10px 30px;
}

.logo {
    height: 50px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 275px);
    grid-template-rows: repeat(2, 275px);
    gap: 30px;
    justify-content: end;
    margin: 50px 30px 0 auto;
}


.card {
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background-color: transparent; 
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    position: relative;
}

.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('/img/fondo01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contenido-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 30px;
}

.texto-bienvenida {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
    animation: fadeInSlide 1s ease-out both;
    background-color: rgba(100, 100, 100, 0.25);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-width: 400px;
}


.texto-bienvenida h1 {
    font-size: 36px;
    margin: 0;
    font-weight: 300;
    color: #066EB7;
}

.texto-bienvenida h2 {
    font-size: 48px;
    margin: 10px 0 0;
    color: #066EB7;
    font-weight: 600;
}

.subtitulo {
    font-size: 20px;
    margin-top: 30px;
    color: white;
    font-weight: 400;
}

.lista-servicios {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    color: white;
    font-size: 18px;
    line-height: 1.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lista-servicios li {
    display: flex;
    align-items: center;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-formulario {
    width: 100px;
    display: block;
    margin: 0 auto 20px auto;
}

.img-formulario {
    width: 60px;
    display: block;
    margin: 0 auto 20px auto;
    opacity: 0.8;
}

.paso {
    display: none;
}

.modal-content input[type="text"],
.modal-content input[type="month"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-content button:hover {
    background-color: #0056b3;
}

.logo-formulario {
    width: 80px;
    display: block;
    margin: 0 auto 20px auto;
}

/* Animación suave de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animar-formulario {
    animation: fadeInUp 0.5s ease forwards;
}

/* Estilos de formulario */
.paso {
    display: none;
}

.modal-content input[type="text"],
.modal-content input[type="month"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-content button:hover {
    background-color: #0056b3;
}

.logo-formulario {
    width: 80px;
    display: block;
    margin: 0 auto 20px auto;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-top: 3px solid #007BFF;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fuente moderna para la pasarela */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

.pasarela-font {
    font-family: 'Inter', sans-serif;
}

/* Spinner de carga */
.spinner {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-top: 3px solid #007BFF;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Formulario input */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="month"] {
    width: 100%;
    padding: 8px;
    margin: 6px 0 12px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Botones */
.modal-content button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.modal-content button:hover {
    background-color: #0056b3;
}

#vencimiento::placeholder {
    color: #999;
    font-style: italic;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Estilos para pantallas menores a 768px (teléfonos) */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 150px);
    justify-content: center;
    margin: 30px auto;
  }

  .card {
    width: 90%;
    height: 150px;
    margin: 0 auto;
  }

  .card img {
    object-fit: contain;
  }

  .texto-bienvenida {
    padding: 20px;
    text-align: center;
    margin: 0 auto;
  }

  .texto-bienvenida h1 {
    font-size: 24px;
  }

  .texto-bienvenida h2 {
    font-size: 20px;
  }

  .texto-bienvenida ul {
    padding-left: 20px;
    font-size: 16px;
  }

  .modal-content {
    width: 90%;
    max-width: 350px;
  }

  #formulario1 input,
  #formulario1 button {
    width: 100%;
  }

  .paso input {
    width: 100%;
    font-size: 16px;
  }

  .paso button {
    width: 100%;
    font-size: 18px;
  }
}
