/* Detailed Platform Features page (/funciones/) */
.feat-hero {
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.feat-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(56vh, 480px);
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 10vw, 7.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  background: linear-gradient(135deg, #1C2633 0%, #1F625D 60%, #2F7F7A 100%);
  color: #FFFFFF;
}
.feat-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.feat-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(12, 22, 28, 0.88) 0%, rgba(12, 22, 28, 0.68) 45%, rgba(12, 22, 28, 0.28) 100%),
    linear-gradient(90deg, rgba(12, 22, 28, 0.62) 0%, rgba(12, 22, 28, 0.25) 55%, rgba(12, 22, 28, 0) 85%);
}
.feat-hero__in {
  width: 100%;
}
.feat-hero--photo .feat-eyebrow {
  color: #E2F1EE;
}
.feat-hero--photo h1 {
  color: #FFFFFF;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}
.feat-hero--photo .feat-lede {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}
.feat-hero--photo .btn--solid {
  background: #FFFFFF;
  color: #1C2633;
  border-color: #FFFFFF;
}
.feat-hero--photo .btn--solid:hover {
  background: #E2E9E7;
  border-color: #E2E9E7;
}
.feat-hero--photo .btn--line {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(12, 22, 28, 0.25);
}
.feat-hero--photo .btn--line:hover {
  background: rgba(255, 255, 255, 0.14);
}
.feat-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.75rem;
}
.feat-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 24ch;
  text-wrap: balance;
}
.feat-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 1.75rem;
  opacity: 0.85;
}
.feat-toc {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0;
}
.feat-toc__in {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.feat-toc__link {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--ink);
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.feat-toc__link:hover,
.feat-toc__link:focus-visible {
  background: var(--tint);
  border-color: var(--line);
  color: var(--line-ink);
}
.feat-body {
  padding: 2.5rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.feat-sec {
  scroll-margin-top: 4.5rem;
}
.feat-sec__head {
  margin-bottom: 1.5rem;
}
.feat-sec__head h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin: 0 0 0.5rem;
  text-wrap: balance;
}
.feat-sec__head p {
  margin: 0;
  max-width: 66ch;
  opacity: 0.8;
  line-height: 1.55;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 960px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .feat-grid { grid-template-columns: 1fr; }
}
.feat-card {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--sheet);
}
.feat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.feat-card__ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--line-ink);
}
.feat-card__ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.feat-badge--live {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
}
.feat-badge--next {
  background: rgba(180, 83, 9, 0.12);
  color: #92400E;
}
@media (prefers-color-scheme: dark) {
  .feat-badge--live { background: rgba(74, 222, 128, 0.18); color: #86EFAC; }
  .feat-badge--next { background: rgba(251, 191, 36, 0.18); color: #FDE68A; }
}
.feat-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.feat-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}
.feat-cta {
  border-top: 1px solid var(--rule);
  padding: 3.5rem 0;
  text-align: center;
}
.feat-cta__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.feat-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}
.feat-cta p {
  margin: 0 0 0.75rem;
  max-width: 54ch;
  opacity: 0.82;
}
.feat-card__link {
  margin-top: auto;
  padding-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--line-ink);
  text-decoration: none;
}
.feat-card__link:hover {
  text-decoration: underline;
}

/* Detailed feature subpages (/funciones/ical/) */
.ical-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.ical-back:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.ical-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 780px) {
  .ical-flow { grid-template-columns: 1fr; }
}
.ical-panel {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.4rem;
  background: var(--sheet);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ical-panel h3 {
  margin: 0;
  font-size: 1.1rem;
}
.ical-panel p,
.ical-panel li {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  opacity: 0.88;
}
.ical-panel ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ical-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: ical-step;
}
@media (max-width: 900px) {
  .ical-steps { grid-template-columns: 1fr; }
}
.ical-step {
  counter-increment: ical-step;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.35rem;
  background: var(--sheet);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ical-step::before {
  content: counter(ical-step);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--tint);
  color: var(--line-ink);
}
.ical-step h3 {
  margin: 0;
  font-size: 1.02rem;
}
.ical-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.52;
  opacity: 0.86;
}
.ical-callout {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  background: var(--tint);
}
.ical-callout h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}
.ical-callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}
