:root {
  --brand-navy: #0b1f3a;
  --brand-orange: #f97316;
  --brand-concrete: #64748b;
  --ring: rgba(249, 115, 22, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.28), rgba(255, 255, 255, 0.7));
  border-top: 1px solid rgba(249, 115, 22, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-tab {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 0.75rem;
  min-height: 52px;
  font-weight: 950;
  color: rgba(11, 31, 58, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(249, 115, 22, 0.16));
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.22), 0 10px 22px rgba(2, 6, 23, 0.08);
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.mobile-tab-label {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.mobile-tab.is-active {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.36), rgba(250, 204, 21, 0.34));
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.38), 0 14px 30px rgba(2, 6, 23, 0.12);
}

.mobile-tab:active {
  transform: translateY(1px);
}

.mobile-tab:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.brand-title {
  font-family: "Bebas Neue", "Sora", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.logo-img {
  transform: scale(1.95);
  transform-origin: 50% 50%;
}

@media (min-width: 640px) {
  .logo-img {
    transform: scale(1.7);
  }
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.32);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.26), rgba(255, 255, 255, 0.74));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.25rem;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.1);
}

.nav-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.nav-shell {
  position: relative;
}

.js [data-panel] {
  display: none;
}

.js [data-panel].is-active {
  display: block;
}

.page-panel {
  min-height: calc(100dvh - 72px);
}

@media (max-width: 639px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .nav-shell {
    display: none;
  }
}

@media (min-width: 640px) {
  body {
    padding-bottom: 0;
  }
  .mobile-tabbar {
    display: none;
  }
}

.hero-cover {
  background-image: url("./static/capa.png");
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
}

@media (max-width: 639px) {
  .hero-cover {
    background-size: contain;
    background-position: center;
    background-color: rgba(11, 31, 58, 1);
    min-height: 72svh;
  }
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(11, 31, 58, 0.55), rgba(11, 31, 58, 0.28), rgba(11, 31, 58, 0.12));
}

.hero-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.25rem;
  background: rgba(11, 31, 58, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}

.hero-panel-left {
  background: rgba(11, 31, 58, 0.7);
}

.hero-panel-right {
  background: rgba(11, 31, 58, 0.55);
}

@media (max-width: 639px) {
  .hero-panel {
    padding: 1rem;
  }
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  transform: translateY(-150%);
  border-radius: 0.75rem;
  background: white;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.12);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.nav-link {
  border-radius: 0.875rem;
  padding: 0.6rem 0.9rem;
  font-weight: 900;
  color: var(--brand-navy);
  position: relative;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(250, 204, 21, 0.12));
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.35), 0 10px 18px rgba(2, 6, 23, 0.08);
  color: rgba(11, 31, 58, 1);
}

.social-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(255, 255, 255, 0.8));
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
  color: rgba(11, 31, 58, 1);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.1);
}

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

.social-btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.social-icon {
  width: 22px;
  height: 22px;
}

.nav-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  padding: 0.9rem 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: var(--brand-orange);
  color: #111827;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.24);
  transition: transform 120ms ease, filter 120ms ease;
  min-height: 44px;
}

.btn-primary:hover {
  filter: brightness(0.98);
}

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

.btn-primary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  padding: 0.9rem 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: white;
  color: var(--brand-navy);
  border: 1px solid rgba(148, 163, 184, 0.7);
  transition: background-color 120ms ease, transform 120ms ease;
  min-height: 44px;
}

.btn-secondary:hover {
  background: rgba(2, 6, 23, 0.03);
}

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

.btn-secondary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.1);
  padding: 0.25rem 0.55rem;
  font-weight: 700;
}

.badge-hero {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(241, 245, 249, 1);
}

.tool-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 1);
  background: white;
  padding: 0.95rem;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.tool-card:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.1);
}

.tool-card:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.tool-title {
  font-weight: 900;
  color: var(--brand-navy);
}

.tool-sub {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: rgba(71, 85, 105, 1);
}

.calc-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 1);
  background: white;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
}

.calc-accordion {
  padding: 0.85rem 1rem;
}

.calc-accordion[open] {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
}

.calc-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

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

.calc-summary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 1rem;
}

.calc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.calc-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--brand-navy);
}

.calc-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgba(71, 85, 105, 1);
}

.calc-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.12);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: #9a3412;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.label {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(30, 41, 59, 1);
}

.input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: white;
  padding: 0.85rem 0.95rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 1);
  min-height: 44px;
}

.input::placeholder {
  color: rgba(100, 116, 139, 1);
  font-weight: 600;
}

.input:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-color: rgba(249, 115, 22, 0.5);
}

.result {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 1);
  background: rgba(248, 250, 252, 1);
  padding: 0.95rem;
}

.result-title {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--brand-concrete);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-body {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 1);
  line-height: 1.4;
}

.tip-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 1);
  background: rgba(248, 250, 252, 1);
  padding: 1rem;
}

.tip-title {
  font-weight: 900;
  color: var(--brand-navy);
}

.tip-body {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 1);
}

.tip-media {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 1);
  background: white;
}

.tip-media-img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 12%;
}

@media (min-width: 640px) {
  .hero-cover {
    background-position: center;
    background-size: contain;
    background-color: rgba(11, 31, 58, 1);
  }
  .tip-media-img {
    object-position: center;
  }
}

.tip-media-body {
  padding: 1rem;
}

.tip-media-title {
  font-weight: 900;
  color: var(--brand-navy);
}

.tip-media-text {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(71, 85, 105, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tool-card,
  .btn-primary,
  .btn-secondary,
  .skip-link {
    transition: none;
  }
}
