@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  --azul-vv: #0050B4;
  --verde-vv: #13E1AA;
  --blanco: #ffffff;
  --texto: #222;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color:  #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
}

#divEscritorio {
  display: block;
}
#divMovil {
  display: none;
}

#logo {
  height: auto;
  max-height: 40px;
  width: auto;
}

/* === FONDO CON FORMULARIO A LA DERECHA (ESCRITORIO) === */
.bg-imagen {
  background: url("../assets/images/portada2025.png") no-repeat center center;
  background-size: cover;
  width: 100%;
   min-height: auto;
  height: auto;
  display: flex;
  justify-content: flex-end; /* Aquí lo mandamos a la derecha */
  align-items: center;       /* Centrado vertical */
  padding-right: 5%;
  box-sizing: border-box;
  position: relative;
}

.card, .formulario-card {
 width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 16px;
  color: white;
  box-shadow: 0 0 30px rgba(0, 80, 180, 0.35);
  box-sizing: border-box;
  overflow: hidden;
  max-height: none;
overflow: visible;
  /* 👇 Esto sube el formulario */
  margin-top: -20px;
  margin-bottom: 40px; /* 👈 Esto crea espacio con el footer */
}

.card-header,
.formulario-card h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0050B4;
  background: #ffffff;
  padding: 1rem;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

label {
  color: var(--texto);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem; /* Espacio entre label y input */
  margin-top: 1.5rem;     /* Espacio desde el input anterior */
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  font-size: 1rem;
  padding: 0.8rem;
  width: 100%;
  margin-bottom: 0.2rem;  /* Menor para no duplicar espacio con el label siguiente */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
}

.form-check {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #333;
}

.btn-submit {
  background-color: var(--verde-vv);
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  width: 100%;
  margin-top: 1.5rem;
  border: none;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background-color: #0bc598;
}

div .error span {
  color: red;
  font-size: 0.9rem;
}

/* === FOOTER === */
.desktop-footer,
.mobile-footer {
  background-color: #333;
  color: #fff;
  padding: 20px;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.desktop-footer {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}

.mobile-footer {
  display: none;
}

/* === NAVBAR === */
.navbar-brand img#logo {
  max-height: 55px;
  height: auto;
}

.navbar {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  min-height: 60px;
}

.navbar-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto);
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: var(--azul-vv);
}

/* === RESPONSIVE MOVIL === */

@media screen and (mmin-width:400px) {
  #divEscritorio {
    display: none !important;
  }

  #divMovil {
    display: block !important;
  }

  .bg-imagen {
    background: url("../assets/images/portada2025.png") no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .card, .formulario-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    font-size: 0.95rem;
    margin: 0 auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
  }

  body, html {
    overflow: hidden;
  }
}

  .desktop-footer {
    position: relative;
    background-color: #ffffff;
    color: white;
    padding: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
  }

    .mobile-footer {
    display: block;
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
  }

  .social-icons-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .social-icons-line span {
    font-weight: 500;
    margin-right: 0.5rem;
  }

  .social-icons-line a i {
    font-size: 22px;
    color: #0050B4;
  }

  .social-icons-line a:hover i {
    transform: scale(1.2);
  }

@media only screen and (min-width: 768px) {
  .mobile-footer {
    display: none;
  }
}
