@import url("tokens.css");

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky-600);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: #fff;
  color: var(--slate-950);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.promo-bar {
  background: var(--slate-950);
  border-bottom: 1px solid var(--slate-800);
  padding: 8px 16px;
  text-align: center;
}

.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: var(--max-content);
  margin-inline: auto;
}

.promo-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 6px;
  background: var(--red-500);
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.4);
  flex-shrink: 0;
}

.promo-bar__text {
  margin: 0;
  color: var(--slate-100);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.nav-bar {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--slate-950);
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.brand__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--sky-600);
  color: #fff;
  padding: 14px 20px;
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--primary-lg {
  padding: 18px 28px;
  font-size: 16px;
  font-weight: 800;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  padding: 18px 24px;
  font-size: 16px;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  background: transparent;
  color: var(--slate-700);
  padding: 12px 16px;
  font-size: 14px;
}

.btn--ghost:hover {
  color: var(--slate-950);
}

.btn--outline {
  background: #fff;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  padding: 16px;
  width: 100%;
  font-size: 15px;
  font-weight: 800;
}

.btn--white {
  background: #fff;
  color: var(--slate-950);
  padding: 18px 36px;
  font-size: 16px;
}

.nav-actions .btn--primary {
  padding: 10px 14px;
  font-size: 13px;
}

@media (min-width: 700px) {
  .nav-actions .btn--primary {
    padding: 14px 20px;
    font-size: 14px;
  }
  .brand__logo {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 699px) {
  .nav-link-precios {
    display: none;
  }
  .brand__logo {
    width: 36px;
    height: 36px;
  }
  .brand__name {
    font-size: 20px;
  }
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  vertical-align: middle;
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  color: #fff;
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 24px;
    min-height: 480px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(15, 23, 42, 0.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
}

.hero__lead {
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 2.2vw, 1.375rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.hero__lead strong {
  color: #fff;
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
}

/* Section titles */
.section-title {
  margin: 0 0 10px;
  text-align: center;
  color: var(--slate-950);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.section-subtitle {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.4;
}

/* Pillars / flow */
.section-pillars {
  background: var(--slate-50);
  padding: 28px 0 36px;
}

@media (min-width: 950px) {
  .section-pillars {
    padding: 56px 0;
  }
}

.flow-grid {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 950px) {
  .flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 36px;
  }
}

.flow-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 12px rgba(15, 23, 42, 0.03);
}

.flow-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.flow-card__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--slate-500);
}

.flow-card__num {
  font-size: 16px;
  font-weight: 900;
  color: rgba(14, 165, 233, 0.3);
}

.flow-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--slate-950);
}

.flow-card p {
  margin: 0;
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.4;
}

.flow-step {
  display: flex;
  gap: 16px;
}

@media (min-width: 950px) {
  .flow-step {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .flow-card {
    width: 100%;
  }
}

.flow-step__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(14, 165, 233, 0.3);
  display: grid;
  place-items: center;
  color: var(--sky-600);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

@media (min-width: 950px) {
  .flow-step__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }
}

/* Roles */
.section-roles {
  background: var(--slate-100);
  padding: 28px 0 44px;
}

.roles-layout {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .roles-layout {
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: start;
  }
}

.role-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.role-tab[aria-selected="true"] {
  border: 2px solid var(--sky-600);
}

.role-tab__bar {
  width: 4px;
  height: 36px;
  border-radius: 4px;
  background: transparent;
  flex-shrink: 0;
}

.role-tab[aria-selected="true"] .role-tab__bar {
  background: var(--sky-600);
}

.role-tab__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  display: grid;
  place-items: center;
  color: var(--slate-500);
  flex-shrink: 0;
}

.role-tab[aria-selected="true"] .role-tab__icon {
  background: var(--sky-100);
  border-color: var(--sky-200);
  color: var(--sky-600);
}

.role-tab__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-600);
}

.role-tab[aria-selected="true"] .role-tab__label {
  font-weight: 700;
  color: var(--slate-950);
}

.role-panel {
  display: none;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.role-panel.is-active {
  display: block;
}

@media (min-width: 900px) {
  .role-panel {
    padding: 36px;
  }
}

/* Mobile: show all role articles stacked for SEO */
@media (max-width: 899px) {
  .role-tabs {
    display: none;
  }
  .role-panel {
    display: block;
    margin-bottom: 16px;
  }
  .roles-panels--desktop-only {
    display: block;
  }
}

.role-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--slate-950);
}

