body {
    margin: 0px;
    font-family: "Roboto", sans-serif;
    background-color: #fff;
}
#resultsWrapper h2 {
    color: #4e4e4e;
    font-weight: bold;
    line-height: 1;
    font-size: 20px;
}
#headerbanner {
    background-size: cover;
    background-repeat: no-repeat;
    height: 25vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: bottom;
}
#headerbanner img {
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}
.lancologo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 120px;
}
.mainimg {
    position: relative;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
}
#gen-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#gen-header h1 {
    font-weight: 900;
    text-transform: uppercase;
    margin: 0px;
    text-align: center;
    margin-bottom: 10px;
    display: inline-block;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: initial;
    color: rgb(40 40 40 / 10%);
    text-shadow: 1px 2px 5px #e0e0dfa6, 0 0 0 rgba(0, 0, 0, 0.4), 1px 2px 5px #fff;
    line-height: 0.9;
}
#prompt::placeholder {
    color: #4e4e4e52;
    font-weight: bold;
    font-size: 14px;
}
#gen-header p {
    text-align: justify;
    margin: 0px;
    font-size: 14px;
    color: #6e6e6e;
}
.nav-tabs .nav-link {
    color: #6e6e6e;
    font-weight: bold;
}
.buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 100%;
    flex-direction: column;
    margin: 10px 0px;
}
.nav-tabs .nav-link.active {
    background-color: #ef171f !important;
    color: white !important;
    border: none;
    border-radius: 24px;
}
#imagePreview {
    width: 100%;
    height: 200px;
    object-fit: contain;
}
.btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: solid 2px #b2b2b269;
    padding: 10px 5px;
    border-radius: 35px;
    position: relative;
    font-weight: bold;
}
.btn-wrapper:hover {
    background: #ced9db33;
}

/* Estilos para el botón de generar mejorado */
.btn-wrapper.generate-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border: solid 1px #8c8c8c;
}

.btn-wrapper.generate-btn:hover {
    font-size: 18px;
}

.btn-wrapper.generate-btn:active {
    transform: scale(0.98);
}

.btn-wrapper.generate-btn:focus {
    outline: none;
}

.btn-wrapper.generate-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.btn-wrapper.generate-btn:hover img {
    width: 26px;
    height: 26px;
}

