/*
Theme Name: TornosHenares
Theme URI: https://tornoshenares.es
Author: TornosHenares
Description: Tema corporativo para TornosHenares - Soluciones Eléctricas Industriales
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: tornos-henares
*/

/* ==========================================
   VARIABLES
   ========================================== */
:root {
  --blue:        #207AED;
  --blue-dark:   #1460C4;
  --blue-deeper: #0D3D7C;
  --blue-light:  #EBF4FF;
  --blue-pale:   #F0F7FF;
  --orange:      #FF6B2B;
  --orange-h:    #E55A1E;
  --white:       #FFFFFF;
  --dark:        #0F1C2E;
  --text:        #334155;
  --text-l:      #64748B;
  --border:      #D6E8FF;
  --light:       #F5F9FF;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --sh-sm:  0 2px 8px rgba(32,122,237,.12);
  --sh-md:  0 6px 24px rgba(32,122,237,.14);
  --sh-lg:  0 16px 48px rgba(32,122,237,.18);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --t: .22s ease;
  --cw: 1200px;
}

/* ==========================================
   RESET
   ========================================== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
ul,ol { list-style: none; }
button,input,select,textarea { font-family: inherit; font-size: inherit; }
address { font-style: normal; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
h4 { font-size: 1.0625rem; font-weight: 600; }
p  { color: var(--text); line-height: 1.75; }

.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.label--white { color: var(--white); background: rgba(255,255,255,.18); }

/* ==========================================
   LAYOUT
   ========================================== */
.container { max-width: var(--cw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--blue  { background: var(--blue); }
.section--deep  { background: var(--blue-deeper); }
.section--light { background: var(--blue-pale); }
.section-header { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-l); font-size: 1.0625rem; }
.section--blue .section-header h2,
.section--deep .section-header h2 { color: var(--white); }
.section--blue .section-header p,
.section--deep .section-header p { color: rgba(255,255,255,.75); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-h); border-color: var(--orange-h); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,43,.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-blue  { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover  { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: .875rem; }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  box-shadow: 0 2px 20px rgba(32,122,237,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--cw);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; transition: opacity var(--t); }
.site-logo:hover { opacity: .88; }
.site-logo-img { height: 46px; width: auto; display: block; }

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 2px; }
.main-nav > ul > li > a {
  display: block;
  padding: 8px 13px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: var(--r-sm);
  transition: all var(--t);
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a {
  color: var(--white);
  background: rgba(255,255,255,.15);
}

/* Dropdown */
.main-nav ul ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--t);
  padding: 8px 0;
  border-top: 3px solid var(--orange);
  z-index: 200;
}
.main-nav ul li { position: relative; }
.main-nav ul li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul ul li a {
  display: block;
  padding: 9px 16px;
  font-size: .875rem;
  color: var(--text);
  transition: all var(--t);
  border-left: 3px solid transparent;
}
.main-nav ul ul li a:hover { color: var(--blue); background: var(--blue-pale); border-left-color: var(--blue); padding-left: 20px; }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 8px 10px;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
  transition: background var(--t);
}
.menu-toggle:hover { background: rgba(255,255,255,.2); }
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: all var(--t); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 88vh;
  background: var(--blue-deeper);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: .15;
}
.hero-diagonal {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--cw);
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,43,.18);
  border: 1px solid rgba(255,107,43,.35);
  color: #FFB48A;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero-tag svg { width: 13px; height: 13px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 strong { color: var(--orange); font-weight: 800; }
.hero-desc { color: rgba(255,255,255,.78); font-size: 1.0625rem; line-height: 1.75; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
  font-size: .8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}
