/* AccessLens — styles.css
   Paleta: azul marino #1a3a5c, verde confianza #2a7f5f, gris claro #f5f7fa
   Contraste AA garantizado en todos los pares texto/fondo
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-navy:    #1a3a5c;
  --color-green:   #2a7f5f;
  --color-green-d: #1e5c44;
  --color-accent:  #d97706;
  --color-bg:      #f5f7fa;
  --color-white:   #ffffff;
  --color-gray-1:  #f0f2f5;
  --color-gray-2:  #e2e6ea;
  --color-gray-3:  #6b7280;
  --color-gray-4:  #374151;
  --color-text:    #1f2937;
  --color-warn:    #92400e;
  --color-warn-bg: #fef3c7;

  --font-sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius:    0.5rem;
  --shadow:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --max-w:     72rem;
  --transition: 0.18s ease;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  color: var(--color-navy);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover,
a:focus-visible {
  color: var(--color-green);
}

/* Focus visible — accesible por definicion */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: #6dd6a8;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  color: #d1dde9;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-white);
}

/* ===================== BOTONES ===================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1.3;
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-green-d);
  border-color: var(--color-green-d);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-outline-navy:hover,
.btn-outline-navy:focus-visible {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 60%, #1f4e78 100%);
  color: var(--color-white);
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(109,214,168,0.18);
  color: #6dd6a8;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: #6dd6a8;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: #bfd3e6;
  max-width: 42rem;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: #8aadc8;
}

/* ===================== SECTIONS ===================== */
section {
  padding: 4rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-gray-3);
  max-width: 44rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.section-intro strong {
  color: var(--color-gray-4);
}

/* bg alternados */
.bg-light { background: var(--color-bg); }
.bg-white  { background: var(--color-white); }

/* ===================== PROBLEMA ===================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.problem-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.problem-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.problem-card p {
  font-size: 0.93rem;
  color: var(--color-gray-3);
  line-height: 1.55;
}

/* ===================== COMO FUNCIONA ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 1rem;
  counter-increment: step;
}

.step__num {
  width: 2.8rem;
  height: 2.8rem;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.93rem;
  color: var(--color-gray-3);
  line-height: 1.55;
}

/* ===================== PRICING ===================== */
.pricing-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  background: var(--color-white);
}

.pricing-table thead {
  background: var(--color-navy);
  color: var(--color-white);
}

.pricing-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
}

.pricing-table th:first-child {
  width: 55%;
}

.pricing-table th.col-pro {
  background: var(--color-green);
}

.pricing-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-2);
  font-size: 0.93rem;
  vertical-align: top;
  color: var(--color-gray-4);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table td:not(:first-child) {
  text-align: center;
}

.pricing-table tbody tr:nth-child(even) {
  background: var(--color-gray-1);
}

.check { color: var(--color-green); font-weight: 700; font-size: 1.1rem; }
.cross  { color: #9ca3af; font-size: 1.1rem; }

.pricing-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ===================== HONESTIDAD ===================== */
.honesty {
  background: var(--color-navy);
  color: var(--color-white);
}

.honesty h2 {
  color: #6dd6a8;
}

.honesty .section-label {
  color: #8aad9a;
}

.honesty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.honesty-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.honesty-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #a7d9c2;
  margin-bottom: 0.5rem;
}

.honesty-card p {
  font-size: 0.9rem;
  color: #9bb5c8;
  line-height: 1.6;
}

.honesty-banner {
  background: rgba(109,214,168,0.12);
  border-left: 4px solid #6dd6a8;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #bfd3e6;
  line-height: 1.65;
}

/* ===================== FAQ ===================== */
.faq-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

details {
  background: var(--color-white);
  border: 1px solid var(--color-gray-2);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

details[open] {
  border-color: var(--color-green);
}

summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-green);
  flex-shrink: 0;
  transition: transform var(--transition);
}

details[open] summary::after {
  content: "\2212";
}

.faq-answer {
  margin-top: 0.85rem;
  font-size: 0.93rem;
  color: var(--color-gray-3);
  line-height: 1.65;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-gray-2);
}

.faq-answer strong {
  color: var(--color-gray-4);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 2.5rem 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  text-align: center;
}

.site-footer .logo {
  font-size: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-white);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #6b7280;
  max-width: 48rem;
  line-height: 1.55;
  border-top: 1px solid #1f2937;
  padding-top: 1.2rem;
  margin-top: 0.3rem;
}

/* ===================== SKIP LINK ===================== */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
  section { padding: 2.75rem 0; }
  .hero   { padding: 3.5rem 0 3rem; }

  .site-header .container { gap: 0.75rem; }
  .site-nav { gap: 1rem; }

  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 22rem; text-align: center; }

  .pricing-ctas { flex-direction: column; }
}
