@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================
   DESIGN TOKENS
========================= */
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #eef0ff;
  --surface-soft-2: #f4f5fb;

  --text: #202531;
  --text-soft: #6b7280;
  --text-muted: #8a90a2;

  --primary: #4156f6;
  --primary-hover: #3147e8;
  --primary-soft: #eef0ff;

  --dark: #111827;
  --dark-2: #1f2937;

  --border: #e7eaf3;
  --border-strong: #d9deea;

  --success-soft: #dff4ea;
  --success-text: #237a57;

  --warning-soft: #ffe9c7;
  --warning-text: #a86400;

  --info-soft: #dfe7ff;
  --info-text: #4054d8;

  --shadow-sm: 0 8px 22px rgba(18, 24, 40, 0.05);
  --shadow-md: 0 14px 34px rgba(18, 24, 40, 0.08);
  --shadow-lg: 0 22px 50px rgba(18, 24, 40, 0.12);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1180px;
  --section-space: 84px;
}

/* =========================
   RESET + BASE
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.mt-0 {
  margin-top: 0;
}

.muted {
  color: var(--text-soft);
  font-size: 14px;
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

/* =========================
   NAV / HEADER
========================= */
.header {
  padding: 22px 0 14px;
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo img {
  height: 52px;
  width: auto;
}

.menu-under {
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.menu-under a {
  margin-right: 22px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.menu-under a:hover {
  color: var(--primary);
}

.menu-under a.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 6px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary), #5670ff);
  color: #fff;
  padding: 14px 24px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(65, 86, 246, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(65, 86, 246, 0.28);
  background: linear-gradient(135deg, var(--primary-hover), #4c63f2);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-soft);
  box-shadow: var(--shadow-md);
}

/* =========================
   HERO / HOME
========================= */
.hero-image {
  position: relative;
  background: linear-gradient(90deg, rgba(244, 243, 255, 0.95) 0%, rgba(244, 243, 255, 0.82) 34%, rgba(244, 243, 255, 0.18) 62%, rgba(244, 243, 255, 0.08) 100%),
              url("../img/hero.jpg") center/cover no-repeat;
  min-height: 76vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  width: 100%;
  padding: 96px 0;
  color: var(--text);
  background: transparent;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.hero h1 {
  margin: 8px 0 16px;
  max-width: 650px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  font-weight: 800;
  color: #1f2a56;
}

.hero p {
  max-width: 560px;
  font-size: 21px;
  line-height: 1.7;
  color: #4d5874;
}

/* =========================
   STORY
========================= */
.story {
  padding: var(--section-space) 0;
  background: var(--bg);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.story-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: #1f2a56;
}

.story-lead {
  margin: 0 0 14px;
  max-width: 760px;
  font-size: 21px;
  line-height: 1.7;
  color: #495168;
}

.story-copy p {
  max-width: 760px;
  font-size: 18px;
  color: var(--text-soft);
}

.story-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.story-list li {
  margin-bottom: 10px;
}

.story-card {
  background: linear-gradient(180deg, #132042 0%, #111827 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-card .quote {
  margin: 0;
  font-size: 20px;
  line-height: 1.75;
  color: #fff;
}

.quote-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7f8cff;
}

/* =========================
   FEATURES
========================= */
.features {
  padding: var(--section-space) 0;
  background: var(--surface-soft);
}

.section-subtitle {
  max-width: 720px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 18px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(65, 86, 246, 0.18);
}

.icon-wrap {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--primary-soft);
}

.icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.95;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  color: #1f2a56;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
}

/* =========================
   BLOG
========================= */
.blog {
  padding: var(--section-space) 0;
}

.blog h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -1px;
  margin: 0 0 10px;
  color: #1f2a56;
}

.blog > .container > p {
  max-width: 700px;
  color: var(--text-soft);
  font-size: 18px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, opacity 0.28s ease;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(65, 86, 246, 0.14);
}

.posts-grid:hover .post-card {
  opacity: 0.72;
}

.posts-grid:hover .post-card:hover {
  opacity: 1;
}

.post-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb {
  transform: scale(1.03);
}

.post-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.28;
  color: #1f2a56;
}

.post-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.post-card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
}

/* =========================
   BLOG FILTERS
========================= */
.filters {
  margin-top: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(65, 86, 246, 0.18);
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================
   POST
========================= */
.post {
  padding: 48px 0 12px;
}

.post-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.post-header img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

#post-category {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
}

#post-title {
  margin: 0 0 10px;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: #1f2a56;
}

#post-date {
  margin: 0 0 28px !important;
  color: var(--text-soft);
  font-size: 14px;
}

#post-content {
  max-width: 780px;
}

#post-content p {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.9;
  color: var(--text);
}

/* =========================
   ABOUT
========================= */
.about {
  padding: var(--section-space) 0;
}

.about h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: #1f2a56;
  margin: 0 0 10px;
}