.hero-pill svg { width: 12px; height: 12px; color: var(--orange); flex-shrink: 0; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  position: relative;
}
.hero-card-main img { width: 100%; height: 340px; object-fit: cover; display: block; }
.hero-card-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,61,124,.7) 100%);
}
.hero-stat {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--sh-lg);
  text-align: center;
  z-index: 2;
}
.hero-stat .num { font-size: 1.875rem; font-weight: 800; line-height: 1; }
.hero-stat .lbl { font-size: .75rem; font-weight: 600; opacity: .9; margin-top: 2px; }
.hero-cert {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  min-width: 160px;
}
.hero-cert svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.hero-cert .cert-title { font-size: .8125rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.hero-cert .cert-sub   { font-size: .6875rem; color: var(--text-l); }

/* ==========================================
   COUNTER BAR
   ========================================== */
.counter-bar { background: var(--blue); padding: 32px 0; }
.counter-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.counter-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.counter-item:last-child { border-right: none; }
.counter-num { font-size: 2rem; font-weight: 800; color: var(--white); display: block; line-height: 1; }
.counter-lbl { font-size: .8125rem; color: rgba(255,255,255,.72); font-weight: 500; margin-top: 4px; display: block; }

/* ==========================================
   SERVICES
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.srv-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.srv-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}
.srv-card-img { position: relative; overflow: hidden; }
.srv-card-img img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .4s ease; }
.srv-card:hover .srv-card-img img { transform: scale(1.05); }
.srv-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.srv-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--blue);
}
.srv-icon svg { width: 20px; height: 20px; }
.srv-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 8px; }
.srv-card p  { font-size: .875rem; color: var(--text-l); line-height: 1.6; flex: 1; }
.srv-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 600;
  margin-top: 14px;
  transition: gap var(--t);
}
.srv-card-link svg { width: 14px; height: 14px; }
.srv-card:hover .srv-card-link { gap: 8px; }

/* ==========================================
   WHY US (Feature strips)
   ========================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.why-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.why-img img { width: 100%; height: 480px; object-fit: cover; }
.why-features { display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: .9375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item h4 { color: var(--dark); margin-bottom: 4px; }
.why-item p  { font-size: .9rem; color: var(--text-l); }

/* ==========================================
   AUDIT HIGHLIGHT (special section)
   ========================================== */
.audit-band {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.audit-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.audit-inner {
  max-width: var(--cw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.audit-text h2 { color: var(--white); margin-bottom: 16px; }
.audit-text p  { color: rgba(255,255,255,.75); margin-bottom: 28px; line-height: 1.75; }
.audit-checks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.audit-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.88);
  font-size: .9375rem;
}
.audit-check svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }
.audit-visual { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.audit-visual img { width: 100%; height: 360px; object-fit: cover; }

/* ==========================================
   FORMATION (Unique service section)
   ========================================== */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
}
.form-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.form-card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}
.form-card-icon svg { width: 26px; height: 26px; }
.form-card h3 { font-size: 1.0625rem; color: var(--dark); margin-bottom: 10px; }
.form-card p  { font-size: .9rem; color: var(--text-l); line-height: 1.65; }

/* ==========================================
   SECTORS (TAG CLOUD style)
   ========================================== */
.sectors-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sector-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  transition: all var(--t);
}
.sector-tag svg { width: 16px; height: 16px; color: var(--blue); }
.sector-tag:hover { border-color: var(--blue); background: var(--blue-pale); color: var(--blue-dark); }

/* ==========================================
   PROCESS
   ========================================== */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 14px);
  right: calc(10% + 14px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.process-num {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(32,122,237,.35);
}
.process-step h4 { font-size: .9375rem; color: var(--dark); margin-bottom: 8px; }
.process-step p  { font-size: .8125rem; color: var(--text-l); line-height: 1.55; }

/* ==========================================
   CTA BAND
   ========================================== */
.cta-band {
  background: var(--orange);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,.85); font-size: 1.0625rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.7); }

