/* +VALOR Consultoría — styles.css
   SupplyTech & Research | masvalorconsultoria.com
   Mobile-first, no external frameworks, target <10KB */

/* ── Variables ── */
:root {
  --navy:        #16365c;
  --navy-light:  #1e4a7d;
  --accent:      #2563eb;
  --accent-light:#3b82f6;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --text:        #1e293b;
  --radius:      0.5rem;
  --shadow:      0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:   0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --transition:  0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--accent-light); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--white); }

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

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ── Layout containers ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding: 4rem 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p  { color: var(--gray-200); }

/* ── Header / Nav ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.logo { text-decoration: none; }
.logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1.2;
}
.logo-descriptor {
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Mobile nav — CSS-only hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
#nav-check { display: none; }
#nav-check:checked ~ .site-header .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-check:checked ~ .site-header .nav-toggle span:nth-child(2) { opacity: 0; }
#nav-check:checked ~ .site-header .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#nav-check:checked ~ .site-header .site-nav { display: flex; }

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 0 1rem;
}
.site-nav a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color var(--transition);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--white);
}
.site-nav a[aria-current="page"] { font-weight: 600; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  .site-nav a {
    padding: 0.35rem 0.75rem;
    border-bottom: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
  }
  .site-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .hero-subtitle {
  color: var(--gray-200);
  font-size: 1.05rem;
  max-width: 650px;
  margin-bottom: 1.75rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.chip {
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
}

/* ── "En corto" capsule ── */
.capsule {
  background: var(--gray-50);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.capsule-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.capsule p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 0; }

/* ── Service cards (bento-like) ── */
.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
  color: inherit;
  text-decoration: none;
}
.service-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}
.service-card h3 { font-size: 1rem; color: var(--navy); margin: 0; }
.service-card p  { font-size: 0.88rem; color: var(--gray-600); margin: 0; line-height: 1.5; }
.service-card .card-link {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.service-card .card-link:hover { text-decoration: underline; }

/* ── Generic card ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ── 6-Phase process grid ── */
.phases-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: phase;
}
@media (min-width: 768px) {
  .phases-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .phases-grid { grid-template-columns: repeat(3, 1fr); }
}
.phase-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.phase-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.phase-item h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.3rem; }
.phase-item p  { font-size: 0.85rem; color: var(--gray-600); margin: 0; line-height: 1.5; }

/* ── FAQ / details+summary ── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-list details[open] { border-color: var(--accent-light); }
.faq-list summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--navy);
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list .faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.93rem;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-100);
}

/* ── Credential block ── */
.credential-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.credential-box h3 { color: var(--navy); margin-bottom: 0.5rem; }
.credential-box p  { margin-bottom: 0.5rem; font-size: 0.93rem; }

/* ── CTA block ── */
.cta-block {
  text-align: center;
  padding: 3rem 0;
}
.cta-block p { font-size: 1.05rem; color: var(--gray-700); margin-bottom: 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  font-size: 0.95rem;
}
.btn:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ── Inline hero CTA ── */
.hero-cta { margin-top: 1.5rem; }

/* ── Section headings ── */
.section-heading { margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0.5rem; }
.section-heading p  { color: var(--gray-600); font-size: 0.97rem; max-width: 600px; }

/* ── Two-column layout ── */
.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ── List item with icon ── */
.list-check { list-style: none; padding-left: 0; }
.list-check li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; font-size: 0.93rem; color: var(--gray-700); }
.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Sub-service block ── */
.sub-block { margin-bottom: 2rem; }
.sub-block h3 { color: var(--navy); margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gray-200); }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding: 0.65rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { color: var(--gray-200); }

/* ── Contact form ── */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--gray-700); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--gray-600); }

/* ── Alliance badge ── */
.alliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--gray-700);
  font-weight: 600;
  margin-bottom: 1rem;
}
.alliance-badge span { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 2.5rem 0;
  font-size: 0.87rem;
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; } }
.footer-brand .logo-name { font-size: 1.05rem; color: var(--white); }
.footer-brand .logo-descriptor { color: var(--accent-light); }
.footer-brand p { margin-top: 0.75rem; color: var(--gray-600); font-size: 0.82rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: var(--gray-600); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  color: var(--gray-600);
  font-size: 0.8rem;
}

/* ── Utilities ── */
.text-center  { text-align: center; }
.text-sm      { font-size: 0.88rem; }
.text-muted   { color: var(--gray-600); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.inline-flex { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ── Page content (interior) ── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
.page-hero p  { color: var(--gray-200); margin-top: 0.5rem; font-size: 1rem; }

.main-content { padding: 3rem 0; }
