/* ============================================================
   KlaveAI — styles.css
   Mobile-first · Brand Kit v2.1 · Sin librerías externas
   ============================================================ */

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Variables -------------------------------------------- */
:root {
  /* Dark theme */
  --color-bg:        #0F4A3A;
  --color-accent:    #1D9E75;
  --color-secondary: #1D6B52;
  --color-card-bg:   #082E23;
  --color-text:      #E1F5EE;
  --color-subtitle:  #9FE1CB;
  --color-tertiary:  #5DCAA5;

  /* Light theme */
  --color-light-bg:       #FFFFFF;
  --color-light-section:  #F0FAF6;
  --color-light-title:    #0F4A3A;
  --color-light-subtitle: #1D6B52;
  --color-light-accent:   #1D9E75;
  --color-light-hover:    #178a64;

  /* State */
  --color-error:   #FF6B6B;
  --color-warning: #F5A623;
  --color-success: #1D9E75;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-gap:    clamp(32px, 3.5vw, 56px);
  --container-max:  1200px;
  --container-px:   clamp(16px, 4vw, 32px);

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Shadow */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.28);

  /* Transition */
  --t: 0.25s ease;
}

/* ---- Reset & Base ----------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Accessibility ---------------------------------------- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  padding: 8px 16px;
  background-color: var(--color-accent);
  color: var(--color-card-bg);
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

.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;
}

/* ---- Typography ------------------------------------------- */
h1 {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}
h4 {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.4;
}

p { max-width: 70ch; }
p + p { margin-top: 1em; }

strong { font-weight: 700; }

.text-accent   { color: var(--color-accent); }
.text-subtitle { color: var(--color-subtitle); }
.text-tertiary { color: var(--color-tertiary); }
.text-center   { text-align: center; }
.text-center p { margin-inline: auto; }

/* ---- Layout ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section { padding-block: var(--section-gap); }

.section--dark     { background-color: var(--color-bg);       color: var(--color-text); }
.section--darker   { background-color: var(--color-card-bg);  color: var(--color-text); }
.section--light    { background-color: var(--color-light-bg); color: var(--color-light-title); }
.section--light-alt{ background-color: var(--color-light-section); color: var(--color-light-title); }

.section--light h2,
.section--light h3,
.section--light h4,
.section--light-alt h2,
.section--light-alt h3,
.section--light-alt h4 { color: var(--color-light-title); }

.section--light p,
.section--light-alt p  { color: var(--color-light-subtitle); }

.section__header { margin-bottom: clamp(32px, 4vw, 56px); }

.section__overline {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section--light .section__overline,
.section--light-alt .section__overline { color: var(--color-light-subtitle); }

.section__subtitle {
  color: var(--color-subtitle);
  font-size: clamp(16px, 1.8vw, 20px);
  margin-top: 12px;
}
.section--light .section__subtitle,
.section--light-alt .section__subtitle { color: var(--color-light-subtitle); }

/* ---- Grid helpers ----------------------------------------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Utilities -------------------------------------------- */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mx-auto { margin-inline: auto; }
.max-w-prose { max-width: 70ch; }
.w-full { width: 100%; }

.divider {
  height: 1px;
  background-color: var(--color-secondary);
}
.section--light .divider,
.section--light-alt .divider { background-color: #cce5d8; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: background-color var(--t), color var(--t),
              border-color var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-card-bg);
}
.btn--primary:hover {
  background-color: var(--color-light-hover);
  box-shadow: 0 4px 20px rgba(29, 158, 117, 0.4);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-secondary);
}
.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-light-title);
  border: 2px solid var(--color-light-accent);
}
.btn--ghost:hover {
  background-color: var(--color-light-accent);
  color: #fff;
}

.btn--outline-light {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid rgba(225, 245, 238, 0.3);
}
.btn--outline-light:hover {
  border-color: var(--color-text);
}

.btn--lg {
  font-size: 17px;
  padding: 18px 36px;
}
.btn--sm {
  font-size: 14px;
  padding: 10px 20px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---- Badge / Label ---------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge--accent {
  background-color: rgba(29, 158, 117, 0.15);
  color: var(--color-accent);
}
.badge--dark {
  background-color: var(--color-card-bg);
  color: var(--color-subtitle);
  border: 1px solid var(--color-secondary);
}

/* ---- Header & Navigation ---------------------------------- */
#site-header { display: contents; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 74, 58, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-secondary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: relative;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav__logo img,
.nav__logo svg { width: 44px; height: 44px; flex-shrink: 0; }
.nav__logo img[src$=".png"] { width: auto; height: 48px; }

/* ---- Logo HTML component (header + footer) */
.nav__logo-text,
.footer__logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-klave { color: var(--color-text); }
.logo-ai    { color: var(--color-accent); }

.logo-slogan {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-subtitle);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 360px) {
  .logo-slogan { display: none; }
}

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-subtitle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--t), background-color var(--t);
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
  background-color: var(--color-secondary);
}

