* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: url("ropafondo.png") no-repeat center center fixed;
  background-size: cover;
  overscroll-behavior: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  color: #333;
  margin: 0;
  width: 100%;
}

.login-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

.login-card {
  width: 100%;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Título del login */
.login-title {
  text-align: center;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 28px;
  font-weight: 600;
}

/* Descripción */
.login-description {
  text-align: center;
  margin-bottom: 30px;
  color: #7f8c8d;
  font-size: 16px;
  line-height: 1.5;
}

/* Contenedor de mensajes (error o éxito) */
.message-container {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.message-error {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.message-success {
  background-color: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Formulario */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Grupo de formulario (label + input) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-weight: 500;
  color: #2c3e50;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Inputs */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #f8f9fa;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: #ffffff;
}

.form-input::placeholder {
  color: #bdc3c7;
}

/* Botón de submit */
.submit-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 10px;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Enlaces adicionales */
.login-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #7f8c8d;
}

.login-links p {
  margin-top: 8px;
}

.link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.link:hover {
  color: #764ba2;
  text-decoration: underline;
}


@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .login-title {
    font-size: 24px;
  }

  body {
    padding: 10px;
  }
}

.card {
  width: 130px;
  height: 150px;
  background: white;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  background: #e6e6e6;
  transform: scale(1.05);
}

.card img {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}

/* Estilos para la página del armario */

.arm-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 1400px;
}

.top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.title-ropa {
  color: white;
  font-size: 2.2rem;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  transition: opacity 0.3s ease, height 0.3s ease;
  margin-bottom: 10px;
}

.title-ropa.hidden {
  opacity: 0;
  height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.login-card-arm {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  position: static;
}

.login-card-arm:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.arm-titulo {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 28px;
  font-weight: 600;
}

.form-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.hidden-input {
  display: none;
}

.custom-file-label {
  background-color: #4a90e2;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  display: flex;
  margin: 0;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
}

.custom-file-label:hover {
  background-color: #357abd;
}

.grid-container {
  background-color: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  margin-top: 0px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
  justify-items: center;
  align-items: center;
  min-height: 600px;
}

.grid-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  aspect-ratio: 1/1;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 200px;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease , background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: rgba(255, 0, 0, 1);
}

.grid-item:hover .delete-btn {
  opacity: 1;
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px; /* Aumentado el padding */
    color: #666;
    font-style: italic;
    font-size: 18px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .title-ropa {
    font-size: 1.8rem;
  }

  .arm-titulo {
    font-size: 1.5rem;
  }

  .login-card,
  .grid-container {
    padding: 20px;
  }

  body {
    padding: 10px;
  }
}


/* perfil.css */
.perfil-foto-container {
  text-align: center;
  margin-bottom: 20px;
}

.perfil-foto {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid #667eea;
  background-color: #f3f4f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.perfil-foto:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.config-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 40px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  min-height: 100vh;
}

.config-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 400px;
  text-align: center;
}

.foto-perfil {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.btn-upload {
  display: inline-block;
  background-color: #2575fc;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 5px;
}

.hidden-input {
  display: none;
}

.btn-primary,
.btn-secondary,
.btn-logout,
.btn-delete {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
}

.btn-primary {
  background-color: #2575fc;
  color: white;
}

.btn-secondary {
  background-color: #6a11cb;
  color: white;
}

.btn-logout {
  background-color: #ff4d4d;
  color: white;
}

.btn-delete {
  background-color: #f44336;
  color: white;
}

.ropa-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ropa-item-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 8px;
}

.ropa-item-admin img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.ropa-item-admin .acciones button {
  margin-left: 8px;
}

/* ==== CONFIGURACIÓN (versión simple) ==== */
.config-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: 'Segoe UI', sans-serif;
}

.config-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 350px;
  text-align: center;
}

.config-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
}

/* Foto circular */
.config-foto img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #667eea;
  margin-bottom: 10px;
}

/* Inputs */
.config-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.config-input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

.config-btn {
  margin-top: 10px;
  background-color: #667eea;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.config-btn:hover {
  background-color: #5a6fe1;
}

.divider {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* Eliminar ropa */
.config-delete h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.delete-btn:hover {
  background-color: #c0392b;
}

/* Botones de acción */
.config-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.back-btn,
.logout-btn {
  flex: 1;
  margin: 0 5px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  color: white;
}

.back-btn {
  background-color: #555;
}

.back-btn:hover {
  background-color: #666;
}

.logout-btn {
  background-color: #222;
}

.logout-btn:hover {
  background-color: #333;
}


body > a[href*="somee.com"],
body > div:last-child,
footer,
a[href*="somee.com"] {
    display: none !important;
    visibility: hidden !important;
}


/* Oculta enlaces específicos */
a[href*="somee.com"],
a[href*="somee"] {
    display: none !important;
}

/* Oculta divs que contengan "Web hosting" */
div:contains("Web hosting"),
div:has-text("Web hosting"),
*:contains("Web hosting") {
    display: none !important;
}

/* Ocultar por ID/class si tienen */
#somee-ad,
.somee-ad,
[class*="somee"],
[id*="somee"] {
    display: none !important;
}

/* ===== BURBUJA LOOKLAB CON IMAGEN AJUSTADA ===== */
.looklab-bubble {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
    max-width: 350px; /* Límite máximo */
}

.bubble-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    max-width: 100%;
}

/* Contenedor de la imagen ajustada */
.bubble-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* IMAGEN AJUSTADA - ESTO ES LO IMPORTANTE */
.bubble-logo {
    width: auto; /* Quitar width fijo */
    height: 40px; /* Altura fija */
    max-width: 120px; /* Ancho máximo */
    object-fit: contain; /* Mantener proporciones */
    object-position: left center; /* Alinear a la izquierda */
    flex-shrink: 0; /* Evitar que se encoja */
}

/* Versión alternativa si la imagen es horizontal */
.bubble-logo.horizontal {
    height: 40px;
    max-width: 150px;
}

/* Versión para imágenes verticales */
.bubble-logo.vertical {
    height: 60px;
    max-width: 90px;
}

/* Si la imagen tiene texto muy grande */
.bubble-logo.text-only {
    height: 30px;
    max-width: 100px;
    filter: brightness(1.1) contrast(1.1);
}

.bubble-text{
    color: white;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .looklab-bubble {
        top: 20px;
        right: 20px;
        max-width: 280px;
    }
    
    .bubble-container {
        padding: 12px 16px;
        border-radius: 40px;
    }
    
    .bubble-logo {
        height: 35px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .looklab-bubble {
        top: 15px;
        right: 15px;
        max-width: 250px;
    }
    
    .bubble-container {
        padding: 10px 14px;
        border-radius: 35px;
    }
    
    .bubble-logo {
        height: 30px;
        max-width: 90px;
    }
}

/* Para pantallas muy pequeñas, simplificar */
@media (max-width: 360px) {
    .looklab-bubble {
        max-width: 200px;
    }
    
    .bubble-logo {
        height: 25px;
        max-width: 80px;
    }
}


