/* Compact product-led layouts for ReptilRoom Landing. */
#funciones .editorial-meta,
#funciones .secondary-meta { display: grid; gap: 10px; align-content: start; }
#funciones .editorial:nth-of-type(2n + 1) > .editorial-copy { grid-area: 1 / 1; }
#funciones .editorial:nth-of-type(2n + 1) > .editorial-visual { grid-area: 1 / 2 / span 2 / 3; }
#funciones .editorial:nth-of-type(2n + 1) > .editorial-meta { grid-area: 2 / 1; }
#funciones .editorial:nth-of-type(2n) > .editorial-copy { grid-area: 1 / 2; }
#funciones .editorial:nth-of-type(2n) > .editorial-visual { grid-area: 1 / 1 / span 2 / 2; }
#funciones .editorial:nth-of-type(2n) > .editorial-meta { grid-area: 2 / 2; }
#funciones .points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#funciones .points li {
  padding: 7px 10px;
  border: 1px solid #d6e4d7;
  border-radius: 999px;
  background: #f2f7f0;
  color: #365d42;
  font-size: 12px;
  line-height: 1.25;
}
#funciones .points li::before { content: none; }
#funciones .module-details { border-top: 1px solid #e1e9e1; }
#funciones .module-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #315f42;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#funciones .module-details summary:focus-visible,
#funciones .text-link:focus-visible,
#la-app .tour-tab:focus-visible { outline: 3px solid #2e7651; outline-offset: 3px; }
#funciones .module-details > div { padding: 0 0 9px; color: #596e60; font-size: 14px; line-height: 1.6; }
#funciones .module-details h4 { margin: 2px 0 6px; color: #193b29; font-size: 15px; }
#funciones .module-details p { margin: 0; }
#funciones .text-link { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 0; font-size: 13px; }

