/**
 * Project: H&C Group Solutions S.A.S.
 * Página: Inicio (header + hero + footer)
 * CSS vanilla. Bootstrap se usa únicamente para el grid responsive (container/row/col).
 */

/*--------------------------------------------------------------
# Variables de marca
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Inter", sans-serif;

  --background-color: #f3f1ef;
  --default-color: #2d2d2d;
  --heading-color: #1b2d46;
  --accent-color: #7d1d3d;
  --contrast-color: #ffffff;

  --navy: #1d2c46;
  --navy-2: #2d4565;
  --maroon: #7d1d3d;
  --maroon-2: #942d4e;

  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin: 0;
}

img {
  max-width: 100%;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  padding: 18px 0;
  background-color: rgba(0, 0, 0, 0);
  transition: all 0.4s;
}

.header.scrolled {
  padding: 12px 0;
  background-color: rgba(21, 34, 43, 0.92);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.15);
}

.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header .logo img {
  display: block;
  max-height: clamp(46px, 4vw, 68px);
  width: auto;
  object-fit: contain;
}

/*--------------------------------------------------------------
# Navegación
--------------------------------------------------------------*/
.navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.navmenu li {
  position: relative;
}

.navmenu > ul > li {
  padding: 15px 14px;
  white-space: nowrap;
}

.navmenu > ul > li:last-child {
  padding-right: 0;
}

.navmenu a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
  transition: 0.3s;
}

.navmenu > ul > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background-color: #ffffff;
  transition: width 0.3s ease-in-out;
}

.navmenu a:hover::before,
.navmenu li.active > a::before {
  width: 100%;
}

.navmenu .dropdown-icon {
  font-size: 10px;
  transition: 0.3s;
}

.navmenu .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: 130%;
  min-width: 220px;
  margin: 0;
  padding: 10px 0;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 99;
}

.navmenu .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.navmenu .dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.navmenu .dropdown ul li a {
  padding: 10px 20px;
  color: var(--heading-color);
  font-size: 14px;
  text-transform: none;
  font-weight: 500;
}

.navmenu .dropdown ul li a:hover {
  color: var(--maroon);
}

.header .cta-btn {
  display: none;
  color: #ffffff;
  background: var(--maroon);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 9px 24px;
  margin-left: 24px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  transition: 0.3s;
}

.header .cta-btn:hover {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.mobile-nav-toggle {
  display: none;
  width: 30px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 9999;
}

.mobile-nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 10px; }
.mobile-nav-toggle span:nth-child(3) { top: 20px; }

