@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
:root {
  --font-primary: 'Contrail One', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-logo-original: 'Contrail One', cursive;
  --color-text-light: #1c1e21;
  --color-text-subtle-light: #555;
  --color-text-inverted-light: #ffffff;
  --color-primary-light: #656ffa;
  --color-primary-hover-light: #5058e0;
  --color-primary-accent-light: #e6f2ff;
  --color-secondary-light: #4b5563;
  --color-body-bg-start-light: #b7fdf7;
  --color-body-bg-end-light: #d09eff;
  --color-card-bg-light: rgba(255, 255, 255, 0.92);
  --color-card-bg-generar-modelo-light: rgba(255, 255, 255, 0.85);
  --color-input-bg-light: #f5f6f7;
  --color-input-bg-alt-light: #f9f9f9;
  --color-input-border-light: #ccd0d5;
  --color-input-border-soft-light: #d0d0d0;
  --color-item-bg-light: #ffffff;
  --color-item-border-light: #e0e0e0;
  --color-item-hover-bg-light: #f0f8ff;
  --color-button-primary-bg-light: #656ffa;
  --color-button-primary-text-light: #ffffff;
  --color-button-primary-disabled-bg-light: #b0b3e0;
  --color-button-primary-disabled-text-light: #f0f0f0;
  --color-button-secondary-bg-light: #e4e6eb;
  --color-button-secondary-text-light: #050505;
  --color-shadow-light: rgba(0, 0, 0, 0.15);
  --color-shadow-strong-light: rgba(0,0,0,0.15);
  --color-shadow-button-light: rgba(101, 111, 250, 0.4);
  --color-divider-light:  #82d1ff;
  --color-success-light: #28a745;
  --color-success-text-light: #388e3c;
  --color-error-light: #dc3545;
  --color-error-text-light: #d32f2f;
  --color-info-light: #17a2b8;
  --color-link-light: #656ffa;
  --color-image-placeholder-bg-light: #e9ecef;
  --color-caption-area-bg-light: #f8f9fa;
  --color-spinner-track-light: #f0f0f0;
  --color-result-border-light: #82d1ff;
  --color-result-bg-light: rgba(240, 248, 255, 0.7);
  --color-toggle-bg-light: rgba(255,255,255,0.5);
  --color-toggle-hover-bg-light: rgba(255,255,255,0.8);
  --color-text-dark: #f0f2f5;
  --color-text-subtle-dark: #c0c0c0;
  --color-text-inverted-dark: #121212;
  --color-primary-dark: #82d1ff;
  --color-primary-hover-dark: #6cbbe0;
  --color-primary-accent-dark: #3a5a7d;
  --color-secondary-dark: #9ca3af;
  --color-body-bg-start-dark: #004741;
  --color-body-bg-end-dark: #230045;
  --color-card-bg-dark: rgba(30, 30, 40, 0.9);
  --color-card-bg-generar-modelo-dark: rgba(10, 20, 30, 0.85);
  --color-input-bg-dark: #242526;
  --color-input-bg-alt-dark: #1a202c;
  --color-input-border-dark: #3a3b3c;
  --color-input-border-soft-dark: #444;
  --color-item-bg-dark: #2d3748;
  --color-item-border-dark: #3a475c;
  --color-item-hover-bg-dark: #4a5568;
  --color-button-primary-bg-dark: #82d1ff;
  --color-button-primary-text-dark: #1a202c;
  --color-button-primary-disabled-bg-dark: #4a5568;
  --color-button-primary-disabled-text-dark: #718096;
  --color-button-secondary-bg-dark: #3a3b3c;
  --color-button-secondary-text-dark: #e4e6eb;
  --color-shadow-dark: rgba(0, 0, 0, 0.5);
  --color-shadow-strong-dark: rgba(0,0,0,0.5);
  --color-shadow-button-dark: rgba(130, 209, 255, 0.3);
  --color-divider-dark:  #656ffa;
  --color-success-dark: #34d399;
  --color-success-text-dark: #a5d6a7;
  --color-error-dark: #f87171;
  --color-error-text-dark: #ff8a80;
  --color-info-dark: #60a5fa;
  --color-link-dark: #82d1ff;
  --color-image-placeholder-bg-dark: #ccc;
  --color-caption-area-bg-dark: #2c2f33;
  --color-spinner-track-dark: #4a5568;
  --color-result-border-dark: #656ffa;
  --color-result-bg-dark: rgba(26, 32, 44, 0.7);
  --color-toggle-bg-dark: rgba(0,0,0,0.4);
  --color-toggle-hover-bg-dark: rgba(0,0,0,0.6);
}
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-primary);
  background: white;
  background-attachment: fixed;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  transition: background 0.5s, color 0.5s;
  line-height: 1.6;
  overflow-y: auto;
}
body.dark-mode {
  background: rgb(34, 34, 34);
  color: var(--color-text-dark);
}
img {
  user-select: none;
  -webkit-user-drag: none;
}
.login-btn-container {
  display: flex;
  justify-self: center;
  justify-content: space-between;
  align-content: center;
  vertical-align: middle;
  width: 300px;
  height: 40px;
  gap: 10px;
}
.google-btn {
  background-color: #656ffa;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  align-content: center;
  flex-shrink: 0;
}
body.dark-mode .google-btn {
  background-color: #82d1ff;
  color: black;
}
.version-link {
  margin-top: auto;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 10px;
}
.material-icons {
  font-size: 14px;
  vertical-align: middle;
}
.pn-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20rem;
}
.pn-subtitle .material-icons {
  font-size: 20px;
  vertical-align: middle;
}
.container-ah .material-icons {
  font-size: 20px;
  vertical-align: middle;
}
.homeBtn {
  position: fixed;
  top: 10px;
  left: 60px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1000;
}
.backBtn {
  position: fixed;
  top: 10px;
  left: 110px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1000;
}
.container {
  text-align: center;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
}
.container-ah {
  text-align: left;
  max-width: 400px;
  padding-top: 0px;
  justify-self: center;
}
.main-container {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.generar-modelo-main-card {
  text-align: center;
  max-width: 700px;
  width: 100%;
  background-color: var(--color-card-bg-generar-modelo-light);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--color-shadow-strong-light);
  margin-top: 20px;
  margin-bottom: 20px;
}
body.dark-mode .generar-modelo-main-card {
  background-color: rgb(34, 34, 34);
  box-shadow: 0 8px 25px var(--color-shadow-strong-dark);
}
.controls-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.header-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
}
.logo {
  width: 180px;
  margin-bottom: 0px;
  margin-top: 50px;
  transition: 0.5s;
  user-select: none;
  -webkit-user-drag: none;
}
.dark-mode-toggle {
  width: 44px;
  height: 44px;
  cursor: pointer;
  background-color: var(--color-card-bg-light);
  border: 1px solid var(--color-divider-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px var(--color-shadow-light);
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.dark-mode-toggle img {
  width: 22px;
  height: 22px;
}
body.dark-mode .dark-mode-toggle {
  background-color: var(--color-card-bg-dark);
  border-color: var(--color-divider-dark);
  box-shadow: 0 2px 8px var(--color-shadow-dark);
}
.toggle-dark-container img {
  width: 45px;
  height: 45px;
  cursor: pointer;
  padding: 5px;
  background-color: var(--color-toggle-bg-light);
  border-radius: 50%;
  transition: background-color 0.3s;
}
.toggle-dark-container img:hover {
  background-color: var(--color-toggle-hover-bg-light);
}
body.dark-mode .toggle-dark-container img {
  background-color: var(--color-toggle-bg-dark);
}
body.dark-mode .toggle-dark-container img:hover {
  background-color: var(--color-toggle-hover-bg-dark);
}
.content-card {
  border-radius: 12px;
  padding: 1.5rem;
}
.link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  font-size: 30px;
  margin-bottom: 35px;
  color: var(--color-text-light);
}
body.dark-mode h1 {
  color: var(--color-text-dark);
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-top: 0;
  margin-bottom: 1rem;
}
body.dark-mode .section-title {
  color: var(--color-primary-dark);
}
.form-group {
  margin-bottom: 30px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--color-text-subtle-light);
}
body.dark-mode .form-group label {
  color: var(--color-text-subtle-dark);
}
.catalogo-prendas {
    height: 350px;
    width: 100%;
    padding: 15px;
    overflow-y: auto;
    border: transparent;
    background-color: transparent;
    border-radius: 12px;
    display: block;
    margin-left: -40px;
    margin-right: auto;
}
#catalogoPrendas {
  height: 350px;
  width: 100%;
  overflow-y: auto;
  border: transparent;
  padding: 15px;
  background-color: transparent;
  border-radius: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
