/* === ESTRUCTURA PRINCIPAL === */
.centrar {
  margin-top: 4%;
  line-height: auto;
  text-align: center;
}

.fondo {
  border-radius: 10px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}
.tab-container {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: transparent;
  padding: 20px 0;
}
.tab-container > mat-tab-group {
  width: 50%;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  align-items: center;
}


.content {
  margin: 0;
  padding: 10px 70px;
  font-weight: 500;
  font-size: 32px;
  color: white;
  font-family: "Serenity Medium";
}

/* === FORMULARIO === */
.centrar-form {
  margin-top: 3%;
  margin-bottom: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;

  }
.form-personalizar,
.form-personalizar-loader {
  background-color: white;
  box-shadow: rgba(13, 102, 204, 0.2) 0 0 10px 7px;
  padding: 40px;
}


.form {
  font-family: Roboto;
}

.fila-form {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.text {
  margin-left: 30px;
  font-size: 24px;
  width: 250px;
}

.input {
  width: 410px;
}

/* === SPINNER === */
mat-spinner,
.spinner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}


.divRes {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* === COLORES === */
.input-line {
  padding: 10px;
  border: 1px solid rgb(141, 141, 141);
}

.showColor {
  border-radius: 10px;
  height: 30px;
  width: 360px;
}

/* === COLOR PICKERS === */
.style1, .style2, .style3 {
  appearance: none;
  background-color: transparent;
  border: 1px solid rgb(119, 119, 119);
  cursor: pointer;
}

.style1 {
  height: 30px;
}

.style2,
.style3 {
  height: 40px;
}

.style1::-webkit-color-swatch,
.style2::-webkit-color-swatch,
.style3::-webkit-color-swatch,
.style1::-moz-color-swatch,
.style2::-moz-color-swatch,
.style3::-moz-color-swatch {
  border-radius: 5px;
  border: 1px solid rgb(119, 119, 119);
}

/* === DEGRADADO === */
.container {
  display: flex;
  width: 410px;
  height: 50px;
}

.tercio {
  flex-grow: 1;
  flex-basis: 0;
  margin: 0 5px;
}

.gradient {
  height: auto;
  width: 70%;
}

/* === BOTONES === */
.centrar-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.button-save,
.button-reset,
.button-cancel {
  border-radius: 5px;
  font-size: 16px;
  padding: 8px 15px;
  border: none;
  color: white;
  cursor: pointer;
  width: auto;
}

.button-save {
  background-color: #6699cd;
}

.button-save:hover {
  background-color: #5581ac;
}

.button-reset {
  background-color: #EC6830;
}

.button-reset:hover {
  background-color: #c75a2b;
}

.button-cancel {
  background-color: red;
}

.button-cancel:hover {
  background-color: rgb(204, 2, 2);
}

/* === IMÁGENES === */
input[type="file"] {
  display: none;
}

.img-preview {
  height: 100px;
  width: 250px;
  object-fit: contain;
  margin-top: 10px;
}

.fila {
  width: 410px;
  height: 100px;
}

/* === BOTONES PERSONALIZADOS === */
.custom-file-upload,
.custom-file-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  color: #f1f3f4;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  width: auto;
  min-width: 130px;
}

.custom-file-upload {
  background-color: #2196F3;
}

.custom-file-upload:hover {
  background-color: #0086f3;
}

.custom-file-change {
  background-color: #EC6830;
}

.custom-file-change:hover {
  background-color: #c75a2b;
}

/* === TEXTURAS === */
.grid-container {
  width: 410px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, auto);
  padding: 10px;
}

.grid-item {
  height: 65px;
  width: 65px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(146, 146, 146, 0.8);
  text-align: center;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.1);
}

.zoomed {
  transform: scale(1.1);
  box-shadow: -1px 1px 16px 0px rgb(0 0 0 / 74%);
}

/* Radio de textura con fondo */
.image-container {
  position: relative;
  width: 68px;
  height: 68px;
  transition: transform .2s;
}

.image-container:hover {
  transform: scale(1.1);
}

.image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* === RESPONSIVE === */
@media only screen and (max-width: 600px) {
  .centrar {
    width: 100%;
    margin-top: 5%;
    display: flex;
    justify-content: center;
  }

  .fondo {
    width: 85%;
  }

  .content {
    padding: 10px;
    font-size: 24px;
  }

  .centrar-form {
    margin-top: 50px;
  }

  .fila-form {
    flex-direction: column;
    width: auto;
  }

  .text {
    width: auto;
    margin-left: 0;
  }

  .input {
    width: auto;
    margin-left: 0;
  }

  .showColor {
    width: 170px;
  }

  .container {
    width: 180px;
  }

  .img-preview {
    width: 250px;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    width: 90%;
    gap: 5px;
    margin-left: 40px;
  }

}
