/* === ESTILOS GENERALES (Para la Web) === */
.libro-seccion {
  font-family: "Arial", sans-serif;
  background-color: #f4f7f6;
  color: #333;
  padding: 40px 0;
}

.container-libro {
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header-libro {
  border: 2px solid #000;
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.header-libro h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 1px;
}

.header-libro h2 {
  margin: 5px 0 0 0;
  font-size: 18px;
  font-weight: normal;
}

.grid-proveedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 1px solid #000;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #fafafa;
}

fieldset {
  border: 1px solid #000;
  margin-bottom: 20px;
  padding: 15px;
}

legend {
  font-weight: bold;
  padding: 0 10px;
  font-size: 14px;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.form-group-inline {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

label {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #999;
  font-family: inherit;
}

.radio-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 15px;
}

.radio-container input {
  margin: 0;
}

.legales {
  font-size: 11px;
  color: #555;
  line-height: 1.4;
  margin-top: 20px;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
}

/* Zona de botones en la Web */
.acciones {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.btn {
  padding: 12px 25px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-enviar {
  background-color: #27ae60;
  color: white;
}

.btn-enviar:hover {
  background-color: #219653;
}

.btn-imprimir {
  background-color: #2f80ed;
  color: white;
}

.btn-imprimir:hover {
  background-color: #1b62c4;
}

/* Firmas ocultas en la web, solo aparecen al imprimir */
.seccion-firmas {
  display: none;
}

/* Estilos para páginas legales */
.legal-content {
  font-family: "Arial", sans-serif;
  color: #333;
  line-height: 1.8;
}
.legal-content h1 {
  font-size: 24px;
  color: #0e1122;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #ff4d4d;
  padding-bottom: 10px;
  text-transform: uppercase;
}
.legal-content h2 {
  font-size: 18px;
  color: #0e1122;
  margin-top: 25px;
  margin-bottom: 10px;
  border-left: 3px solid #ff4d4d;
  padding-left: 10px;
}
.legal-content p {
  margin-bottom: 15px;
  text-align: justify;
}
.legal-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}
.legal-content li {
  margin-bottom: 8px;
}

/* === `@media print`: ESTILOS EXCLUSIVOS PARA IMPRESIÓN === */
@media print {
  body {
    background-color: #fff;
    padding: 0;
  }

  header,
  footer,
  .floating-whatsapp {
    display: none !important;
  }

  .container-libro {
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 100%;
  }

  /* Escondemos los botones de enviar e imprimir en el papel */
  .acciones {
    display: none;
  }

  /* Hacemos visibles las firmas que exige la ley en físico */
  .seccion-firmas {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 50px;
  }

  .firma-box {
    flex: 1;
    border-top: 1px solid #000;
    text-align: center;
    padding-top: 8px;
    font-size: 12px;
    font-weight: bold;
  }

  input,
  textarea {
    border: none !important;
    border-bottom: 1px dotted #000 !important;
    background: transparent !important;
    padding: 2px !important;
  }
}