.nav__cta { display: none; }

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color var(--t);
}
.nav__hamburger:hover { background-color: var(--color-secondary); }

.nav__hamburger span {
  display: block;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
  transform-origin: center;
}

.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  flex-direction: column;
  background-color: var(--color-card-bg);
  padding: 16px var(--container-px) 24px;
  gap: 4px;
  border-top: 1px solid var(--color-secondary);
}
.nav--open .nav__mobile { display: flex; }

.nav__mobile .nav__link {
  font-size: 16px;
  padding: 10px 16px;
}
.nav__mobile .btn {
  margin-top: 12px;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav__links    { display: flex; }
  .nav__cta      { display: flex; }
  .nav__hamburger{ display: none; }
  .nav__mobile   { display: none !important; }
}

/* ---- Image block ------------------------------------------ */
/* Reserva el espacio y muestra el color de marca hasta que la
   imagen real esté disponible. El equipo de diseño solo necesita
   subir el archivo con el nombre correcto. */
.img-block {
  aspect-ratio: 16 / 9;
  background-color: var(--color-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  position: relative;
}
.img-block--portrait { aspect-ratio: 4 / 3; }
.img-block--wide     { aspect-ratio: 16 / 7; }

.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.img-block:hover img { transform: scale(1.03); }

/* ---- Section with image (2 columns) ----------------------- */
.section-with-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 768px) {
  .section-with-image { grid-template-columns: 1fr 1fr; }
  .section-with-image--img-left .section-with-image__img { order: -1; }
}

/* ---- Hero ------------------------------------------------- */
.hero {
  padding-block: clamp(48px, 6vw, 96px);
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 72% 50%, rgba(29, 158, 117, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(29, 107, 82, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner                  { grid-template-columns: 1fr 1fr; }
  .hero__inner .hero__content   { max-width: none; }
}

.hero__content {
  position: relative;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-secondary);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-tertiary);
  margin-bottom: 24px;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(44px, 7.5vw, 96px);
  color: var(--color-text);
  margin-bottom: 24px;
}
.hero__title span { color: var(--color-accent); }

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-subtitle);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}

/* ---- Page hero (páginas interiores) ----------------------- */
.page-hero {
  padding-block: clamp(56px, 7vw, 96px);
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 50%, rgba(29, 158, 117, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__content { position: relative; }
.page-hero__title   { color: var(--color-text); }
.page-hero__subtitle{
  color: var(--color-subtitle);
  font-size: clamp(16px, 1.8vw, 20px);
  margin-top: 16px;
  max-width: 65ch;
}

/* ---- Service Cards ---------------------------------------- */
.service-card {
  text-decoration: none;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background-color: rgba(29, 158, 117, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card__icon svg { width: 24px; height: 24px; color: var(--color-accent); }

.service-card__title {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--color-text);
}
.service-card__desc {
  font-size: 15px;
  color: var(--color-subtitle);
  line-height: 1.6;
  flex: 1;
}
.service-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t);
  width: fit-content;
}
.service-card__link:hover { gap: 8px; }

.section--light .service-card__title,
.section--light-alt .service-card__title { color: var(--color-text); }
.section--light .service-card__desc,
.section--light-alt .service-card__desc  { color: var(--color-subtitle); }

/* ---- Sector Cards ---------------------------------------- */
.sector-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--t);
}
.sector-card:hover { border-color: var(--color-accent); }

a.sector-card {
  text-decoration: none;
  display: flex;
  cursor: pointer;
  position: relative;
}
a.sector-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.sector-card__demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 4px 10px;
  background-color: rgba(29, 158, 117, 0.12);
  border: 1px solid rgba(29, 158, 117, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  width: fit-content;
}

.sector-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.sector-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}
.sector-card__problem {
  font-size: 14px;
  color: var(--color-subtitle);
  line-height: 1.5;
}

.section--light .sector-card__name,
.section--light-alt .sector-card__name    { color: var(--color-text); }
.section--light .sector-card__problem,
.section--light-alt .sector-card__problem { color: var(--color-subtitle); }

