/* ═══════════════════════════════════════════════════
   SH CONSULTING — MAIN CSS
   empresaconsultores.com
   Paleta: Azul corporativo + Verde confianza + Grafito
═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --navy:        #002D56;
  --blue:        #003F7F;
  --blue-mid:    #003F7F;
  --blue-light:  #1A6FBC;
  --green:       #8B0000;
  --green-light: #B71C1C;
  --gold:        #8B0000;
  --slate:       #4A4A4A;
  --slate-light: #6B6B6B;
  --smoke:       #F7F9FC;
  --white:       #FFFFFF;
  --border:      #DDE3EC;
  --text:        #1A202C;
  --text-muted:  #4A4A4A;

  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(13,33,55,.07);
  --shadow-md: 0 8px 32px rgba(13,33,55,.12);
  --shadow-lg: 0 20px 60px rgba(13,33,55,.16);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);

  --container: 1180px;
  --header-h:  72px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
em { font-style: italic; color: var(--blue-mid); }
strong { font-weight: 600; }

/* ── SECTION COMMON ── */
.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: .75rem;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--slate); font-size: 1.1rem; }
.mt-4 { margin-top: 2rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}
.btn-primary:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,109,173,.3); }
.btn-outline {
  background: transparent;
  color: var(--blue-mid);
  border-color: var(--blue-mid);
}
.btn-outline:hover { background: var(--blue-mid); color: var(--white); transform: translateY(-2px); }
.btn-ghost-light {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); }
.btn-lg { padding: .95rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── ANIMATIONS ── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp .7s ease forwards;
}
.animate-slide-left  { opacity:0; transform:translateX(-40px); animation:slideLeft  .8s ease forwards; }
.animate-slide-right { opacity:0; transform:translateX(40px);  animation:slideRight .8s ease forwards; }
@keyframes fadeUp   { to { opacity:1; transform:translateY(0); } }
@keyframes slideLeft  { to { opacity:1; transform:translateX(0); } }
@keyframes slideRight { to { opacity:1; transform:translateX(0); } }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}
.cookie-content p { margin-bottom: .75rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.cookie-content a { color: var(--blue-light); text-decoration: underline; }
.cookie-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── HEADER / NAVBAR ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.navbar-brand { display: flex; align-items: center; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.logo-sh {
  background: var(--blue-mid);
  color: var(--white);
  padding: .18em .45em;
  border-radius: 4px;
  letter-spacing: -.02em;
  margin-right: .3em;
}
.logo-consulting { color: var(--navy); }
.site-header.scrolled .logo-consulting { color: var(--navy); }
.site-header:not(.scrolled) .logo-consulting { color: var(--white); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,.9); }
.site-header:not(.scrolled) .nav-link:hover { color: var(--white); }
.site-header.scrolled .nav-link { color: var(--slate); }
.site-header.scrolled .nav-link:hover { color: var(--blue-mid); }

.nav-link.nav-cta {
  background: var(--blue-mid);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-link.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all var(--transition); border-radius: 2px; }
.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--blue-mid) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=60&auto=format&fit=crop") center/cover no-repeat;
  opacity: .12;
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: .4rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.6;transform:scale(1.3);} }

.hero-title { color: var(--white); margin-bottom: 1.5rem; }
.hero-title em { color: var(--gold); font-style: italic; }
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-subtitle strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.trust-item { text-align: left; }
.trust-number { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold); line-height: 1; }
.trust-label  { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .2rem; display: block; }
.trust-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); flex-shrink: 0; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top;} 50%{transform:scaleY(1);transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* ── PAIN POINTS ── */
.pain-points {
  padding: 100px 0;
  background: var(--smoke);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.pain-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pain-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-mid);
  margin-bottom: 1.25rem;
}
.pain-card h3 { font-size: 1.1rem; margin-bottom: .75rem; color: var(--navy); }
.pain-card p  { font-size: .95rem; color: var(--slate); margin: 0; }
.pain-cta { text-align: center; }
.pain-cta-text { font-size: 1.15rem; color: var(--slate); margin-bottom: 1.5rem; }
.pain-cta-text strong { color: var(--navy); }

