/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: sans-serif;
  color: #333;
  line-height: 1.5;
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url("images/fondo-escritorio.jpg");
}

/* Fondo móvil */
@media (max-width: 768px) {
  body {
    background-image: url("images/fondo-movil.jpg");
  }
}

/* BOTONES GENERALES (admin + formularios) */

/* Botón que abre el modal (Ingresar datos) */
.show-modal {
  font-size: 1.6rem;
  font-weight: 600;
  padding: 1.4rem 3.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;

  /* Estilo glass / moderno */
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);

  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;

  transition: background 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Botón de acción (enviar, base de datos, etc.) */
.send {
  padding: 1.2rem 3.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  border-radius: 999px;
  border: none;
  margin-top: 1rem;

  /* Degradado más vistoso */
  background: linear-gradient(135deg, #ff8a3c, #ffcc66);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);

  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: background 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease, filter 0.25s ease;
}

/* Estilo específico cuando los dos botones están juntos en el panel admin */
.boton_comercial .send,
.boton_comercial .show-modal {
  margin: 0 1rem;
}

/* Hovers bonitos */
.show-modal:hover,
.boton_comercial .send:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}

.show-modal:active,
.boton_comercial .send:active {
  transform: translateY(0);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.35);
  filter: brightness(0.98);
}

/* Cerrar modal */
.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 5rem;
  color: #ffffff;
  cursor: pointer;
  border: none;
  background: none;
}

/* TIPOGRAFÍA */
h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

p {
  font-size: 1.8rem;
}

/* ESTADO OCULTO */
.hidden {
  display: none;
}

/* MODAL — moderno y elegante */
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 520px;
  padding: 3.2rem 3.6rem;
  text-align: center;

  /* Frosted glass elegante */
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 3px 8px rgba(0, 0, 0, 0.15);

  z-index: 10;
  animation: modalIn 0.25s ease-out;
}

/* Título dentro del modal un poco más fino */
.modal h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #d6d6d6;
  margin-bottom: 2.4rem;
}
h2 {
  font-size: 2rem;
  font-weight: 200;
  color: #d6d6d6;}
 

/* Inputs dentro del modal un poquito más elegantes sin romper los demás */
.modal .input,
.modal .input_izq,
.modal .input_der {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.4rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal .input:focus,
.modal .input_izq:focus,
.modal .input_der:focus {
  outline: none;
  border-color: #777;
  background: #ffffff;
}

/* Animación suave al aparecer el modal */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -47%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

/* INPUTS (estilo general, fuera del modal también) */
.input,
.input_izq,
.input_der {
  padding: 1rem;
  border: 1px solid rgb(9, 97, 17);
  margin: 1rem 0;
}

.input {
  width: 100%;
  border-radius: 1.25rem;
}

.input_izq {
  width: 70%;
  border-radius: 1.25rem 0 0 1.25rem;
}

.input_der {
  width: 28%;
  border-radius: 0 1.25rem 1.25rem 0;
}

/* BOTÓN CARTA (ahora elegante como los otros) */
.boton_carta,
.boton_carta2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1.4rem 3.6rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff !important;
  border-radius: 999px;
  border: none;

  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  cursor: pointer;

  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    filter 0.25s ease, background 0.25s ease;
}

/* Carta principal  */
.boton_carta {
  top: 50%;
  background: linear-gradient(135deg, #fea330, #ff4900);
}

/* Segundo botón (si lo usas) */
.boton_carta2 {
  top: 58%;
  background: linear-gradient(135deg, #ff4b5c, #ff9966);
}

/* Hover estados */
.boton_carta:hover,
.boton_carta2:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}

.boton_carta:active,
.boton_carta2:active {
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.35);
  filter: brightness(0.98);
}

/* ALERTA */
.alert {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  padding: 1.6rem 15rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.25);
}

.alert--success {
  background-color: #20bf6b;
}

.hide-alert {
  top: -3rem;
}

/* RESPONSIVE MODAL */
@media (max-width: 480px) {
  .modal {
    width: 85%;
    max-width: 90%;
    padding: 2rem;
  }

  .show-modal,
  .send {
    width: 100%;
    justify-content: center;
  }

  .boton_comercial {
    flex-direction: column;
    align-items: center;
  }

  .boton_carta,
  .boton_carta2 {
    width: 80%;
    text-align: center;
  }
}