.role-panel__desc {
  margin: 0 0 28px;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 500px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  line-height: 1.4;
}

.feature-list .material-symbols-outlined {
  color: var(--sky-600);
  font-size: 20px;
  flex-shrink: 0;
}

.video-thumb {
  position: relative;
  display: block;
  border: none;
  padding: 0;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--slate-950);
}

@media (min-width: 600px) {
  .video-thumb {
    height: 340px;
  }
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.video-thumb__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  color: var(--sky-600);
}

.video-thumb__caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Benefits */
.section-benefits {
  background: #fff;
  padding: 28px 0 44px;
}

.benefits-grid {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 950px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.benefit-card:hover {
  background: #fff;
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.08);
}

.benefit-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.benefit-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.benefit-card__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--slate-950);
}

.benefit-card p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.5;
}

/* Pricing */
.section-pricing {
  background: var(--slate-50);
  padding: 48px 0 72px;
}

.section-pricing .container {
  text-align: center;
}

.section-pricing .plan-card,
.section-pricing .pricing-highlight,
.section-pricing .shared-features {
  text-align: left;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 16px;
  padding: 6px 14px;
  background: var(--sky-100);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 100px;
  color: var(--sky-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.pricing-highlight {
  display: flex;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 18px;
  background: #fff;
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
}

@media (min-width: 900px) {
  .pricing-highlight {
    padding: 22px;
    gap: 16px;
  }
}

.pricing-highlight__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--sky-100);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--sky-600);
}

.pricing-highlight h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--slate-950);
}

@media (min-width: 900px) {
  .pricing-highlight h3 {
    font-size: 18px;
  }
}

.pricing-highlight p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1179px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-grid .plan-card:last-child {
    grid-column: 2;
  }
}

.plan-card {
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.plan-card h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-950);
}

.plan-card__price {
  font-size: 36px;
  font-weight: 900;
  color: var(--slate-950);
  letter-spacing: -1.2px;
}

.plan-card__period {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-500);
}

.plan-card__users {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 0 20px;
  padding: 10px 12px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
}

.shared-features {
  margin-top: 32px;
  padding: 22px 28px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
}

.shared-features h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--sky-600);
}

.shared-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .shared-features ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

.shared-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-700);
}

.pricing-footnote {
  text-align: center;
  margin-top: 28px;
  color: var(--sky-700);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-demo {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  font-family: var(--font);
  color: var(--slate-600);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

/* FAQ */
.section-faq {
  background: #fff;
  padding: 48px 0 56px;
  border-top: 1px solid var(--slate-200);
}

.faq-list {
  margin-top: 28px;
  max-width: 800px;
  margin-inline: auto;
}

.faq-list details {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 0 16px;
  background: var(--slate-50);
}

.faq-list summary {
  padding: 16px 4px;
  font-weight: 700;
  color: var(--slate-950);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0 0 16px;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.55;
}

/* CTA */
.cta-banner {
  background: linear-gradient(180deg, var(--sky-600), var(--sky-700));
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
}

.cta-banner p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  max-width: 560px;
  margin-inline: auto;
}

/* Footer */
.site-footer__main {
  background: #fff;
  padding: 60px 24px 40px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}

@media (min-width: 800px) {
  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 60px;
  }
  .footer-grid > * {
    flex: 1;
  }
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.5;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--slate-700);
}

@media (min-width: 800px) {
  .contact-row {
    justify-content: flex-start;
  }
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--sky-600);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 0 0 10px;
  color: var(--slate-500);
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--sky-600);
  font-weight: 600;
}

.site-footer__bar {
  background: var(--slate-950);
  padding: 20px 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-align: center;
}

@media (min-width: 600px) {
  .site-footer__bar .container {
    display: flex;
    justify-content: space-between;
    text-align: left;
  }
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4), 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.05);
}

/* Modals */
.modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  max-width: min(672px, calc(100vw - 32px));
  width: 100%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 16px 16px 24px;
  gap: 12px;
}

.modal__header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--slate-950);
}

.modal__header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--slate-500);
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-500);
  padding: 8px;
  border-radius: 8px;
}

.modal__close:hover {
  background: var(--slate-100);
}

.modal__divider {
  height: 1px;
  background: var(--slate-200);
  margin: 0;
  border: none;
}

.modal__body {
  padding: 0;
}

.modal__body iframe {
  width: 100%;
  height: min(520px, 70vh);
  border: none;
  border-radius: 0 0 24px 24px;
  display: block;
}

.modal--video {
  max-width: min(900px, calc(100vw - 32px));
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}