/* ===========================================================
   PrestaManager Accesos — Software de Registro Horario
   Paleta corporativa Godigiart: navy #003388, naranja #ff6a00,
   azul claro #2ca8ff
=========================================================== */

:root {
  --navy: #003388;
  --navy-dark: #0a2540;
  --orange: #ff6a00;
  --orange-dark: #e65c00;
  --blue-light: #2ca8ff;
  --pink: #ff5062;
  --bg-alt: #f8fafd;
  --border: #e6edf4;
  --gray: #6c757d;
  --text: #16233a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Roboto Slab", "Roboto", serif;
  color: var(--navy-dark);
  line-height: 1.2;
  margin: 0 0 .6em;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; color: var(--gray); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 106, 0, .32);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(255, 106, 0, .42); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(10,37,64,.08); }

.topbar {
  background: var(--navy-dark);
  color: #cfe0f5;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 18px; flex-wrap: wrap; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.28rem;
  color: var(--navy-dark);
}
.brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand .brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand span { color: var(--orange); }
.brand small {
  display: block;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--gray);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  position: relative;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 500px at 80% -10%, rgba(44,168,255,.18), transparent 60%),
              linear-gradient(180deg, var(--navy-dark), var(--navy) 70%);
  color: #fff;
  padding: 76px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #cfe0f5;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .5em; }