.btn-wrapper.generate-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-wrapper.generate-btn.loading img {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos para emular exactamente la interfaz de resultados reales */
.preview-original {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    font-family: "Roboto", sans-serif;
}

/* Título de sugerencia */
.preview-suggestion {
    color: #808080;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
    font-family: "Roboto", sans-serif;
}

/* Container de paleta */
.preview-palette-container {
    margin: 20px 0;
}

.preview-palette-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.preview-palette-row:last-child {
    margin-bottom: 0;
}

/* Items de color individuales */
.preview-color-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-color-item-wide {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.preview-color-box {
    background-color: #d3d3d3;
    height: 100px;
    border-radius: 15px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.preview-color-box-wide {
    background-color: #d3d3d3;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Información de color */
.preview-color-info {
    padding: 0 5px;
}

.preview-color-label {
    color: #808080;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
    font-family: "Roboto", sans-serif;
}

.preview-color-name {
    color: #808080;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 3px;
    font-family: "Roboto", sans-serif;
}

.preview-color-code {
    color: #808080;
    font-size: 14px;
    margin-bottom: 3px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
}

.preview-color-pantone {
    color: #808080;
    font-size: 13px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
}

/* Narrativa */
.preview-subtitle {
    color: #808080;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 30px;
    font-family: "Roboto", sans-serif;
}

.preview-narrative {
    margin-bottom: 25px;
}

.preview-narrative p {
    color: #808080;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}



/* Ocultar el preview cuando hay resultados */
.preview-original.hidden {
    display: none;
}

/* Animación de aparición */
.preview-original {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-wrapper.upload  {
    width: 100%;
}
.btn-wrapper.upload img {
    width: 100%;
}
#formtabs {
    margin: 10px 0px 20px 0px;
}
#formtabs, #formtabcontent {
    width: 100%;
}
.btn-wrapper.upload input {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0;
}
.btn-wrapper.upload input:hover {
    cursor: pointer;
}
.btn-wrapper img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
#colorForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
#colorForm label {
    text-transform: none;
    margin: 0px;
    text-align: center;
    margin-bottom: 10px;
    display: inline-block;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: initial;
    color: rgb(40 40 40 / 10%);
    text-shadow: 1px 2px 5px #e0e0dfa6, 0 0 0 rgba(0, 0, 0, 0.4), 1px 2px 5px #fff;
    line-height: 0.9;
}
#colorForm textarea {
    width: 100%;
    border: none;
    font-family: "Montserrat", sans-serif;
    color: #6e6e6e;
    box-shadow: 0px 0px 10px 5px #4e4e4e17;
    border-radius: 75px;
    overflow: hidden;
    padding: 10%;
    height: 90px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
}
#output {
   display: none;
}
#formtabs {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}
#colorForm textarea:focus-visible {
    outline: none;
}
#palette {
    display: none;
}
#messageWrapper .message {
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    color: #ca5458;
    margin-top: 6px;
}
#colorForm input[type=submit] {
  background-color: transparent;
  border: none;
  font-weight: bold;
  color: #4e4e4e;
}
#colorForm input[type=submit]:hover {
    cursor: pointer;
}
#resultsWrapper, #actionsWrapper {
    display: block; /* Oculta los contenedores */
}
.actionbtn {
    width: 100%;
    background-color: #ed1c24;
    border: none;
    display: flex;
    color: white;
    font-weight: bold;
    margin-bottom: 7px;
    padding: 11px 10px 11px 25px;
    border-radius: 15px;
}
.actionbtn:first-child {
    background-color: #5957ce;
}
.actionbtn img{
    max-width: 20px;
    margin-right: 10px;
}
#palette .color-box {
    width: 19%;
    height: 75px;
    display: inline-block;
    margin: 1px;
    position: relative;
}
#nearestColors1 .color-box, #nearestColors2 .color-box, #nearestColors3 .color-box   {
    width: 44%;
    height: 142px;
    display: inline-block;
    position: relative;
    margin: 0px 5px 10px 0px;
    border-radius: 28px;
    border: solid 1px #eae8e8;
}
/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {
    .language-dropdown {
        top: 15px!important;
        right: 3%!important;
    }
    #resultsWrapper button {
        font-size: 12px!important;
    }
    #previewResults {
        display: none!important;
    }
    /* ===== PAGINACIÓN RESPONSIVA PARA MÓVILES ===== */
    .swiper-pagination {
        margin-top: 15px !important;
        padding: 8px 0 !important;
    }
    
    .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px !important;
    }
    
    .swiper-pagination-bullet-active {
        transform: scale(1.3) !important;
    }
    
    /* Simplificar efectos en móvil para mejor rendimiento */
    .swiper-pagination-bullet:hover {
        transform: scale(1.05) !important;
    }
  #resultsWrapper {
          padding: 20px 20px 20px 25px!important;
  }