/* ==========================================
   BLOG CARDS
   ========================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all var(--t);
}
.blog-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--blue); }
.blog-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img { overflow: hidden; }
.blog-card-body { padding: 22px; }
.blog-card-meta { font-size: .8rem; color: var(--text-l); margin-bottom: 8px; }
.blog-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.blog-card p  { font-size: .875rem; color: var(--text-l); line-height: 1.6; margin-bottom: 14px; }
.blog-card-link { color: var(--blue); font-size: .875rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.blog-card-link svg { width: 13px; height: 13px; }

/* ==========================================
   FOOTER
   ========================================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: all var(--t);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.wa-float svg { width: 28px; height: 28px; }

.site-footer { background: var(--blue-deeper); color: var(--white); }
.footer-top { padding: 72px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo-img { height: 42px; width: auto; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-contact a, .footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  margin-bottom: 8px;
  transition: color var(--t);
}
.footer-contact a:hover { color: var(--white); }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--orange); }
.footer-col h4 { font-size: .9375rem; color: var(--white); margin-bottom: 16px; font-weight: 700; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color var(--t); display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '→'; color: var(--orange); font-size: .75rem; opacity: 0; transition: opacity var(--t); }
.footer-links a:hover { color: var(--white); }
.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.5); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8125rem; color: rgba(255,255,255,.5); transition: color var(--t); }
.footer-legal a:hover { color: var(--white); }

/* ==========================================
   INTERIOR PAGES
   ========================================== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-inner .label { margin-bottom: 12px; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.0625rem; max-width: 620px; }
.page-hero--center { text-align: center; }
.page-hero--center p { margin-left: auto; margin-right: auto; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb svg { width: 14px; height: 14px; }

/* Interior content */
.interior { padding: 72px 0; }
.interior-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.interior-content h2 { color: var(--dark); margin: 32px 0 12px; font-size: 1.375rem; }
.interior-content h2:first-child { margin-top: 0; }
.interior-content p  { color: var(--text); margin-bottom: 16px; }
.interior-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.interior-content ul li { color: var(--text); margin-bottom: 6px; }
.interior-img { border-radius: var(--r-lg); overflow: hidden; margin: 28px 0; box-shadow: var(--sh-md); }
.interior-img img { width: 100%; }

/* Sidebar */
.sidebar-card {
  background: var(--blue-pale);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-card h4 { color: var(--dark); font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
.sidebar-services { display: flex; flex-direction: column; gap: 4px; }
.sidebar-services a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: var(--text);
  transition: all var(--t);
}
.sidebar-services a:hover, .sidebar-services a.active {
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
}
.sidebar-services a svg { width: 14px; height: 14px; color: var(--blue); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
}
.sidebar-cta h4 { color: var(--white); margin-bottom: 10px; }
.sidebar-cta p  { color: rgba(255,255,255,.8); font-size: .875rem; margin-bottom: 18px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--t);
}
.faq-q:hover { background: var(--blue-pale); }
.faq-q svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; transition: transform var(--t); }
.faq-item.active .faq-q { background: var(--blue-pale); }
.faq-item.active .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text); font-size: .9375rem; line-height: 1.7; }
.faq-item.active .faq-a { display: block; }

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 { color: var(--dark); margin-bottom: 20px; }
.contact-data { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-row-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-row-icon svg { width: 18px; height: 18px; }
.contact-row-text strong { display: block; font-size: .875rem; font-weight: 600; color: var(--dark); }
.contact-row-text span  { font-size: .875rem; color: var(--text-l); }
.contact-form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: var(--sh-lg);
  border: 1.5px solid var(--border);
}
.contact-form-card h3 { color: var(--dark); margin-bottom: 8px; }
.contact-form-card > p { color: var(--text-l); font-size: .9375rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .875rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-field label span { color: var(--orange); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32,122,237,.1);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.form-check input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }
.form-check label { font-size: .8125rem; color: var(--text-l); cursor: pointer; line-height: 1.5; }
.form-check label a { color: var(--blue); text-decoration: underline; }
.form-submit { width: 100%; justify-content: center; }
.form-msg { padding: 12px 16px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 500; margin-top: 12px; display: none; }
.form-msg.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-msg.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ==========================================
   LEGAL PAGES
   ========================================== */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 { font-size: 1.2rem; color: var(--blue-dark); margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-light); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1rem; margin: 24px 0 10px; }
.legal-content p { margin-bottom: 14px; color: var(--text); }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { margin-bottom: 6px; color: var(--text); }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .9rem; }
.legal-table th, .legal-table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-table th { background: var(--blue-pale); font-weight: 600; color: var(--blue-dark); width: 200px; }
.legal-table--cookies th { width: auto; }
.legal-table thead th { background: var(--blue); color: var(--white); }
.legal-update { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-l) !important; }

/* ==========================================
   BLOG SINGLE / ARCHIVE
   ========================================== */
.blog-header { padding: 60px 0 48px; background: var(--blue-pale); }
.blog-header h1 { color: var(--dark); }
.single-content { max-width: 760px; }
.single-content h2, .single-content h3 { color: var(--dark); margin: 28px 0 12px; }
.single-content p { margin-bottom: 16px; color: var(--text); }
.single-content ul, .single-content ol { padding-left: 22px; margin-bottom: 16px; }
.single-content ul li, .single-content ol li { margin-bottom: 6px; }