.mobile-nav-active .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.mobile-nav-active .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-active .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 1199px) {
  .header .cta-btn {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: 27px;
    right: 24px;
    z-index: 10001;
  }

  .navmenu {
    position: fixed;
    inset: 0;
    background: rgba(17, 34, 53, 0.7);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 10000;
  }

  .mobile-nav-active .navmenu {
    visibility: visible;
    opacity: 1;
  }

  .navmenu ul {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(86vw, 360px);
    height: 100%;
    margin: 0;
    padding: 100px 30px 30px;
    background: #112235;
    overflow-y: auto;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-nav-active .navmenu ul {
    transform: translateX(0);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .navmenu > ul > li {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navmenu a {
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 15px;
  }

  .navmenu > ul > li > a::before {
    display: none;
  }

  .navmenu .dropdown ul {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 10px 14px;
  }

  .navmenu .dropdown.dropdown-open ul {
    display: block;
  }

  .navmenu .dropdown.dropdown-open .dropdown-icon {
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul li a {
    color: #dfe3ee;
    padding: 10px 4px;
  }
}

@media (min-width: 1200px) {
  .header .cta-btn {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 34, 53, 0.55) 0%, rgba(17, 34, 53, 0.72) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero h2 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  margin: 16px 0 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 34px;
}

.hero .btn-get-started {
  display: inline-block;
  background: var(--maroon);
  color: #ffffff;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 4px;
  transition: 0.3s;
}

.hero .btn-get-started:hover {
  color: #ffffff;
  background: var(--navy);
}

.hero .btn-portfolio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--navy);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hero .btn-portfolio svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.hero .btn-portfolio:hover {
  color: #ffffff;
  background: var(--maroon);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }

  .hero p {
    font-size: 17px;
  }
}

@media (max-width: 575px) {
  .header {
    padding: 12px 0;
  }

  .header .container-fluid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header .logo img {
    max-width: 150px;
    max-height: 50px;
  }

  .mobile-nav-toggle {
    right: 18px;
  }

  .hero {
    min-height: 680px;
    padding: 100px 18px 60px;
  }

  .hero h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero .btn-get-started,
  .hero .btn-portfolio {
    width: min(100%, 300px);
    justify-content: center;
    text-align: center;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-hc__form {
    padding: 20px 16px;
  }

  .contact-hc__form .row {
    --bs-gutter-x: 0;
  }

  .contact-hc .row {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-hc__form .form-control {
    min-width: 0;
  }

  .footer .footer-top {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer .footer-top .col-6 {
    width: 100%;
  }

  .footer .copyright {
    padding-left: 18px;
    padding-right: 18px;
    line-height: 1.5;
  }
}

/*--------------------------------------------------------------
# Secciones generales (ancla con offset por el header fijo)
--------------------------------------------------------------*/
.section {
  scroll-margin-top: 90px;
  padding: 90px 0;
}

@media (max-width: 1199px) {
  .section {
    scroll-margin-top: 76px;
    padding: 64px 0;
  }
}

.hero {
  scroll-margin-top: 0;
}

/*--------------------------------------------------------------
# Sección: Nosotros
# Contenido pendiente — ver #nosotros en index.html
--------------------------------------------------------------*/
.about-hc {
  --hc-navy: #1d2c46;
  --hc-navy-2: #2d4565;
  --hc-maroon: #7d1d3d;
  --hc-maroon-2: #942d4e;
  --hc-bg-light: #f3f1ef;
  --hc-border: #d8d5d2;
  --hc-text: #2a2a2a;
  --hc-text-soft: #5f6368;

  font-family: "Inter", sans-serif;
  color: var(--hc-text);
}

.about-hc__eyebrow {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hc-maroon);
  margin-bottom: 12px;
}

.about-hc__eyebrow--light {
  color: #e7b8c4;
}

.about-hc__block-header {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}

.about-hc__block-title {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--hc-navy);
  margin: 0 0 14px;
}

.about-hc__block-subtitle {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--hc-text-soft);
  margin: 0;
}

/* ===== 4.1 Presentación ===== */
.about-hc__intro {
  background: #ffffff;
  padding: 90px 0 70px;
}

.about-hc__media {
  position: relative;
}

.about-hc__media-logo {
  position: absolute;
  left: 24px;
  bottom: -22px;
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(11, 31, 61, 0.18);
}

.about-hc__name {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--hc-text-soft);
  margin: 0 0 10px;
}

.about-hc__tagline {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--hc-navy);
  margin: 0 0 20px;
}

.about-hc__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--hc-text-soft);
  margin: 0 0 16px;
}

.about-hc__photo {
  margin-top: 28px;
}

/* ===== 4.2 / 4.3 Misión y Visión ===== */
.about-hc__mv {
  background: var(--hc-bg-light);
  padding: 70px 0;
}

.mv-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--hc-border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 6px 18px rgba(11, 31, 61, 0.05);
  border-top: 4px solid transparent;
}

.mv-card--navy {
  border-top-color: var(--hc-navy);
}

.mv-card--maroon {
  border-top-color: var(--hc-maroon);
}

.mv-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 24px;
  color: #ffffff;
}

.mv-card--navy .mv-card__icon {
  background: linear-gradient(135deg, var(--hc-navy-2), var(--hc-navy));
}

.mv-card--maroon .mv-card__icon {
  background: linear-gradient(135deg, var(--hc-maroon-2), var(--hc-maroon));
}

.mv-card__title {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--hc-navy);
  margin: 0 0 12px;
}

.mv-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--hc-text-soft);
  margin: 0;
}

