/* ============================================================
   Westham + HPE Landing — styles
   Brand palette derived from Westham banner (deep navy + violet)
   ============================================================ */

:root {
  /* --- Official HPE color palette --- */
  --hpe-green: #00b388;        /* HPE Green — primary brand */
  --hpe-green-dark: #0a6f57;   /* darker green for text on light surfaces */
  --hpe-turquoise: #2ad2c9;    /* HPE Turquoise — secondary accent */
  --hpe-purple: #614767;       /* HPE Purple */
  --hpe-slate: #425563;        /* HPE Slate */
  --hpe-dark-steel: #5f7a76;   /* HPE Dark Steel */
  --hpe-bronze: #80746e;       /* HPE Bronze */
  --hpe-gray: #c6c9ca;         /* HPE Gray */
  --hpe-black: #000000;

  /* Dark surfaces (HPE black → slate) */
  --navy-900: #14181b;
  --navy-800: #1f262b;
  --navy-700: #2c3942;

  /* Accent aliases mapped to HPE tones (kept for existing references) */
  --violet-600: var(--hpe-green-dark);
  --violet-500: var(--hpe-green);
  --violet-400: var(--hpe-turquoise);

  --ink: #16191c;
  --muted: #5b6670;
  --line: #e3e6e7;
  --bg: #ffffff;
  --bg-soft: #f4f6f6;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(20, 24, 27, 0.14);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.accent { color: var(--violet-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--hpe-green), var(--hpe-turquoise));
  color: #06231c;
  box-shadow: 0 10px 24px rgba(0, 179, 136, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(0, 179, 136, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.why .btn-ghost, .header-nav .btn-ghost { color: var(--hpe-green-dark); border-color: rgba(0, 179, 136, 0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 18, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { color: var(--white); font-weight: 800; letter-spacing: .18em; font-size: 1.15rem; }
.brand-sub { color: var(--violet-400); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 1.6rem; }
.header-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; font-weight: 500; }
.header-nav a:hover { color: var(--white); }
.header-nav .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(0,179,136,.45), transparent 60%),
    radial-gradient(700px 520px at 0% 110%, rgba(42,210,201,.30), transparent 58%),
    linear-gradient(160deg, rgba(6,28,26,.82), rgba(0,77,64,.72)),
    url("../img/hero-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-grid {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px);
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 3rem;
  align-items: center;
}
.hero-copy { max-width: 600px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: .4rem .9rem; border-radius: 999px;
  font-size: .82rem; letter-spacing: .03em; margin-bottom: 1.4rem;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hpe-green); box-shadow: 0 0 0 4px rgba(0,179,136,.25); }

.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.82); }

.hero-benefits { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; }
.hero-benefits li {
  position: relative; padding-left: 1.7rem; margin-bottom: .55rem;
  color: rgba(255,255,255,.88); font-size: .98rem;
}
.hero-benefits li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--hpe-green); font-weight: 800;
}

/* ---------- Franja de cifras (debajo del hero) ---------- */
.stats-band {
  background: linear-gradient(160deg, var(--hpe-green), var(--hpe-turquoise));
  color: var(--white);
}
.stats-band-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  list-style: none; margin: 0;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}
.stats-band-grid li {
  padding: .3rem clamp(2rem, 5vw, 4rem);
  border-right: 1px solid rgba(255,255,255,.22);
}
.stats-band-grid li:last-child { border-right: none; }
.stats-band .stat-num { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); line-height: 1; }
.stats-band .stat-label { display: block; margin-top: .4rem; color: rgba(255,255,255,.9); font-size: .9rem; }

.hero-contact { margin: 1.4rem 0 0; font-size: .95rem; color: rgba(255,255,255,.7); }
.hero-contact a { color: var(--hpe-turquoise); }

.hero-form-wrap { position: relative; }

/* ---------- Section helpers ---------- */
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--violet-600); margin-bottom: .6rem;
}
.section-eyebrow.light { color: var(--violet-400); }
.section-lead { color: var(--muted); max-width: 680px; font-size: 1.08rem; }

