/* ============================================================
   SHP Theme v2 — Springhead Data SpA
   Prefijo: shp- (namespace de instancia)
   NO sobreescribir clases Bootstrap directamente.
   Cargar DESPUÉS de Bootstrap en base_public.html
   ============================================================ */

/* --- TOKENS DE MARCA --- */
:root {
  --shp-navy:       #0b314a;
  --shp-teal:       #1b7181;
  --shp-teal-l:     #4a8b98;
  --shp-yellow:     #f1e51b;
  --shp-beige:      #d9d6c7;
  --shp-warm-white: #e7e7de;
  --shp-slate:      #3d5a6e;

  --shp-transition: 0.25s ease;
}

/* --- RESET PÚBLICO --- */
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }

/* --- NAVBAR --- */
.shp-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 49, 74, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.shp-navbar__logo {
  display: block;
  height: 55px;
  mix-blend-mode: screen;
  filter: brightness(1.05);
}

.shp-navbar__links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shp-navbar__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--shp-transition);
}

.shp-navbar__link:hover {
  color: #fff;
  text-decoration: none;
}

.shp-navbar__cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--shp-yellow);
  color: var(--shp-navy);
  padding: 8px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity var(--shp-transition);
}

.shp-navbar__cta:hover {
  opacity: 0.88;
  color: var(--shp-navy);
  text-decoration: none;
}

/* Hamburger mobile */
.shp-navbar__toggler {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .shp-navbar { padding: 0 24px; }
  .shp-navbar__links { display: none; }
  .shp-navbar__toggler { display: block; }
  .shp-navbar__links.shp-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--shp-navy);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* --- ORB ANIMATIONS --- */
@keyframes shp-float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40%       { transform: translateY(-22px) rotate(2deg); }
  70%       { transform: translateY(12px) rotate(-1deg); }
}
@keyframes shp-float-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35%       { transform: translateY(16px) rotate(-2deg); }
  65%       { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes shp-float-c {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes shp-shimmer {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.8; }
}
@keyframes shp-reveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .shp-orb, .shp-orb-glow { animation: none; }
  .shp-reveal { animation: none; opacity: 1; }
}

/* --- HERO --- */
.shp-hero {
  background: var(--shp-navy);
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 48px;
}

.shp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.shp-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--shp-teal-l);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shp-hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--shp-teal-l);
  flex-shrink: 0;
}

.shp-hero__title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 28px;
}

.shp-hero__title em {
  font-style: normal;
  color: var(--shp-yellow);
}

.shp-hero__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 44px;
}

/* ORBs */
.shp-orb-field {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 580px;
  height: 580px;
  pointer-events: none;
}

.shp-orb {
  position: absolute;
  border-radius: 50%;
}

.shp-orb--yellow {
  width: 360px; height: 360px;
  border: 54px solid var(--shp-yellow);
  top: 60px; right: 60px;
  opacity: 0.82;
  animation: shp-float-a 9s ease-in-out infinite;
}

.shp-orb--teal {
  width: 230px; height: 230px;
  border: 38px solid var(--shp-teal);
  top: 240px; right: 180px;
  opacity: 0.65;
  animation: shp-float-b 12s ease-in-out infinite;
}

.shp-orb--dark {
  width: 76px; height: 76px;
  background: #061d2d;
  top: 40px; right: 300px;
  opacity: 0.9;
  animation: shp-float-c 6s ease-in-out infinite;
}

.shp-orb-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse,
    rgba(27, 113, 129, 0.18) 0%,
    transparent 70%);
  top: 50px; right: 0;
  pointer-events: none;
  animation: shp-shimmer 6s ease-in-out infinite;
}

/* Mobile: orbs más pequeños */
@media (max-width: 768px) {
  .shp-orb-field { width: 280px; height: 280px; right: -40px; top: 20%; transform: none; }
  .shp-orb--yellow { width: 180px; height: 180px; border-width: 28px; }
  .shp-orb--teal   { width: 110px; height: 110px; border-width: 20px; top: 120px; right: 80px; }
  .shp-orb--dark   { width: 36px; height: 36px; top: 20px; right: 160px; }
  .shp-hero { padding: 60px 24px; min-height: 80vh; }
}

/* Reveal animation */
.shp-reveal {
  opacity: 0;
  animation: shp-reveal 0.7s ease forwards;
}
.shp-reveal-1 { animation-delay: 0.15s; }
.shp-reveal-2 { animation-delay: 0.3s; }
.shp-reveal-3 { animation-delay: 0.5s; }
.shp-reveal-4 { animation-delay: 0.7s; }

/* --- BOTONES GLOBALES --- */
.shp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--shp-yellow);
  color: var(--shp-navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity var(--shp-transition), transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.shp-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: var(--shp-navy);
  text-decoration: none;
}

.shp-btn-ghost {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color var(--shp-transition), border-color var(--shp-transition);
}

.shp-btn-ghost:hover {
  color: #fff;
  border-color: var(--shp-yellow);
  text-decoration: none;
}

