:root {
  --paper: #f0ece5;
  --paper-soft: #faf6ee;
  --ink: #26231f;
  --muted: #9b9790;
  --line: rgba(38, 35, 31, 0.13);
  --bubble-border: rgba(136, 118, 97, 0.26);
  --shadow: 0 24px 70px rgba(44, 36, 26, 0.14);
  --pill-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -10px 18px rgba(211, 202, 190, 0.28),
    0 16px 28px rgba(43, 37, 31, 0.18),
    0 2px 5px rgba(43, 37, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 12%, rgba(221, 210, 194, 0.58), transparent 30rem),
    radial-gradient(circle at 14% 78%, rgba(224, 216, 202, 0.62), transparent 25rem),
    linear-gradient(135deg, var(--paper-soft), var(--paper));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.4rem);
  pointer-events: none;
}

.brand {
  pointer-events: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-style: italic;
  letter-spacing: -0.02em;
}

.status-dot {
  pointer-events: auto;
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.status-dot span {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: #14110f;
}

.portal-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(5.25rem, 13vh) auto auto 1fr;
  justify-items: center;
  overflow: hidden;
}

.ghost-letter {
  position: absolute;
  z-index: 0;
  top: 19%;
  left: 11%;
  margin: 0;
  color: rgba(224, 218, 209, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16rem, 42vw, 40rem);
  font-style: italic;
  line-height: 0.72;
  user-select: none;
}

.visual-wrap {
  position: relative;
  z-index: 2;
  grid-row: 2;
  width: min(46vw, 520px, 45svh);
  min-width: 320px;
  aspect-ratio: 0.8;
}

.house-visual {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.feature-pill {
  position: absolute;
  z-index: 3;
  min-width: 11.6rem;
  height: 3.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.78rem;
  padding: 0 1.45rem;
  border: 1px solid var(--bubble-border);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.28) 32%, transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 237, 230, 0.92));
  box-shadow: var(--pill-shadow);
  color: #302d29;
  font-size: 0.98rem;
  font-weight: 700;
  backdrop-filter: blur(18px);
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.feature-pill:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -12px 20px rgba(211, 202, 190, 0.24),
    0 22px 38px rgba(43, 37, 31, 0.2),
    0 4px 9px rgba(43, 37, 31, 0.08);
}

.pill-domotica {
  top: -1rem;
  right: -1rem;
}

.pill-finanzas {
  top: 38%;
  right: -1rem;
}

.pill-alimentacion {
  left: -1rem;
  bottom: 7.4rem;
}

.pill-icon {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(145deg, #fff8ed, #e5d5c3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -5px 8px rgba(120, 91, 63, 0.16),
    0 5px 10px rgba(58, 48, 39, 0.14);
  color: #b86642;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.pill-arrow {
  color: #aaa39b;
  font-size: 1.1rem;
}

.bars {
  display: inline-grid;
  grid-template-columns: repeat(3, 0.28rem);
  align-items: end;
  justify-content: center;
  place-content: center;
  gap: 0.14rem;
  padding-top: 0.1rem;
}

.bars i {
  display: block;
  width: 0.28rem;
  border-radius: 999px;
}

.bars i:nth-child(1) {
  height: 0.88rem;
  background: #6ea8ff;
}

.bars i:nth-child(2) {
  height: 1.16rem;
  background: #b88cff;
}

.bars i:nth-child(3) {
  height: 0.68rem;
  background: #62d6a4;
}

.food-mark {
  color: #6c9f72;
  font-size: 1.15rem;
}

.visual-wrap > .cat-bubble {
  position: absolute;
  z-index: 5;
  width: 6.8rem;
  height: 5.85rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(ellipse at 28% 20%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.52) 25%, transparent 44%),
    radial-gradient(circle at 76% 12%, rgba(244, 214, 224, 0.62), transparent 27%),
    radial-gradient(circle at 12% 82%, rgba(193, 223, 255, 0.5), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 231, 226, 0.9));
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.96),
    inset 9px 0 15px rgba(205, 232, 255, 0.22),
    inset -8px 0 14px rgba(255, 210, 224, 0.22),
    inset 0 -14px 22px rgba(194, 184, 174, 0.24),
    0 22px 42px rgba(43, 37, 31, 0.2),
    0 4px 10px rgba(43, 37, 31, 0.08);
  color: #3a342f;
  font-size: 1.02rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.visual-wrap > .cat-bubble::before,
.visual-wrap > .cat-bubble::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -0.72rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0.48rem 1.45rem 0.55rem 1.35rem;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(145deg, rgba(250, 252, 255, 0.96), rgba(238, 225, 232, 0.86));
  box-shadow:
    inset 0 -5px 9px rgba(170, 151, 130, 0.14),
    0 8px 16px rgba(43, 37, 31, 0.09);
}

