/* ============================================
   PASSWORD GENERATOR - ESTILOS COMPLETOS
   Sin transiciones para cambio instantáneo
   ============================================ */

/* ===== HERO SECTION ===== */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ===== TOOL CARD ===== */
.tool-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1rem auto;
}

.tool-card {
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .tool-card {
    padding: 1.5rem;
  }
}

.tool-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.tool-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.tool-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== PASSWORD DISPLAY ===== */
.password-area {
  margin-bottom: 1.75rem;
}

.result-display {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  word-break: break-all;
}

.result-display:focus-within {
  border-color: var(--accent);
}

.result-display span {
  font-family: "Courier New", "Fira Code", monospace;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.copy-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.copy-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
  color: var(--accent);
}

/* ===== STRENGTH INDICATOR ===== */
.strength-indicator {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.strength-segment {
  flex: 1;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
}

.strength-segment.weak {
  background: #ef4444;
}

.strength-segment.medium {
  background: #f59e0b;
}

.strength-segment.strong {
  background: #10b981;
}

.strength-label {
  font-size: 0.7rem;
  margin-top: 0.5rem;
  text-align: right;
  color: var(--text-muted);
}

/* ===== OPTIONS PANEL ===== */
.options-panel {
  margin-top: 1.5rem;
}

.option-row {
  margin-bottom: 1.5rem;
}

.option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.option-label label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.length-badge {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.option-row input[type="range"] {
  width: 100%;
  cursor: pointer;
  accent-color: var(--accent);
}

.length-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.25rem 0;
}

.checkbox-label input {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-label:hover {
  color: var(--accent);
}

/* Action button */
.action-buttons {
  margin-top: 1.5rem;
}

.btn-block {
  width: 100%;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  margin: 4rem 0;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    var(--bg-secondary) 100%
  );
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin: 3rem 0;
  border: 1px solid var(--border-color);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
  color: var(--text-primary);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== TIPS SECTION ===== */
.tips-section {
  margin: 4rem 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.tip-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.tip-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tip-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== SEO CONTENT SECTION ===== */
.seo-content-section {
  margin: 3rem 0 2rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.seo-article h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.seo-article h3:first-of-type {
  margin-top: 0;
}

.seo-article p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  margin: 4rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.faq-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  margin: 3rem 0;
}

.cta-card {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}

.cta-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

.cta-card .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.cta-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: var(--z-toast);
  animation: fadeInUp 0.3s ease;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .tool-card {
    padding: 1.25rem;
  }

  .tool-header h2 {
    font-size: 1.25rem;
  }

  .result-display span {
    font-size: 0.85rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .stats-section {
    padding: 2rem 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .seo-content-section {
    padding: 1.5rem;
  }

  .seo-article h3 {
    font-size: 1.1rem;
  }

  .seo-article p {
    font-size: 0.85rem;
  }

  .cta-card {
    padding: 1.5rem;
  }

  .cta-card h3 {
    font-size: 1.25rem;
  }

  .toast {
    white-space: normal;
    text-align: center;
    max-width: 80%;
    font-size: 0.75rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .tip-card {
    padding: 1rem;
  }

  .tip-number {
    font-size: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
/* ===== TAGLINE (eslogan) ===== */
.tagline {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 1rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .tagline {
    font-size: 0.7rem;
  }
}
