/* =========================
   HVS - High Value Services
   Custom Styles
========================= */

:root {
  --hvs-red: #d7192a;
  --hvs-red-dark: #b91524;
  --hvs-red-soft: #fff1f3;
  --hvs-dark: #111827;
  --hvs-gray: #4b5563;
  --hvs-light: #f8fafc;
  --hvs-border: #e5e7eb;
  --hvs-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--hvs-dark);
  overflow-x: hidden;
}

/* Offset para header fijo */
section[id] {
  scroll-margin-top: 90px;
}

/* =========================
   Header
========================= */

.nav-link {
  position: relative;
  color: #111827;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: var(--hvs-red);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--hvs-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-link {
  color: #111827;
  transition: color 0.25s ease;
}

.mobile-link:hover {
  color: var(--hvs-red);
}

.lang-btn,
.lang-btn-mobile {
  position: relative;
  color: #6b7280;
  transition: color 0.25s ease;
}

.lang-btn.active,
.lang-btn-mobile.active {
  color: var(--hvs-red);
}

.lang-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 2px;
  background: var(--hvs-red);
}

/* Icono hamburguesa */
.menu-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: #111827;
  display: block;
  border-radius: 999px;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.25s ease;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

/* =========================
   Shared Components
========================= */

.section-padding {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section-eyebrow {
  color: var(--hvs-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
}

.section-text {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1.02rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border-radius: 0.45rem;
  background: var(--hvs-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px rgba(215, 25, 42, 0.22);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--hvs-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(215, 25, 42, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border-radius: 0.45rem;
  border: 1.5px solid var(--hvs-red);
  color: var(--hvs-red);
  background: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--hvs-red);
  color: #ffffff;
  transform: translateY(-2px);
}

/* =========================
   Hero
========================= */

.hero-image-card {
  position: relative;
  width: 100%;
  height: 88%;
  min-height: 360px;
  border-radius: 2rem;
  overflow: hidden;

  /*
    Imagen principal del hero.
    Archivo esperado:
    assets/img/hero-hvs.jpg
  */
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.16) 22%,
      rgba(255, 255, 255, 0.04) 42%,
      rgba(255, 255, 255, 0) 62%
    ),
    url("../assets/img/hero-hvs.jpg");

  background-size: cover;
  background-position: 78% center;
  background-repeat: no-repeat;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.16);
}

.hero-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.08) 100%
    );
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
  pointer-events: none;
}

.hero-image-content {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-pin {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pin span {
  color: var(--hvs-red);
  font-weight: 900;
  font-size: 1.35rem;
}

/* =========================
   Value Bar
========================= */

.value-item {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.value-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--hvs-red);
  border: 1px solid rgba(215, 25, 42, 0.18);
  background: #fff7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* =========================
   Cards
========================= */

.info-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.9rem;
  padding: 1.65rem;
  min-height: 210px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--hvs-red);
  background: #fff1f3;
  border: 1px solid rgba(215, 25, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.info-card h3 {
  font-weight: 800;
  font-size: 1.02rem;
  color: #111827;
  margin-bottom: 0.65rem;
}

.info-card p {
  color: #4b5563;
  line-height: 1.65;
  font-size: 0.94rem;
}

/* =========================
   Shelter Concept
========================= */

.concept-card {
  position: relative;
  display: flex;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--hvs-border);
  border-radius: 0.95rem;
  padding: 2.2rem;
  min-height: 260px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.concept-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.concept-card ul {
  display: grid;
  gap: 0.8rem;
  color: #374151;
  font-size: 0.96rem;
}

.concept-card li {
  position: relative;
  padding-left: 1.6rem;
}

.concept-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hvs-red);
  font-weight: 900;
}

.concept-client {
  border-left: 5px solid var(--hvs-red);
  background: linear-gradient(90deg, #fff7f8 0%, #ffffff 55%);
}

.concept-hvs {
  background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
}

.concept-icon {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 1rem;
  background: #fff1f3;
  color: var(--hvs-red);
  border: 1px solid rgba(215, 25, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
}

.concept-icon.dark {
  background: #f8fafc;
  color: #111827;
  border-color: #e5e7eb;
}

/* =========================
   Services
========================= */

.service-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.85rem;
  padding: 1.45rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.055);
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 25, 42, 0.25);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.09);
}

.service-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 0.8rem;
  background: #fff1f3;
  color: var(--hvs-red);
  border: 1px solid rgba(215, 25, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 900;
}

.service-card h3 {
  color: #111827;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.service-card p {
  color: #4b5563;
  line-height: 1.55;
  font-size: 0.94rem;
}

/* =========================
   Benefits
========================= */

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.5rem;
}

.benefit-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(215, 25, 42, 0.22);
  background: #fff7f8;
  color: var(--hvs-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 900;
}

.benefit-item h3 {
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.benefit-item p {
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.92rem;
}

/* =========================
   Contact
========================= */

.contact-form {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  border-radius: 0.55rem;
  min-height: 46px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: #111827;
  outline: none;
  transition: all 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--hvs-red);
  box-shadow: 0 0 0 4px rgba(215, 25, 42, 0.1);
}

/* =========================
   Footer
========================= */

footer a {
  transition: color 0.25s ease;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1024px) {
  .section-padding {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-image-card {
    border-radius: 1.5rem;
    height: 100%;
    background-position: 80% center;
  }

  .concept-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-image-card {
    min-height: 320px;
    background-position: 82% center;
  }

  .hero-pin {
    width: 68px;
    height: 68px;
    right: 22px;
    bottom: 22px;
  }

  .hero-pin span {
    font-size: 1.1rem;
  }

  .concept-card {
    flex-direction: column;
    padding: 1.6rem;
  }

  .service-card {
    flex-direction: column;
  }

  .contact-form {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .value-item {
    justify-content: flex-start;
  }

  .hero-image-card {
    min-height: 280px;
    background-position: 84% center;
  }
}