@media (max-width: 700px) {
  #funciones { padding: 58px 0 50px; }
  #funciones > .wrap > .kicker { margin-bottom: 10px; }
  #funciones > .wrap > .section-title,
  #la-app > .wrap > .section-title {
    max-width: 18ch;
    margin: 0 0 12px;
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.08;
    letter-spacing: -.045em;
  }
  #funciones > .wrap > .section-lead,
  #la-app > .wrap > .section-lead {
    max-width: 48ch;
    margin: 0;
    font-size: clamp(15px, 4.1vw, 17px);
    line-height: 1.55;
  }
  #funciones .editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: clamp(42px, 12vw, 58px) 0;
    border-bottom: 1px solid #dce5dc;
  }
  #funciones .editorial-copy { display: contents; }
  #funciones .editorial:nth-of-type(n) > .editorial-copy,
  #funciones .editorial:nth-of-type(n) > .editorial-visual,
  #funciones .editorial:nth-of-type(n) > .editorial-meta {
    grid-area: auto;
    grid-column: 1;
  }
  #funciones .editorial .chapter { grid-row: 1; margin: 0; }
  #funciones .editorial-copy > h3,
  #funciones .secondary-copy > h3 {
    margin: 0;
    max-width: 20ch;
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.08;
    letter-spacing: -.045em;
  }
  #funciones .editorial-copy > p,
  #funciones .secondary-copy > p {
    margin: -2px 0 0;
    max-width: 48ch;
    color: #566b5b;
    font-size: clamp(15px, 4vw, 16px);
    line-height: 1.55;
  }
  #funciones .editorial-visual {
    grid-row: 4;
    min-width: 0;
    margin: 2px 0 0;
    padding: clamp(12px, 3.6vw, 17px);
    border-radius: 18px;
    background: linear-gradient(145deg, #e7f0e5, #f5f7f1);
  }
  #funciones .editorial-visual .screen,
  #funciones .secondary .screen {
    min-height: 0;
    border-radius: 14px;
    box-shadow: 0 12px 28px #193b2817;
  }
  #funciones .editorial-visual .screen-head,
  #funciones .secondary .screen-head { padding: 13px 14px; }
  #funciones .editorial-visual .screen-body,
  #funciones .secondary .screen-body { padding: 13px; }
  #funciones .editorial-visual .mini-row,
  #funciones .secondary .mini-row { padding: 9px 0; }
  #funciones .editorial-visual .mini-note,
  #funciones .secondary .mini-note { margin-top: 11px; padding: 11px; }
  #funciones .editorial-visual .visual-label,
  #funciones .secondary > .visual-label { margin-top: 10px; font-size: 10px; }
  #funciones .editorial-meta,
  #funciones .secondary-meta {
    display: grid;
    gap: 10px;
    min-width: 0;
  }
  #funciones .secondary-modules { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; }
  #funciones .secondary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    min-width: 0;
    padding: 18px 14px;
    border-radius: 19px;
    background: linear-gradient(150deg, #f4f8f2, #fff 72%);
    box-shadow: 0 9px 26px #193b280d;
  }
  #funciones .secondary > .chapter { margin: 0; }
  #funciones .secondary .screen { width: 100%; }
  #funciones .secondary .screen-head strong { font-size: 15px; }
  #funciones .secondary .screen-head > span { font-size: 8px; }
  #funciones .secondary .demo-controls button { min-height: 44px; }
  #funciones .secondary-meta { margin-top: 1px; }

  #la-app { padding: 54px 0 58px; }
  #la-app .tour-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 21px; }
  #la-app .tour-layout > div { min-width: 0; }
  #la-app .tour-tabs {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin: 0;
    padding: 2px 2px 9px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #la-app .tour-tabs::-webkit-scrollbar { display: none; }
  #la-app .tour-tab {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 48px;
    padding: 9px 12px;
    gap: 7px;
    border-radius: 999px;
    scroll-snap-align: start;
  }
  #la-app .tour-tab[aria-selected="true"] {
    border-color: #4b8b60;
    background: #e7f2e7;
    box-shadow: inset 0 0 0 1px #4b8b60;
  }
  #la-app .tour-tab strong { font-size: 12px; white-space: nowrap; }
  #la-app .tour-no { font-size: 10px; }
  #la-app .tour-tab small { display: none; }
  #la-app .tour-stage {
    min-width: 0;
    padding: clamp(11px, 3.5vw, 16px);
    border-radius: 19px;
  }
  #la-app .tour-panel[hidden] { display: none !important; }
  #la-app .tour-panel:not([hidden]) { animation: panel-in .24s ease both; }
  #la-app .tour-panel .screen { min-height: 0; }
  #la-app .tour-panel .screen-head { padding: 12px 13px; }
  #la-app .tour-panel .screen-body { padding: 13px; }
  #la-app .tour-panel > h3 { margin: 16px 0 6px; font-size: clamp(21px, 5.6vw, 25px); line-height: 1.2; }
  #la-app .tour-panel > p { margin: 0; font-size: 14px !important; line-height: 1.5; }
  #la-app .tour-highlights { gap: 7px; margin: 5px 0 0; padding: 2px 0 0; }
  #la-app .tour-highlights li { padding: 6px 9px; border-radius: 999px; font-size: 11px; }
  #la-app .tour-caption { margin: 10px 0 0; font-size: 10px; line-height: 1.4; }
}
@media (max-width: 380px) {
  #funciones { padding-top: 48px; }
  #funciones .editorial { gap: 12px; padding: 42px 0; }
  #funciones .editorial-visual { padding: 10px; }
  #funciones .secondary { padding: 15px 11px; }
  #la-app { padding: 46px 0 50px; }
  #la-app .tour-tab { min-width: 104px; padding-inline: 10px; }
  #la-app .tour-stage { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #la-app .tour-panel:not([hidden]) { animation: none !important; }
}

