:root {
  --color-primary: #ff4b1f;
  --color-primary-dark: #d93a12;
  --color-dark: #23282e;
  --color-dark-soft: #343a40;
  --color-text: #3f444a;
  --color-muted: #6f757b;
  --color-light: #f5f5f5;
  --color-white: #ffffff;
  --color-border: #dedede;
  --color-footer: #23282e;
  --layout-max: 1180px;
  --page-max: 1350px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-white);
  color: var(--color-dark);
  font-family: "Inter", "Montserrat", Arial, sans-serif;
  line-height: 1.5;
}

.page-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid #eeeeee;
}

.header-inner {
  width: min(calc(100% - 48px), var(--page-max));
  min-height: 86px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo,
.brand-fallback-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-logo {
  width: clamp(190px, 22vw, 295px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.brand-logo[hidden],
.brand-fallback-mark[hidden],
.brand-copy[hidden] {
  display: none;
}

.brand-fallback-mark {
  display: grid;
  place-items: center;
  border: 6px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-title {
  color: var(--color-dark);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--color-dark-soft);
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  color: var(--color-dark);
  font-size: 16px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-primary);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a.active::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--color-dark);
}

.hero-section {
  width: min(calc(100% - 48px), var(--page-max));
  min-height: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48% 52%;
  background: var(--color-light);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 66px 48px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, #f7f7f7 0%, var(--color-white) 100%);
}

.hero-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: -72px;
  bottom: 0;
  width: 150px;
  background: var(--color-white);
  transform: skewX(-10deg);
  transform-origin: top;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--color-dark);
  font-size: clamp(2.25rem, 4vw, 3.85rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.5px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-description {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--color-text);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.6;
  font-weight: 400;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.primary-button {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 4px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(255, 75, 31, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: url("assets/icons/Contact-White.png") center / contain no-repeat;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.hero-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-indicator {
  width: 34px;
  height: 4px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #cfd2d4;
  cursor: pointer;
}

.hero-indicator.is-active {
  background: var(--color-primary);
}

.hero-image-wrap {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
  background: #e7e8e9;
}

.hero-image,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  opacity: 0;
  object-fit: cover;
  object-position: var(--hero-image-position, 58% center);
  transition: opacity 0.25s ease;
}

.hero-image.is-visible {
  opacity: 1;
}

.hero-fallback {
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  color: rgba(35, 40, 46, 0.52);
  text-align: center;
  background:
    linear-gradient(110deg, rgba(255, 75, 31, 0.18), transparent 34%),
    repeating-linear-gradient(90deg, rgba(35, 40, 46, 0.09) 0 1px, transparent 1px 74px),
    linear-gradient(135deg, #e8eaec 0%, #f9f9f9 100%);
}

.hero-fallback.is-visible {
  opacity: 1;
}

.hero-fallback span {
  max-width: 320px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.services-section {
  background: var(--color-white);
  padding: 70px 64px 80px;
  text-align: center;
}

.section-heading h2 {
  position: relative;
  margin: 0 0 54px;
  color: var(--color-dark);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--color-primary);
}

.services-grid {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.service-card {
  min-width: 0;
  padding: 26px 44px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.service-card:nth-child(3n),
.service-card:last-child {
  border-right: none;
}

.service-card:nth-child(n + 4) {
  border-top: 1px solid var(--color-border);
  margin-top: 34px;
  padding-top: 42px;
}

.service-icon {
  width: 138px;
  height: 138px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
}

.service-icon img,
.service-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-icon-image {
  width: 138px;
  height: 138px;
}

.service-icon-vector {
  width: 104px;
  height: 104px;
}

.service-placeholder {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 800;
}

.service-card h3 {
  margin: 0 0 16px;
  color: var(--color-dark);
  font-size: clamp(1.375rem, 2vw, 1.56rem);
  line-height: 1.2;
  font-weight: 700;
}

.service-card p {
  max-width: 280px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.contact-section {
  background: var(--color-light);
  padding: 54px 64px 42px;
}

.contact-grid {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr minmax(270px, 1.25fr) 1fr;
  align-items: center;
}

.contact-item {
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-right: 1px solid var(--color-border);
}

.contact-item:first-child {
  padding-left: 0;
}

.contact-item:last-child {
  padding-right: 0;
  border-right: none;
}

.contact-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  color: var(--color-dark);
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 700;
}

.contact-value {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.contact-value:hover,
.contact-value:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.coverage {
  max-width: var(--layout-max);
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: var(--color-dark);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  text-align: center;
}

.coverage-icon {
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.site-footer {
  background: var(--color-footer);
  color: var(--color-white);
  text-align: center;
  padding: 34px 24px;
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  overflow-wrap: anywhere;
}

#inicio,
#servicios,
#contacto {
  scroll-margin-top: 104px;
}

#top {
  scroll-margin-top: 0;
}

@media (max-width: 1180px) {
  .header-inner {
    width: min(calc(100% - 32px), var(--page-max));
    padding: 0 32px;
  }

  .hero-section {
    width: min(calc(100% - 32px), var(--page-max));
  }

  .hero-content {
    padding: 60px 40px 50px;
  }

  .services-section,
  .contact-section {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1024px) {
  html {
    scroll-padding-top: 96px;
  }

  #inicio,
  #servicios,
  #contacto {
    scroll-margin-top: 96px;
  }

  .header-inner {
    min-height: 84px;
  }

  .site-nav {
    gap: 34px;
  }

  .hero-section {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
    padding: 58px 32px 50px;
    text-align: left;
  }

  .hero-content::after {
    display: none;
  }

  .hero-image-wrap {
    min-height: 380px;
    height: 380px;
    clip-path: none;
  }

  .services-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-value {
    overflow-wrap: anywhere;
  }

  .contact-grid {
    gap: 28px 0;
  }

  .service-card,
  .service-card:nth-child(3n),
  .service-card:last-child {
    border-right: 1px solid var(--color-border);
  }

  .service-card:nth-child(2n),
  .service-card:last-child {
    border-right: none;
  }

  .service-card:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
    margin-top: 34px;
    padding-top: 42px;
  }

  .contact-item:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  .contact-item:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 0;
  }

  #inicio,
  #servicios,
  #contacto {
    scroll-margin-top: 0;
  }

  .site-header {
    position: relative;
  }

  .hero-section {
    width: 100%;
  }

  .header-inner {
    width: 100%;
    min-height: 0;
    padding: 22px 20px;
    flex-direction: column;
    gap: 20px;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-logo,
  .brand-fallback-mark {
    width: 48px;
    height: 48px;
  }

  .brand-logo {
    width: min(280px, 78vw);
    height: auto;
    max-height: 58px;
  }

  .brand-title {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .brand-subtitle {
    font-size: clamp(0.74rem, 3.2vw, 0.92rem);
    letter-spacing: 1.5px;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    font-size: 15px;
  }

  .site-nav a::after {
    bottom: -8px;
  }

  .hero-content {
    padding: 52px 24px 44px;
    text-align: center;
    align-items: center;
  }

  .hero-content h1 {
    max-width: 620px;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.8px;
  }

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

  .primary-button {
    width: 100%;
    max-width: 320px;
  }

  .hero-indicators {
    justify-content: center;
  }

  .hero-image-wrap {
    height: 280px;
    min-height: 280px;
  }

  .services-section {
    padding: 56px 24px;
  }

  .section-heading h2 {
    margin-bottom: 26px;
  }

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

  .service-card,
  .service-card:nth-child(3n),
  .service-card:nth-child(n + 4) {
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--color-border);
    margin-top: 0;
    padding: 34px 20px;
  }

  .service-icon,
  .service-icon-image,
  .service-placeholder {
    width: 124px;
    height: 124px;
  }

  .service-card:last-child {
    border-bottom: none;
  }

  .contact-section {
    padding: 48px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-item,
  .contact-item:first-child,
  .contact-item:nth-child(2),
  .contact-item:nth-child(3),
  .contact-item:last-child {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 22px 0;
    justify-content: flex-start;
  }

  .contact-item:last-child {
    border-bottom: none;
  }

  .coverage {
    flex-direction: column;
    margin-top: 30px;
    font-size: 17px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    gap: 18px;
  }

  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .services-section,
  .contact-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}
