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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}

/* ── Themes ── */

body.light {
  --bg: #f7f7f9;
  --bg-card: #ffffff;
  --text: #111111;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e5e5e7;
  --accent: #111111;
  --accent-hover: #333333;
  --pattern-color: rgba(0, 0, 0, 0.03);
  --header-bg: rgba(247, 247, 249, 0.85);
  --btn-text: #ffffff;
}

body.dark {
  --bg: #0c0c0e;
  --bg-card: #151518;
  --text: #f0f0f2;
  --text-secondary: #88888c;
  --text-muted: #555558;
  --border: #222225;
  --accent: #ffffff;
  --accent-hover: #cccccc;
  --pattern-color: rgba(255, 255, 255, 0.025);
  --header-bg: rgba(12, 12, 14, 0.85);
  --btn-text: #0c0c0e;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* ── Background Pattern ── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, var(--pattern-color) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

body.dark::before {
  background-image:
    radial-gradient(circle at 1px 1px, var(--pattern-color) 1px, transparent 0),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.008) 0%, transparent 60%);
}

/* ── Container ── */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Header ── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  height: 32px;
  width: auto;
  transition: opacity .3s;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
  letter-spacing: -0.01em;
}

nav a:hover {
  color: var(--text);
}

.nav-sobremi {
  opacity: .45;
  font-size: 12px;
}

.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all .2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--text);
  color: var(--text);
}

.theme-toggle .sun,
.theme-toggle .moon {
  position: absolute;
  transition: opacity .3s, transform .3s;
}

body.light .theme-toggle .sun {
  opacity: 1;
  transform: rotate(0deg);
}

body.light .theme-toggle .moon {
  opacity: 0;
  transform: rotate(90deg);
}

body.dark .theme-toggle .sun {
  opacity: 0;
  transform: rotate(-90deg);
}

body.dark .theme-toggle .moon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle svg {
  position: absolute;
}

/* ── Plan Sections ── */

.plan {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.plan.alt {
  background: var(--bg-card);
}

.plan-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.plan-number {
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.06em;
  user-select: none;
  margin-right: -0.04em;
  transition: color .4s;
}

.plan.alt .plan-bg {
  justify-content: flex-start;
}

.plan.alt .plan-number {
  margin-right: 0;
  margin-left: -0.04em;
}

.plan-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.plan-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.plan-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 420px;
}

.plan-features ul {
  list-style: none;
  margin-bottom: 28px;
}

.plan-features ul li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.plan-features ul li:last-child {
  border-bottom: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .25s;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ── Contacto ── */

.contacto {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.contacto-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contacto-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contacto-text p {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

form {
  text-align: left;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M1 1l5 4 5-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

select option {
  background: var(--bg);
  color: var(--text);
}

textarea {
  resize: vertical;
}

.form-feedback {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-feedback.success {
  color: #16a34a;
}

.form-feedback.error {
  color: #dc2626;
}

body.dark .form-feedback.success {
  color: #4ade80;
}

body.dark .form-feedback.error {
  color: #f87171;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Footer ── */

footer {
  padding: 36px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-footer {
  height: 20px;
  opacity: 0.4;
  transition: opacity .4s;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Responsive ── */

@media (max-width: 800px) {
  .plan-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .plan-desc {
    max-width: 100%;
  }

  .plan-number {
    display: none;
  }

  .plan {
    padding: 80px 0;
  }

  nav {
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .header-inner {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .plan {
    padding: 60px 0;
  }
}