/* ── NOSOTROS ── */
.nosotros {
  padding: 100px 0;
  background: var(--white);
}
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}
.nosotros-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.nosotros-img-frame img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.nosotros-credential {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-md);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
}
.credential-icon { font-size: 1.2rem; color: var(--gold); }
.nosotros-lead {
  font-size: 1.15rem;
  color: var(--slate);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.nosotros-values { margin: 2rem 0; display: flex; flex-direction: column; gap: 1.25rem; }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-icon { color: var(--green-light); font-size: .8rem; margin-top: .3rem; flex-shrink: 0; }
.value-item strong { display: block; margin-bottom: .25rem; color: var(--navy); }
.value-item span { font-size: .95rem; color: var(--slate); }

/* ── SERVICIOS ── */
.servicios {
  padding: 100px 0;
  background: var(--smoke);
}
.servicio-featured {
  position: relative;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.servicio-featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gold);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .85rem;
  border-radius: 100px;
}
.servicio-featured-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
}
.servicio-featured-content {
  padding: 3.5rem 3.5rem 3.5rem 3.5rem;
  color: var(--white);
}
.servicio-number { font-family: var(--font-display); font-size: 5rem; font-weight: 700; color: rgba(255,255,255,.08); line-height: 1; margin-bottom: -.5rem; }
.servicio-featured-content h3 { font-size: 2rem; color: var(--white); margin-bottom: 1rem; }
.servicio-lead { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.servicio-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.servicio-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: rgba(255,255,255,.88);
}
.servicio-list li::before { content: '✓'; color: var(--green-light); font-weight: 700; flex-shrink: 0; }
.servicio-featured-visual { overflow: hidden; }
.servicio-featured-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; opacity: .85; }

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.servicio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition);
}
.servicio-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.servicio-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; }
.servicio-number-sm { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--border); line-height: 1; }
.servicio-icon { width: 48px; height: 48px; color: var(--blue-mid); }
.servicio-card h3 { font-size: 1.35rem; margin-bottom: .85rem; color: var(--navy); }
.servicio-card p { color: var(--slate); margin-bottom: 1.25rem; }
.servicio-list-compact { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.servicio-list-compact li { font-size: .9rem; color: var(--slate); display: flex; align-items: center; gap: .6rem; }
.servicio-list-compact li::before { content: '→'; color: var(--green-light); font-weight: 700; flex-shrink: 0; }

/* ── PROCESO ── */
.proceso {
  padding: 100px 0;
  background: var(--white);
}
.proceso-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.proceso-step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}
.step-num {
  width: 56px;
  height: 56px;
  background: var(--blue-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}
.step-content h4 { margin-bottom: .5rem; color: var(--navy); }
.step-content p { font-size: .95rem; color: var(--slate); }
.proceso-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-light));
  margin-top: 27px;
  align-self: flex-start;
}