.hero h1 mark { background: none; color: var(--orange); }
.hero-lead { color: #cfe0f5; font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust .stat b { display: block; font-size: 1.5rem; color: #fff; font-family: "Roboto Slab", serif; }
.hero-trust .stat span { font-size: .82rem; color: #9bb4d4; }

/* hero visual mock */
.hero-visual { position: relative; height: 420px; }
.mock-window {
  position: absolute;
  top: 0; left: 0;
  width: 82%;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-window .mock-bar {
  background: var(--bg-alt);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.mock-window .mock-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #dbe3ee; }
.mock-body { padding: 18px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg-alt); margin-bottom: 10px; }
.mock-row .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--blue-light),var(--navy)); flex-shrink: 0; }
.mock-row .lines { flex: 1; }
.mock-row .lines b { display: block; height: 8px; width: 60%; background: #cfd9e6; border-radius: 4px; margin-bottom: 6px; }
.mock-row .lines span { display: block; height: 6px; width: 35%; background: #e3e9f1; border-radius: 4px; }
.mock-row .badge { font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.mock-row .badge.in { background: #e3f8ec; color: #1a9a56; }
.mock-row .badge.out { background: #fdeee6; color: var(--orange-dark); }

.mock-phone {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: 190px;
  background: var(--navy-dark);
  border-radius: 30px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.mock-phone .screen {
  background: #fff;
  border-radius: 20px;
  padding: 16px 14px;
  text-align: center;
}
.mock-phone .notch { width: 50px; height: 5px; background: rgba(255,255,255,.25); border-radius: 4px; margin: 0 auto 10px; }
.mock-phone .mock-app-icon { width: 44px; height: 44px; border-radius: 11px; margin: 0 auto 10px; box-shadow: 0 6px 14px rgba(10,37,64,.18); }
.mock-phone .qr {
  width: 80px; height: 80px;
  margin: 4px auto 10px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, var(--navy-dark) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, var(--navy-dark) 0 8px, transparent 8px 16px);
  background-blend-mode: multiply;
  opacity: .88;
  position: relative;
}
.mock-phone .qr::after {
  content: "";
  position: absolute; inset: 30%;
  background: var(--orange);
  border-radius: 4px;
}
.mock-phone .status { font-size: .78rem; font-weight: 700; color: #1a9a56; }
.mock-phone .sub { font-size: .68rem; color: var(--gray); margin-top: 2px; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
}
.blob-1 { width: 140px; height: 140px; background: var(--blue-light); top: -40px; right: 10%; opacity: .25; }

/* ---------- Sections generic ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head .tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Legal strip ---------- */
.legal-strip {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
}
.legal-strip .container {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  font-size: .95rem;
}
.legal-strip strong { color: #ffd9b8; }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,51,136,.1), rgba(44,168,255,.16));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--navy); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature-card p { font-size: .93rem; margin: 0; }

/* ---------- Apps section ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}
.app-card.is-new { border-color: var(--orange); }
.app-badge-new {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255,106,0,.4);
  white-space: nowrap;
}
.app-icon {
  width: 68px; height: 68px;
  margin: 10px auto 16px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px;
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.app-icon svg { width: 60%; height: 60%; }
.icon-fill { fill: var(--navy); }
.app-card h3 { font-size: 1rem; margin-bottom: 8px; }
.app-card p { font-size: .86rem; }

/* ---------- Demo (video + screenshot) ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-dark);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.screenshot-wrap {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.screenshot-wrap img { width: 100%; height: 100%; object-fit: cover; flex: 1; }
.screenshot-wrap figcaption {
  background: #fff;
  padding: 14px 18px;
  font-size: .84rem;
  color: var(--gray);
}
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px;
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: "Roboto Slab", serif;
}
.step h3 { font-size: 1.02rem; }
.step p { font-size: .9rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border: 2px solid var(--orange);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.price-card .price-desc { font-size: .84rem; margin-bottom: 18px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-amount .amount { font-family: "Roboto Slab", serif; font-size: 2.4rem; color: var(--navy-dark); font-weight: 700; }
.price-amount .currency { font-size: 1.2rem; color: var(--navy-dark); font-weight: 700; }
.price-period { font-size: .78rem; color: var(--gray); margin-bottom: 22px; }
.price-features { flex: 1; margin-bottom: 24px; }
.price-features li { display: flex; gap: 8px; align-items: flex-start; font-size: .89rem; margin-bottom: 12px; color: var(--text); }
.price-features li svg { width: 18px; height: 18px; stroke: var(--orange); flex-shrink: 0; margin-top: 2px; }
.price-fine { font-size: .74rem; color: var(--gray); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-question .icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform .2s ease;
}
.faq-question .icon::before, .faq-question .icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
}
.faq-question .icon::before { width: 10px; height: 2px; }
.faq-question .icon::after { width: 2px; height: 10px; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { padding-bottom: 20px; }
.faq-answer p { margin: 0; font-size: .95rem; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
  text-align: center;
  border-radius: 28px;
  padding: 60px 40px;
  margin: 0 24px;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #cfe0f5; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-final .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card .item { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-card .item svg { width: 20px; height: 20px; stroke: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-info-card a { color: #cfe0f5; text-decoration: none; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.signup-card { display: flex; flex-direction: column; }
.signup-card .tag { margin-bottom: 6px; }
.signup-card h3 { font-size: 1.3rem; }
.signup-list { margin: 6px 0 24px; }
.signup-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; margin-bottom: 12px; color: var(--text); }
.signup-list li svg { width: 18px; height: 18px; stroke: var(--orange); flex-shrink: 0; margin-top: 2px; }
.signup-secondary { margin-top: 12px; }
.form-note { font-size: .78rem; color: var(--gray); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c9dd;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: .9rem; }
.footer-grid a { color: #b9c9dd; text-decoration: none; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand span { color: var(--orange); }
.footer-brand p { color: #9bb4d4; font-size: .9rem; margin-top: 14px; max-width: 320px; }
.footer-godigiart { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.footer-godigiart img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-godigiart span { font-size: .78rem; color: #9bb4d4; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 10px;
  color: #8ba3c2;
}
.footer-bottom a { color: #8ba3c2; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; margin-top: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-navy-desktop { display: none; }
  .nav-toggle { display: block; }
  .topbar-right { display: none; }
  section { padding: 60px 0; }
  .features-grid, .apps-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-final { margin: 0 12px; padding: 46px 20px; }
  .hero { padding: 50px 0 70px; }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 600;
  padding: 24px;
  color: #fff;
}
.mobile-nav.open { display: block; }
.mobile-nav .close-btn { background: none; border: none; color: #fff; font-size: 1.6rem; float: right; cursor: pointer; }
.mobile-nav ul { margin-top: 60px; }
.mobile-nav li { margin-bottom: 22px; }
.mobile-nav a { color: #fff; text-decoration: none; font-size: 1.3rem; font-weight: 700; }
