/* ============================================================
   Indaga UX — Sistema de diseño
   Consultoría en UX Research, CX, Marketing Digital y SEO
   ============================================================ */

:root {
  /* Paleta — blanco + grisáceo, acento terracota */
  --ink: #1c1c1e;
  --ink-soft: #58595f;
  --cream: #ffffff;
  --cream-alt: #f4f5f7;
  --cream-line: #e3e5e9;
  --gray-100: #eceef1;
  --terracotta: #c1622e;
  --terracotta-dark: #9c4a20;
  --amber: #e2984f;
  --white: #ffffff;

  --font-display: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --shadow-card: 0 12px 30px -16px rgba(28, 28, 30, 0.16);
  --shadow-hover: 0 18px 40px -14px rgba(28, 28, 30, 0.24);

  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-on-dark {
  background: var(--amber);
  color: var(--ink);
}

.btn-on-dark:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--cream-line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand .accent { color: var(--terracotta); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--terracotta);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    align-self: stretch;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 24px 32px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--cream-line);
    font-size: 1.05rem;
  }

  .nav-cta .btn-outline { display: none; }

  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (photo) ---------- */
.hero-photo {
  position: relative;
  min-height: clamp(440px, 64vh, 680px);
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.25) 0%, rgba(15, 15, 17, 0.3) 25%, rgba(12, 11, 10, 0.92) 100%);
}

.hero-photo-inner {
  position: relative;
  z-index: 2;
  padding: 40px 0 56px;
  color: var(--white);
}

.hero-photo-inner .eyebrow,
.hero-photo-inner h1,
.hero-photo-inner .lede {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero-photo-inner .eyebrow { color: var(--amber); }
.hero-photo-inner h1 { color: var(--white); }
.hero-photo-inner .lede { color: rgba(255, 255, 255, 0.92); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-photo .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.hero-photo .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* Compact photo banner for interior pages */
.page-hero-photo {
  position: relative;
  min-height: clamp(240px, 34vh, 340px);
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-hero-photo img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.25) 0%, rgba(12, 11, 10, 0.8) 100%);
}

.page-hero-photo-inner {
  position: relative;
  z-index: 2;
  padding: 24px 0 32px;
  color: var(--white);
}

.page-hero-photo-inner .eyebrow,
.page-hero-photo-inner h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.page-hero-photo-inner .eyebrow { color: var(--amber); }
.page-hero-photo-inner h1 { color: var(--white); margin-bottom: 0; }

.hero-sub {
  padding: 40px 0 0;
}

/* Stats row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 3;
  margin-top: -64px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--terracotta);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: -48px; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; margin-top: 0; }
}

/* ---------- Cards / Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-m);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--terracotta);
  font-size: 1.4rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--ink-soft);
}

/* ---------- Alt / dark sections ---------- */
.section-alt {
  background: var(--cream-alt);
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-dark h2,
.section-dark h3 { color: var(--cream); }

.section-dark .lede { color: #c7c8cc; }

/* ---------- Case studies ---------- */
.case-card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-m);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--cream-line);
  padding-bottom: 20px;
}

.case-impact {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--terracotta);
  white-space: nowrap;
}

.case-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-cols h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta-dark);
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .case-cols { grid-template-columns: 1fr; }
}

/* ---------- Timeline (metodología) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  flex-shrink: 0;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--cream-line);
  margin-top: 4px;
}

.timeline-item:last-child .timeline-line { display: none; }

.timeline-content {
  padding-bottom: 40px;
}

/* ---------- Blog ---------- */
.post-card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.post-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.post-card .read-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--terracotta);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--cream-line);
  background: var(--white);
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--terracotta);
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-m);
  padding: 36px;
}

.contact-info-card a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-weight: 600;
}

.contact-info-card a:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c7c8cc;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-grid a {
  display: block;
  padding: 6px 0;
  color: #c7c8cc;
  transition: color 0.15s ease;
}

.footer-grid a:hover { color: var(--amber); }

.footer-brand .brand { color: var(--cream); margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--terracotta);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: var(--radius-s);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Article / prose ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose p, .prose li {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  list-style: disc;
}

.prose li { margin-bottom: 0.5em; }

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.article-cta {
  background: var(--cream-alt);
  border-radius: var(--radius-m);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

/* ---------- Check list (feature grid) ---------- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}

.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-item .mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-family: var(--font-display);
}

.check-item p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .check-grid { grid-template-columns: 1fr; }
}

/* ---------- Bio (metodología) ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 260px; margin: 0 auto; }
}