body.dark-mode #catalogoPrendas {
  border-color: transparent;
  background-color: transparent;
}
#catalogoPrendas .prenda-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 10px;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(255, 255, 255);
  box-shadow: 0 8px 25px #666666;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}
body.dark-mode #catalogoPrendas .prenda-item {
  background-color: black;
  border-color: none;
}
#catalogoPrendas .prenda-item:hover {
  background-color: var(--color-item-hover-bg-light);
  box-shadow: 0 2px 8px var(--color-shadow-light);
}
body.dark-mode #catalogoPrendas .prenda-item:hover {
  background-color: var(--color-item-hover-bg-dark);
}
#catalogoPrendas .prenda-item input[type="checkbox"] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary-light);
}
body.dark-mode #catalogoPrendas .prenda-item input[type="checkbox"] {
  accent-color: var(--color-primary-dark);
}
#catalogoPrendas .prenda-item img.thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 15px;
  border: 1px solid var(--color-divider-light);
}
body.dark-mode #catalogoPrendas .prenda-item img.thumbnail {
  border: 1px solid var(--color-divider-dark);
}
#catalogoPrendas .prenda-item label {
  font-size: 15px;
  flex-grow: 1;
  cursor: pointer;
  color: var(--color-text-subtle-light);
}
body.dark-mode #catalogoPrendas .prenda-item label {
  color: var(--color-text-subtle-dark);
}
#catalogoPrendas .prenda-item.selected {
  background-color: var(--color-primary-accent-light);
  border-left: 5px solid var(--color-primary-light);
  padding-left: 10px;
}
body.dark-mode #catalogoPrendas .prenda-item.selected {
  background-color: var(--color-primary-accent-dark);
  border-left: 5px solid var(--color-primary-dark);
}
.submit-button {
  justify-self: center;
  font-family: var(--font-primary);
  display: block;
  width: 300px;
  margin: 40px 10px;
  padding: 5px;
  font-size: 20px;
  background: var(--color-button-primary-bg-light);
  color: var(--color-button-primary-text-light);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
.submit-button:hover:not(:disabled) {
  background: var(--color-primary-hover-light);
  transform: translateY(-2px);
}
.submit-button:disabled {
  background: var(--color-button-primary-disabled-bg-light);
  color: var(--color-button-primary-disabled-text-light);
  cursor: not-allowed;
  box-shadow: none;
  transform: translateY(0);
}
body.dark-mode .submit-button {
  background: var(--color-button-primary-bg-dark);
  color: var(--color-button-primary-text-dark);
  box-shadow: 0 4px 10px var(--color-shadow-button-dark);
}
body.dark-mode .submit-button:hover:not(:disabled) {
  background: var(--color-primary-hover-dark);
}
body.dark-mode .submit-button:disabled {
  background: var(--color-button-primary-disabled-bg-dark);
  color: var(--color-button-primary-disabled-text-dark);
}
.loading-spinner {
  border: 7px solid var(--color-spinner-track-light);
  border-top: 7px solid var(--color-primary-light);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin-generar-modelo 0.8s linear infinite;
  margin: 25px auto;
}
body.dark-mode .loading-spinner {
  border: 7px solid var(--color-spinner-track-dark);
  border-top: 7px solid var(--color-primary-dark);
}
.result-container {
  margin-top: 35px;
  border: 2px dashed var(--color-result-border-light);
  padding: 25px;
  border-radius: 12px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-result-bg-light);
}
body.dark-mode .result-container {
  background-color: var(--color-result-bg-dark);
  border-color: var(--color-result-border-dark);
}
.result-container img {
  max-width: 100%;
  max-height: 450px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 15px var(--color-shadow-light);
}
body.dark-mode .result-container img {
  box-shadow: 0 4px 15px var(--color-shadow-dark);
}
.result-container p {
  font-size: 18px;
  color: var(--color-error-text-light);
}
.result-container p.success {
  color: var(--color-success-text-light);
}
body.dark-mode .result-container p {
  color: var(--color-error-text-dark);
}
body.dark-mode .result-container p.success {
  color: var(--color-success-text-dark);
}
#imagenIA {
  display: none;
  width: 100%;
  max-width: 450px;
  height: auto;
  min-height: 200px;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
  object-fit: contain;
  background-color: var(--color-image-placeholder-bg-light);
  border: 1px solid var(--color-divider-light);
}
body.dark-mode #imagenIA {
  background-color: var(--color-image-placeholder-bg-dark);
  border-color: var(--color-divider-dark);
}
#linkImagenCompleta {
  display: none;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-link-light);
  text-decoration: none;
  font-weight: 500;
}
#linkImagenCompleta:hover {
  text-decoration: underline;
}
body.dark-mode #linkImagenCompleta {
  color: var(--color-link-dark);
}
.caption-display-area {
  min-height: 100px;
  padding: 1rem;
  border: 1px solid var(--color-divider-light);
  border-radius: 12px;
  background-color: var(--color-caption-area-bg-light);
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  margin-bottom: 1rem;
  width: 400px !important;
  justify-self: center;
}
body.dark-mode .caption-display-area {
  background-color: var(--color-caption-area-bg-dark);
  border-color: var(--color-divider-dark);
  color: var(--color-text-dark);
}
button {
  font-family: var(--font-primary);
  padding: 5px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 100;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.button-primary {
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  width: 300px !important;
  margin: 8px;
}
.button-primary:hover:not(:disabled) {
  background-color: var(--color-primary-hover-light);
}
body.dark-mode .button-primary {
  background-color: var(--color-button-primary-bg-dark);
  color: var(--color-button-primary-text-dark);
}
body.dark-mode .button-primary:hover:not(:disabled) {
  background-color: var(--color-primary-hover-dark);
}
.button-link {
  padding: 3px 2px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: left;
  justify-content: center;
  gap: 12px;
  width: 200px;
  margin: 8px;
}
body.dark-mode .button-link {
  background-color: var(--color-button-primary-bg-dark);
  color: var(--color-button-primary-text-dark);
}
.button-secondary {
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
  margin: 8px;
}
.button-secondary:hover:not(:disabled) {
  background-color: #c8c9cc;
}
.container-aphum {
  color: black;
  text-align: left;
  width: 600px;
  padding-top: 0px;
  justify-self: center;
  justify-content: left;
}
.header-imagenes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.header-imagenes p {
  color: black;
  font-size: 20px;
  margin-bottom: 5px;
}
.sub {
  color: black;
  font-size: 18px;
  margin-top: -5px;
  margin-bottom: 5px;
  text-justify: left;
}
.sub .material-icons {
  vertical-align: -5px !important;
}
a.link-btn,
button.link-btn {
  padding: 8px 12px;
  border: none;
  background-color: #656ffa;
  color: white !important;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
}
a.link-btn:hover,
button.link-btn {
    text-decoration: none;
}
.images-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 10px 0;
  margin-top: 5px;
  margin-bottom: 5px;
}
.images-grid-container p {
  justify-self: left;
  width: 600px;
  padding-bottom: 10px;
}
.images-grid-container-ig {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
}
.images-grid-container-ig p {
  justify-self: left;
  width: 600px;
  padding-bottom: 10px;
}
.info-card {
  text-align: left;
  width: 100%;
  padding-top: 0px;
  justify-self: center;
  justify-content: left;
  font-size: 18px;
}
.info-card label {
  color: black;
  margin-bottom: -10px;
}
.info-card h2 {
  color: rgb(107, 107, 107);
  margin-top: -5px;
  justify-self: left;
  font-size: 18px;
  font-weight: normal;
}
.caption-card {
  width: 100%;
  resize: vertical; 
  min-height: 100px;
  border-radius: 12px;
  font-family: 'Contrail One', sans-serif;
  font-size: 18px;
  padding: 5px 5px;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(222, 222, 222);
  color: black;
  border: none;
}
.feedback-tn {
  width: 100%;
  resize: vertical;
  min-height: 32px;
  border-radius: 12px;
  font-family: 'Contrail One', sans-serif;
  font-size: 18px;
  padding: 5px 5px;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(222, 222, 222);
  color: black;
  border: none;
}
.sugestion-img {
  width: 100%;
  min-height: 32px;
  border-radius: 12px;
  font-family: 'Contrail One', sans-serif;
  font-size: 18px;
  padding: 5px 5px;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(222, 222, 222);
  color: black;
  border: none;
  margin-top: 20px;
}
.sidebar-content a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: black;
}
.sidebar-content .sidebar-icon {
  font-size: 20px;
  width: 30px;
  text-align: center;
  margin-right: 15px;
  color: black;
}
.sidebar .close-btn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: black;
  text-decoration: none;
}
.checkbox-group {
  margin-top: -5px;
  margin-bottom: 10px;
}
.checkbox-group-index {
  margin-top: 20px;
  margin-bottom: 10px;
  width: 300px;
  justify-self: center;
}
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  position: relative;
  user-select: none;
  padding-left: 35px;
  min-height: 25px;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkbox-label span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  border-radius: 4px;
  background-color: transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.checkbox-label span::after {
  content: '';
  position: absolute;
  display: none;
  left: 7px;
  top: 50%;
  width: 6px;
  height: 12px;
  border-style: solid;
  border-width: 0 3px 3px 0;
  transform: translateY(-65%) rotate(45deg);
}
.checkbox-label input[type="checkbox"]:checked ~ span::after {
  display: block;
}
.checkbox-label {
  color: black;
}
.checkbox-label span::before {
  border: 2px solid #656ffa;
}
.checkbox-label input[type="checkbox"]:checked ~ span::before {
  background-color: #656ffa;
}
.checkbox-label span::after {
  border-color: white;
}