/* ---- Steps / Proceso -------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step { display: flex; flex-direction: column; gap: 16px; }

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-card-bg);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}
.step__desc {
  font-size: 15px;
  color: var(--color-subtitle);
  line-height: 1.6;
}
.section--light .step__title,
.section--light-alt .step__title { color: var(--color-light-title); }
.section--light .step__desc,
.section--light-alt .step__desc  { color: var(--color-light-subtitle); }

/* ---- Feature Row (panel de control) ----------------------- */
.feature-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .feature-row { flex-direction: row; gap: 24px; }
}

.feature-row__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}
.feature-row__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 5px;
}
.feature-row__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}
.section--light .feature-row__text,
.section--light-alt .feature-row__text { color: var(--color-light-title); }

/* ---- Dashboard Placeholder -------------------------------- */
.dashboard-placeholder {
  background-color: var(--color-secondary);
  border: 2px dashed var(--color-tertiary);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-tertiary);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

/* ---- Guarantee Banner ------------------------------------- */
.guarantee-banner {
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.guarantee-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(29, 158, 117, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.guarantee-banner__icon {
  font-size: 40px;
  margin-bottom: 16px;
  position: relative;
}
.guarantee-banner__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
  position: relative;
}
.guarantee-banner__text {
  color: var(--color-subtitle);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 60ch;
  margin-inline: auto;
  position: relative;
}
/* Restaurar colores del tema oscuro cuando el banner está
   dentro de una sección clara (evita que .section--light h2/p
   sobreescriban los colores del fondo oscuro del banner) */
.section--light .guarantee-banner__title,
.section--light-alt .guarantee-banner__title { color: var(--color-text); }
.section--light .guarantee-banner__text,
.section--light-alt .guarantee-banner__text  { color: var(--color-subtitle); }

/* ---- Pricing Grid ---------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 640px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(5, 1fr); } }

.pricing-card {
  background-color: var(--color-light-bg);
  border: 1px solid #ddeee6;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
a.pricing-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}
/* Dark-background variant */
.section--dark .pricing-card,
.section--darker .pricing-card {
  background-color: var(--color-card-bg);
  border-color: var(--color-secondary);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  position: relative;
}
.pricing-card--featured::before {
  content: 'Más popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--color-card-bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-light-title);
  min-height: 2.8em;
}
.section--dark .pricing-card__name,
.section--darker .pricing-card__name { color: var(--color-text); }

.pricing-card__price {
  font-size: 38px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.pricing-card__price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-light-subtitle);
}
.section--dark .pricing-card__price span,
.section--darker .pricing-card__price span { color: var(--color-subtitle); }

.pricing-card__desc {
  font-size: 14px;
  color: var(--color-light-subtitle);
  line-height: 1.55;
  flex: 1;
}
.section--dark .pricing-card__desc,
.section--darker .pricing-card__desc { color: var(--color-subtitle); }

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #ddeee6;
}
.section--dark .pricing-card__features,
.section--darker .pricing-card__features { border-color: var(--color-secondary); }

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-light-subtitle);
  line-height: 1.4;
}
.section--dark .pricing-card__feature,
.section--darker .pricing-card__feature { color: var(--color-subtitle); }

.pricing-card__feature::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='%231D9E75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Blog Grid ------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  background-color: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__excerpt {
  font-size: 14px;
  color: var(--color-subtitle);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t);
  width: fit-content;
  margin-top: 4px;
}
.blog-card__link:hover { gap: 8px; }

/* Light blog grid variant */
.section--light .blog-card,
.section--light-alt .blog-card {
  background-color: var(--color-light-bg);
  border-color: #ddeee6;
  box-shadow: 0 2px 12px rgba(15, 74, 58, 0.06);
}
.section--light .blog-card__title,
.section--light-alt .blog-card__title { color: var(--color-light-title); }
.section--light .blog-card__excerpt,
.section--light-alt .blog-card__excerpt { color: var(--color-light-subtitle); }
.section--light .blog-card__link,
.section--light-alt .blog-card__link { color: var(--color-light-accent); }

/* ---- CTA Banner ------------------------------------------ */
.cta-banner {
  text-align: center;
}
.cta-banner__title { color: var(--color-text); margin-bottom: 16px; }
.cta-banner__subtitle {
  color: var(--color-subtitle);
  font-size: clamp(16px, 1.8vw, 20px);
  margin-bottom: 40px;
  margin-inline: auto;
}
.section--light .cta-banner__title    { color: var(--color-light-title); }
.section--light .cta-banner__subtitle { color: var(--color-light-subtitle); }