/* ==========================================
   EMPRESA PAGE
   ========================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; text-align: center; transition: all var(--t); }
.team-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.team-card img { width: 100%; height: 220px; object-fit: cover; }
.team-card-body { padding: 20px; }
.team-card h4 { color: var(--dark); margin-bottom: 4px; }
.team-card span { color: var(--blue); font-size: .875rem; font-weight: 600; }

/* ==========================================
   MISSING / ALIAS CLASSES — bridges between
   style.css class names and template class names
   ========================================== */

/* ── Scroll animations ── */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
[data-animate].animated { opacity: 1; transform: translateY(0); }

/* ── Eyebrow / section labels ── */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.eyebrow--light { color: rgba(255,255,255,.75); }
.section-title { color: var(--dark); margin-bottom: 12px; }
.section-sub { color: var(--text-l); font-size: 1.0625rem; }

/* ── Buttons ── */
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-h); border-color: var(--orange-h); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--blue-deeper); border-color: var(--white); font-weight: 700; }
.btn-white:hover { background: rgba(255,255,255,.92); transform: translateY(-1px); }
.btn-cta-header { background: var(--orange); color: var(--white); border: none; padding: 9px 20px; font-size: .875rem; border-radius: var(--r-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn-cta-header svg { width: 16px; height: 16px; }
.btn-cta-header:hover { background: var(--orange-h); transform: translateY(-1px); }
.w-100 { width: 100%; justify-content: center; }

/* ── Hero section (front-page uses different class names) ── */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,61,124,.88) 0%, rgba(20,96,196,.75) 100%); }
.hero-content { position: relative; z-index: 1; padding: 120px 0 140px; }
.hero-text { max-width: 700px; }
.hero-text h1 { color: var(--white); margin-bottom: 24px; }
.hero-text h1 em { font-style: normal; color: var(--orange); }
.hero-text p { color: rgba(255,255,255,.82); font-size: 1.0625rem; margin-bottom: 36px; max-width: 600px; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ── Counter ── */
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.counter-label { font-size: .8125rem; color: rgba(255,255,255,.72); font-weight: 500; margin-top: 4px; display: block; }
.counter-plus { font-size: 2rem; font-weight: 800; color: var(--orange); line-height: 1; }

/* ── Service cards (front-page uses .service-card not .srv-card) ── */
.service-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.service-card:hover { border-color: var(--blue); box-shadow: var(--sh-md); transform: translateY(-4px); }
.service-card-img { overflow: hidden; position: relative; }
.service-card-img img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s ease; display: block; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.service-card-icon { font-size: 1.5rem; margin-bottom: 10px; line-height: 1; }
.service-card-body h3 { font-size: 1rem; color: var(--dark); margin-bottom: 8px; }
.service-card-body p { font-size: .875rem; color: var(--text-l); line-height: 1.6; flex: 1; }
.service-card-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: .875rem; font-weight: 600; margin-top: 14px; transition: gap var(--t); }
.service-card:hover .service-card-link { gap: 8px; }
.service-card--featured { border-color: var(--orange); }
.service-card--featured:hover { border-color: var(--orange); box-shadow: 0 6px 24px rgba(255,107,43,.2); }
.service-card-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.services-footer { text-align: center; margin-top: 40px; }

/* ── Audit band (uses different class names) ── */
.audit-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.audit-band-text h2 { color: var(--white); margin-bottom: 16px; }
.audit-band-text p { color: rgba(255,255,255,.82); margin-bottom: 24px; line-height: 1.75; }
.audit-checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; padding: 0; }
.audit-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: .9375rem;
}
.audit-checklist li svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.audit-band-visual { position: relative; border-radius: var(--r-lg); overflow: visible; }
.audit-band-visual img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.audit-stat-bubble {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 16px 22px;
  box-shadow: var(--sh-lg);
  text-align: center;
  z-index: 2;
  min-width: 140px;
}
.audit-stat-bubble strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.audit-stat-bubble span { font-size: .75rem; font-weight: 500; opacity: .9; margin-top: 4px; display: block; }

/* ── Why section (4-item grid on front-page) ── */
.why-section .why-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-section .why-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: all var(--t);
}
.why-section .why-item:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--blue); }
.why-section .why-item .why-num { margin-bottom: 16px; }
.why-section .why-item h3 { font-size: 1.0625rem; color: var(--dark); margin-bottom: 8px; }
.why-section .why-item p { font-size: .875rem; color: var(--text-l); line-height: 1.65; }

