/* MiMo Prestamo — página Producto y ejemplo de cálculo */

:root {
  --ink: #0c1533;
  --ink-soft: #3d4a6f;
  --violet: #6b4dff;
  --violet-deep: #4f2fd4;
  --lavender: #ebe4ff;
  --surface: #ffffff;
  --accent: #ff4d8d;
  --mint: #7dd3a8;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 50px rgba(76, 58, 180, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: linear-gradient(165deg, #f6f2ff 0%, #eef6ff 45%, #faf8ff 100%);
  min-height: 100vh;
  position: relative;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 50% at 20% 0%, rgba(107, 77, 255, 0.16), transparent),
    radial-gradient(ellipse 55% 45% at 100% 80%, rgba(255, 77, 141, 0.1), transparent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107, 77, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(79, 47, 212, 0.2);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: var(--lavender);
  color: var(--ink);
}

.nav-link.is-active {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
}

.nav-cta {
  margin-left: 0.35rem;
  border: 1px solid rgba(107, 77, 255, 0.35);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--lavender);
  cursor: pointer;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 19;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 77, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.mobile-nav a:hover {
  background: var(--lavender);
}

main {
  position: relative;
  z-index: 1;
}

.page-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1150px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .page-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.page-hero-inner {
  max-width: 520px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--violet-deep);
  margin: 0 0 0.75rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 1rem;
  font-weight: 800;
}

.lead {
  margin: 0;
  font-size: 1.1rem;
}

.page-hero-visual {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: var(--surface);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.section {
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-inner--wide {
  max-width: 960px;
}

.spec-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(107, 77, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.spec-card h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--violet-deep);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.spec-hint {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.legal-note {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(235, 228, 255, 0.65);
  border: 1px solid rgba(107, 77, 255, 0.2);
}

.legal-note p {
  margin: 0;
  font-size: 0.92rem;
}

.section--calc {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(107, 77, 255, 0.08);
  padding-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.section-intro {
  margin: 0 0 1.5rem;
}

.calc-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(107, 77, 255, 0.15);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.calc-table th,
.calc-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(107, 77, 255, 0.1);
}

.calc-table th {
  font-weight: 600;
  color: var(--ink);
  width: 42%;
  vertical-align: top;
}

.calc-table td {
  color: var(--ink-soft);
}

.calc-total th,
.calc-total td {
  background: linear-gradient(90deg, rgba(125, 211, 168, 0.2), rgba(107, 77, 255, 0.08));
  border-bottom: none;
  font-size: 1rem;
}

.calc-footnote {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid rgba(107, 77, 255, 0.12);
  background: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.footer-disclaimer {
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}
