/* ==========================================================================
   GLINT CLEANER AI - HOJA DE ESTILOS CONSOLIDADA
   ========================================================================== */

/* 1. VARIABLES & CONFIGURACIÓN DE FUENTES */
:root {
  --background: #050505;
  --foreground: #fff;
  --color-primary: gold;
  --color-secondary: #0ff;
  --color-tertiary: #00ff7f;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Mantener compatibilidad con clases de Next.js */
.inter_396b12ce-module__rRjk0G__className {
  font-family: var(--font-sans);
  font-style: normal;
}

/* 2. REGLAS GENERALES Y RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--background);
  max-width: 100vw;
  color: var(--foreground);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* 3. COMPONENTES COMUNES & CLASES DE DISEÑO */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
}

/* Gradientes de Texto */
.text-gradient-gold {
  background: linear-gradient(90deg, #fff 0%, gold 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(90deg, #fff 0%, #0ff 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(90deg, #fff 0%, #00ff7f 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Botón Principal */
.btn-primary {
  background-color: var(--color-primary);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
}

/* 4. MENÚ DE NAVEGACIÓN (NAVBAR) */
.navbar {
  z-index: 1000;
  width: 100%;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: fixed;
  top: 0;
  left: 0;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 15px 0;
}

.nav-container {
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
}

.logo {
  letter-spacing: -0.5px;
  font-size: 24px;
  font-weight: 900;
}

.logo-glint {
  color: #fff;
}

.logo-cleaner {
  color: var(--color-primary);
}

.nav-links {
  align-items: center;
  gap: 32px;
  display: flex;
}

.nav-links a:not(.nav-btn) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.nav-btn):hover {
  color: #fff;
}

.nav-btn {
  padding: 10px 24px;
  font-size: 14px;
}

.mobile-toggle {
  cursor: pointer;
  color: #fff;
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    background: #0a0a0a;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(-150%);
    visibility: hidden;
  }
  
  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  
  .mobile-toggle {
    display: block;
  }
}