/* ── Formation cards (uses .formation-card not .form-card) ── */
.formation-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.formation-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.formation-card-bar { height: 5px; flex-shrink: 0; }
.formation-card-bar--blue { background: var(--blue); }
.formation-card-bar--orange { background: var(--orange); }
.formation-card-body { padding: 28px 26px; display: flex; flex-direction: column; flex: 1; }
.formation-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
}
.formation-icon svg { width: 26px; height: 26px; }
.formation-card-body h3 { font-size: 1.0625rem; color: var(--dark); margin-bottom: 10px; }
.formation-card-body p { font-size: .9rem; color: var(--text-l); line-height: 1.65; margin-bottom: 16px; }
.formation-card-body ul { list-style: disc; padding-left: 18px; margin-bottom: 20px; }
.formation-card-body ul li { color: var(--text-l); font-size: .875rem; margin-bottom: 4px; }
.formation-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ── Sectors section ── */
.sectors-section { background: var(--blue-pale); padding: 80px 0; }
.sectors-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.sector-tag--lg { font-size: 1rem; padding: 12px 24px; font-weight: 600; }

/* ── Process steps (4-col, not 5-col) ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.process-connector { display: none; }
.process-step h4 { font-size: .9375rem; color: var(--dark); margin: 14px 0 8px; }
.process-step p { font-size: .8125rem; color: var(--text-l); line-height: 1.55; }

/* ── CTA band (front-page uses cta-band-inner / text / actions structure) ── */
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band-text h2 { color: var(--white); margin-bottom: 8px; text-align: left; }
.cta-band-text p { color: rgba(255,255,255,.85); font-size: 1.0625rem; margin: 0; text-align: left; }
.cta-band-actions { flex-shrink: 0; }

/* ── Blog cards (front-page uses different sub-class names) ── */
.blog-card-img-wrap { display: block; overflow: hidden; }
.blog-card-img-wrap img,
.blog-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; display: block; }
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.04); }
.blog-card-date { font-size: .8rem; color: var(--text-l); margin-bottom: 8px; display: block; }
.blog-card-title { font-size: 1rem; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--blue); }
.blog-card-excerpt { font-size: .875rem; color: var(--text-l); line-height: 1.6; margin-bottom: 12px; }
.blog-card-more { color: var(--blue); font-size: .875rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.blog-card-more:hover { gap: 8px; }
.blog-footer { text-align: center; margin-top: 40px; }
.blog-grid--wide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ── Pagination ── */
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; align-items: center; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text); transition: all var(--t);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ── Interior layout (content + sidebar) ── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.content-main { min-width: 0; }
.entry-content { }
.entry-content h2 { color: var(--dark); margin: 32px 0 12px; font-size: 1.375rem; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { color: var(--dark); margin: 24px 0 10px; }
.entry-content p { color: var(--text); margin-bottom: 16px; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 16px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content ul li, .entry-content ol li { color: var(--text); margin-bottom: 6px; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content strong { font-weight: 700; }
.content-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-head { padding: 16px 20px; border-bottom: 2px solid var(--blue); }
.sidebar-head h3 { font-size: 1rem; color: var(--dark); margin: 0; }
.sidebar-body { padding: 8px 0; }
.sidebar-links { display: flex; flex-direction: column; }
.sidebar-links li { }
.sidebar-links a {
  display: block; padding: 9px 20px;
  font-size: .875rem; color: var(--text);
  transition: all var(--t); border-left: 3px solid transparent;
}
.sidebar-links a:hover, .sidebar-links a.active {
  color: var(--blue); background: var(--blue-pale);
  border-left-color: var(--blue); font-weight: 600;
}
.sidebar-cta { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); border-radius: var(--r-lg); padding: 28px; text-align: center; }
.sidebar-cta h3 { color: var(--white); margin-bottom: 10px; }
.sidebar-cta p { color: rgba(255,255,255,.8); font-size: .875rem; margin-bottom: 18px; }

/* ── Page hero --sm ── */
.page-hero--sm { padding: 64px 0; }
.page-hero--sm h1 { color: var(--white); }
.page-hero--sm p { color: rgba(255,255,255,.8); font-size: 1.0625rem; max-width: 640px; margin-top: 12px; }
.page-hero--audit { padding: 64px 0; }
.page-hero--audit h1 { color: var(--white); }
.page-hero--audit p { color: rgba(255,255,255,.8); font-size: 1.0625rem; max-width: 640px; margin-top: 12px; }
.post-meta-hero { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.65); font-size: .875rem; margin-top: 14px; }
.post-meta-sep { color: rgba(255,255,255,.4); }

/* ── Two-column layout ── */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-text h2 { color: var(--dark); margin-bottom: 16px; }
.two-col-text p { color: var(--text); margin-bottom: 16px; }
.two-col-visual img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }

/* ── Values grid ── */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--t);
}
.value-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--blue); }
.value-icon { font-size: 2rem; margin-bottom: 14px; line-height: 1; }
.value-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 8px; }
.value-card p { font-size: .875rem; color: var(--text-l); line-height: 1.65; }
.company-info-table { max-width: 680px; margin: 0 auto; }

/* ── Contact page ── */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.contact-form-wrap { }
.contact-form-wrap h2 { color: var(--dark); margin-bottom: 6px; }
.contact-form-wrap > p { color: var(--text-l); margin-bottom: 24px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.contact-info-card h3 { color: var(--dark); font-size: 1rem; margin-bottom: 16px; }
.contact-info-card--blue { background: var(--blue); border-color: var(--blue); }
.contact-info-card--blue h3 { color: var(--white); }
.contact-info-card--blue p { color: rgba(255,255,255,.85); }
.contact-info-card--blue strong { color: var(--white); }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--orange); margin-top: 2px; }
.contact-info-item strong { display: block; font-size: .875rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.contact-info-item span,
.contact-info-item a { font-size: .875rem; color: var(--text-l); }
.contact-info-item a:hover { color: var(--blue); }
/* Fix huge SVGs inside address */
address svg { width: 20px !important; height: 20px !important; flex-shrink: 0; }

/* ── Form message states ── */
.form-msg[hidden] { display: none !important; }
.form-msg--ok { display: block; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-msg--err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Formation page programs ── */
.formation-programs { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.program-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: all var(--t);
}
.program-card:hover { box-shadow: var(--sh-sm); border-color: var(--blue); }
.program-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.program-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.program-card-header > div > h3 { color: var(--dark); font-size: 1.0625rem; margin-bottom: 4px; }
.program-duration { display: inline-block; font-size: .75rem; color: var(--blue); font-weight: 600; background: var(--blue-light); padding: 2px 10px; border-radius: 100px; }
.program-card p { color: var(--text); font-size: .9rem; margin-bottom: 12px; }
.program-card ul { list-style: disc; padding-left: 18px; }
.program-card ul li { color: var(--text-l); font-size: .875rem; margin-bottom: 4px; }
.modality-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.modality-item {
  background: var(--blue-pale);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}
.modality-item strong { display: block; color: var(--dark); font-size: .9375rem; margin-bottom: 6px; }
.modality-item p { font-size: .875rem; color: var(--text-l); margin: 0; }

/* ── Projects page ── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all var(--t);
}
.project-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--blue); }
.project-card-img { overflow: hidden; }
.project-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; display: block; }
.project-card:hover .project-card-img img { transform: scale(1.04); }
.project-card-body { padding: 22px; }
.project-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.project-card-body h3 { font-size: 1rem; color: var(--dark); margin-bottom: 8px; }
.project-card-body p { font-size: .875rem; color: var(--text-l); line-height: 1.6; margin-bottom: 14px; }
.project-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.project-meta span { font-size: .8rem; background: var(--light); color: var(--text-l); padding: 3px 10px; border-radius: 100px; }

/* ── Service rows (servicios page) ── */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--border); }
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; padding-bottom: 0; }
.service-row--reverse .service-row-img { order: 2; }
.service-row--reverse .service-row-text { order: 1; }
.service-row-img img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.service-row-text .eyebrow { color: var(--orange); }
.service-row-text h2 { color: var(--dark); margin-bottom: 14px; }
.service-row-text p { color: var(--text); margin-bottom: 24px; }
.services-list { }

