/* Zife.es — landing corporativa */
:root {
  --bg: #070b12;
  --bg-elevated: #0d1420;
  --fg: #e8f4f6;
  --muted: #8ba3ad;
  --primary: #00c8db;
  --primary-bright: #00f2ff;
  --primary-fg: #001a1f;
  --border: rgba(0, 200, 219, 0.22);
  --card: rgba(255, 255, 255, 0.04);
  --radius: 1rem;
  --header-h: 4.25rem;
  --max: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Fondo ambiental */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 200, 219, 0.2), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(0, 242, 255, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 60%, rgba(0, 150, 180, 0.06), transparent 45%);
}

.grid-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

/* Layout */
.shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, backdrop-filter 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--primary-bright), var(--primary));
  color: var(--primary-fg);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 200, 219, 0.35);
}

.logo span.accent {
  color: var(--primary-bright);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--fg);
  background: var(--card);
}

.nav-desktop a.is-active,
.nav-mobile a.is-active {
  color: var(--primary-bright);
}

.nav-mobile a.is-active {
  background: var(--card);
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  color: var(--primary-fg);
  box-shadow: 0 8px 28px rgba(0, 200, 219, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 200, 219, 0.38);
}

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-bright);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(7, 11, 18, 0.96);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: var(--muted);
}

.nav-mobile a:hover {
  background: var(--card);
  color: var(--fg);
}

.nav-mobile .btn {
  margin-top: 1rem;
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 5.5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 8px var(--primary-bright);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--primary-bright), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 0.5rem;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-bright);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.hero-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.feature-list .icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: rgba(0, 200, 219, 0.15);
  color: var(--primary-bright);
  display: grid;
  place-items: center;
}

.feature-list .icon svg {
  width: 0.8rem;
  height: 0.8rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.section-header h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(0, 242, 255, 0.45);
  transform: translateY(-2px);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(0, 200, 219, 0.12);
  color: var(--primary-bright);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Product block */
.product {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.product-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .product-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.product-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.product-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.product-copy ul {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-copy li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.35rem;
  position: relative;
}

.product-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
}

.product-mock {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0a1018;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mock-dot:first-child {
  background: #ff5f57;
}
.mock-dot:nth-child(2) {
  background: #febc2e;
}
.mock-dot:nth-child(3) {
  background: #28c840;
}

.mock-body {
  padding: 1.25rem;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.mock-row:last-child {
  border-bottom: none;
}

.mock-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.mock-status.on {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.mock-status.break {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Process */
.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  text-align: center;
  padding: 1.25rem 1rem;
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-bright);
}

.step h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* CTA */
.cta-band {
  padding: 4rem 0 5rem;
}

.cta-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    rgba(0, 200, 219, 0.12),
    var(--card) 45%
  );
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.cta-box .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-title {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.footer-grid a:hover {
  color: var(--primary-bright);
}

/* Página interior */
.page-hero {
  padding: 3rem 0 2.5rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 4rem 0 3rem;
  }
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.page-hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 40rem;
}

.page-main {
  padding-bottom: 4rem;
}

/* Aplicaciones y acceso cliente */
.app-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .app-grid.single-focus {
    grid-template-columns: minmax(0, 28rem);
    justify-content: center;
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.app-card:hover {
  border-color: rgba(0, 242, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.app-card.is-static {
  cursor: default;
}

.app-card.is-static:hover {
  transform: none;
  box-shadow: none;
}

.app-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, var(--primary-bright), var(--primary));
  color: var(--primary-fg);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.app-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.app-card p {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.15rem;
}

.app-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.app-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.app-card-cta svg {
  width: 1rem;
  height: 1rem;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.page-hero--compact {
  padding-bottom: 1.5rem;
}

.calc-back {
  margin-top: 1.25rem;
}

.calc-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .calc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    gap: 2rem;
  }
}

.calc-panel,
.calc-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.5rem;
}

.calc-panel-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.calc-employees-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.calc-employees-row input[type="number"] {
  width: 5.5rem;
  text-align: center;
  font-weight: 600;
}

.calc-employees-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.calc-range {
  width: 100%;
  margin-top: 0.75rem;
  accent-color: var(--primary-bright);
}

.calc-commitment {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.calc-commitment legend {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.calc-commitment-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.calc-option {
  display: block;
  cursor: pointer;
}

.calc-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-option-box {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-option-box strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.calc-option-box span:last-child {
  font-size: 0.8rem;
  color: var(--muted);
}

.calc-option input:focus-visible + .calc-option-box {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.calc-option input:checked + .calc-option-box {
  border-color: rgba(0, 242, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.25);
}

.calc-summary-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-bright);
  margin-bottom: 0.35rem;
}

.calc-summary-tier,
.calc-summary-mode {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.calc-summary-mode {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.calc-breakdown {
  margin: 0 0 1rem;
}

.calc-breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.calc-breakdown dt {
  color: var(--muted);
  font-weight: 500;
}

.calc-breakdown dd {
  font-weight: 600;
  text-align: right;
}

.calc-breakdown .calc-highlight {
  color: var(--primary-bright);
  font-size: 1.05rem;
}

.calc-breakdown-total {
  border-bottom: none !important;
  padding-top: 0.75rem !important;
}

.calc-breakdown-total dt,
.calc-breakdown-total dd {
  font-size: 1rem;
  color: var(--fg);
}

.calc-breakdown-total dd {
  color: var(--primary-bright);
  font-size: 1.15rem;
}

.calc-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-actions .btn {
  width: 100%;
  justify-content: center;
}

.calc-pay-status {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.calc-pay-status--error {
  color: #f87171;
}

#calc-pay-btn {
  cursor: pointer;
  border: none;
  font: inherit;
}

.calc-over-limit h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.calc-over-limit p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.calc-table-wrap {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.calc-table-heading {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.calc-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calc-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.calc-table th,
.calc-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.calc-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}

.calc-table th span,
.calc-table td span {
  font-size: 0.85em;
  color: var(--muted);
  font-weight: 500;
}

.calc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.calc-table-foot {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.acceso-intro {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.acceso-intro p {
  color: var(--muted);
  font-size: 1.05rem;
}

.coming-soon {
  opacity: 0.55;
  pointer-events: none;
}

.coming-soon .app-card-cta {
  color: var(--muted);
}

/* Formulario de contacto */
.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2rem;
  }
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

.form-field label span {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}

.form-field select {
  appearance: auto;
  cursor: pointer;
}

.form-field select option,
.form-field select optgroup {
  background: var(--bg-elevated);
  color: var(--fg);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 219, 0.15);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-alert.error {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.form-alert.success {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.contact-aside .card + .card {
  margin-top: 1rem;
}

.contact-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-bright);
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
}

.contact-mail-link:hover {
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Desktop nav visible */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .badge-dot {
    animation: none;
  }

  .btn-primary:hover,
  .card:hover {
    transform: none;
  }
}