/* ===== 4.4 Valores corporativos ===== */
.about-hc__values {
  background: #ffffff;
  padding: 90px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.value-card {
  background: var(--hc-bg-light);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(11, 31, 61, 0.1);
}

.value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--hc-maroon-2), var(--hc-navy));
}

.value-card__title {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--hc-navy);
  margin: 0 0 8px;
}

.value-card__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hc-text-soft);
  margin: 0;
}

/* ===== 4.5 Propuesta de valor (fondo oscuro, momento de énfasis) ===== */
.about-hc__value-prop {
  background: linear-gradient(135deg, var(--hc-navy), #081729);
  padding: 90px 0;
  color: #ffffff;
}

.value-prop__title {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #ffffff;
  margin: 0 0 18px;
}

.value-prop__text {
  font-size: 15.5px;
  line-height: 1.75;
  color: #c3cbdb;
  margin: 0;
}

.value-prop__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.value-prop__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.value-prop__list li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hc-maroon-2);
}

.value-prop__list i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--hc-maroon-2), var(--hc-maroon));
}

/* ===== 4.6 Sectores atendidos ===== */
.about-hc__sectors {
  background: var(--hc-bg-light);
  padding: 90px 0;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sector-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--hc-text);
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sector-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(11, 31, 61, 0.08);
}

.sector-chip i {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: var(--hc-navy);
  background: #eef1f8;
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .about-hc__intro,
  .about-hc__mv,
  .about-hc__values,
  .about-hc__value-prop,
  .about-hc__sectors {
    padding: 60px 0;
  }
  .about-hc__block-title,
  .value-prop__title {
    font-size: 26px;
  }
  .value-prop__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  .about-hc__media-logo {
    width: 64px;
    height: 64px;
    left: 16px;
    bottom: -16px;
  }
}

/* ===== Accesibilidad ===== */
@media (prefers-reduced-motion: reduce) {
  .value-card,
  .sector-chip,
  .value-prop__list li {
    transition: none;
  }
  .value-card:hover,
  .sector-chip:hover {
    transform: none;
  }
}

/* =======================================================
   Sección "¿Por qué H&C?" (3.2)
   Paleta tomada de la identidad H&C Group Solutions:
   navy #0b1f3d + vino tinto #7a1230, sobre fondo claro.
   El corte diagonal en cada tarjeta reproduce el motivo
   de esquinas triangulares usado en el portafolio de marca.
======================================================= */

.why-hc {
  --whc-navy: #1d2c46;
  --whc-navy-2: #2d4565;
  --whc-maroon: #7d1d3d;
  --whc-maroon-2: #942d4e;
  --whc-bg: #f5f6fa;
  --whc-card-bg: #ffffff;
  --whc-border: #e7e9f0;
  --whc-text: #1c2333;
  --whc-text-soft: #626b7a;

  background-color: var(--whc-bg);
  padding: 90px 0;
  font-family: "Inter", sans-serif;
}

.why-hc__header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.why-hc__eyebrow {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--whc-maroon);
  margin-bottom: 12px;
}

.why-hc__title {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--whc-navy);
  margin: 0 0 14px;
}

.why-hc__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--whc-text-soft);
  margin: 0;
}

.why-hc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-hc__card {
  position: relative;
  overflow: hidden;
  background: var(--whc-card-bg);
  border: 1px solid var(--whc-border);
  border-radius: 14px;
  padding: 34px 26px 30px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(11, 31, 61, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-hc__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 31, 61, 0.12);
}

/* Corte diagonal de esquina, alterna navy / vino tinto */
.why-hc__cut {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.why-hc__card--navy .why-hc__cut {
  background: linear-gradient(135deg, var(--whc-navy-2), var(--whc-navy));
}

.why-hc__card--maroon .why-hc__cut {
  background: linear-gradient(135deg, var(--whc-maroon-2), var(--whc-maroon));
}

.why-hc__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 24px;
  color: #ffffff;
}

.why-hc__card--navy .why-hc__icon {
  background: linear-gradient(135deg, var(--whc-navy-2), var(--whc-navy));
}