/* 5. SECCIÓN HERO (INICIO) */
.hero-section {
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-container {
  z-index: 10;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  position: relative;
}

.hero-content {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 30px;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 16px;
  display: inline-flex;
}

.hero-badge span {
  color: gold;
  letter-spacing: 0.5px;
  font-size: 14px;
  font-weight: 600;
}

.hero-title {
  color: #fff;
  margin-bottom: 24px;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin-bottom: 40px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-cta {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.hero-btn {
  background: linear-gradient(135deg, gold 0%, orange 100%);
  padding: 16px 32px;
  font-size: 18px;
}

.hero-security {
  color: rgba(255, 255, 255, 0.6);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  display: flex;
}

/* Animación y Mockup de Celular */
.hero-visual {
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-circle {
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 400px;
  display: flex;
  position: relative;
}

.pulse-ring {
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  position: absolute;
}

.delay-1 {
  animation-delay: 1.5s;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.mockup-card {
  z-index: 5;
  background: rgba(10, 10, 10, 0.6);
  width: 320px;
  padding: 30px;
  position: relative;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.mockup-card.complete {
  border-color: rgba(0, 255, 127, 0.4);
  box-shadow: 0 0 30px rgba(0, 255, 127, 0.2);
}

.mockup-header {
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  display: flex;
}

.mockup-icon {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 30px;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  display: flex;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.mockup-card.complete .mockup-icon {
  background: rgba(0, 255, 127, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.4);
}

.mockup-header h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.mockup-progress {
  margin-bottom: 30px;
}

.progress-bar-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  width: 100%;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #0ff, #00ff7f);
  border-radius: 4px;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.mockup-stats {
  justify-content: space-between;
  display: flex;
}

.stat {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.stat span {
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-size: 12px;
}

.stat strong {
  color: #00ff7f;
  font-size: 20px;
}

/* Efectos Glow de Fondo */
.glow {
  filter: blur(100px);
  z-index: 1;
  opacity: 0.15;
  border-radius: 50%;
  width: 600px;
  height: 600px;
  position: absolute;
}

.glow-cyan {
  background: #0ff;
  top: -200px;
  right: -100px;
}

.glow-green {
  background: #00ff7f;
  bottom: -200px;
  left: -200px;
}

@media (max-width: 968px) {
  .hero-container {
    text-align: center;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-cta {
    align-items: center;
  }
  .glow {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  .mockup-circle {
    width: 320px;
    height: 320px;
  }
  .mockup-card {
    width: 300px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .mockup-circle {
    width: 280px;
    height: 280px;
  }
  .mockup-card {
    width: 280px;
  }
  .mockup-header h3 {
    font-size: 20px;
  }
  .hero-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }
}

/* 6. SECCIÓN CARACTERÍSTICAS (FEATURES) */
.features-section {
  z-index: 10;
  padding: 100px 0;
  position: relative;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 900;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.6;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  display: grid;
  transition: opacity 0.8s ease;
}

.feature-card {
  background: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 30px;
  transition: transform 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card:before {
  content: "";
  filter: blur(50px);
  opacity: 0.15;
  z-index: 0;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  transition: opacity 0.3s;
  position: absolute;
  top: -50px;
  right: -50px;
}

.feature-card:hover:before {
  opacity: 0.3;
}

.feat-glow-gold:before {
  background: gold;
}

.feat-glow-cyan:before {
  background: #0ff;
}

.feat-glow-green:before {
  background: #00ff7f;
}

.feature-icon-wrapper, .feature-title, .feature-desc {
  z-index: 1;
  position: relative;
}

.feature-icon-wrapper {
  margin-bottom: 24px;
}

.feature-title {
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.feature-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
  }
  .section-subtitle {
    font-size: 18px;
  }
  .features-section {
    padding: 60px 0;
  }
  .feature-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 32px;
  }
  .feature-title {
    font-size: 22px;
  }
  .feature-desc {
    font-size: 15px;
  }
}

/* 7. SECCIÓN PIE DE PÁGINA (FOOTER) */
.footer-section {
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 10, 10, 0.8);
  margin-top: 100px;
  padding: 80px 0 20px;
}

.footer-container {
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
}

.footer-brand {
  flex-direction: column;
  gap: 20px;
  display: flex;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.6;
}

.social-links {
  gap: 16px;
  display: flex;
}

.social-links a {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  display: flex;
}

.social-links a:hover {
  background: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-links {
  justify-content: flex-end;
  gap: 80px;
  display: flex;
}

.link-column {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.link-column h4 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.link-column a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  transition: color 0.2s;
}

.link-column a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
  }
}

/* 8. SECCIÓN BLOG (PÁGINA PRINCIPAL Y ENTRADAS) */
.blog-container {
  max-width: 1000px;
  min-height: 80vh;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-title {
  color: #fff;
  margin-bottom: 16px;
  font-size: 48px;
  font-weight: 900;
}

.blog-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  display: grid;
}

.blog-card {
  transition: transform 0.3s ease;
  display: block;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card-content {
  flex-direction: column;
  height: 100%;
  padding: 30px;
  display: flex;
}

.blog-card-image-wrapper {
  border-radius: 24px 24px 0 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.05);
}

/* Detalle del Post */
.post-hero-image-wrapper {
  border-radius: 24px 24px 0 0;
  width: calc(100% + 80px);
  height: 400px;
  margin: -40px -40px 40px;
  overflow: hidden;
}

.post-hero-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.blog-date {
  color: gold;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.blog-post-title {
  color: #fff;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.blog-post-excerpt {
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}

.blog-read-more {
  color: #0ff;
  font-size: 15px;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.blog-card:hover .blog-read-more {
  color: #fff;
  transform: translateX(8px);
}

.post-article {
  padding: 40px;
}

.post-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
  padding-bottom: 30px;
}

.post-title {
  color: #fff;
  margin: 16px 0;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
}

.post-content h2 {
  color: #fff;
  margin: 40px 0 20px;
  font-size: 28px;
}

.post-content h3 {
  color: #fff;
  margin: 30px 0 15px;
  font-size: 22px;
}

.post-content p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.8;
}

.post-content ul, .post-content ol {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px 20px;
  font-size: 18px;
  line-height: 1.8;
}

.post-content li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .blog-title, .post-title {
    font-size: 36px;
  }
  .post-article {
    padding: 24px;
  }
  .post-hero-image-wrapper {
    width: calc(100% + 48px);
    height: 250px;
    margin: -24px -24px 24px;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-title {
    font-size: 32px;
  }
  .post-title {
    font-size: 28px;
  }
  .post-content h2 {
    font-size: 24px;
  }
  .post-content h3 {
    font-size: 20px;
  }
  .post-content p, .post-content ul, .post-content ol {
    font-size: 16px;
  }
  .blog-container {
    padding: 100px 16px 60px;
  }
}

/* 9. PÁGINAS LEGALES */
.legal-container {
  max-width: 800px;
  min-height: 80vh;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-title {
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  font-size: 48px;
  font-weight: 900;
}

.legal-content {
  padding: 40px;
}

.legal-content h2 {
  color: #fff;
  margin: 30px 0 15px;
  font-size: 24px;
  font-weight: 700;
}

.legal-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.8;
}

.legal-content strong {
  color: gold;
}

@media (max-width: 768px) {
  .legal-title {
    font-size: 36px;
  }
  .legal-content {
    padding: 24px;
  }
}

/* 10. ESTILOS ADICIONALES PARA LA PÁGINA 404 PERSONALIZADA */
.error-card-404 {
  text-align: center;
  padding: 60px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, gold 0%, #0ff 50%, #00ff7f 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.error-title {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.error-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.error-btn {
  padding: 14px 36px;
}