/* ---- FAQ -------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.section--light .faq-list,
.section--light-alt .faq-list { border-color: #cce5d8; }

.faq-item { background-color: var(--color-card-bg); }
.section--light .faq-item,
.section--light-alt .faq-item { background-color: var(--color-light-bg); }

.faq-item + .faq-item { border-top: 1px solid var(--color-secondary); }
.section--light .faq-item + .faq-item,
.section--light-alt .faq-item + .faq-item { border-color: #cce5d8; }

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: background-color var(--t);
}
.section--light .faq-item__question,
.section--light-alt .faq-item__question { color: var(--color-light-title); }
.faq-item__question:hover { background-color: rgba(29, 158, 117, 0.05); }

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform var(--t);
}
.faq-item--open .faq-item__icon { transform: rotate(45deg); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item--open .faq-item__answer { max-height: 500px; }

.faq-item__answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-subtitle);
  line-height: 1.65;
}
.section--light .faq-item__answer-inner,
.section--light-alt .faq-item__answer-inner { color: var(--color-light-subtitle); }

/* ---- Forms ----------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.form__group { display: flex; flex-direction: column; gap: 6px; }

.form__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.section--light .form__label,
.section--light-alt .form__label { color: var(--color-light-title); }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 15px;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.section--light .form__input,
.section--light-alt .form__input,
.section--light .form__select,
.section--light-alt .form__select,
.section--light .form__textarea,
.section--light-alt .form__textarea {
  background-color: var(--color-light-bg);
  border-color: #cce5d8;
  color: var(--color-light-title);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--color-secondary); }
.section--light .form__input::placeholder,
.section--light-alt .form__input::placeholder,
.section--light .form__textarea::placeholder,
.section--light-alt .form__textarea::placeholder { color: #aac9bc; }

.form__textarea { resize: vertical; min-height: 140px; }

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239FE1CB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.section--light .form__select,
.section--light-alt .form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231D6B52' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form__error {
  font-size: 13px;
  color: var(--color-error);
  display: none;
}
.form__group--error .form__input,
.form__group--error .form__select,
.form__group--error .form__textarea { border-color: var(--color-error); }
.form__group--error .form__error { display: block; }

/* Checkboxes */
.form__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form__checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-subtitle);
}
.section--light .form__checkbox-item,
.section--light-alt .form__checkbox-item { color: var(--color-light-subtitle); }
.form__checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Privacy row */
.form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-subtitle);
  line-height: 1.5;
}
.section--light .form__privacy,
.section--light-alt .form__privacy { color: var(--color-light-subtitle); }
.form__privacy input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.form__privacy a { color: var(--color-accent); text-decoration: underline; }

/* Status messages */
.form__status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  display: none;
}
.form__status--success {
  background-color: rgba(29, 158, 117, 0.12);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  display: block;
}
.form__status--error {
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
  display: block;
}

/* ---- Cookie Banner --------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-secondary);
  padding: 20px var(--container-px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner--visible { transform: translateY(0); }

.cookie-banner__text {
  font-size: 14px;
  color: var(--color-subtitle);
  flex: 1;
  min-width: 200px;
}
.cookie-banner__text a { color: var(--color-accent); text-decoration: underline; }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ---- Footer ---------------------------------------------- */
.footer {
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-secondary);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.footer__logo img,
.footer__logo svg { width: 44px; height: 44px; flex-shrink: 0; }
.footer__logo img[src$=".png"] { width: auto; height: 44px; }
.footer__logo .logo-name   { font-size: 26px; }
.footer__logo .logo-slogan { font-size: 12px; }

.footer__tagline {
  font-size: 14px;
  color: var(--color-subtitle);
  line-height: 1.6;
  max-width: 28ch;
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-subtitle);
  transition: color var(--t);
}
.footer__social-link:hover { color: var(--color-accent); }