.why-hc__card--maroon .why-hc__icon {
  background: linear-gradient(135deg, var(--whc-maroon-2), var(--whc-maroon));
}

.why-hc__card-title {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--whc-text);
  margin: 0 0 8px;
}

.why-hc__card-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--whc-text-soft);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .why-hc__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .why-hc {
    padding: 64px 0;
  }
  .why-hc__grid {
    grid-template-columns: 1fr;
  }
  .why-hc__title {
    font-size: 27px;
  }
}

/* ===== Accesibilidad: respeta preferencia de movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
  .why-hc__card {
    transition: none;
  }
  .why-hc__card:hover {
    transform: none;
  }
}


/* =======================================================
   CLIENTES — CARRUSEL HORIZONTAL RESPONSIVE
======================================================= */

.clients {
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
  background: #f8f8f8;
}


/* =======================================================
   CONTENEDOR
======================================================= */

.clients .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}


/* =======================================================
   ENCABEZADO
======================================================= */

.clients__header {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 45px;
  text-align: center;
}

.clients__header,
.clients__header * {
  text-align: center;
}

.clients__eyebrow {
  display: block;

  width: 100%;

  margin-bottom: 8px;

  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;

  color: #1d2c46;

  text-align: center;
}

.clients__title {
  margin: 0 0 18px;

  font-family: "Raleway", sans-serif;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;

  color: #1d2c46;

  text-align: center;
}

.clients__subtitle {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;

  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;

  color: #333;

  text-align: center;
}


/* =======================================================
   SWIPER
======================================================= */

.clients-swiper {
  position: relative;

  width: 100%;
  max-width: 1150px;

  margin: 0 auto;

  padding: 25px 0 35px;

  overflow: hidden;
}


/* =======================================================
   IMPORTANTE:
   EL WRAPPER DEBE SER HORIZONTAL
======================================================= */

.clients-swiper .swiper-wrapper {
  display: flex !important;

  flex-direction: row !important;

  align-items: center;

  justify-content: flex-start;

  width: 100%;

  box-sizing: content-box;
}


/* =======================================================
   CADA SLIDE
======================================================= */

.clients-swiper .swiper-slide {
  position: relative;

  display: flex;

  flex-direction: row;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  height: 110px;

  text-align: center;

  box-sizing: border-box;
  min-width: 0;
}


/* =======================================================
   CONTENEDOR DEL LOGO
======================================================= */

.client-logo {
  display: flex;

  align-items: center;
  justify-content: center;

  padding: 15px 20px;
}


/* =======================================================
   LOGOS
======================================================= */