#nearestColors1 .color-box, #nearestColors2 .color-box, #nearestColors3 .color-box {
    width: 100%!important;
}
    #nearestColors3 .color-box:nth-child(1), #nearestColors2 .color-box:nth-child(1), #nearestColors1 .color-box:nth-child(1) {
        height: 200px!important;
    }
    #nearestColors3 .color-box:nth-child(2), #nearestColors2 .color-box:nth-child(2), #nearestColors1 .color-box:nth-child(2) {
        height: 150px!important;
    }
    #nearestColors3 .color-box:nth-child(3), #nearestColors2 .color-box:nth-child(3), #nearestColors1 .color-box:nth-child(3) {
        height: 125px!important;
    }
    
    /* Preview styles para móviles */
    .preview-suggestion, .preview-subtitle {
        font-size: 16px!important;
    }
    
    .preview-color-label {
        font-size: 14px!important;
    }
    
    .preview-color-name {
        font-size: 13px!important;
    }
    
    .preview-color-code, .preview-color-pantone {
        font-size: 11px!important;
    }
    
    .preview-narrative p {
        font-size: 13px!important;
    }
}
.swiper-slide.hidden-slide {
    display: none;
}
.swiper-button-next svg, .swiper-button-prev svg {
    color: #4a4a4a!important;
}
.swiper-button-next.hidden-slide, .swiper-button-prev.hidden-slide {
    display: none!important;
}
#nearestColors1, #nearestColors2, #nearestColors3  {
    padding: 20px 0px;
    display: flex;
    flex-wrap: wrap;
}
#nearestColors1 .color-box, #nearestColors2 .color-box, #nearestColors3 .color-box {
    height: 200px;
    width: 49%;
}
#nearestColors1 .color-box:nth-child(2), #nearestColors2 .color-box:nth-child(2), #nearestColors3 .color-box:nth-child(2) {
    margin-right: 0px;
}
#nearestColors1 .color-box:nth-child(4), #nearestColors2 .color-box:nth-child(4), #nearestColors3 .color-box:nth-child(4) {
    margin-right: 0px;
}
#nearestColors1 .color-box:nth-child(6), #nearestColors2 .color-box:nth-child(6), #nearestColors3 .color-box:nth-child(6) {
    margin-right: 0px;
}
.color-info {
    position: absolute;
    top: inherit;
    left: 0;
    right: 0;
    text-align: left;
    color: #000;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    min-height: 85px;
    background: white;
    bottom: 0px;
    overflow: hidden;
    padding: 10px 10px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 26px;
}
.color-info h2 {
    margin-bottom: 4px;
    border-bottom: 1px solid #90909057;
    padding-bottom: 4px;
    font-size: 17px;

}
#resultsWrapper {
    padding: 30px 0px;
    padding: 20px 33px 20px 60px;
    display: none;
}
#resultsWrapper p {
    margin: 0px;
    font-size: 14px;
    color: #4e4e4e;
    margin-bottom: 30px;
}
#resultsWrapper p.colorName {
    font-weight: bold;
    display: flex;
    line-height: 1;
    text-align: left;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: #000;
    font-size: 12px;
    margin-bottom: 1px;
}
#resultsWrapper .color-info.claro span {
    color: #4e4e4e;
}
#resultsWrapper .color-info.oscuro span {
    color: #4e4e4e;
}
#resultsWrapper .color-info.oscuro p.colorName, #resultsWrapper .color-info.oscuro span.ColorPantone  {
    color: #4e4e4e;
}
#resultsWrapper .color-info.claro p.colorName, #resultsWrapper .color-info.claro span.ColorPantone {
    color: #4e4e4e;
}

#resultsWrapper button {
    font-size: 17px;
    white-space: nowrap;
    border: none;
    font-weight: bold;
    background: #ed1c24;
    color: white;
    width: 100%;
    padding: 14px 0px;
    margin-top: 12px;
    border-radius: 10px;
    justify-content: center;
    display: flex;
    align-items: center;
}
#resultsWrapper button img {
    max-width: 20px;
    margin-right: 10px;
}
#resultsWrapper button:focus-visible {
    border: none;
}
#resultsWrapper button#shareBtn img{
    width: 35px;
    margin-right: 10px;
}
#resultsWrapper button:hover {
    background: #ab1f24;
    cursor: pointer;
}
#actionsWrapper {
    flex-direction: column;
}