/* ── CASOS DE ÉXITO ── */
.casos-exito {
  padding: 100px 0;
  background: var(--smoke);
}
.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.caso-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition);
}
.caso-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.caso-sector { font-size: .8rem; font-weight: 600; color: var(--slate-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.caso-cifra { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--blue-mid); line-height: 1; margin-bottom: .4rem; }
.caso-tipo { font-size: .9rem; font-weight: 600; color: var(--green); margin-bottom: 1rem; }
.caso-desc { font-size: .95rem; color: var(--slate); margin-bottom: 1.25rem; }
.caso-resultado { display: flex; flex-direction: column; gap: .5rem; }
.resultado-tag { font-size: .85rem; color: var(--green); font-weight: 500; }
.casos-disclaimer { text-align: center; font-size: .85rem; color: var(--slate-light); margin-top: .5rem; }

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}
.testimonials .section-eyebrow { color: var(--gold); }
.testimonials .section-title { color: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; }
.testimonial-card p { color: rgba(255,255,255,.88); font-style: italic; font-size: 1rem; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-card footer strong { display: block; color: var(--white); font-weight: 600; }
.testimonial-card footer span { font-size: .85rem; color: rgba(255,255,255,.6); }
.testimonials-disclaimer { text-align: center; font-size: .85rem; color: rgba(255,255,255,.45); }

/* ── BLOG PREVIEW ── */
.blog-preview {
  padding: 100px 0;
  background: var(--white);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-img { display: block; overflow: hidden; height: 200px; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.75rem; }
.blog-meta time { font-size: .8rem; color: var(--slate-light); font-weight: 500; }
.blog-card-body h3 { font-size: 1.1rem; margin: .75rem 0; }
.blog-card-body h3 a { color: var(--navy); transition: color var(--transition); }
.blog-card-body h3 a:hover { color: var(--blue-mid); }
.blog-card-body p { font-size: .9rem; color: var(--slate); margin-bottom: 1rem; }
.read-more { font-size: .9rem; font-weight: 600; color: var(--blue-mid); transition: gap var(--transition); }
.read-more:hover { color: var(--blue); }
.blog-cta { text-align: center; }

/* ── CONTACTO ── */
.contacto {
  padding: 100px 0;
  background: var(--smoke);
}
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: flex-start;
}
.contacto-lead { font-size: 1.1rem; color: var(--slate); margin-bottom: 2rem; }
.contacto-datos { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contacto-dato { display: flex; gap: 1rem; align-items: flex-start; }
.dato-icon { font-size: 1.2rem; flex-shrink: 0; }
.dato-label { display: block; font-size: .8rem; font-weight: 600; color: var(--slate-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.dato-value { color: var(--navy); font-weight: 500; }
.dato-value a:hover { color: var(--blue-mid); text-decoration: underline; }
.dato-pending { color: var(--slate-light); font-style: italic; font-weight: 400; }
.contacto-garantia {
  display: flex;
  gap: .75rem;
  background: rgba(27,122,94,.08);
  border: 1px solid rgba(27,122,94,.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .85rem;
  color: var(--green);
}
.contacto-garantia p { margin: 0; }

/* FORM */
.contacto-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}
.contacto-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.form-group label span { color: var(--blue-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(30,109,173,.1);
}
.form-group textarea { resize: vertical; }
.form-check { flex-direction: row !important; align-items: flex-start; gap: .75rem; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem; accent-color: var(--blue-mid); }
.form-check label { font-size: .88rem; font-weight: 400; color: var(--slate); line-height: 1.5; }
.form-check label a { color: var(--blue-mid); text-decoration: underline; }
.form-message {
  font-size: .9rem;
  text-align: center;
  padding: .75rem;
  border-radius: var(--radius);
  display: none;
}
.form-message.success { background: rgba(27,122,94,.1); color: var(--green); display: block; }
.form-message.error   { background: rgba(196,40,40,.1); color: #c42828; display: block; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 24px;
}
.footer-brand .logo-sh { background: var(--blue-mid); }
.footer-brand .logo-consulting { color: var(--white); }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.55); margin: .75rem 0 1rem; line-height: 1.5; }
.footer-email { color: var(--blue-light); font-size: .9rem; text-decoration: underline; }
.footer-email:hover { color: var(--white); }
.footer-nav h4, .footer-services h4, .footer-legal-col h4 { color: var(--white); font-size: .9rem; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.25rem; }
.footer-nav ul li, .footer-services ul li, .footer-legal-col ul li { margin-bottom: .6rem; }
.footer-nav a, .footer-services a, .footer-legal-col a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-nav a:hover, .footer-services a:hover, .footer-legal-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.footer-copy { font-size: .85rem; color: rgba(255,255,255,.5); margin: 0; }
.footer-legal-note { font-size: .75rem; color: rgba(255,255,255,.3); max-width: 680px; margin: 0; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nosotros-inner { gap: 3rem; }
  .servicios-grid { grid-template-columns: 1fr; }
  .casos-grid, .testimonials-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .servicio-featured-inner { grid-template-columns: 1fr; }
  .servicio-featured-visual { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { color: rgba(255,255,255,.9) !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nosotros-inner { grid-template-columns: 1fr; }
  .nosotros-img-frame { display: none; }
  .contacto-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacto-form-wrapper { padding: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; gap: 1.25rem; }
  .trust-divider { display: none; }
  .proceso-steps { flex-direction: column; align-items: center; }
  .proceso-connector { width: 2px; height: 32px; margin-top: 0; align-self: center; background: linear-gradient(to bottom, var(--blue-mid), var(--blue-light)); }
  .pain-grid { grid-template-columns: 1fr; }
  .casos-grid, .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-badge { font-size: .78rem; }
}

/* ── ACCESSIBILITY ── */
:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════
   REBRANDING: EMPRESA CONSULTORES (override)
═══════════════════════════════════════════════════ */
:root {
  --granate:       #8B0000;
  --granate-light: #B71C1C;
  --graphite:      #4A4A4A;
  --navy-dark:     #001E3D;
}

/* Brand mark (square pattern) — sober, financial look */
.logo-mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 14px);
  grid-template-rows: repeat(2, 14px);
  gap: 3px;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
}
.logo-mark .logo-sq {
  background: var(--navy);
  border-radius: 2px;
  display: block;
  width: 14px;
  height: 14px;
}
.logo-mark .logo-sq-accent { background: var(--granate); }
.site-header:not(.scrolled) .logo-mark .logo-sq { background: rgba(255,255,255,.95); }
.site-header:not(.scrolled) .logo-mark .logo-sq-accent { background: var(--granate); }

/* Brand text — Montserrat, wide tracking, institutional */
.navbar-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
}
.logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.logo-name em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--graphite);
  font-size: .82rem;
  display: inline-block;
  margin-left: 4px;
}
.site-header:not(.scrolled) .logo-name { color: #fff; }
.site-header:not(.scrolled) .logo-name em { color: rgba(255,255,255,.78); }
.logo-endorse {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--granate);
  margin-top: 3px;
}
.site-header:not(.scrolled) .logo-endorse { color: var(--granate-light); }