.client-logo img {
  display: block;

  width: auto;
  max-width: 150px;
  height: 70px;

  margin: 0 auto;

  object-fit: contain;

  opacity: 0.9;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* =======================================================
   HOVER
======================================================= */

.client-logo:hover img {
  opacity: 1;

  transform: scale(1.06);
}


/* =======================================================
   TABLET
======================================================= */

@media (max-width: 991px) {

  .clients {
    padding: 70px 0;
  }

  .clients__title {
    font-size: 36px;
  }

  .clients__subtitle {
    font-size: 15px;
    padding: 0 15px;
  }

  .clients-swiper {
    max-width: 100%;
  }

  .clients-swiper .swiper-slide {
    height: 100px;
  }

  .client-logo img {
    max-width: 130px;
    height: 60px;
  }
}


/* =======================================================
   TABLET PEQUEÑA
======================================================= */

@media (max-width: 767px) {

  .clients {
    padding: 60px 0;
  }

  .clients .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .clients__header {
    margin-bottom: 30px;
  }

  .clients__eyebrow {
    font-size: 14px;
  }

  .clients__title {
    font-size: 30px;
  }

  .clients__subtitle {
    font-size: 14px;
    line-height: 1.65;
  }

  .clients-swiper {
    padding: 15px 0 25px;
  }

  .clients-swiper .swiper-slide {
    height: 90px;
  }

  .client-logo {
    padding: 10px;
  }

  .client-logo img {
    max-width: 115px;
    height: 55px;
  }
}


/* =======================================================
   CELULARES
======================================================= */

@media (max-width: 575px) {

  .clients {
    padding: 50px 0;
  }

  .clients__title {
    font-size: 28px;
  }

  .clients__subtitle {
    font-size: 14px;
    padding: 0 5px;
  }

  .clients-swiper {
    width: 100%;
    padding: 10px 0 20px;
  }

  .clients-swiper .swiper-slide {
    height: 80px;
  }

  .client-logo {
    padding: 8px;
  }

  .client-logo img {
    max-width: 100px;
    height: 48px;
  }
}


/* =======================================================
   CELULARES MUY PEQUEÑOS
======================================================= */

@media (max-width: 400px) {

  .clients__title {
    font-size: 25px;
  }

  .clients__subtitle {
    font-size: 13px;
  }

  .clients-swiper .swiper-slide {
    height: 75px;
  }

  .client-logo img {
    max-width: 90px;
    height: 45px;
  }
}


/* =======================================================
   ACCESIBILIDAD
======================================================= */

@media (prefers-reduced-motion: reduce) {

  .client-logo img {
    transition: none;
  }
}

/*--------------------------------------------------------------
# Sección: Contacto
# Contenido pendiente — ver #contacto en index.html
--------------------------------------------------------------*/
/* =======================================================
   Módulo de Contacto
   Misma paleta de marca H&C: navy #0b1f3d + vino tinto #7a1230.
   Tarjetas de contacto accionables (mapa, WhatsApp, correo) +
   mapa de Google Maps + formulario.
======================================================= */

.contact-hc {
  --ct-navy: #1d2c46;
  --ct-navy-2: #2d4565;
  --ct-maroon: #7d1d3d;
  --ct-maroon-2: #942d4e;
  --ct-bg: #f5f6fa;
  --ct-border: #e7e9f0;
  --ct-text: #1c2333;
  --ct-text-soft: #626b7a;

  background: var(--ct-bg);
  padding: 90px 0;
  font-family: "Inter", sans-serif;
}

.contact-hc__header {
  max-width: 620px;
  margin: 0 auto 46px;
}

.contact-hc__eyebrow {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ct-maroon);
  margin-bottom: 12px;
}

.contact-hc__title {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--ct-navy);
  margin: 0 0 14px;
}

.contact-hc__subtitle {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ct-text-soft);
  margin: 0;
}

/* ===== Tarjetas de información ===== */
.contact-hc__info-row {
  margin-bottom: 46px;
}

.contact-hc__info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  padding: 34px 24px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(11, 31, 61, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-hc__info-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 31, 61, 0.1);
}

.contact-hc__info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-size: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ct-navy-2), var(--ct-navy));
}

.col-md-4:nth-child(2) .contact-hc__info-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.col-md-4:nth-child(3) .contact-hc__info-icon {
  background: linear-gradient(135deg, var(--ct-maroon-2), var(--ct-maroon));
}

.contact-hc__info-item h3 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ct-text);
  margin: 0 0 8px;
}

.contact-hc__info-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ct-text-soft);
  margin: 0;
}

/* ===== Mapa ===== */
.contact-hc__map {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ct-border);
  box-shadow: 0 6px 18px rgba(11, 31, 61, 0.05);
}

.contact-hc__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* ===== Formulario ===== */
.contact-hc__form {
  background: #ffffff;
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(11, 31, 61, 0.05);
  height: 100%;
  padding: 30px;
}

.contact-hc__form .form-control {
  font-size: 14px;
  padding: 12px 16px;
  box-shadow: none;
  border-radius: 8px;
  color: var(--ct-text);
  background-color: #ffffff;
  border: 1px solid var(--ct-border);
  width: 100%;
  min-width: 0;
}

.contact-hc__form .form-control:focus {
  border-color: var(--ct-navy);
  box-shadow: 0 0 0 3px rgba(11, 31, 61, 0.08);
}

.contact-hc__form .form-control::placeholder {
  color: #9aa2b1;
}

