:root {
  --ink: #0b2436;
  --ink-soft: #365466;
  --teal: #18b7a4;
  --teal-dark: #0e887a;
  --cyan: #49d6c8;
  --gold: #f5c85c;
  --paper: #f6f9fb;
  --white: #ffffff;
  --line: #dbe6ec;
  --shadow: 0 20px 50px rgba(11, 36, 54, 0.16);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 40px;
  background: rgba(246, 249, 251, 0.92);
  border-bottom: 1px solid rgba(219, 230, 236, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  width: 158px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
}

.nav-auth-link {
  display: none;
}

.site-nav a,
.footer-inner a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.footer-inner a:hover {
  color: var(--teal-dark);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-login,
.header-register,
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease, color 160ms ease;
}

.header-login {
  color: var(--ink);
  background: transparent;
}

.header-register {
  color: var(--teal-dark);
  border-color: rgba(14, 136, 122, 0.26);
  background: rgba(24, 183, 164, 0.08);
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button.outline {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button.full {
  width: 100%;
}

.header-login:hover,
.header-register:hover,
.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  min-height: 82svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 92px 40px 72px;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(4, 18, 28, 0.92) 0%, rgba(4, 18, 28, 0.78) 38%, rgba(4, 18, 28, 0.28) 70%, rgba(4, 18, 28, 0.18) 100%),
    url("assets/atenico-hero-optimized.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 690px);
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 20px;
  font-size: 74px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1.42;
  font-weight: 500;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 12px;
  max-width: 540px;
  margin: 0;
}

.hero-metrics div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 28, 43, 0.5);
}

.hero-metrics dt {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.section {
  padding: 88px 40px;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 700px;
}

.section-heading p,
.two-column p,
.contact-grid p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.use-grid,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.use-card,
.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(11, 36, 54, 0.06);
}

.use-card {
  min-height: 260px;
  padding: 24px;
}

.use-card h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(14, 136, 122, 0.34);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.use-card h3 a:hover,
.use-card h3 a:focus-visible {
  color: var(--teal-dark);
  text-decoration-color: currentColor;
}
.use-card p,
.plan-card p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: #dff7f3;
  font-weight: 900;
}

.channels-section {
  background: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 5px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.flow-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: #102c3f;
  box-shadow: var(--shadow);
}

.flow-row,
.flow-node {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.flow-row span {
  color: rgba(255, 255, 255, 0.76);
}

.flow-row strong {
  color: var(--cyan);
}

.flow-node {
  justify-content: center;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.plans-section {
  background: var(--paper);
}

.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  padding: 28px;
}

.plan-card.featured {
  border-color: var(--teal);
  box-shadow: 0 22px 50px rgba(14, 136, 122, 0.18);
}

.plan-label {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: #dff7f3;
  font-size: 13px;
  font-weight: 900;
}

.plan-copy {
  min-height: 76px;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 8px 0 20px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.paypal-slot {
  min-height: 46px;
  margin-top: auto;
  margin-bottom: 12px;
}

.paypal-placeholder {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px dashed #9bb0bc;
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: #f8fbfc;
  font-size: 14px;
  text-align: center;
}

.contact-section {
  background: var(--ink);
  color: var(--white);
}

.contact-section .eyebrow {
  color: var(--cyan);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: start;
}

.contact-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-points span {
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 700;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full-width,
.full-width {
  grid-column: 1 / -1;
}

.form-row label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(2, 12, 19, 0.48);
  outline: none;
}

.form-row textarea {
  min-height: 116px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(73, 214, 200, 0.16);
}

.form-row select option {
  color: var(--ink);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.form-status {
  min-height: 20px;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--cyan);
  font-weight: 800;
}

.form-status.error {
  color: #ffcf8a;
}

.site-footer {
  padding: 40px 40px 28px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1160px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-inner img {
  width: 142px;
}

/* Extended footer with legal links */
.footer-full {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 28px 48px;
}

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

.footer-brand img {
  width: 142px;
}

.footer-brand p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.footer-brand a {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
}

.footer-brand a:hover {
  color: var(--ink);
}

.footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-legal-nav strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-legal-nav a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  transition: color 140ms ease;
}

.footer-legal-nav a:hover {
  color: var(--teal-dark);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 14px 22px;
  }

  .brand {
    width: 148px;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .site-nav.is-open a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open .nav-auth-link {
    display: block;
  }

  .hero {
    min-height: 80svh;
    padding: 78px 24px 54px;
    background-position: 56% center;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .section {
    padding: 72px 24px;
  }

  .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: block;
    min-height: 72px;
    padding: 12px 18px;
  }

  .brand {
    position: absolute;
    left: 18px;
    top: 19px;
    width: 124px;
  }

  .menu-button {
    display: none;
  }

  .header-actions {
    display: flex;
    position: absolute;
    top: 18px;
    left: 150px;
    right: 18px;
    width: auto;
    justify-content: flex-start;
    gap: 6px;
  }

  .header-login,
  .header-register {
    min-height: 36px;
    padding: 0 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 78svh;
    padding: 64px 18px 46px;
    background-image:
      linear-gradient(90deg, rgba(4, 18, 28, 0.94) 0%, rgba(4, 18, 28, 0.84) 58%, rgba(4, 18, 28, 0.48) 100%),
      url("assets/atenico-hero-optimized.jpg");
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-content,
  .section-heading {
    width: min(100%, 348px);
    max-width: 348px;
  }

  .hero-metrics,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: 78px;
  }

  .section {
    padding: 58px 18px;
  }

  .section-heading p,
  .two-column p,
  .contact-grid p {
    font-size: 16px;
  }

  .flow-panel,
  .lead-form,
  .plan-card,
  .use-card {
    padding: 20px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-full {
    grid-template-columns: 1fr;
  }

  .footer-legal-nav {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    left: 14px;
    width: 112px;
  }

  .header-actions {
    left: 132px;
    right: 14px;
  }

  .header-login,
  .header-register {
    padding: 0 8px;
    font-size: 12px;
  }
}
.header-whatsapp,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #128c4a;
  color: #fff;
  border-color: #128c4a;
}

.header-whatsapp:hover,
.header-whatsapp:focus-visible,
.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: #0b713a;
  color: #fff;
}

/* WhatsApp CTA polished v2 */
.header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #1fab58;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c4a);
  box-shadow: 0 8px 20px rgba(18, 140, 74, .2);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.header-whatsapp:hover, .header-whatsapp:focus-visible {
  color: #fff;
  filter: brightness(.96);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 140, 74, .28);
}
.whatsapp-mark { display: inline-flex; width: 21px; height: 21px; flex: 0 0 21px; }
.whatsapp-mark svg { display: block; width: 100%; height: 100%; }
.whatsapp-button { gap: 9px; border-radius: var(--radius); background: linear-gradient(135deg, #25d366, #128c4a); box-shadow: 0 10px 24px rgba(18, 140, 74, .26); }
.nav-whatsapp { display: none; }
@media (max-width: 980px) {
  .site-nav.is-open .nav-whatsapp { display: flex; align-items: center; gap: 9px; color: #0b713a; font-weight: 800; }
}
@media (max-width: 640px) { .header-whatsapp { display: none; } }
