/*
Theme Name: HI Consulting Theme
Theme URI: https://hiconsulting.es
Author: HI Consulting
Description: Tema corporativo personalizado para HI Consulting.
Version: 1.0
Text Domain: hiconsulting
*/

:root {
  --navy: #071827;
  --navy-soft: #102334;
  --teal: #12B8B5;
  --teal-dark: #0C8F8C;
  --mint: #EAFBFA;
  --bg: #F6F8FA;
  --white: #FFFFFF;
  --text: #51606F;
  --muted: #7B8794;
  --line: #E3E8EF;
  --shadow: 0 24px 60px rgba(7, 24, 39, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 232, 239, 0.85);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 7px);
  gap: 4px;
  height: 28px;
  align-items: end;
}

.brand-mark span {
  display: block;
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
}

.brand-mark span:nth-child(1) {
  height: 20px;
}

.brand-mark span:nth-child(2) {
  height: 28px;
}

.brand-mark span:nth-child(3) {
  height: 16px;
}

.brand-text {
  font-size: 21px;
}

.brand-text strong {
  color: var(--teal-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 650;
  color: var(--navy-soft);
}

.nav a:hover {
  color: var(--teal-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 750;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(7, 24, 39, 0.18);
}

.btn-teal {
  background: var(--teal);
  color: var(--navy);
}

.btn-teal:hover {
  background: #31D4D0;
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-light:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 86px;
  background:
    radial-gradient(circle at 85% 15%, rgba(18, 184, 181, 0.26), transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F8FA 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 24, 39, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 999px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin: 0;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0;
}

h3 {
  font-size: 24px;
  margin: 0 0 12px;
}

p {
  margin: 0;
}

.lead {
  font-size: 20px;
  color: var(--text);
  margin-top: 24px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.panel-badge {
  color: var(--teal-dark);
  font-weight: 800;
  background: var(--mint);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat {
  background: var(--bg);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 26px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.panel-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--navy-soft);
  font-weight: 650;
}

.panel-list li::before {
  content: "✓";
  color: var(--teal-dark);
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  font-size: 18px;
  color: var(--muted);
  margin-top: 16px;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cards-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 34px rgba(7, 24, 39, 0.06);
  transition: all 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900;
  margin-bottom: 18px;
}

.card p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: var(--teal-dark);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 20px;
}

.feature strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 26px;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 20px;
}

.page-hero {
  padding: 76px 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(18, 184, 181, 0.20), transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F8FA 100%);
}

.page-hero-inner {
  max-width: 850px;
}

.page-hero p {
  margin-top: 20px;
  font-size: 20px;
  color: var(--text);
}

.service-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 14px 34px rgba(7, 24, 39, 0.05);
}

.service-detail ul {
  margin: 0;
  padding-left: 20px;
}

.service-detail li {
  margin-bottom: 8px;
}

.cta-box {
  background: linear-gradient(135deg, var(--navy), #0B3B43);
  border-radius: 32px;
  padding: 48px;
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.contact-card,
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 14px 34px rgba(7, 24, 39, 0.06);
}

.contact-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-weight: 750;
  color: var(--navy);
  font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  background: #FFFFFF;
  color: var(--navy);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 184, 181, 0.12);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.checkbox input {
  margin-top: 5px;
}

.hp-field {
  display: none !important;
}

.form-success {
  background: var(--mint);
  border: 1px solid rgba(18, 184, 181, 0.3);
  color: var(--teal-dark);
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 750;
}

.site-footer {
  background: #03101C;
  color: rgba(255, 255, 255, 0.72);
  padding: 46px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
  margin-bottom: 34px;
}

.footer-title {
  color: var(--white);
  font-weight: 850;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.legal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 14px 34px rgba(7, 24, 39, 0.06);
}

.legal-content h1 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 20px;
}

.legal-content h2 {
  font-size: 28px;
  margin-top: 28px;
  margin-bottom: 12px;
}

@media (max-width: 1020px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .cards-grid.three,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
  }

  .hero {
    padding: 62px 0 56px;
  }

  .section {
    padding: 58px 0;
  }

  .cards-grid,
  .cards-grid.three,
  .steps,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 30px;
  }

  .brand-text {
    font-size: 19px;
  }
}