/* ReptilRoom Connect receives a distinct, product-led heading in the future section. */
.future-intro { max-width: 880px; margin-bottom: clamp(20px, 3.5vw, 34px); }
.future .section-title { margin-bottom: 12px; }
.future-lead { max-width: 780px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.65; }
.connect-heading { max-width: 940px; margin: 0 auto 18px; }
.connect-heading > .kicker { margin-bottom: 6px; color: #9bdbaa; }
.connect-heading > h3 { margin: 0 0 8px; font-size: clamp(38px, 6vw, 66px); line-height: .98; letter-spacing: -.055em; }
.connect-heading > h3 span { color: #9de3ad; text-shadow: 0 0 28px #78d9922e; }
.connect-heading > p { max-width: 680px; margin: 0; color: #c2d6c8; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.55; }
.connect-panel { margin-bottom: 8px; }
.connect-panel-head h3 { font-size: clamp(18px, 2.2vw, 25px); }
.connect-note { margin: 10px 0 17px; }
.connect-future-note { max-width: 940px; margin: 0 auto 34px; color: #a9cbb2; font-size: 12px; line-height: 1.45; }
.connect-future-note::before { content: "•"; margin-right: 8px; color: #9de3ad; }
@media (max-width: 700px) {
  .future.section { padding: 54px 0 62px; }
  .future-intro { margin: 0 0 24px; text-align: left; }
  .future .section-title { margin: 8px 0 10px; font-size: clamp(32px, 9vw, 46px); line-height: 1.02; }
  .future-lead { font-size: clamp(15px, 4vw, 16px); line-height: 1.58; }
  .connect-heading { margin: 0 0 16px; }
  .connect-heading > .kicker { margin-bottom: 7px; font-size: 10px; }
  .connect-heading > h3 { font-size: clamp(34px, 10vw, 48px); line-height: 1; margin-bottom: 8px; }
  .connect-heading > p { max-width: 42ch; font-size: clamp(15px, 4vw, 16px); line-height: 1.5; }
  .connect-panel { margin-bottom: 7px; padding: clamp(15px, 4.5vw, 21px); border-radius: 18px; }
  .connect-panel-head { gap: 10px; padding-bottom: 12px; }
  .connect-panel-head h3 { font-size: 19px; }
  .connect-note { margin: 9px 0 14px; font-size: 10px; }
  .connect-future-note { margin: 0 0 26px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .connect-panel { animation: none !important; }
}

/* Connect B+: data-led circular meters and paired 24-hour charts. */
.connect-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #9bd8c12b;
  background:
    radial-gradient(ellipse at 88% 2%, #48bfa728, transparent 37%),
    linear-gradient(145deg, #142d26f5, #0a1d18f7 72%);
  box-shadow: 0 28px 78px #020b0873, inset 0 1px #e7fff20d;
}
.connect-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, #ffffff08, transparent 24% 70%, #6bd6b507);
}
.connect-panel-head { align-items: center; }
.connect-panel-head h3 { font-size: clamp(17px, 2vw, 21px); }
.concept-chip { color: #a8d9c0; border-color: #91d6bb35; background: #8de1c00a; }
.connect-note { color: #a6c0b3; }
.connect-dashboard { display: grid; grid-template-columns: 1fr; gap: 13px; }
.environment-readings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.environment-reading {
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid #b9e4d21c;
  border-radius: 17px;
  background: linear-gradient(145deg, #edfff509, #b9ddcf04);
  box-shadow: inset 0 1px #ffffff08;
  transition: border-color .25s ease, background-color .25s ease;
}
.environment-reading.near-limit { border-color: #e8c17970; background: #d2a7570b; }
.meter-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #d9e9df; font-size: 12px; font-weight: 720; }
.meter-signal { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #8ce0b2; box-shadow: 0 0 9px #78d99b66; }
.near-limit .meter-signal { background: #edc276; box-shadow: 0 0 8px #edc27655; }
.environment-ring {
  width: clamp(132px, 20vw, 166px);
  margin: 8px auto 2px;
  overflow: visible;
  isolation: auto;
  background: none;
  box-shadow: none;
}
.environment-ring::before, .environment-ring::after { display: none; }
.meter-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.meter-tick-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.meter-track, .meter-progress { fill: none; stroke-width: 7.5; stroke-linecap: round; }
.meter-track { stroke: #d1eee21c; }
.meter-progress {
  stroke: url(#temp-ring-gradient);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: url(#temp-ring-glow);
  transition: filter .25s ease;
}
.humidity-ring .meter-progress { stroke: url(#humidity-ring-gradient); filter: url(#humidity-ring-glow); }
.meter-ticks { fill: none; stroke: #d8f5e3a1; stroke-width: 2; stroke-linecap: round; }
.humidity-ring .meter-ticks { stroke: #c6f7f0a1; }
.environment-ring strong { font-size: clamp(27px, 3.2vw, 35px); font-variant-numeric: tabular-nums; }
.environment-ring strong small { font-size: 13px; }
.ring-limits { position: absolute; right: 13px; bottom: 19px; left: 13px; display: flex; justify-content: space-between; color: #a2bcae; font-size: 7px; font-weight: 700; letter-spacing: .04em; }
.meter-status { display: block; margin-top: 1px; color: #9ee1b4; text-align: center; font-size: 10px; }
.near-limit .meter-status { color: #efd092; }
.near-limit .meter-progress { stroke: #e6c17b !important; filter: drop-shadow(0 0 4px #e6c17b78); }
.meter-range-note { display: block; margin-top: 4px; color: #91a99c; text-align: center; font-size: 9px; }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.trend-card {
  min-width: 0;
  padding: clamp(13px, 2vw, 18px);
  border: 1px solid #c5e8d51b;
  border-radius: 16px;
  background: linear-gradient(145deg, #f2fff608, #b8e2d005);
  box-shadow: inset 0 1px #ffffff07;
}
.trend-head { align-items: center; }
.trend-head strong { color: #eef8f0; font-size: 12px; }
.trend-head small { color: #a4bbae; font-size: 9px; }
.trend-head > span { padding: 4px 7px; border: 1px solid #9ed7bd24; border-radius: 99px; color: #a9e7c2; font-size: 8px; letter-spacing: .08em; }
.trend-chart { display: block; width: 100%; height: auto; margin: 11px 0 2px; overflow: visible; }
.chart-grid { fill: none; stroke: #e3f6ec12; stroke-width: .8; vector-effect: non-scaling-stroke; }
.trend-area { opacity: .92; }
.trend-line { stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trend-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.humidity-line { stroke-width: 1.65; }
.trend-current-dot { stroke: #d9fff0b3; stroke-width: 1; filter: drop-shadow(0 0 5px #9be9cf); }
.trend-time { fill: #89a597; font-size: 7px; }
.trend-values { display: flex; justify-content: space-between; gap: 5px; margin-top: 5px; color: #a5bbae; font-size: 8px; font-variant-numeric: tabular-nums; }
.trend-values > span { white-space: nowrap; }
.trend-values .current-value { color: #d4f4df; font-weight: 720; }
.limit-dot { display: inline-block; width: 5px; height: 5px; margin: 0 4px 1px 0; border-radius: 50%; background: #799889; }
.now-dot { background: #a4e5b7; box-shadow: 0 0 6px #95e5b45c; }
.max-dot { background: #72c8ba; }
.connect-alert { grid-column: auto; }
:is(.connect-panel, .rrh-connect).has-entered .meter-progress { animation: connect-meter-draw 1.4s cubic-bezier(.2,.75,.25,1) both; }
:is(.connect-panel, .rrh-connect).has-entered .trend-line { animation: connect-chart-draw 1.8s cubic-bezier(.2,.75,.25,1) both; }
:is(.connect-panel, .rrh-connect).has-entered .trend-area { animation: connect-area-reveal 1.1s ease-out both; }
:is(.connect-panel, .rrh-connect).has-entered .trend-current-dot { opacity: 0; animation: connect-dot-reveal .35s 1.45s ease-out both; }
:is(.connect-panel, .rrh-connect).has-entered.is-visible .meter-progress,
:is(.connect-panel, .rrh-connect).has-entered.is-visible .trend-line,
:is(.connect-panel, .rrh-connect).has-entered.is-visible .trend-area,
:is(.connect-panel, .rrh-connect).has-entered.is-visible .trend-current-dot { animation-play-state: running; }
:is(.connect-panel, .rrh-connect).has-entered:not(.is-visible) .meter-progress,
:is(.connect-panel, .rrh-connect).has-entered:not(.is-visible) .trend-line,
:is(.connect-panel, .rrh-connect).has-entered:not(.is-visible) .trend-area,
:is(.connect-panel, .rrh-connect).has-entered:not(.is-visible) .trend-current-dot { animation-play-state: paused; }
@keyframes connect-meter-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: var(--meter-offset); } }
@keyframes connect-chart-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes connect-area-reveal { from { opacity: 0; } to { opacity: .92; } }
@keyframes connect-dot-reveal { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 700px) {
  .connect-panel { padding: clamp(14px, 4vw, 20px); }
  .environment-readings { gap: 9px; }
  .environment-reading { padding: 10px 7px; border-radius: 14px; }
  .meter-heading { font-size: 11px; }
  .environment-ring { width: min(100%, clamp(118px, 34vw, 146px)); }
  .environment-ring strong { font-size: clamp(25px, 7vw, 31px); }
  .ring-limits { right: 10px; bottom: 16px; left: 10px; font-size: 6px; }
  .meter-status { font-size: 9px; }
  .meter-range-note { font-size: 8px; }
  .trend-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .trend-card { padding: 12px; }
  .trend-chart { margin-top: 8px; }
  .trend-values { font-size: 8px; }
}
@media (max-width: 360px) {
  .environment-ring { width: min(100%, clamp(104px, 32vw, 122px)); }
  .environment-ring strong { font-size: 23px; }
  .ring-limits { right: 7px; left: 7px; font-size: 5.5px; }
  .meter-heading { font-size: 10px; }
  .trend-values { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.connect-panel, .rrh-connect).has-entered .meter-progress,
  :is(.connect-panel, .rrh-connect).has-entered .trend-line,
  :is(.connect-panel, .rrh-connect).has-entered .trend-area,
  :is(.connect-panel, .rrh-connect).has-entered .trend-current-dot { animation: none !important; }
  :is(.connect-panel, .rrh-connect) .meter-progress { stroke-dashoffset: var(--meter-offset) !important; }
  .connect-panel .trend-line { stroke-dashoffset: 0 !important; }
  .connect-panel .trend-area, .connect-panel .trend-current-dot { opacity: 1 !important; }
  .environment-reading { transition: none; }
}
