/* Óptica Ojo de Dios — versión fina + secciones Readdy (REALYS, empresas, tips) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --ink: #171412;
  --muted: #5c564f;
  --dim: #7a736c;
  --cream: #f6f1ea;
  --paper: #fffdf9;
  --line: #e8dfd4;
  --gold: #c4a35a;
  --gold-deep: #a8863d;
  --stone: #3f3a36;
  --wa: #22c55e;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, #d0b36d, var(--gold));
  color: #111;
  box-shadow: 0 10px 26px rgba(168, 134, 61, 0.28);
}
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.phones {
  display: flex;
  justify-content: flex-end;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding: 0.55rem 5%;
  background: #efe8df;
  font-size: 0.8rem;
  color: var(--stone);
}
.phones strong { color: var(--ink); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 234, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 223, 212, 0.9);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #2a241e url("../img/hero.jpg") center / cover no-repeat;
  transform: scale(1.02);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(23, 20, 18, 0.72) 0%, rgba(23, 20, 18, 0.42) 48%, rgba(23, 20, 18, 0.28) 100%);
}
.hero-in {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  width: 100%;
}
.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero h1 .accent { color: var(--gold); }
.lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  margin-bottom: 1.4rem;
}
.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.perk {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}
.perk-ico {
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1.4;
}
.perk strong { display: block; font-size: 0.9rem; }
.perk small { color: rgba(255, 255, 255, 0.8); font-size: 0.78rem; }
.ctas { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.section-head {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}
.section-head h2,
.corp h2,
.realys h2,
.final-cta h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}
.section-head p { color: var(--muted); max-width: 36rem; }
.section-head.light h2,
.section-head.light p { color: #fff; }
.section-head.light p { color: rgba(255, 255, 255, 0.75); }
.eyebrow {
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.section-cta { text-align: center; margin-top: 1.5rem; }

.tips {
  padding: 4.2rem 0 3.5rem;
  background: linear-gradient(180deg, #fbf7f1, #f1ebe3);
}
.tips-stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}
.tip-card {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  min-height: 220px;
  box-shadow: 0 20px 50px rgba(23, 20, 18, 0.06);
}
.tip-card.is-active { display: block; animation: fadeIn 0.35s ease; }
.tip-kicker {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}
.tip-card h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  margin-bottom: 0.7rem;
}
.tip-card p:last-child { color: var(--muted); max-width: 40rem; }
.tips-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.tips-dots { display: flex; gap: 0.45rem; }
.tips-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #d6cdc2;
  cursor: pointer;
}
.tips-dots button.is-active { background: var(--ink); }
.tips-arrows { display: flex; gap: 0.45rem; }
.tip-prev,
.tip-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.corp {
  background: var(--stone);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.corp-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: center;
}
.corp .eyebrow { color: #e7c980; }
.corp-copy > p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
}
.corp-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}
.corp-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
}
.corp img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 22px;
}
.cases {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}
.cases h3 {
  font-family: Fraunces, Georgia, serif;
  margin-bottom: 0.9rem;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.cases-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
}
.cases-grid p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; margin-top: 0.35rem; }

.services {
  padding: 4.2rem 0;
  background: var(--paper);
}
.svc-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.svc-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.svc-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(23, 20, 18, 0.06);
}
.svc-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.svc-grid > article > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}
.svc-grid li {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.2rem 0 0.2rem 0.9rem;
  position: relative;
}
.svc-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.realys {
  padding: 4.5rem 0;
  background: var(--cream);
}
.realys-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.7rem;
  align-items: center;
}
.lead-dark {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 34rem;
}
.realys h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}
.realys-in > div > p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.realys-grid {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.3rem;
}
.realys-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.realys-grid h4 { margin-bottom: 0.25rem; font-size: 0.98rem; }
.realys-grid p { color: var(--muted); font-size: 0.88rem; margin: 0 !important; }
.realys img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(23, 20, 18, 0.12);
}

.metrics {
  padding: 3.5rem 0;
  background: #1c1917;
  color: #fff;
}
.metrics-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.metrics-grid article {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.3rem 1rem;
  text-align: center;
}
.metrics-grid strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.metrics-grid span { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }

.final-cta {
  padding: 4rem 1.25rem;
  background: var(--cream);
}
.final-in {
  max-width: var(--max);
  margin: 0 auto;
  background: linear-gradient(145deg, #221e1a, #171412);
  color: #fff;
  border-radius: 28px;
  padding: 2.2rem 1.8rem;
  text-align: center;
}
.final-in > p {
  color: #b0a8a0;
  max-width: 36rem;
  margin: 0.5rem auto 1.3rem;
}
.final-cta .ctas { justify-content: center; margin-bottom: 1.3rem; }
.contact-lines {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  color: #d6d3d1;
  font-size: 0.9rem;
}

.site-footer {
  background: #efe8df;
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.25rem 1.2rem;
}
.footer-in {
  max-width: var(--max);
  margin: 0 auto 1.4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}
.footer-in p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.7rem;
  max-width: 22rem;
}
.footer-in h4 {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}
.footer-in a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.footer-in a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 0.84rem;
}

.fab-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 1.25rem;
    right: 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    box-shadow: 0 16px 40px rgba(23, 20, 18, 0.1);
  }
  .nav-links.open { display: flex; }
  .perks { grid-template-columns: 1fr 1fr; max-width: 420px; }
  .corp-in,
  .realys-in,
  .footer-in { grid-template-columns: 1fr; }
  .svc-grid,
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .phones { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .perks,
  .svc-grid,
  .cases-grid,
  .metrics-grid { grid-template-columns: 1fr; }
  .ctas .btn { width: 100%; }
  .hero { min-height: auto; }
  .hero-in { padding: 3.2rem 1.25rem; }
}