#languageSwitcher {
    display: flex;
    justify-content: center;
}
.switcher {
    display: block;
    cursor: pointer;
    padding: 5px;
    background-color: transparent;
    transition: background-color 0.3s;
    border-radius: 0px;
    width: fit-content;
    position: absolute;
    top: 10px;
    right: 10px;
}
.switcher.active:hover {
    background-color: #ed1c24;
}
.language-option {
    width: 50px;
    transition: color 0.3s;
}
.language-option svg {
    height: 30px;
}
#progressBarWrapper {
    width: 100%;
    background-color: #ddd;
}
#progressBarWrapper {
    width: 100%;         /* Ocupa todo el ancho disponible */
    background-color: #e0e0e0; /* Fondo claro */
    border-radius: 12px; /* Bordes redondeados */
    overflow: hidden;    /* Esconde cualquier parte que se salga del contenedor */
    height: 20px;        /* Altura fija */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    margin: 20px 0;      /* Margen superior e inferior */
  }
  
  /* Barra de progreso */
  #progressBar {
    height: 100%;        /* Ocupa toda la altura del contenedor */
    background: linear-gradient(270deg, #4CAF50, #8BC34A); /* Degradado animado */
    border-radius: 12px 0 0 12px; /* Bordes redondeados solo a la izquierda */
    transition: width 0.5s ease-in-out; /* Transición suave al cambiar el ancho */
    background-size: 200% 100%;  /* Para animación del degradado */
    animation: gradientShift 2s infinite linear; /* Animación del fondo */
  }
  
  /* Animación del degradado */
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 100% 50%;
    }
  }
#loader {
    flex-direction: column;
}
#progressBar {
    width: 0%;
    height: 20px;
    background: rgb(89,87,206);
    background: -moz-linear-gradient(90deg, rgba(89,87,206,1) 15%, rgba(206,71,29,1) 48%, rgba(255,192,57,1) 75%);
    background: -webkit-linear-gradient(90deg, rgba(89,87,206,1) 15%, rgba(206,71,29,1) 48%, rgba(255,192,57,1) 75%);
    background: linear-gradient(90deg, rgba(89,87,206,1) 15%, rgba(206,71,29,1) 48%, rgba(255,192,57,1) 75%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#5957ce",endColorstr="#ffc039",GradientType=1);
}
.imageLoader {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px; /* Espacio superior, ajusta según prefieras */
}
/* ===== PAGINACIÓN DEL CARRUSEL - DISEÑO PROFESIONAL ===== */

/* Ocultar flechas de navegación */
.swiper-button-next, 
.swiper-button-prev {
    display: none !important;
}

/* Contenedor de paginación */
.swiper-pagination {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 20px !important;
    padding: 10px 0 !important;
}

/* Estilos de los puntos de paginación */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: #d1d5db !important;
    border: none !important;
    border-radius: 50% !important;
    margin: 0 6px !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

/* Punto activo */
.swiper-pagination-bullet-active {
    background-color: #5957ce !important;
    transform: scale(1.2) !important;
    box-shadow: 0 2px 8px rgba(89, 87, 206, 0.3) !important;
}

/* Efecto hover en los puntos */
.swiper-pagination-bullet:hover {
    background-color: #9ca3af !important;
    transform: scale(1.1) !important;
}

.swiper-pagination-bullet-active:hover {
    background-color: #4f46e5 !important;
}
#loaderMessage {
    color: #6e6e6e;
    font-weight: bold;
}
.imageLoaderMessage {
    font-size: 16px;
    margin-bottom: 10px;
}

.imageProgressBarWrapper {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    height: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.imageProgressBar {
    width: 0%;
    height: 100%;
    background: rgb(89,87,206);
    background: -moz-linear-gradient(90deg, rgba(89,87,206,1) 15%, rgba(206,71,29,1) 48%, rgba(255,192,57,1) 75%);
    background: -webkit-linear-gradient(90deg, rgba(89,87,206,1) 15%, rgba(206,71,29,1) 48%, rgba(255,192,57,1) 75%);
    background: linear-gradient(90deg, rgba(89,87,206,1) 15%, rgba(206,71,29,1) 48%, rgba(255,192,57,1) 75%);
}
.spinner {
    position: relative;
    width: 22.4px;
    height: 22.4px;
 }
 
 .spinner::before,
 .spinner::after {
    --radius: 250;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spinner-w7nm60 2s infinite linear;
    background: #ed1c24;
    border-radius: 50%;
 }
 
 .spinner::before {
    --radius: -250;
    background: #dbdcef;
 }
 
 @keyframes spinner-w7nm60 {
    0% {
       transform: scale(1) rotate(0deg) translateY(calc(var(--radius) * 1%));
    }
 
    50% {
       transform: scale(0.5) rotate(1440deg) translateY(0);
    }
 
    100% {
       transform: scale(1) rotate(2920deg) translateY(calc(var(--radius) * 1%));
    }
 }






 .collapse {
    margin: 20px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    background-color: #f9f9f9;
}

.collapse-content {
    display: none; /* Ocultamos el contenido por defecto */
    margin-top: 10px;
}

.comment-area {
    width: 90%;
    height: 100px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Montserrat", sans-serif;
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    border-color: #fff #fff #fff!important;
}
/* Removed old language dropdown styles - using new modern selector */
.space-top {
    margin-top: 100px;
}
/* Selector de idioma moderno */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    z-index: 1001;
}