.contact-hc__form button[type="submit"] {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: var(--ct-navy);
  border: 0;
  padding: 12px 34px;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.25s ease;
}

.contact-hc__form button[type="submit"]:hover {
  background: var(--ct-maroon);
  transform: translateY(-2px);
}

.contact-hc__form .loading,
.contact-hc__form .error-message,
.contact-hc__form .sent-message {
  display: none;
  font-size: 14px;
  padding: 10px 0;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .contact-hc {
    padding: 64px 0;
  }
  .contact-hc__title {
    font-size: 25px;
  }
  .contact-hc__map {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .contact-hc__map iframe {
    min-height: 0;
  }
}

/* ===== Accesibilidad ===== */
@media (prefers-reduced-motion: reduce) {
  .contact-hc__info-item,
  .contact-hc__form button[type="submit"] {
    transition: none;
  }
  .contact-hc__info-item:hover,
  .contact-hc__form button[type="submit"]:hover {
    transform: none;
  }
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: linear-gradient(180deg, var(--navy) 0%, #111f31 100%);
  color: #c3cbdb;
  font-family: var(--nav-font);
}

.footer .footer-top {
  padding: 70px 0 0;
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer .logo img {
  max-height: 36px;
  width: auto;
}

.footer .logo .sitename {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.footer .tagline {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: #dfe3ee;
  max-width: 320px;
  margin: 0 0 18px;
}

.footer .footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.footer .footer-contact svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--maroon-2);
}

.footer .footer-contact strong {
  color: #ffffff;
}

.footer .social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: 0.3s;
}

.footer .social-links a svg {
  width: 15px;
  height: 15px;
}

.footer .social-links a:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  transform: translateY(-3px);
}

.footer h4 {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 10px;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--maroon-2);
}

.footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer .footer-links li {
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.footer .footer-links li:first-child {
  padding-top: 0;
}

.footer .footer-links svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--maroon-2);
}

.footer .footer-links a,
.footer .footer-links span {
  min-width: 0;
  font-size: 14px;
  color: #c3cbdb;
  overflow-wrap: anywhere;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer .footer-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer .footer-links .all-link {
  font-weight: 700;
  color: #ffffff;
}

.footer .footer-cta p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.footer .footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #25d366, #128c7e);
  padding: 12px 22px;
  border-radius: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer .footer-cta-btn svg {
  width: 16px;
  height: 16px;
}

.footer .footer-cta-btn:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
}

.footer .footer-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b93a7;
  margin: 18px 0 0;
}

.footer .footer-hours svg {
  width: 13px;
  height: 13px;
  color: var(--maroon-2);
}

.footer .copyright {
  padding: 22px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: #8b93a7;
  text-align: center;
}

.footer .copyright strong {
  color: #ffffff;
}

@media (max-width: 767px) {
  .footer .footer-top {
    padding-top: 50px;
  }

  .footer .tagline {
    max-width: 100%;
  }

  .footer .footer-top .col-6 {
    width: 50%;
  }

  .footer h4 {
    font-size: 14px;
    line-height: 1.35;
  }

  .footer .footer-links li {
    align-items: flex-start;
    padding: 6px 0;
  }

  .footer .footer-links a,
  .footer .footer-links span {
    font-size: 13px;
    line-height: 1.35;
  }
}

/*--------------------------------------------------------------
# Botón volver arriba
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 4px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Botón flotante de WhatsApp
--------------------------------------------------------------*/
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 28px rgba(37, 211, 102, 0.45);
  background: #1ebc5a;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

@media (max-width: 576px) {
  .whatsapp-float {
    right: 15px;
    bottom: 65px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/*--------------------------------------------------------------
# Accesibilidad
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .header,
  .navmenu a::before,
  .scroll-top,
  .whatsapp-float,
  .footer .social-links a,
  .footer .footer-links a,
  .footer .footer-cta-btn {
    transition: none;
  }

  .footer .social-links a:hover,
  .footer .footer-cta-btn:hover,
  .whatsapp-float:hover {
    transform: none;
  }
}