body.dark-mode .button-secondary {
  background-color: var(--color-button-secondary-bg-dark);
  color: var(--color-button-secondary-text-dark);
}
body.dark-mode .button-secondary:hover:not(:disabled) {
  background-color: #4a4b4c;
}
.button-centered {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.feedback-label {
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}
body.dark-mode .feedback-label {
  color: var(--color-text-dark);
}
#feedbackText:focus {
  outline: none;
  border-color: var(--color-primary-light);
  background-color: var(--color-card-bg-light);
}
body.dark-mode #feedbackText {
  background-color: var(--color-input-bg-dark);
  border-color: var(--color-input-border-dark);
  color: var(--color-text-dark);
}
body.dark-mode #feedbackText:focus {
  border-color: var(--color-primary-dark);
  background-color: var(--color-card-bg-dark);
}
.action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.action-buttons button {
  flex-grow: 1;
}
.spinner-container {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-secondary-light);
}
body.dark-mode .spinner-container {
  color: var(--color-secondary-dark);
}
.spinner-container::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin-styles 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
#statusMessage {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  display: none;
  font-size: 0.9rem;
}
#statusMessage.status-success {
  background-color: var(--color-success-light);
  color: var(--color-text-inverted-light);
}
body.dark-mode #statusMessage.status-success {
  background-color: var(--color-success-dark);
  color: var(--color-text-inverted-dark);
}
#statusMessage.status-error {
  background-color: var(--color-error-light);
  color: var(--color-text-inverted-light);
}
body.dark-mode #statusMessage.status-error {
  background-color: var(--color-error-dark);
  color: var(--color-text-inverted-dark);
}
#statusMessage.status-info {
  background-color: var(--color-info-light);
  color: var(--color-text-inverted-light);
}
body.dark-mode #statusMessage.status-info {
  background-color: var(--color-info-dark);
  color: var(--color-text-inverted-dark);
}
.hidden-inputs {
  display: none;
}
.product-attribute {
  margin-bottom: 3px;
  width: 300px;
  justify-self: center;
  justify-content: left;
}
.attribute-label {
  font-weight: normal;
  font-size: 20px;
  color: var(--color-text-light);
  width: 300px;
  justify-self: center;
  justify-content: left;
}
body.dark-mode .attribute-label {
  color: var(--color-text-dark);
}
.attribute-text {
  font-size: 0.95rem;
  color: var(--color-secondary-light);
  width: 300px;
  justify-self: center;
  justify-content: left;
}
body.dark-mode .attribute-text {
  color: var(--color-secondary-dark);
}
.color-selector {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #333;
  display: inline-block;
  cursor: pointer;
  transition: border-color 0.2s;
}
body.dark-mode .color-circle {
  border: 1px solid #ccc;
}
.color-circle.selected {
  border: 3px solid var(--color-primary-light);
}
body.dark-mode .color-circle.selected {
  border-color: var(--color-primary-dark);
}
.username {
  color: var(--color-primary-light);
  transition: color 0.5s;
}
body.dark-mode .username,
body.dark-mode .plataforma,
body.dark-mode .titulo,
body.dark-mode .welcome p span {
  color: var(--color-primary-dark);
}
.welcome p {
  margin: 0;
  width: 600px;
  justify-self: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pn-title p {
  margin: 0;
  width: 600px;
  justify-self: center;
  justify-content: center;
  font-size: 35px;
  flex-shrink: 0;
}
.pn-title p span {
  color: #656ffa;
}
.pn-title h2 {
  margin: 0;
  width: 600px;
  justify-self: center;
  justify-content: center;
  font-size: 14px;
  font-weight: normal;
}
.pn-container {
  width: 1160px;
}
.pn-subtitle p {
  margin: 0;
  width: 1160px;
  font-size: 18px;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  margin-top: -15px;
}
.pn-subtitle span {
  color: #656ffa;
  font-size: 20px;
}
.pn-subtitle h2 {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 15px;
}
body.dark-mode .pn-title p span {
  color: #82d1ff;
}
body.dark-mode .pn-subtitle span {
  color: #82d1ff;
  font-size: 20px;
}
.buscador {
  width: 100%;
  padding: 5px;
  font-family: 'Contrail One', sans-serif;
  font-size: 20px;
  color: #333;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(255, 255, 255);
  box-shadow: 0 8px 25px #666666;
  border-radius: 12px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
}
/*.buscador:focus {
  border-color: #8ab4f8; 
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.25);
}*/
body.dark-mode .buscador {
  background-color: black;
  border: 1px solid black;
  color: white;
}
.images-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 20px;
  width: 600px;
}
.foto-p {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
}
.foto-r {
  grid-column: span 2 / span 2;
  grid-row: span 3 / span 3;
  grid-column-start: 3;
}
.cu1 {
  grid-row: span 2 / span 2;
  grid-row-start: 4;
}
.cu2 {
  grid-row: span 2 / span 2;
  grid-row-start: 4;
  grid-column-start: 2;
}
.cu3 {
  grid-row: span 2 / span 2;
  grid-row-start: 4;
  grid-column-start: 3;
}
.cu4 {
  grid-row: span 2 / span 2;
  grid-row-start: 4;
  grid-column-start: 4;
}
.imagen {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}
.subrayado {
  color: #656ffa;
  transition: color 0.5s;
}
body.dark-mode .subrayado {
  color: #82d1ff;
}
.upload-form {
  text-align: left;
  margin: 40px auto;
  width: 100%;
}
.upload-label {
  display: block;
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: normal;
}
.inputCodigo-wrapper {
  margin-bottom: 20px;
}
.inputCodigo {
  font-family: 'Contrail One', sans-serif;
  width: 100%;
  padding: 8px 15px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(255, 255, 255);
  box-shadow: 0 5px 25px #666666;
  color: black;
  box-sizing: border-box;
  margin-bottom: 5px;
  text-transform: uppercase;
}
body.dark-mode .inputCodigo {
  border: 1px solid #555;
  background: rgb(71, 71, 71);
  color: white;
}
.inputCodigo-wrapper {
  margin-bottom: 20px;
}
.inputBuscador {
  font-family: 'Contrail One', sans-serif;
  width: 100% !important;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(255, 255, 255);
  box-shadow: 0 8px 25px #666666;
  color: black;
  margin-bottom: 5px;
  text-transform: uppercase;
}
body.dark-mode .inputBuscador {
  background: black !important;
  color: white;
}
#searchButton i {
  color: black;
}
body.dark-mode #searchButton i {
  color: white;
}
.msg-Mm {
  color: #666666;
  transition: color 0.5s;
}
body.dark-mode .msg-Mm {
  color: #b3b3b3;
  transition: color 0.5s;
}
.file-input {
  display: none;
}
.primary-custom-file-upload {
  font-family: 'Contrail One', sans-serif;
  width: 100%;
  height: 32px;
  padding: 8px 10px 8px 15px;
  font-size: 16px;
  border: 1px solid rgb(222, 222, 222);
  border-radius: 12px;
  background: rgb(222, 222, 222) !important;
  color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 5px;
  box-sizing: border-box;
  position: relative;
}
.custom-file-upload {
  font-family: 'Contrail One', sans-serif;
  width: 100%;
  height: 32px;
  padding: 8px 10px 8px 15px;
  font-size: 16px;
  border: 1px solid rgb(222, 222, 222);
  border-radius: 12px;
  background: rgb(222, 222, 222) !important;
  color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 5px;
  box-sizing: border-box;
  position: relative;
}
.primary-custom-file-upload:hover,
.custom-file-upload:hover {
  background: #e9e9e9;
}
body.dark-mode .primary-custom-file-upload,
body.dark-mode .custom-file-upload {
  border: 1px solid #414141;
  background: rgb(71, 71, 71) !important;
  color: #ccc !important;
}
body.dark-mode .primary-custom-file-upload:hover,
body.dark-mode .custom-file-upload:hover {
  background: #444;
}
.upload-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: auto;
  flex-grow: 1;
}
.upload-icon-placeholder {
  font-size: 20px;
  color: #656ffa;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
}
body.dark-mode .upload-icon-placeholder {
  color: #82d1ff;
}
.file-remove-btn {
  display: none;
  padding: 0px 0px;
  margin-left: 8px;
  cursor: pointer;
  color: #cc0000;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  background-color: transparent;
  border: none;
  align-self: center;
  align-items: center;
  justify-content: center;
}
.file-remove-btn:hover {
  color: #aa0000;
}
#colorBlocksContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-content: flex-start;
}
.primary-color-block {
  padding: 20px;
  border-radius: 12px;
  background: white;
  box-sizing: border-box;
  display: flex;
  flex-grow: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 3fr); 
  gap: 5px;
}
.grid-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.span-two-columns {
  grid-column: span 2;
}
.color-block {
  padding: 20px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 25px #666666;
  box-sizing: border-box;
  flex-grow: 1;
  flex-basis: 300px;
  max-width: 400px;
}
body.dark-mode .primary-color-block,
body.dark-mode .color-block {
  border-color: #82d1ff;
  background: rgb(34, 34, 34);
}
.color-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  height: 32px !important;
}
.color-block-title {
  font-size: 20px; 
  font-weight: normal;
  margin-top: 0; 
  margin-bottom: 0; 
  padding-bottom: 0; 
  border-bottom: none;
  color: black; 
}
.color-block-title p {
  margin: 0;
  justify-self: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.color-block-title span {
  margin: 0;
  justify-self: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #656ffa;
}

body.dark-mode .color-block-title {
  color: white;
}
body.dark-mode .color-block-title p {
  margin: 0;
  justify-self: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
body.dark-mode .color-block-title span {
  margin: 0;
  justify-self: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #82d1ff;
}
.primaryInputColorNombre {
  font-family: 'Contrail One', sans-serif;
  width: 100%;
  padding: 8px 15px;
  font-size: 18px;
  border: 1px solid rgb(222, 222, 222);
  border-radius: 12px;
  background: rgb(222, 222, 222);
  color: black;
  box-sizing: border-box;
  height: 32px !important;
  margin-bottom: 4px;
}
body.dark-mode .primaryInputColorNombre {
  border: 1px solid #414141;
  background: rgb(71, 71, 71);
  color: rgb(255, 255, 255) !important;
}
.inputColorNombre {
  font-family: 'Contrail One', sans-serif;
  width: 100%;
  padding: 8px 15px;
  font-size: 18px;
  border: 1px solid rgb(222, 222, 222);
  border-radius: 12px;
  background: rgb(222, 222, 222);
  color: black;
  box-sizing: border-box;
  height: 32px !important;
  margin-bottom: 4px;
}
body.dark-mode .inputColorNombre {
  border: 1px solid #414141;
  background: rgb(71, 71, 71);
  color: rgb(255, 255, 255) !important;
}
.mt-4 {
  margin-top: 1rem;
}
.button-add-color {
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: right;
  justify-content: center;
  gap: 12px;
  width: 300px;
  margin-top: -40px;
  margin-bottom: 12px;
}
.button-add-color:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button-add-color:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.7;
}
body.dark-mode .button-add-color {
  background: #82d1ff;
  color: black;
}
body.dark-mode .button-add-color:hover:not(:disabled) {
  background: #6ac0e0;
}
body.dark-mode .button-add-color:disabled {
  background-color: #555;
  color: #aaa;
}
.button-remove-color {
  font-family: 'Contrail One', sans-serif;
  background: #ff6565;
  color: white;
  font-size: 12px;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}
.button-remove-color:hover {
  transform: translateY(-1px);
}
body.dark-mode .button-remove-color {
  background: #aa0000;
  color: white;
}
.button-submit-all {
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
  margin: 8px;
}
.button-submit-all:hover {
  transform: translateY(-1px);
}
body.dark-mode .button-submit-all {
  background: #82d1ff;
  color: black;
}
.error-message {
  margin-top: 15px;
  display: none;
  text-align: center;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #dc3545;
  border-radius: 8px;
}
.error-message {
  margin-top: 15px;
  display: none;
  text-align: center;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #72ff65;
  border-radius: 8px;
}
#spinner {
  animation: girar 1.5s linear infinite;
}
#loadingAnimation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  text-align: center;
  z-index: 1000;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 0, 48, 0.4);
  z-index: 999;
  display: none;
}
::selection {
  background-color: #656ffa;
  color: white;
}
.subrayado::selection,
.welcome p span::selection,
.forgotpassword-button::selection {
  background-color: #656ffa;
  color: black;
}
body.dark-mode ::selection {
  background-color: #82d1ff;
  color: black;
}
body.dark-mode .subrayado::selection,
body.dark-mode .welcome p span::selection,
body.dark-mode .forgotpassword-button::selection {
  background-color: #82d1ff;
  color: white;
}
::-webkit-scrollbar {
  width: 12px;
  border-radius: 20px;
}
::-webkit-scrollbar-track {
  background: white;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb {
  background-color: #656ffa;
  border-radius: 20px;
  border: 3px solid white;
}
body.dark-mode ::-webkit-scrollbar {
  width: 12px;
  border-radius: 20px;
}
body.dark-mode ::-webkit-scrollbar-track {
  background: black;
  border-radius: 20px;
}
body.dark-mode ::-webkit-scrollbar-thumb {
  background-color: #82d1ff;
  border-radius: 20px;
  border: 3px solid black;
}
.gancho {
  width: 100px;
  margin-top: 20px;
  transition: 0.5s;
}
.buttons button {
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
  margin: 8px;
}
.buttons button a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.buttons button:hover {
  background: #5058c5;
}
.button-tn {
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
  margin: 8px;
}
.card-conexion.conectado h2,
.card-conexion.conectado p:first-of-type {
  display: none;
}
body.dark-mode .buttons button {
  background: #82d1ff;
  color: black;
}
body.dark-mode .buttons button:hover {
  background: #b7e5ff;
}
body.dark-mode .button-tn {
  background: #82d1ff;
  color: black;
}
.toggle-dark {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1000;
  background: none;
  border: none;
  padding: 5px;
  border-radius: 10px;
  transition: 0.3s;
}
.toggle-dark img {
  width: 40px;
}
body.dark-mode .toggle-dark {
  color: white;
}
.welcome p span {
  color: #656ffa;
  transition: 0.5s;
}
.welcome h2 {
  margin-top: 0;
  width: 700px;
  justify-self: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: normal;
  color: black;
}
body.dark-mode .welcome h2 {
  color: white;
  transition: 0.5s;
}
.perfil-menu {
  position: fixed;
  top: 60px;
  left: 10px;
  background: linear-gradient(135deg, #d09eff, #b7fdf7);
  color: balck;
  border: 1px solid #000000;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 200px;
  overflow: hidden;
  z-index: 1001;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.dark-mode .perfil-menu {
  position: fixed;
  top: 60px;
  left: 10px;
  background: linear-gradient(135deg, #230045, #004741);
  color: white;
  border: 1px solid white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 200px;
  overflow: hidden;
  z-index: 1001;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.perfil-menu.dark-mode {
  background: linear-gradient(135deg, #230045, #004741);
  color: #fff;
  border-color: #ffffff;
}
.menu-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.menu-item:hover {
  background-color: #faffe0;
}
.perfil-menu.dark-mode .menu-item:hover {
  background-color: #222222;
}
.perfil-menu.oculto {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}
.perfil-menu.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.hidden {
  display: none !important;
}
body.dark-mode #overlay {
  background: rgba(14, 0, 65, 0.4);
  backdrop-filter: blur(3px);
}
#googleLogin img {
  width: 40px;
  cursor: pointer;
}
.image-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin: -22px;
  max-width: 300px;
  justify-self: center;
  justify-content: center;
  align-content: center;
}
.image-card {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.2s ease-in-out;
  aspect-ratio: 1 / 1;
}
.image-card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s, opacity 0.2s;
}
.image-card:hover .image-card-thumbnail {
  transform: scale(1.05);
}
.image-card:not(.selected) .image-card-thumbnail {
  opacity: 0.7;
}
.image-card.selected {
  border-color: var(--color-primary-light);
}
body.dark-mode .image-card.selected {
  border-color: var(--color-primary-dark);
}
.image-card.selected .image-card-thumbnail {
  opacity: 1;
  transform: scale(1);
}
.image-card .checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background-color: var(--color-success-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
body.dark-mode .image-card .checkmark {
  background-color: var(--color-success-dark);
}
.image-card.selected .checkmark {
  transform: scale(1);
}
.destination-buttons {
  align-self: center;
  justify-self: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 300px;
}
.destination-btn-ig,
.destination-btn-tn {
  width: 100%;
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, filter 0.2s ease-in-out;
}
.destination-btn-ig.selected,
.destination-btn-ig:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 0, 200, 0.5);
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: white;
}
.destination-btn-tn.selected,
.destination-btn-tn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px #0050c3;
  background: #0050c3;
  color: white;
}
.destination-btn-ig:hover:not(.selected),
.destination-btn-tn:hover:not(.selected) {
    filter: brightness(1.15);
}
body.dark-mode .destination-btn-ig,
body.dark-mode .destination-btn-tn {
  background: #82d1ff;
  color: black;
}
body.dark-mode .destination-btn-ig.selected,
body.dark-mode .destination-btn-ig:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px #d62976;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: white;
}
body.dark-mode .destination-btn-tn.selected,
body.dark-mode .destination-btn-tn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(38, 0, 255, 0.5);
  background: #0050c3;
  color: white;
}
.search-container {
  position: relative;
  display: flex;
  align-self: center;
  align-items: center;
  justify-self: center;
  margin-top: 20px;
  width: 100%;
}
.search-container input {
  flex-grow: 1;
  padding: 15px 50px 15px 20px;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(222, 222, 222) !important;
  color: #555;
  border-radius: 12px;
  font-size: 16px;
  background-color: white;
  color: black;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: 'Contrail One', 'seriff sans';
  text-transform: uppercase;
}
body.dark-mode .search-container input {
  border: 1px solid #414141;
  background: rgb(71, 71, 71) !important;
  color: #ccc !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-container input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.search-container button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background-color: var(--primary-color);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.search-container button:hover {
  background-color: var(--primary-hover);
}
.login-button {
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  width: 250px;
  height: 40px;
  flex-grow: 1;
}
.forgotpassword-button {
  font-family: 'Contrail One', sans-serif;
  display: block;
  margin: 10px auto;
  padding: 0;
  font-size: 16px;
  background: none;
  color: #656ffa;
  border: none;
  transition: color 0.5s;
  text-decoration: none;
}
.input-group {
  display: flex;
  align-items: center;
  border: 1px solid rgb(222, 222, 222);
  background: rgb(255, 255, 255);
  box-shadow: 0 8px 25px #666666;
  border-radius: 12px;
  padding: 5px;
  margin: 15px auto;
  width: 300px;
}
.input-group input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Contrail One', sans-serif;
  font-size: 20px;
  flex: 1;
}
.input-group img {
  width: 25px;
  height: auto;
  cursor: pointer;
  margin-right: 10px;
}
.divider {
  width: 100%;
  height: 2px;
  background:  #656ffa;
  margin: 20px auto;
  transition: color 0.5s;
  border: none;
}
body.dark-mode .divider {
  background:  #82d1ff;
}
.contact-text {
  margin-bottom: 10px;
}
.contact-button {
  padding: 5px 5px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
}
.version-text-index {
  margin-top: 150px;
  margin-bottom: -60px;
  color: #747373;
  text-align: center;
  font-size: 12px;
  font-family: 'Roboto Mono', monospace; 
}
.version-text-index span {
  font-size: 18px;
}
.version-text {
  margin: 0;
  color: #747373;
  font-size: 12px;
  font-family: 'Roboto Mono', monospace;
  display: flex;
  align-items: center;
  gap: 0.3em;
  justify-content: center !important;
}
.version-text .material-icons {
  font-size: 14px;
}
.version-text span {
  font-size: 18px;
}
.login-button:hover,
.contact-button:hover {
  background: #5058c5;
}
.contact-button img {
  width: 24px;
  margin-right: -4px;
}
body.dark-mode .divider {
  background-color: #82d1ff;
}
body.dark-mode .input-group {
  background: black;
  color: white;
  border-color: black;
}
body.dark-mode .input-group input {
  color: white;
}
body.dark-mode .login-button {
  background: #82d1ff;
  color: black;
}
body.dark-mode .forgotpassword-button {
  color: #82d1ff;
}
body.dark-mode .login-button:hover {
  background: #b7e5ff;
}
body.dark-mode .contact-button {
  background: #82d1ff;
  color: black;
}
body.dark-mode .contact-button:hover {
  background: #b7e5ff;
}
@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes spin-generar-modelo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes spin-styles {
  to { transform: rotate(360deg); }
}
@media (max-width: 767px) {
  body {
    padding: 1rem;
  }
  .container {
    max-width: 100%;
    padding: 10px;
  }
  .generar-modelo-main-card {
    padding: 15px;
  }
  .header-bar {
    margin-bottom: 1rem;
  }
  .logo {
    width: 150px;
    margin-top: 30px;
  }
  .dark-mode-toggle {
    width: 40px;
    height: 40px;
    cursor: pointer;
  }
  .dark-mode-toggle img {
    width: 20px;
    height: 20px;
  }
  .toggle-dark-container img {
    width: 35px;
    height: 35px;
  }
  .content-card {
    padding: -100px;
    width: 300px;
    justify-self: center;
    justify-content: left;
  }
  h1 {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .action-buttons {
    flex-direction: column;
  }
  .submit-button {
    font-size: 20px;
    padding: 12px;
    max-width: 280px;
  }
  #catalogoPrendas {
    max-height: 300px;
  }
  .images-container {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .foto-p, .foto-r {
    grid-row: span 2;
  }
  .input-group, .login-button, .contact-button {
    max-width: 90%;
  }
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1002;
  top: 0;
  left: 0;
  background: white;
  box-shadow: 0 8px 25px #666666;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}
.sidebar .sidebar-content {
  display: flex;
  flex-direction: column;
  height: 95%;
}
.sidebar .cerrar-sesion-btn {
  margin-top: auto;
  cursor: pointer;
  margin-bottom: 0px;
}
.sidebar .sidebar-content a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 20px;
  color: black;
  display: flex;
  align-items: center;
  transition: 0.3s;
}
.mode-btn-index{
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
  text-decoration: none;
  color: black;
}
body.dark-mode .mode-btn-index{
  color: white;
}
body.dark-mode .container-aphum {
  color: white;
}
body.dark-mode .header-imagenes p {
  color: white !important;
}
body.dark-mode .sub {
  color: white;
}
body.dark-mode .link-btn {
  background-color: #82d1ff;
  color: black !important;
}
body.dark-mode .info-card label {
  color: rgb(255, 255, 255);
  text-align: left;
  width: 600px;
  padding-top: 0px;
  justify-self: center;
  justify-content: left;
}
body.dark-mode .info-card p {
  color: rgb(148, 148, 148);
  text-align: left;
  width: 600px;
  padding-top: 0px;
  justify-self: center;
  justify-content: left;
}
body.dark-mode .caption-card {
  background-color: black;
  color: white;
}
body.dark-mode .feedback-tn {
  background-color: black !important;
  color: white;
}
body.dark-mode .sidebar {
  background: rgb(34, 34, 34);
}
body.dark-mode .sidebar-content a {
  color: white;
}
body.dark-mode .sidebar-content .sidebar-icon {
  color: white;
}
body.dark-mode .sidebar a.cerrar-sesion-btn {
  color: white;
}
body.dark-mode .sidebar .close-btn {
  color: white;
}
body.dark-mode .checkbox-label {
  color: white;
}
body.dark-mode .checkbox-label span::before {
  border: 2px solid #82d1ff;
}
body.dark-mode .checkbox-label input[type="checkbox"]:checked ~ span::before {
  background-color: #82d1ff;
  border-color: #82d1ff;
}
body.dar-mode .checkbox-label span::after {
  border-color: black;
}
.generate-button {
  padding: 8px 7px;
  border: none;
  background-color: #656ffa;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
  margin-top: 18px;
  margin-bottom: 12px;
}
body.dark-mode .generate-button {
  background-color: #82d1ff;
  color: black;
  box-shadow: transparent;
}
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  min-height: 200px;
}
.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 4px solid transparent;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 8px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-item.selected {
  border-color: #4a56fc;
  box-shadow: 0 0 15px #656ffa;
}
body.dark-mode .gallery-item.selected {
  border-color: #63c2fa;
  box-shadow: 0 0 15px #82d1ff;
}
.gallery-item.selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  background-color: #007bff;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 16px;
  border: 2px solid white;
}
.loader {
  font-size: 18px;
  color: #555;
  padding: 20px;
}
.status-message {
  font-size: 16px;
  margin-top: 10px;
}
.status-message.success {
  color: #49be3e;
  margin-bottom: -35px;
}
body.dark-mode .status-message.success {
  color: #72ff65;
}
.status-message.error {
  color: #dc3545;
  margin-bottom: -35px;
}
body.dark-mode .status-message.error {
  color: #fa4557;
}
.error-container {
  background-color: transparent;
  color: #dc3545;
  font-family: 'Contrail One', sans-serif;
  font-size: 16px;
}



