* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #1b1b1b;
  --white: #f0f0f0;
  --gray: #d3d3d3;
  --light-gray: #f3f3f3;
  --button-primary: rgb(66, 66, 66);
  --button-hover: #7e7e7e;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--light-gray);
  display: flex;
  color: var(--black);
  flex-direction: column;
  height: fit-content;
}

button {
  border: none;
  border-radius: 6px;
}

#container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  padding: 10px;
  margin: 0 auto;
  min-height: 100dvh;
}

#interaction {
  max-width: 900px;
  margin: 0 auto;
}

.interaction_login {
  width: 100%;
  gap: 20px;
}

.logo {
  font-weight: 700;
  color: var(--black);
}

section {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  margin-top: 20px;
  max-width: 1200px;
  padding: 100px 10px;
}

section h2 {
  text-align: center;
}

section p {
  text-align: center;
}

.testimonial-grid {
  display: flex;
  gap: 10px;
}

#container h2 {
  text-align: center;
}

#welcomeMessage {
  margin-bottom: 20px;
}

#response {
  margin-top: 20px;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
}

#userInteraction {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 10px;
  height: 600px;
}


#mobileMenuCloseBtn {
  display: none;
}


/* Contenedor del spinner */
.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: transparent;
}

/* Círculo giratorio */
.spinner-circle {
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  /* Color de fondo */
  border-top: 5px solid #3498db;
  /* Color del borde giratorio */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  background-color: transparent;
}

/* Animación de rotación */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Opcional: Oscurecer el fondo mientras carga */
.spinner::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fondo semitransparente */
  z-index: -1;
}

header {
  display: flex;
  flex-direction: row;
}

nav {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 10px;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--black);
  color: var(--black);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-menu.open {
  display: flex;
}



.logo {
  white-space: nowrap;
}

#creditsDisplay {
  font-size: 12px;
  white-space: nowrap;
  display: none;
}

#payBtn,
#loginBtn,
#logoutBtn {
  padding: 8px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}



#imageBtn,
#generateBtn {
  padding: 9px;
  text-transform: capitalize;
  background: var(--button-primary);
  color: #f0f0f0;
  cursor: pointer;
}

#imageBtn:hover,
#generateBtn:hover {
  background: var(--button-hover);

}

#generateBtn:disabled {
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.6;
}

#imagePrompt {
  height: 100px;
  resize: none;
  width: 100%;
}

#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  width: 100%;
}

#hero_title {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  padding: 0px 0px 20px 0px;
  text-align: center;
}

#loginBtn-hero {
  background: black;
  color: white;
  padding: 14px 18px;
  border-radius: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  width: fit-content;
  margin: 0 auto;
}

#loginBtn-hero:hover {
  background-color: var(--gray);
  color: var(--black);
  border: 1px solid white;
}






.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero-subtitle {
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 24px;
}



.hero-panel {
  width: 100%;
  display: flex;
  justify-content: center;
}

#live-demo {
  display: flex;
  max-width: 700px;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin: 0 auto;
}

.demo-images {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.demo-images-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}


.demo-images-div img {
  max-width: 300px;
  width: 100%;
  height: 100%;
}

.demo-images-div p {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: #757575;
}

.feature-card,
.pricing-card,
.testimonial-card,
.highlight-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 30px;
  text-align: center;
}

.highlight-card {
  width: 100%;
  text-align: center;
}

.highlight-card strong {
  text-align: center;
}

.demo-card {
  padding: 10px;
  background: white;

}

.demo-box {
  min-height: 180px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  padding: 10px;
}

.demo-label {
  margin-bottom: 14px;
  font-weight: 700;
  color: #111;
}

.hero-highlights,
.pricing-grid,
.feature-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.pricing-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 400px;
}

.pricing-card p {
  text-align: left;
}



.feature-card p,
.highlight-card p,
.testimonial-card p {
  color: #555;
  line-height: 1.7;
  margin-top: 10px;
}



.pricing-card.recommended {
  border: 3px solid;
  border-color: var(--button-primary);
}

.pricing-card strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.pricing-card p {
  margin: 0;
}

.price-badge {
  display: flex;
  align-items: center;
  justify-content: left;
  /* padding: 10px 14px; */
  font-size: 28px;
  border-radius: 999px;
  /* background: var(--black); */
  color: var(--black);
  font-weight: 700;
}

.pricing-description {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: left;
}

.pricing-description p {
  text-align: left;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--button-primary);
  color: white;
  text-decoration: none;
  transition: background 0.2s ease;
  font-weight: 700;
}

.cta:hover {
  background: var(--button-hover);
}

.testimonial-card strong {
  display: block;
  margin-top: 18px;
  color: #222;
}



#loginBtn,
#logoutBtn {
  /* width: fit-content; */
  height: fit-content;
  padding: 8px 12px;
  background: var(--button-primary);
  color: white;
  cursor: pointer;
  display: none;
}

#loginBtn:hover,
#logoutBtn:hover {
  background: var(--button-hover);
}

#payBtn {
  padding: 8px 12px;
  background: var(--button-primary);
  color: white;
  font-weight: bold;
  cursor: pointer;
  text-transform: capitalize;
  display: none;
}

#payBtn a {
  text-decoration: none;
  color: black;
}

#payBtn:hover {
  background: var(--button-hover);
}

#resultContainer {
  width: 100%;
  height: fit-content;
}