.language-toggle {
    background: rgba(240, 240, 240, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: #2c2c2c;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    user-select: none;
    min-width: 90px;
}

.language-toggle:hover {
    background: rgba(220, 220, 220, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-toggle:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.language-toggle:active {
    transform: translateY(0);
}

.language-toggle.active {
    background: rgba(200, 200, 200, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

.globe-icon {
    color: #4a4a4a;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.current-language {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: #1a1a1a;
}

.chevron-icon {
    color: #4a4a4a;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.language-toggle.active .chevron-icon {
    transform: rotate(180deg);
    color: #1a1a1a;
}

.language-toggle.active .globe-icon {
    color: #1a1a1a;
}

/* Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: dropdownFadeIn 0.3s ease;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    user-select: none;
    outline: none;
    width: 100%;
    color: #2c2c2c;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

.language-option:focus {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    outline: 2px solid rgba(0, 0, 0, 0.3);
    outline-offset: -2px;
}

.language-option.selected {
    background: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    font-weight: 600;
}

.language-option.selected::after {
    content: '✓';
    margin-left: auto;
    color: #1a1a1a;
    font-weight: bold;
}

.flag-emoji {
    font-size: 18px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

/* Animación de aparición */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-selector {
        top: 15px;
        right: 15px;
    }
    
    .language-toggle {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 75px;
    }
    
    .language-dropdown {
        min-width: 140px;
        right: 0;
    }
    
    .language-option {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .globe-icon {
        width: 14px;
        height: 14px;
    }
    
    .chevron-icon {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .language-toggle {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 65px;
    }
    
    .language-dropdown {
        right: 0;
        min-width: 120px;
    }
    
    .language-option {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .flag-emoji {
        font-size: 16px;
    }
}

/* Eliminado dark mode - mantenemos solo diseño claro */
.generated-image {
    max-width: 100%;
}

/* 
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/

@media (min-width: 1025px) {
    .lancologo {
        top: 3%;
        left: 4%;
        width: 97px;
    }
    .mainimg {
        max-width: 100%!important;
    }    
    .nav-tabs .nav-link {
        font-size: 1rem;
    }
    #colorForm textarea {
        font-size: 1.5rem;
        height: 109px;
        font-size: 1.2rem;
    }
    #prompt::placeholder {
        font-size: 1rem;
    }
    #colorForm input[type=submit] {
        font-size: 1.2rem;
    }
    .btn-wrapper.upload img {
        width: 170px;
    }
    .btn-wrapper {
        width: fit-content;
        padding: 10px 20px;
    }
    .btn-wrapper img {
        width: 38px;
        height: 38px;
    }
    
    /* Estilos responsivos para el botón de generar */
    .btn-wrapper.generate-btn {
        padding: 18px 25px;
        font-size: 18px;
        gap: 12px;
        min-width: 200px;
    }
    
    .btn-wrapper.generate-btn img {
        width: 32px;
        height: 32px;
    }
    
    /* Estilos responsivos para el preview original */
    .preview-original {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .preview-suggestion, .preview-subtitle {
        font-size: 18px;
    }
    
    .preview-color-box {
        height: 80px;
    }
    
    .preview-color-box-wide {
        height: 60px;
    }
    
    .preview-palette-row {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .preview-color-label {
        font-size: 16px;
    }
    
    .preview-color-name {
        font-size: 14px;
    }
    
    .preview-color-code, .preview-color-pantone {
        font-size: 12px;
    }
    
    .preview-narrative p {
        font-size: 14px;
    }
    #headerbanner{
        background-position: 100% 92%;
        height: 20vh;
    }
    #nearestColors1 .color-box:nth-child(1),#nearestColors2 .color-box:nth-child(1),#nearestColors3 .color-box:nth-child(1) {
        height: 200px;
        width: 60%;
    }
    #nearestColors1 .color-box:nth-child(2),#nearestColors2 .color-box:nth-child(2),#nearestColors3 .color-box:nth-child(2) {
        height: 200px;
        width: 38%;
    }
    #nearestColors1 .color-box:nth-child(3),#nearestColors2 .color-box:nth-child(3),#nearestColors3 .color-box:nth-child(3) {
        height: 125px;
        width: 100%;
    }
    #nearestColors1 .color-box:nth-child(4),#nearestColors2 .color-box:nth-child(4),#nearestColors3 .color-box:nth-child(4) {
        height: 120px;
    }
    #nearestColors1 .color-box:nth-child(5),#nearestColors2 .color-box:nth-child(5),#nearestColors3 .color-box:nth-child(5) {
        height: 120px;
    }
    #nearestColors1 .color-box:nth-child(6),#nearestColors2 .color-box:nth-child(6),#nearestColors3 .color-box:nth-child(6) {
        height: 120px;
    }
    #resultsWrapper {
        display: block;
    }
    #resultsWrapper button {
        width: 40%;
        padding: 15px 0px;
    }
    #resultsWrapper p {
        margin-bottom: 10px;
    }
    #actionsWrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    #resultsWrapper button#shareBtn img {
        width: 18px;
    }
  }