/* Hide legacy logo classes (just in case some markup still references them) */
.logo-sh, .logo-consulting { display: none !important; }

/* Footer logo wrapper */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}
.site-footer .logo-mark .logo-sq { background: rgba(255,255,255,.92); }
.site-footer .logo-mark .logo-sq-accent { background: var(--granate-light); }
.site-footer .logo-name { color: #fff; }
.site-footer .logo-name em { color: rgba(255,255,255,.7); }
.site-footer .logo-endorse { color: var(--granate-light); }

/* Buttons — granate accent for primary CTA */
.btn-primary {
  background: var(--granate);
  border-color: var(--granate);
  color: #fff;
}
.btn-primary:hover {
  background: var(--granate-light);
  border-color: var(--granate-light);
  box-shadow: 0 8px 24px rgba(139,0,0,.28);
}

/* Section eyebrow → granate (was green) */
.section-eyebrow { color: var(--granate) !important; }

/* Hero badge accent */
.badge-dot { background: var(--granate) !important; }

/* Headings → use display font (Montserrat) properly */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -.01em;
}
h1 em, h2 em { color: var(--granate); font-style: normal; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .logo-name { font-size: .9rem; letter-spacing: .12em; }
  .logo-name em { font-size: .7rem; letter-spacing: .18em; }
  .logo-endorse { font-size: .55rem; }
  .logo-mark { grid-template-columns: repeat(2, 11px); grid-template-rows: repeat(2, 11px); width: 25px; height: 25px; }
  .logo-mark .logo-sq { width: 11px; height: 11px; }
}

/* ═══════════════════════════════════════════════════
   FIX: Checkbox RGPD + Responsive móvil
═══════════════════════════════════════════════════ */

/* Checkbox del consentimiento — más visible y área clicable amplia */
.form-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--smoke);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.form-check:hover { border-color: var(--navy); background: #fff; }
.form-check input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  margin: 2px 0 0 0 !important;
  cursor: pointer;
  accent-color: var(--granate) !important;
  flex-shrink: 0;
}
.form-check label {
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--graphite);
  user-select: none;
  flex: 1;
  margin: 0;
}
.form-check label a {
  color: var(--granate) !important;
  text-decoration: underline;
  font-weight: 500;
}
.form-check.field-error {
  border-color: var(--granate);
  background: rgba(139,0,0,.04);
}
.form-check.field-error label { color: var(--granate); }

/* ── RESPONSIVE MÓVIL ── */
@media (max-width: 768px) {
  /* Tipografía móvil */
  body { font-size: 15px; }
  h1 { font-size: clamp(1.9rem, 6vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  h3 { font-size: clamp(1.15rem, 4vw, 1.4rem) !important; }

  /* Container con menos padding */
  .container { padding: 0 18px; }

  /* Hero ajuste */
  .hero { padding: 80px 0 50px !important; min-height: auto !important; }
  .hero-title { line-height: 1.15 !important; }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .trust-divider { display: none; }

  /* Grids a 1 columna */
  .servicios-grid,
  .casos-grid,
  .blog-grid,
  .nosotros-grid,
  .contacto-grid,
  .testimonios-grid,
  .form-row,
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .form-row { display: flex !important; flex-direction: column; }

  /* Botones full width */
  .btn-lg { padding: 14px 22px; font-size: .95rem; }
  .btn-full { width: 100%; }

  /* Padding secciones */
  section { padding: 50px 0 !important; }

  /* Header logo más compacto */
  .navbar { padding: 12px 0 !important; }
  .logo-text { line-height: 1; }

  /* Cookie banner */
  .cookie-banner .cookie-content { flex-direction: column; gap: .75rem; }
  .cookie-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
  .cookie-buttons .btn { flex: 1; min-width: 100px; font-size: .8rem; padding: 8px 12px; }

  /* Form inputs táctiles cómodos */
  input, select, textarea { font-size: 16px !important; padding: 12px !important; }

  /* Footer responsive */
  .footer-top { text-align: left; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-trust { gap: .5rem; }
  .trust-number { font-size: 1.5rem !important; }
  .trust-label { font-size: .7rem !important; }
  .container { padding: 0 16px; }
}

/* Imagen y videos siempre dentro del viewport */
img, video, iframe { max-width: 100%; height: auto; }

/* Tablas responsivas */
@media (max-width: 640px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .85rem; }
}

/* Footer credit Startidea */
.footer-credit {
  text-align: center;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-top: 1rem;
  letter-spacing: .03em;
}
.footer-credit a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  transition: color .2s;
}
.footer-credit a:hover { color: var(--granate-light); }