/* ---------- Why ---------- */
.why { padding-block: clamp(56px, 7vw, 84px); background: var(--bg); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-top: 2.4rem;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  overflow: hidden;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* Barra de acento verde HPE que aparece en hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--hpe-green), var(--hpe-turquoise));
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px;
  display: block; margin: 0 auto 1rem;
}
.card-icon .d,
.card-icon .g {
  fill: none; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-icon .d { stroke: #1f2a33; }
.card-icon .g { stroke: var(--hpe-green); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Portfolio ---------- */
.portfolio { padding-block: clamp(60px, 8vw, 96px); background: var(--bg-soft); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-top: 2.4rem;
}
.port-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.4rem;
  overflow: hidden;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* Barra de acento verde HPE que aparece en hover */
.port-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--hpe-green), var(--hpe-turquoise));
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.port-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.port-card:hover::before { transform: scaleX(1); }
.port-icon { width: 40px; height: 40px; display: block; margin: 0 auto .95rem; }
.port-icon .d, .port-icon .g {
  fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.port-icon .d { stroke: #1f2a33; }
.port-icon .g { stroke: var(--hpe-green); }
.port-card h4 { font-size: 1.05rem; margin-bottom: .8rem; }
.port-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 0; margin: 0; }
.port-tags li {
  font-size: .74rem; font-weight: 500; color: var(--hpe-slate);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: .22rem .55rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- About / Somos Westham ---------- */
.about { padding-block: clamp(56px, 7vw, 84px); background: var(--bg-soft); }
.about-cta { margin-top: 2.4rem; }

/* ---------- Team / Equipo regional ---------- */
.team { padding-block: clamp(56px, 7vw, 84px); background: var(--bg); }
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-top: 2.4rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.team-photo-wrap {
  position: relative;
  margin: -1.5rem -1.4rem 1.2rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.team-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
/* Wordmark blanco uniforme sobre la foto (reemplaza el incrustado) */
.team-photo-mark {
  position: absolute;
  left: 1rem; bottom: .85rem;
  color: #fff; font-weight: 700;
  font-size: .85rem; letter-spacing: .24em;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  pointer-events: none;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.team-role {
  color: var(--hpe-green-dark); font-weight: 600;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .04em;
  margin: 0 0 1rem;
}
.team-link {
  color: var(--muted); text-decoration: none; font-size: .82rem;
  margin-top: .35rem; white-space: nowrap;
}
.team-link:hover { color: var(--hpe-green-dark); }

/* ---------- Form ---------- */
.partner-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.partner-form .form-title { font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.2rem; }
.form-consent { font-size: .72rem; line-height: 1.4; color: var(--muted); margin-top: .8rem; }
.form-consent a { color: var(--hpe-green); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink); margin-bottom: .35rem;
}
.field input, .field select {
  width: 100%; padding: .7rem .85rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--hpe-green);
  box-shadow: 0 0 0 3px rgba(0,179,136,.2);
}
.field input.invalid, .field select.invalid { border-color: #e0466b; }

.check {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .85rem; color: var(--muted); margin: .4rem 0 1.2rem;
}
.check input { margin-top: .2rem; }

.form-status { font-size: .9rem; margin: .9rem 0 0; min-height: 1.2em; }
.form-status.ok { color: var(--hpe-green); font-weight: 600; }
.form-status.err { color: #e0466b; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,.8); padding-block: 2.4rem 1.6rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-sub { color: var(--violet-400); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.footer-links > a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .92rem; }
.footer-links > a:hover { color: var(--white); }
.social-bar { display: flex; align-items: center; gap: .75rem; }
.social-bar a {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social-bar a:hover { background: var(--hpe-green); color: #06231c; transform: translateY(-2px); }
.social-bar svg { width: 18px; height: 18px; fill: currentColor; }
.footer-legal { font-size: .8rem; color: rgba(255,255,255,.5); margin: 1.6rem auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .portfolio-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: none; }
}
@media (max-width: 680px) {
  .header-nav a:not(.btn) { display: none; }
  .stats-band-grid { flex-direction: column; gap: 1.2rem; }
  .stats-band-grid li { border-right: none; border-bottom: 1px solid rgba(255,255,255,.22); padding: 0 0 1rem; }
  .stats-band-grid li:last-child { border-bottom: none; padding-bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
}