.footer__nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tertiary);
  margin-bottom: 16px;
}
.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav-link {
  font-size: 14px;
  color: var(--color-subtitle);
  transition: color var(--t);
}
.footer__nav-link:hover { color: var(--color-text); }

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__contact-item {
  font-size: 14px;
  color: var(--color-subtitle);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.footer__contact-item a { transition: color var(--t); }
.footer__contact-item a:hover { color: var(--color-accent); }

.footer__bottom {
  border-top: 1px solid var(--color-secondary);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__copyright { font-size: 13px; color: var(--color-tertiary); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__legal-link {
  font-size: 13px;
  color: var(--color-tertiary);
  transition: color var(--t);
}
.footer__legal-link:hover { color: var(--color-text); }

/* ---- Artículo de blog ------------------------------------- */
.article-content {
  max-width: 760px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--color-subtitle);
  line-height: 1.75;
}
.section--light .article-content { color: var(--color-light-subtitle); }

.article-content h2,
.article-content h3,
.article-content h4 { color: var(--color-text); margin: 1.5em 0 0.5em; }
.section--light .article-content h2,
.section--light .article-content h3,
.section--light .article-content h4 { color: var(--color-light-title); }

.article-content p + p { margin-top: 1.2em; }
.article-content a { color: var(--color-accent); text-decoration: underline; }
.article-content ul,
.article-content ol {
  list-style: initial;
  padding-left: 1.5em;
  margin: 1em 0;
}
.article-content li + li { margin-top: 0.5em; }
.article-content img { border-radius: var(--radius-md); margin: 2em 0; }
.article-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 20px;
  margin: 1.5em 0;
  color: var(--color-tertiary);
  font-style: italic;
}

/* ---- Spinner --------------------------------------------- */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Scroll Reveal --------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="left"].visible,
[data-reveal="right"].visible { transform: none; }

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

/* ---- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .blog-card:hover .blog-card__image img { transform: none; }
  .spinner { animation: none; border-top-color: var(--color-accent); }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- Demo links (cambios 1-4) ----------------------------- */
.demo-link {
  display: inline-block;
  margin-top: 10px;
  color: #1D9E75;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}
.demo-link:hover { text-decoration: underline; }
.demo-link--md   { font-size: 15px; }

.demos-link-line {
  text-align: center;
  padding: 24px 0 0;
  margin: 0;
  font-size: 15px;
  color: inherit;
}
.demos-link-line a {
  color: #1D9E75;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.demos-link-line a:hover { text-decoration: underline; }

/* ---- /demos page ------------------------------------------ */
.demos-hero {
  text-align: center;
  padding: 64px 0 40px;
}
.demos-hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--color-light-title);
  margin-bottom: 16px;
}
.demos-hero__copy {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--color-light-subtitle);
  font-size: clamp(15px, 1.5vw, 18px);
}

.demos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 0 48px;
}
@media (min-width: 640px) {
  .demos-grid { grid-template-columns: repeat(2, 1fr); }
}

.demo-card {
  background: #F0FAF6;
  border: 1px solid #1D9E75;
  border-radius: 12px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.demo-card:hover {
  box-shadow: 0 8px 28px rgba(29,158,117,.18);
  transform: scale(1.02);
}
.demo-card__emoji {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
}
.demo-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-light-title);
  margin: 0;
}
.demo-card__sector {
  font-size: 13px;
  font-weight: 600;
  color: #1D9E75;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.demo-card__desc {
  font-size: 15px;
  color: var(--color-light-subtitle);
  margin: 4px 0 16px;
  flex: 1;
}
.demo-card__cta {
  align-self: flex-start;
  background: #1D9E75;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.demo-card__cta:hover { background: #178a64; }

.demos-cta {
  text-align: center;
  padding: 48px 0 16px;
}
.demos-cta__text {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--color-light-title);
  margin-bottom: 24px;
}

/* ---- Hero centered variant -------------------------------- */
.hero--centered {
  padding-block: clamp(32px, 3.5vw, 56px);
  background-image: url('/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
.hero--centered::before {
  background: rgba(8, 46, 35, 0.80);
}
.hero--centered .hero__inner { grid-template-columns: 1fr; }
.hero--centered .btn--secondary {
  background-color: rgba(8, 46, 35, 0.55);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-text);
  backdrop-filter: blur(4px);
}
.hero--centered .btn--secondary:hover {
  background-color: rgba(8, 46, 35, 0.75);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.hero__content--center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.hero__content--center .hero__subtitle { margin-inline: auto; }
.hero__content--center .btn-group { justify-content: center; }

/* ---- Trust bar ------------------------------------------- */
.trust-bar {
  background-color: var(--color-card-bg);
  border-block: 1px solid var(--color-secondary);
  padding-block: 18px;
}
.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-subtitle);
}

/* ---- Testimonials ---------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card__quote {
  font-size: 15px;
  color: var(--color-subtitle);
  line-height: 1.65;
  flex: 1;
}
.testimonial-card__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-tertiary);
  margin-top: 4px;
}
.testimonial-card__business {
  font-size: 13px;
  color: var(--color-accent);
  margin-top: 2px;
  opacity: 0.8;
}
.testimonial-card__stars {
  color: #F5A623;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ---- Print ------------------------------------------------ */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .nav__hamburger,
  .btn { display: none; }
  body { color: #000; background: #fff; font-size: 12pt; }
  a::after { content: ' (' attr(href) ')'; font-size: 10pt; }
}