/* --- SECTION LABEL --- */
.shp-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--shp-teal);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shp-section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.shp-section-label--light {
  color: var(--shp-teal-l);
}

/* --- PROPUESTA DE VALOR --- */
.shp-valor {
  background: #fff;
  padding: 100px 48px;
}

.shp-valor__header {
  max-width: 560px;
  margin-bottom: 72px;
}

.shp-valor__header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--shp-navy);
}

.shp-valor__header h2 strong {
  font-weight: 600;
  color: var(--shp-teal);
}

.shp-pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(11, 49, 74, 0.08);
  border: 1px solid rgba(11, 49, 74, 0.08);
}

.shp-pilar {
  background: #fff;
  padding: 48px 40px;
  position: relative;
  transition: background var(--shp-transition);
}

.shp-pilar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--shp-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.shp-pilar:hover::before { transform: scaleX(1); }
.shp-pilar:hover { background: #fafafa; }

.shp-pilar__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--shp-teal-l);
  margin-bottom: 28px;
}

.shp-pilar h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--shp-navy);
  margin-bottom: 14px;
  line-height: 1.2;
}

.shp-pilar p {
  font-size: 0.95rem;
  color: #5a6a78;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .shp-pilares { grid-template-columns: 1fr; }
  .shp-valor { padding: 72px 24px; }
}

/* --- SERVICIOS --- */
.shp-servicios {
  background: var(--shp-beige);
  padding: 100px 48px;
}

.shp-serv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(11, 49, 74, 0.1);
  margin-top: 64px;
}

.shp-serv-card {
  background: var(--shp-warm-white);
  padding: 52px 48px;
  border-left: 4px solid transparent;
  transition: border-color var(--shp-transition), background var(--shp-transition);
}

.shp-serv-card:hover {
  border-left-color: var(--shp-teal);
  background: #fff;
}

.shp-serv-icon {
  width: 44px; height: 44px;
  background: var(--shp-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--shp-yellow);
  font-size: 20px;
}

.shp-serv-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--shp-navy);
  margin-bottom: 12px;
}

.shp-serv-card p {
  font-size: 0.9rem;
  color: var(--shp-slate);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .shp-serv-grid { grid-template-columns: 1fr; }
  .shp-servicios { padding: 72px 24px; }
}

/* --- STATS --- */
.shp-stats {
  background: var(--shp-navy);
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}

.shp-stats__orb {
  position: absolute;
  right: -120px; top: -120px;
  width: 500px; height: 500px;
  border: 80px solid rgba(27, 113, 129, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.shp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 64px;
}

.shp-stat-item {
  padding: 52px 48px;
  background: var(--shp-navy);
}

.shp-stat-num {
  font-size: 4rem;
  font-weight: 300;
  color: var(--shp-yellow);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.shp-stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shp-stat-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.shp-stats__quote {
  margin-top: 72px;
  max-width: 640px;
  border-left: 3px solid var(--shp-teal);
  padding-left: 28px;
}

.shp-stats__quote p {
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .shp-stats-grid { grid-template-columns: 1fr; }
  .shp-stats { padding: 72px 24px; }
}

/* --- CONTACTO --- */
.shp-contacto {
  background: #fff;
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.shp-contacto__copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--shp-navy);
  line-height: 1.15;
  margin-bottom: 20px;
}

.shp-contacto__copy p {
  font-size: 1rem;
  color: #5a6a78;
  line-height: 1.8;
  margin-bottom: 40px;
}

.shp-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shp-contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--shp-navy);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 49, 74, 0.08);
  transition: color var(--shp-transition);
}

.shp-contact-link:hover { color: var(--shp-teal); text-decoration: none; }

.shp-contact-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--shp-yellow);
  flex-shrink: 0;
}

/* Formulario */
.shp-form-group { margin-bottom: 20px; }

.shp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shp-form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--shp-slate);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shp-form-input,
.shp-form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: #f8f7f5;
  border: 1px solid rgba(11, 49, 74, 0.12);
  border-radius: 2px;
  font-size: 0.95rem;
  color: var(--shp-navy);
  font-family: inherit;
  transition: border-color var(--shp-transition), background var(--shp-transition);
  outline: none;
}

.shp-form-input:focus,
.shp-form-textarea:focus {
  border-color: var(--shp-teal);
  background: #fff;
}

.shp-form-textarea { resize: vertical; min-height: 120px; }

.shp-form-submit {
  width: 100%;
  padding: 16px;
  background: var(--shp-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--shp-transition);
  font-family: inherit;
}

.shp-form-submit:hover { background: var(--shp-teal); }

@media (max-width: 768px) {
  .shp-contacto {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 24px;
  }
  .shp-form-row { grid-template-columns: 1fr; }
}

/* --- FOOTER --- */
.shp-footer {
  background: var(--shp-navy);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.shp-footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.shp-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.shp-footer__link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--shp-transition);
}

.shp-footer__link:hover { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 768px) {
  .shp-footer { padding: 24px; flex-direction: column; align-items: flex-start; }
}