/* ── Blog single ── */
.prose h2, .prose h3 { color: var(--dark); margin: 28px 0 12px; }
.prose p { color: var(--text); margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose ul { list-style: disc; }
.prose ul li, .prose ol li { color: var(--text); margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose strong { font-weight: 700; }
.post-featured-img { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; box-shadow: var(--sh-md); }
.post-featured-img img { width: 100%; }
.post-author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
  padding: 24px;
  background: var(--blue-pale);
  border-radius: var(--r-md);
  border-left: 4px solid var(--blue);
}
.post-author-avatar {
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.post-author-box strong { display: block; color: var(--dark); margin-bottom: 4px; }
.post-author-box p { font-size: .875rem; color: var(--text-l); margin: 0; }
.related-section { background: var(--blue-pale); padding: 64px 0; }
.related-section .section-title { text-align: center; margin-bottom: 36px; }

/* ── Page content (page.php) ── */
.page-content-wrap { }
.page-content-main { max-width: 860px; margin: 0 auto; }

/* ── Legal pages ── */
.legal-page-wrap .container { max-width: 900px; }

/* ── Highlight box ── */
.highlight-box {
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: .9375rem;
  color: var(--blue-deeper);
  line-height: 1.7;
}
.highlight-box strong { color: var(--blue-dark); }

/* ── No results ── */
.no-results { color: var(--text-l); text-align: center; padding: 40px 0; }

/* ── Footer layout ── */
.footer-top { padding: 64px 0 48px; }
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
/* Logo footer: versión blanca/transparente */
.footer-logo-link { display: inline-block; margin-bottom: 16px; }
.footer-logo-img { height: 44px; width: auto; }
.footer-tagline { color: rgba(255,255,255,.62); font-size: .875rem; line-height: 1.75; margin-bottom: 18px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-badge {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.footer-col h4 { font-size: .9375rem; color: var(--white); margin-bottom: 14px; font-weight: 700; }
.footer-col-subtitle { margin-top: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links li a { color: rgba(255,255,255,.62); font-size: .875rem; transition: color var(--t); display: block; padding: 3px 0; }
.footer-links li a:hover { color: var(--white); }
.footer-contact-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  line-height: 1.55;
}
.footer-contact-row svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.footer-contact-row a { color: rgba(255,255,255,.65); transition: color var(--t); }
.footer-contact-row a:hover { color: var(--white); }
.footer-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  border: none;
  transition: background var(--t), transform var(--t);
  text-decoration: none;
}
.footer-btn-contact:hover { background: var(--orange-h); transform: translateY(-1px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.45); margin: 0; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: .8125rem; color: rgba(255,255,255,.45); transition: color var(--t); }
.footer-legal-links a:hover { color: var(--white); }

/* ── Fix hero: el CSS original tiene opacity:.15 en .hero-bg, lo que oculta la foto ── */
.hero-bg {
  background-image: none !important;
  opacity: 1 !important;
}
/* ── Sin espacio entre hero y counter-bar ── */
.counter-bar { margin-top: 0; }

/* ── Fix FAQ (JS uses .open not .active) ── */
.faq-item.open .faq-a { display: block !important; }
.faq-item.open .faq-q { background: var(--blue-pale); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

/* ── Fix nav-open class (JS uses .nav-open not .open) ── */
@media (max-width: 768px) {
  .main-nav.nav-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 100;
  }
  .main-nav.nav-open ul { flex-direction: column; width: 100%; }
  .main-nav.nav-open > ul > li > a { padding: 12px 16px; }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process-track::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-top .container { grid-template-columns: 1fr 1fr; }
  .formation-grid { grid-template-columns: repeat(2, 1fr); }
  .why-section .why-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .footer-top .container { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-band-inner { grid-template-columns: 1fr; }
  .audit-band-visual { display: none; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-img { display: none; }
  .audit-inner { grid-template-columns: 1fr; }
  .audit-visual { display: none; }
  .counter-bar .container { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding: 16px 0; }
  .counter-item:last-child { border-bottom: none; }
  .interior-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-layout { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row--reverse .service-row-img,
  .service-row--reverse .service-row-text { order: unset; }
  .modality-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.nav-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .main-nav.nav-open ul { flex-direction: column; width: 100%; }
  .main-nav.nav-open > ul > li > a { padding: 12px 16px; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid--wide { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { display: inline-flex; width: fit-content; align-self: flex-start; }
  .hero-text h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .formation-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .why-section .why-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-text h2, .cta-band-text p { text-align: center; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-content { box-sizing: border-box; padding: 60px 24px 80px !important; }
  .hero-actions .btn { display: inline-flex !important; width: auto !important; max-width: fit-content !important; align-self: flex-start !important; }
}
