/**
 * pablodiaz.eu — paleta TalkToMood / Adaptive Learn (OCA-I)
 */

:root {
  --ams-primary: #0d9488;
  --ams-primary-hover: #0f766e;
  --ams-accent: #5eead4;
  --ams-accent-warm: #f38020;
  --ams-secondary: #0f172a;
  --ams-base: #f8fafc;
  --ams-muted: #64748b;
  --ams-light: #f1f5f9;
  --ams-content: 1140px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-heading: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.home-andres-layout {
  margin: 0;
  background: var(--ams-base);
  color: #111827;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-andres-layout a { color: var(--ams-primary); text-decoration: none; }
.home-andres-layout a:hover { color: var(--ams-primary-hover); }

.ams-preview-note {
  padding: 7px 12px;
  text-align: center;
  font-size: 0.75rem;
  color: #5eead4;
  background: #0f172a;
}

.ams-container {
  width: min(100% - 40px, var(--ams-content));
  margin-inline: auto;
}

.ams-narrow {
  max-width: 720px;
}

.ams-prose {
  margin: 0 auto 1em;
  max-width: 62ch;
  color: var(--ams-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ams-narrow .ams-prose {
  margin-left: 0;
  margin-right: 0;
}

.ams-narrow h2 {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.ams-narrow .ams-eyebrow {
  text-align: left;
}

.ams-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ams-tags li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ams-grid-3--stack .ams-card h3 {
  margin-top: 0;
}

/* Header — barra oscura tipo TalkToMood */
.ams-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(94, 234, 212, 0.15);
  padding: 12px 0;
}

.ams-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 40px, var(--ams-content));
  margin-inline: auto;
}

.ams-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc !important;
  font-weight: 700;
  font-size: 0.95rem;
}

.ams-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488, #5eead4);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 800;
}