.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000, 0.3;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: linear-gradient(135deg, var(--color-body-bg-start-light), var(--color-body-bg-end-light));
  color: #000000;
  padding: 25px 35px;
  border-radius: 12px;
  text-align: center;
  max-width: 90%;
  width: 450px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid #656ffa;
  font-size: 18px !important;
}

.modal-overlay.visible .modal-content {
  transform: scale(1);
}

body.dark-mode .modal-content {
  background: linear-gradient(135deg, var(--color-body-bg-start-dark), var(--color-body-bg-end-dark));
  color: #ffffff;
  border: 1px solid #82d1ff;
}

.modal-content p {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: 18px !important;
}

.modal-content .subrayado {
  color: black;
  font-size: 20px;
}

.modal-content .subrayado span{
  color: #656ffa;
  margin-bottom: 15px;
  font-size: 20px;
}

body.dark-mode .modal-content .subrayado {
  color: rgb(255, 255, 255);
  font-size: 20px;
}

body.dark-mode .modal-content .subrayado span{
  color: #82d1ff;
}

.imgCard {
  width: 100%;
  margin: 10px auto;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 8px 25px #666666;
  backdrop-filter: blur(10px); 
  /* border: 2px solid #656ffa; */
  border-radius: 20px;
  z-index: 1000;
  padding: 10px;
  transition: background 0.3s, border-color 0.3s;
}
body.dark-mode .imgCard {
  background-color: rgb(34, 34, 34);
  /* border: 2px solid  #82d1ff; */
}
.bpCard {
  width: 100%;
  margin: 10px auto;
  background: linear-gradient(135deg, var(--color-body-bg-start-light), var(--color-body-bg-end-light));
  backdrop-filter: blur(10px); 
  border: 2px solid #656ffa;
  border-radius: 20px;
  z-index: 1000;
  padding: 10px;
  transition: background 0.3s, border-color 0.3s;
}
body.dark-mode .bpCard {
  background: linear-gradient(135deg, var(--color-body-bg-start-dark), var(--color-body-bg-end-dark));
  border: 2px solid  #82d1ff;
}
.container-bp {
    background-color: var(--card-bg-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 700px;
    text-align: center;
    transition: background-color 0.3s;
    border: 1px solid var(--border-color);
}