/* Navegación Moderna */
.modern-navigation {
  background: #fafafa;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px auto;
  max-width: 450px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.palette-counter {
  text-align: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: #777;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.counter-current {
  color: #333;
  font-weight: 700;
  font-size: 16px;
  margin: 0 3px;
}

.counter-separator {
  margin: 0 3px;
  color: #999;
}

.counter-total {
  font-weight: 500;
  margin-left: 3px;
}

.navigation-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 85px;
  justify-content: center;
}

.nav-btn:hover:not(:disabled) {
  border-color: #bbb;
  color: #333;
  background: #f9f9f9;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #eee;
  color: #aaa;
}

.nav-btn svg {
  transition: transform 0.2s ease;
  width: 16px;
  height: 16px;
}

.nav-btn:hover:not(:disabled) svg {
  transform: translateX(1px);
}

.nav-prev:hover:not(:disabled) svg {
  transform: translateX(-1px);
}

.palette-indicators {
  display: flex;
  gap: 10px;
  align-items: center;
}

.indicator {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.indicator:hover {
  border-color: #aaa;
  color: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.indicator.active {
  background: #333;
  border-color: #333;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.indicator.completed {
  background: #5a9f5a;
  border-color: #5a9f5a;
  color: white;
}

.indicator.completed::after {
  content: '✓';
  font-size: 11px;
  font-weight: bold;
}

/* Responsive para navegación moderna */
@media (max-width: 768px) {
  .modern-navigation {
    margin: 16px 12px;
    padding: 14px 16px;
  }
  
  .navigation-controls {
    flex-direction: column;
    gap: 14px;
  }
  
  .nav-btn {
    width: 100%;
    min-width: unset;
    padding: 10px 16px;
  }
  
  .palette-indicators {
    order: -1;
    justify-content: center;
  }
  
  .palette-counter {
    font-size: 13px;
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .modern-navigation {
    border-radius: 10px;
    padding: 12px 14px;
    margin: 14px 10px;
  }
  
  .nav-btn {
    padding: 9px 12px;
    font-size: 12px;
  }
  
  .indicator {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  
  .palette-counter {
    font-size: 12px;
    margin-bottom: 12px;
  }
}