.visual-wrap > .cat-bubble::before {
  left: 0.95rem;
  transform: rotate(17deg) skew(-4deg);
}

.visual-wrap > .cat-bubble::after {
  right: 0.95rem;
  transform: rotate(73deg) skew(-4deg);
}

.visual-wrap > .cat-bubble span {
  position: relative;
  z-index: 2;
}

.visual-wrap > .cat-bubble:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    inset 0 -10px 16px rgba(198, 184, 168, 0.24),
    0 22px 38px rgba(43, 37, 31, 0.2),
    0 4px 9px rgba(43, 37, 31, 0.08);
}

.pill-gatos {
  top: -1.55rem;
  left: -2.05rem;
}

.visual-wrap > .gatos-orb {
  position: absolute;
  z-index: 7;
  top: -1.95rem;
  left: -1.72rem;
  width: 7.2rem;
  height: 5.75rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 19px 22px rgba(43, 37, 31, 0.18)) drop-shadow(0 3px 7px rgba(43, 37, 31, 0.08));
  color: #2d2925;
  font-size: 1.04rem;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.gatos-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gatos-shape-fill {
  fill: url("#gatosGlow");
  stroke: rgba(136, 118, 97, 0.26);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.gatos-shape-light {
  fill: url("#gatosShade");
  opacity: 0.62;
}

.visual-wrap > .gatos-orb span {
  position: relative;
  z-index: 2;
  transform: translateY(0.6rem);
}

.visual-wrap > .gatos-orb:hover {
  transform: translateY(-4px) scale(1.025);
  filter: drop-shadow(0 25px 28px rgba(43, 37, 31, 0.2)) drop-shadow(0 5px 10px rgba(43, 37, 31, 0.08));
}

.hero-copy {
  z-index: 2;
  grid-row: 3;
  margin-top: clamp(1.5rem, 3.8vh, 3.4rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #b3ada6;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.12;
}

.quick-nav {
  z-index: 2;
  grid-row: 4;
  align-self: end;
  margin-bottom: 1.5rem;
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.2rem;
  min-height: 2.35rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: #817b74;
  font-size: 0.78rem;
  font-weight: 600;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.access-item {
  min-height: 13rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: rgba(255, 255, 255, 0.45);
}

.access-item span {
  color: #b4aea7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.access-item h2 {
  margin: 3.4rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
}

.access-item p {
  max-width: 19rem;
  margin: 0;
  color: #716b64;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .site-header {
    padding: 1.1rem;
  }

  .hero {
    grid-template-rows: minmax(5.5rem, 13vh) auto auto 1fr;
  }

  .visual-wrap {
    width: min(82vw, 430px);
    min-width: 0;
  }

  .feature-pill {
    min-width: auto;
    height: 3.05rem;
    gap: 0.62rem;
    padding: 0 1rem;
    font-size: 0.82rem;
  }

  .pill-domotica {
    top: -0.75rem;
    right: -0.25rem;
  }

  .pill-finanzas {
    top: 40%;
    right: 0.25rem;
  }

  .pill-alimentacion {
    left: 0.25rem;
    bottom: 6.4rem;
  }

  .pill-icon {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.58rem;
  }

  .visual-wrap > .cat-bubble {
    width: 5.45rem;
    height: 4.7rem;
    font-size: 0.88rem;
  }

  .visual-wrap > .cat-bubble::before,
  .visual-wrap > .cat-bubble::after {
    top: -0.56rem;
    width: 1.65rem;
    height: 1.65rem;
  }

  .pill-gatos {
    top: -1rem;
    left: -0.25rem;
  }

  .visual-wrap > .gatos-orb {
    top: -1.45rem;
    left: -0.35rem;
    width: 5.75rem;
    height: 4.55rem;
    font-size: 0.9rem;
  }

  .hero-copy {
    margin-top: 2.2rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
  }

  .access-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .access-item {
    min-height: 10.5rem;
  }

  .access-item h2 {
    margin-top: 2rem;
  }
}

@media (max-width: 420px) {
  .portal-shell {
    padding-inline: 0.9rem;
  }

  .visual-wrap {
    width: 86vw;
  }

  .house-visual {
    border-radius: 1rem;
  }

  .pill-finanzas {
    right: 0;
  }

  .pill-alimentacion {
    left: 0;
    bottom: 5.2rem;
  }

  .pill-gatos {
    top: -0.8rem;
    left: 0;
  }

  .visual-wrap > .gatos-orb {
    top: -1.2rem;
    left: -0.05rem;
    width: 5.15rem;
    height: 4.05rem;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }
}
