/* SigiloBox — site institucional */
:root {
  --sky: #38bdf8;
  --sky-deep: #0284c7;
  --navy: #0f172a;
  --slate: #1e293b;
  --amber: #f59e0b;
  --bg: #f8fafc;
  --white: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 1rem;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(248, 250, 252, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--sky), var(--sky-deep));
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 0.35rem;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg) translate(-1px, -1px);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1rem;
  height: 2px;
  background: var(--navy);
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(245, 158, 11, 0.18), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 48%, #0c4a6e 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  padding: 4.5rem 0 5rem;
}

.hero-copy {
  max-width: 38rem;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
}

.hero h1 span {
  background: linear-gradient(90deg, #7dd3fc, #38bdf8 45%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.9);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.95);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: #020617;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  animation: float-in 0.9s ease both;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.95;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(8px);
  animation: rise 0.8s 0.25s ease both;
}

.hero-badge strong {
  display: block;
  font-size: 0.85rem;
}

.hero-badge span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.pulse {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(52, 211, 153, 0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateY(-8deg) translateY(18px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section-head p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Custody highlight */
.custody {
  background: var(--white);
}

.custody-grid {
  display: grid;
  gap: 1rem;
}

.custody-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.custody-card:hover {
  border-color: rgba(2, 132, 199, 0.35);
  transform: translateY(-3px);
}

.custody-card.featured {
  background: linear-gradient(160deg, #0f172a, #1e293b 60%, #0c4a6e);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.custody-card.featured p {
  color: rgba(226, 232, 240, 0.85);
}

.custody-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--sky-deep);
  font-size: 1.25rem;
}

.custody-card.featured .custody-icon {
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky);
}

.custody-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.custody-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.custody-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

/* Features */
.features {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 40%),
    var(--bg);
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: var(--navy);
  color: var(--sky);
  font-size: 1.05rem;
}

.feature.notify .feature-icon {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  color: var(--white);
}

/* Screenshots */
.shots {
  background: var(--navy);
  color: var(--white);
}

.shots .section-head p {
  color: #94a3b8;
}

.shots .eyebrow {
  color: var(--sky);
}

.shot-grid {
  display: grid;
  gap: 1.25rem;
}

.shot-card {
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--slate);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.shot-card figure {
  margin: 0;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #020617;
}

.shot-card figcaption {
  padding: 1rem 1.15rem 1.2rem;
}

.shot-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.shot-card p {
  color: #94a3b8;
  font-size: 0.88rem;
}

.shot-hint {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* Contact */
.contact {
  background: var(--bg);
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.contact-panel,
.contact-form-card {
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.6rem;
}

.contact-panel {
  background: linear-gradient(165deg, #0f172a, #1e293b);
  color: var(--white);
  border: none;
}

.contact-panel p {
  margin-top: 0.85rem;
  color: #cbd5e1;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--amber);
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--navy);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.92rem;
}

.form-status.ok {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.err {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #94a3b8;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner .brand {
  color: var(--white);
}

.footer-inner p {
  font-size: 0.88rem;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 1rem 0 1.25rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  font-weight: 500;
  color: var(--slate);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

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

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

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

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

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

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