.about-lead {
  max-width: 780px;
  font-size: 19px;
  color: var(--text-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 24px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.about-dark {
  background: linear-gradient(180deg, #132042 0%, #111827 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.about-dark h2 {
  color: #fff;
}

.about-dark ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.about-dark li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.about-cta {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}

/* =========================
   NOMBRES
========================= */
.names {
  padding: var(--section-space) 0;
}

.names h1,
.name-page h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 10px;
  color: #1f2a56;
}

.names > .container > p {
  max-width: 680px;
  color: var(--text-soft);
  font-size: 18px;
}

.names-search {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 22px 0 18px;
}

.names-search-wrap {
  position: relative;
  flex: 1;
}

.names-search input,
.lead-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.names-search input {
  height: 58px;
}

.names-search-btn {
  height: 58px;
  min-width: 140px;
  margin-top: 0 !important;
  white-space: nowrap;
}

.names-search input:focus,
.lead-input:focus,
.filter-group select:focus {
  border-color: rgba(65, 86, 246, 0.32);
  box-shadow: 0 12px 30px rgba(65, 86, 246, 0.1);
}

.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 20;
}

.suggestions.open {
  display: block;
}

.suggestion {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.suggestion:hover {
  background: var(--surface-soft);
}

.suggestion-name {
  font-weight: 800;
}

.suggestion-meta {
  color: var(--text-soft);
  font-size: 13px;
}

.names-result {
  margin-top: 12px;
}

.name-card,
.name-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.names-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 18px;
}

.names-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.name-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.name-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(65, 86, 246, 0.16);
}

.name-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pill {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #3d4fca;
}

.name-tile-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #1f2a56;
}

.name-tile-sub {
  color: var(--text-soft);
  font-size: 13px;
}

.soft-hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 34px 0;
}

.name-page {
  padding: var(--section-space) 0;
}

.link-back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.name-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.name-block h3 {
  margin: 0 0 8px;
  color: #1f2a56;
}

.leadbox {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  background: linear-gradient(180deg, #f8f9ff 0%, #f2f4ff 100%);
}

.note-box {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--color-primary-border);
  background: rgba(65, 86, 246, 0.06);
  color: var(--text);
  font-size: 14px;
}

/* =========================
   ALIMENTACIÓN
========================= */
.nutrition-hero {
  padding: 70px 0 20px;
  background: var(--bg);
}

.nutrition-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 10px;
  color: #1f2a56;
}

.nutrition-hero p {
  max-width: 760px;
  font-size: 18px;
  color: var(--text-soft);
}

.nutrition-hub {
  padding: 10px 0 70px;
}

.nutrition-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 30px;
}

.filter-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2a56;
}

.filter-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-sm);
}

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

.nutrition-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.nutrition-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(65, 86, 246, 0.16);
}

.nutrition-card-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.nutrition-card-body {
  padding: 18px;
}

.nutrition-card-body h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.28;
  color: #1f2a56;
}

.nutrition-card-body p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 12px;
}

.nutrition-card-body a {
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
}

.nutrition-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nutrition-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.nutrition-badge.secondary {
  background: var(--primary-soft);
  color: #3147b8;
  border: 1px solid var(--border);
}

.nutrition-detail {
  padding: 70px 0;
}

.nutrition-article {
  max-width: 980px;
}

.nutrition-hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 26px;
  box-shadow: var(--shadow-md);
}

.nutrition-article-head h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: #1f2a56;
}

.nutrition-author {
  color: var(--text-soft);
  font-size: 14px;
}

.nutrition-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.nutrition-box,
.nutrition-content-block,
.nutrition-signature,
.profile-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.nutrition-content-block,
.nutrition-signature {
  margin-top: 18px;
}

/* =========================
   PERFIL FRANCISCA
========================= */
.profile-page {
  padding: 70px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.profile-image {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.profile-role {
  font-weight: 700;
  color: var(--primary);
  margin-top: -4px;
}

/* =========================
   FOOTER
========================= */
.footer {
  padding: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  margin-top: 50px;
  background: transparent;
}

/* =========================
   ANIMACIONES
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .features-grid,
  .posts-grid,
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .story-grid,
  .about-grid,
  .names-split,
  .name-sections,
  .nutrition-columns,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .nutrition-filters {
    grid-template-columns: 1fr;
  }

  .post-header img,
  .nutrition-hero-image {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .hero-overlay {
    padding: 74px 0;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -1.2px;
  }

  .hero p {
    font-size: 18px;
  }

  .posts-grid,
  .names-grid,
  .nutrition-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .names-search {
    flex-direction: column;
    align-items: stretch;
  }

  .names-search-btn {
    width: 100%;
    min-width: 0;
  }

  .post-header img,
  .nutrition-hero-image {
    height: 220px;
  }

  #post-title,
  .nutrition-article-head h1,
  .blog h1,
  .about h1,
  .names h1,
  .name-page h1,
  .nutrition-hero h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .menu-under a {
    margin-right: 14px;
    font-size: 14px;
  }
}