#examples {
  /* background: #000000; */
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 100px 10px;
  margin: 0 auto;
  flex-direction: column;
  text-align: center;
}



/* CLAUDE CODE STYLES */

.header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
  gap: 12px;
}

.header-icon {
  width: 24px;
  height: 24px;
  border: 2px solid #666;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}

.main-content {
  flex: 1;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.input-section {
  margin-bottom: 5px;
}

.input-label {
  color: #999;
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

.main-input {
  width: 100%;
  background: black;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 16px;
  color: #e0e0e0;
  font-size: 16px;
  min-height: 120px;
  resize: none;
  font-family: inherit;
}

.main-input:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.main-input::placeholder {
  color: #666;
}

.skeleton {
  width: 200px;
  height: 30px;
  margin: 10px auto;
  /* margin-bottom: 10px; */
  background: transparent;
  position: relative;
  overflow: hidden;
}

.skeleton.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(138, 138, 138, 0.267),
      transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

#removeImageBtn {
  position: relative;
  top: 35px;
  left: 80px;
  background-color: red;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 2px 4px;
  color: black;
  cursor: pointer
}


.controls-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

a {
  color: black;
  text-decoration: none;
}

.control-button {
  background: var(--button-primary);
  padding: 8px 12px;
  color: #e0e0e0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-button:hover {
  background: var(--button-hover);
  border-color: #555;
}

.control-button.active {
  background: #4a9eff;
  border-color: #4a9eff;
  color: white;
}

.dropdown-arrow {
  font-size: 12px;
  color: #999;
}

.bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #333;
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #999;
}

.add-button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 24px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.add-button:hover {
  color: #4a9eff;
}

.generate-button {
  background: var(--button-primary);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.generate-button:hover {
  background: linear-gradient(135deg, #5aa5ff, #0077dd);
}

.generate-button:active {
  transform: translateY(0);
}

.type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.type-tab {
  background: var(--button-primary);
  border: 1px solid black;
  padding: 8px 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.type-tab:hover {
  background: var(--button-hover);
  color: #e0e0e0;
}

.type-tab.active {
  background: #7e7e7e;
  color: #e0e0e0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: black;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 0;
  min-width: 120px;
  z-index: 1000;
  display: none;
}

/* #resolutionDropdown {
  display: none;
} */
.dropdown-item {
  padding: 8px 12px;
  color: #e0e0e0;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #3a3a52;
}

.dropdown-container {
  position: relative;
}

.status-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a9eff;
  animation: pulse 2s infinite;
}


@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* Legal Pages Header */
.legal-header {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.legal-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

/* Legal pages content */
.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  color: var(--black);
}

.legal-content .last-updated {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 40px;
  font-weight: 500;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 30px 0 15px 0;
  color: var(--black);
  border-bottom: 2px solid var(--button-primary);
  padding-bottom: 8px;
}

.legal-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  text-align: justify;
}

.legal-content strong {
  font-weight: 600;
  color: var(--black);
}


/* Legal pages footer */
footer {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 30px;
  padding: 20px;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

footer a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--button-primary);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  header {
    min-height: 55px;
  }

  .logo {
    font-size: 0.9rem;
    width: auto;
  }

  header>div {
    gap: 8px;
  }

  #creditsDisplay {
    padding: 3px 5px;
  }

  #payBtn,
  #loginBtn,
  #logoutBtn {
    padding: 6px 10px;
    font-size: 0.8rem;
    width: 100%;
  }

  .demo-images img {
    max-width: 200px;
    width: 100%;
  }

  #mobileMenuBtn {
    display: inline-flex;
  }

  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 50vw;
    max-width: 320px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 16px;
    background: white;
    box-shadow: -2px 0 24px rgba(0, 0, 0, 0.16);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1000;
  }
.hero-highlights {
  flex-direction: column;
}
  section {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    margin-top: 20px;
  }

  .testimonial-grid,
  .pricing-grid,
  .feature-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }



  .pricing-card {
    width: 100%;
  }

  .highlight-card {
    width: 100%;
  }

  #mobileMenuCloseBtn {
    display: block;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 999;
  }

  .mobile-menu-overlay.open {
    display: block;
  }

  .mobile-menu-close-btn {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #444;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 10px;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu>* {
    width: 100%;
  }

  .nav-menu #paywall,
  .nav-menu button,
  .nav-menu a {
    width: 100%;
  }

  .nav-menu button,
  .nav-menu a {
    text-align: center;
  }

  .legal-header .logo {
    font-size: 1.3rem;
  }

  .legal-content {
    padding: 30px 15px;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.3rem;
  }

  .legal-content p {
    font-size: 0.95rem;
  }

  footer {
    padding: 15px;
  }

  footer a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #hero_title {
    font-size: 28px;
  }

  header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: auto;
  }

  nav {
    padding: 0px 10px;
  }


  .demo-images-div img {
    width: 300px;
  }

  .demo-images-div p {
    font-size: 14px;
  }

  .logo {
    text-align: center;
    padding: 8px 0;
  }

  #creditsDisplay {
    text-align: center;
    padding: 2px 3px;
  }

  #payBtn,
  #loginBtn,
  #logoutBtn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  #paywall {
    flex: 1;
  }

  #paywall button {
    width: 100%;
  }

  .demo-images img {
    width: 100px;
  }

  .legal-content {
    padding: 20px 10px;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }

  .legal-content h2 {
    font-size: 1.2rem;
  }

  footer div {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}