/* ============================================================
   REMINDME — main.css
   Base: reset, variables, tipografía, layout, nav, botones, footer
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --bg:             #0a0a0f;
  --bg-2:           #0d0d18;
  --bg-glass:       rgba(13, 13, 24, 0.6);
  --primary:        #863bff;
  --primary-dark:   #7e14ff;
  --accent:         #47bfff;
  --text:           #ffffff;
  --text-muted:     #8b7aa8;
  --text-light:     #ede6ff;
  --glass:          rgba(134, 59, 255, 0.07);
  --glass-hover:    rgba(134, 59, 255, 0.13);
  --glass-border:   rgba(134, 59, 255, 0.2);
  --glass-border-h: rgba(134, 59, 255, 0.45);
  --radius:         16px;
  --radius-sm:      8px;
  --radius-xs:      6px;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);
  --transition:     0.3s var(--ease);
  --font-heading:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;
  --gold:           #F5C242;
  --gold-dark:      #D4A017;
  --shadow-glow:    0 0 40px rgba(134, 59, 255, 0.35);
  --shadow-glow-lg: 0 0 80px rgba(134, 59, 255, 0.25);
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar          { width: 5px; }
::-webkit-scrollbar-track    { background: var(--bg); }
::-webkit-scrollbar-thumb    { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---- Selection ---- */
::selection {
  background: rgba(134, 59, 255, 0.35);
  color: white;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

em {
  font-style: italic;
  color: var(--text-light);
}

strong {
  font-weight: 600;
  color: white;
}

/* ---- Utility Classes ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 1.0rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 0 30px rgba(134, 59, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(134, 59, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: var(--glass-hover);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.75rem 0;
  transition: padding var(--transition), background var(--transition), border-color var(--transition);
}

.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(134, 59, 255, 0.12);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.nav__logo:hover {
  opacity: 0.85;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: white;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: var(--text-light) !important;
  transition: all var(--transition) !important;
}

.nav__cta:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  box-shadow: 0 0 24px rgba(134, 59, 255, 0.4) !important;
}

.nav__cta::after {
  display: none !important;
}

/* ---- Hamburger ---- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}

.nav__hamburger:hover {
  background: var(--glass);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Nav ---- */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav__mobile.is-open {
  display: flex;
  opacity: 1;
}

.nav__mobile-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.nav__mobile-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color var(--transition);
}

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

.mobile-link--cta {
  font-size: 1rem;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow-glow);
  margin-top: 1rem;
  color: white;
}

/* ---- Footer ---- */
.footer {
  background: rgba(10, 10, 15, 0.6);
  border-top: 1px solid rgba(134, 59, 255, 0.12);
  padding: 3rem 0 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Layout principal: 2 columnas */
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

/* Izquierda: logo + tagline */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 26px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Derecha: bloque legal completo */
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  max-width: 520px;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer__trademark {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.7;
}


/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .footer__legal {
    text-align: center;
    max-width: 100%;
  }

}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}
