/* Landing page styles for Psicolumen.
   Palette derived from the Lumen logo: teal, navy profile, blue dots. */

:root {
  --color-primary: #4a90c9;        /* azul medio de los puntos del logo */
  --color-primary-light: #a8cfe8;  /* azul pastel */
  --color-primary-dark: #2f6da3;
  --color-navy: #2b3f7e;           /* azul marino del perfil del logo */
  --color-navy-dark: #20305f;
  --color-accent: #2b3f7e;         /* CTA en azul oscuro */
  --color-accent-light: #55679f;
  --color-accent-dark: #20305f;
  --bg-tint: #e8f3fa;              /* pasteles claros de azul */
  --bg-tint-2: #d7e9f5;
  --bg-sky: #edf6fc;
  --bg-sky-2: #dcecf7;
  --bg-aqua: #e6f5f4;              /* toque teal pastel del logo */
  --bg-aqua-2: #f0f9f8;
  --bg-soft: #f5f9fc;
  --text: #232733;
  --text-muted: #4e5d78;
  --white: #ffffff;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(74, 144, 201, 0.16);
  --font-sans: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body.landing {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.section { padding: 4.5rem 0; }
.section-title { text-align: center; }
.section-intro {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(43, 63, 126, 0.3);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bg-tint);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo { height: 44px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.15rem; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a.active { color: var(--color-primary); }

.site-nav .nav-cta {
  background: var(--color-primary);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
}
.site-nav .nav-cta:hover { background: var(--color-primary-dark); color: var(--white); }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--bg-tint) 0%, var(--bg-tint-2) 100%);
  padding: 4rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  color: var(--color-primary-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.hero-figure img {
  width: 100%;
  height: auto;
}

/* ---------- Wave divider ---------- */

.wave {
  display: block;
  width: 100%;
  height: 70px;
}
.wave svg { display: block; width: 100%; height: 100%; }

/* ---------- Alternating section backgrounds ---------- */

.bg-tint { background: var(--bg-tint); }
.bg-sky { background: var(--bg-sky); }
.bg-aqua { background: var(--bg-aqua); }
.bg-soft { background: var(--bg-soft); }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-4px); }

.card-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media.tint-blue { background: var(--bg-tint-2); }
.card-media.tint-sky { background: var(--bg-sky-2); }
.card-media.tint-aqua { background: var(--bg-aqua); }

.card-body {
  padding: 1.5rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body p { color: var(--text-muted); flex: 1; }

.card-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ---------- Two-column feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-row.reverse .feature-media { order: 2; }

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.feature-media img {
  width: 100%;
  height: auto;
}
/* Retratos verticales: se ajusta el marco a la foto para no ampliarla. */
.feature-media.portrait {
  max-width: 320px;
  margin: 0 auto;
}
.feature-media .placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--bg-tint-2);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.checklist li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
}
.testimonial blockquote {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-style: italic;
}
.testimonial .stars { color: var(--color-accent); letter-spacing: 2px; }
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary) 100%);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 40rem; margin: 0 auto 1.6rem; }

/* ---------- Contacto ---------- */

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.contact-item {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 2rem 1.4rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-item:hover { transform: translateY(-4px); }

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  color: var(--color-primary-dark);
}
.contact-icon.tint-blue { background: var(--bg-tint-2); }
.contact-icon.tint-sky { background: var(--bg-sky-2); }
.contact-icon.tint-aqua { background: var(--bg-aqua); }
.contact-icon svg { width: 22px; height: 22px; display: block; }

.contact-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-value {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-word;
}

/* ---------- Logos ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  align-items: center;
}
.logo-grid .logo-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(34, 34, 34, 0.06);
}

/* ---------- Newsletter ---------- */

.newsletter-box {
  background: var(--bg-sky);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  max-width: 34rem;
  margin: 1.5rem auto 0;
}
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--bg-tint-2);
  border-radius: var(--radius-pill);
  font: inherit;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
}
.newsletter-form button {
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ---------- Inner pages: hero band ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--bg-tint) 0%, var(--bg-tint-2) 100%);
  padding: 3.5rem 0 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-subtitle {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
}
.page-intro {
  color: var(--text-muted);
  max-width: 46rem;
  margin: 0 auto;
  text-align: left;
}
.page-intro p:last-child { margin-bottom: 0; }
.page-hero .wave { margin-top: 2.5rem; }

/* ---------- Prose (markdown content) ---------- */

.prose { max-width: 46rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { color: var(--color-primary); }
.prose a:hover { color: var(--color-primary-dark); }
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.8em 1.4em;
  border-left: 4px solid var(--color-primary-light);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}
.prose code {
  background: var(--bg-tint);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}
.prose pre {
  background: var(--text);
  color: var(--bg-soft);
  padding: 1.2em 1.4em;
  border-radius: var(--radius);
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Equipo ---------- */

.team-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.team-photo {
  flex: 0 0 auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 6px 18px rgba(74, 144, 201, 0.25);
}
.prose .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.team-info h3 {
  margin-bottom: 0.2em;
}
.team-role {
  margin: 0 0 0.2em;
  color: var(--color-primary-dark);
  font-weight: 600;
}
.team-col {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Blog listing ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.post-card h3 { margin-bottom: 0.4em; }
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.post-card h3 a:hover { color: var(--color-primary); }
.post-card .card-media { font-size: 2.2rem; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}
.post-meta.on-hero { justify-content: center; margin-bottom: 1em; }

.tag {
  display: inline-block;
  background: var(--color-primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.1em 0.8em;
  font-size: 0.8rem;
  font-weight: 600;
}
.tag-lg { font-size: 1rem; padding: 0.2em 1em; }

/* ---------- Categories page ---------- */

.category-block { margin-bottom: 2.8rem; }
.category-block h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.cat-count {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 0.7rem 1rem;
  border-radius: 12px;
}
.category-list li:nth-child(odd) { background: var(--bg-soft); }
.category-list time {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.category-list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.category-list a:hover { color: var(--color-primary); }

/* ---------- Post footer ---------- */

.post-footer {
  padding-bottom: 2rem;
  max-width: 46rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-tint);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner { text-align: center; }
.footer-brand .brand-logo { margin: 0 auto 0.8rem; }
.footer-brand p { color: var(--text-muted); }

.footer-social, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin: 1.4rem 0;
}
.footer-social a, .footer-legal a {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-social a:hover, .footer-legal a:hover { text-decoration: underline; }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .cards, .testimonials, .post-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }

  .team-member {
    flex-direction: column;
    text-align: center;
  }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
  }
  .nav-toggle-label span {
    width: 24px;
    height: 3px;
    background: var(--color-primary-dark);
    border-radius: 2px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--bg-tint-2);
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4%;
    gap: 1rem;
  }
}