.ams-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.ams-nav a { color: #cbd5e1; }
.ams-nav a.is-active { color: var(--ams-accent); font-weight: 600; }

.ams-header__langs {
  flex-shrink: 0;
}

.home-andres-layout .ams-header__langs .lang-switcher__list {
  gap: 4px;
}

.home-andres-layout .ams-header__langs .lang-switcher__link {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
  background: transparent;
  padding: 4px 6px;
}

.home-andres-layout .ams-header__langs .lang-switcher__link:hover {
  color: #f8fafc;
  border-color: rgba(94, 234, 212, 0.45);
}

.home-andres-layout .ams-header__langs .lang-switcher__item.is-active .lang-switcher__link {
  color: #0f172a;
  background: var(--ams-accent);
  border-color: var(--ams-accent);
}

.ams-nav-toggle { color: #f8fafc; }

.ams-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 8px;
  background: rgba(94, 234, 212, 0.12);
  color: var(--ams-accent) !important;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ams-btn:hover {
  background: var(--ams-primary);
  color: #fff !important;
}

.ams-btn--solid {
  background: var(--ams-primary);
  color: #fff !important;
}

.ams-btn--solid:hover {
  background: var(--ams-primary-hover);
  color: #fff !important;
}

.ams-btn--white {
  background: #fff;
  color: var(--ams-secondary) !important;
}

.ams-btn--white:hover {
  background: #ecfeff;
  color: var(--ams-primary-hover) !important;
}

.ams-btn--outline {
  background: transparent;
  color: var(--ams-accent) !important;
  border: 2px solid rgba(94, 234, 212, 0.45);
}

.ams-btn--outline:hover {
  background: rgba(94, 234, 212, 0.1);
  border-color: var(--ams-accent);
  color: #fff !important;
}

.ams-nav-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */
.ams-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 90px 20px;
  color: #fff;
  overflow: hidden;
}

.ams-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(13, 148, 136, 0.45), transparent 55%),
    radial-gradient(ellipse at 82% 15%, rgba(94, 234, 212, 0.18), transparent 48%),
    radial-gradient(ellipse at 50% 100%, rgba(243, 128, 32, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 55%, #134e4a 100%);
}

.ams-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.ams-hero__pill {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 20px;
  border-radius: 40px;
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: var(--ams-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ams-hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
}

.ams-hero__lead {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.ams-hero__sub {
  margin: 0 0 40px;
  color: #94a3b8;
  font-size: clamp(0.875rem, 1.5vw, 1.05rem);
  line-height: 1.65;
}

.ams-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.ams-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ams-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.2);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: left;
}

.ams-trust__item strong {
  color: var(--ams-accent);
  font-weight: 600;
}

.ams-trust__icon {
  flex-shrink: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.35);
  color: var(--ams-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Sections */
.ams-section {
  padding: 96px 20px;
}

.ams-section--light {
  background: var(--ams-light);
}

.ams-section--white {
  background: #fff;
}

.ams-eyebrow {
  margin: 0 0 16px;
  text-align: center;
  color: var(--ams-primary);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ams-section h2 {
  margin: 0 auto 24px;
  max-width: 820px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 850;
  line-height: 1.12;
  color: var(--ams-secondary);
}

.ams-section__intro {
  margin: 0 auto 56px;
  max-width: 720px;
  text-align: center;
  color: var(--ams-muted);
  font-size: 1.05rem;
}

/* About split */
.ams-about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.ams-about__card {
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15,39,66,0.06);
}

.ams-about__name {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ams-secondary);
}

.ams-about__role {
  margin: 0 0 20px;
  color: var(--ams-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.ams-about__card p {
  margin: 0 0 1em;
  color: #475569;
  font-size: 0.95rem;
}

.ams-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.ams-stat {
  padding: 16px;
  border-radius: 12px;
  background: var(--ams-light);
  text-align: center;
}

.ams-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ams-secondary);
  font-size: 0.95rem;
}

.ams-stat span {
  color: var(--ams-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Numbered cards */
.ams-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ams-card {
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.ams-card__num {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--ams-primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
}

.ams-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ams-secondary);
  line-height: 1.3;
}

.ams-card p {
  margin: 0;
  color: var(--ams-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Service cards (dark header strip) */
.ams-service {
  padding: 0;
  overflow: hidden;
}

.ams-service__head {
  padding: 20px 28px;
  background: var(--ams-secondary);
  color: #fff;
}

.ams-service__head span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ams-service__head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.ams-service__body {
  padding: 28px;
}

.ams-service__body > p {
  margin: 0 0 16px;
  color: var(--ams-muted);
  font-size: 0.92rem;
}

.ams-service__body h4 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ams-secondary);
}

.ams-service__body ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ams-service__deliver {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: var(--ams-muted);
  font-style: italic;
}

/* CTA band */
.ams-cta {
  padding: 64px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(13, 148, 136, 0.35), transparent 60%),
    linear-gradient(180deg, #0f172a, #134e4a);
  color: #fff;
}

.ams-cta h2 {
  color: #fff;
  margin-bottom: 16px;
}

.ams-cta p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: #cbd5e1;
  font-size: 1rem;
}

.ams-cta .ams-btn--white {
  margin: 0 6px;
}

/* Blog grid */
.ams-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ams-post {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s, transform 0.2s;
  color: inherit !important;
}

.ams-post:hover {
  box-shadow: 0 12px 32px rgba(15,39,66,0.1);
  transform: translateY(-2px);
}

.ams-post__thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
}

.ams-post__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ams-post__body h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ams-secondary);
  line-height: 1.35;
}

.ams-post__body p {
  margin: 0;
  flex: 1;
  color: var(--ams-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Productos — tono producto, no aula */
.ams-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ams-product {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: inherit !important;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ams-product:hover {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.12);
}

.ams-product__thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e2e8f0;
}

.ams-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.ams-product__url {
  display: block;
  margin-bottom: 6px;
  color: var(--ams-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ams-product h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ams-secondary);
}

.ams-product p {
  margin: 0 0 10px;
  color: var(--ams-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ams-product__stack {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

.ams-post__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ams-blog-more,
.ams-about-cta {
  text-align: center;
  margin-top: 40px;
}

.ams-about-cta {
  margin-top: 28px;
  text-align: left;
}

/* Footer */
.ams-footer {
  padding: 40px 20px;
  text-align: center;
  background: var(--ams-secondary);
  color: #94a3b8;
  font-size: 0.875rem;
}

.ams-footer a { color: var(--ams-accent); font-weight: 600; }

@media (max-width: 960px) {
  .ams-about,
  .ams-grid-3,
  .ams-blog-grid,
  .ams-products-grid {
    grid-template-columns: 1fr;
  }

  .ams-product {
    grid-template-columns: 1fr;
  }

  .ams-stats { grid-template-columns: 1fr; }

  .ams-nav { display: none; }
  .ams-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: #0f172a;
    border-bottom: 1px solid rgba(94, 234, 212, 0.15);
  }

  .ams-header { position: relative; }
  .ams-nav-toggle { display: block; }
  .ams-header__cta { display: none; }
  .home-andres-layout .ams-header__langs .lang-switcher__code { display: none; }
}
