.home-page {
  font-family: var(--font-primary);
  color: var(--obrk-text-primary);
  background: var(--obrk-white);
}

.home-page .hero {
  padding: 0;
}

.home-page .mobile-menu:not(.active) .mobile-menu-content {
  display: none;
}

.home-page .mobile-menu.active .mobile-menu-content {
  display: flex;
}

.home-page .header-actions > .btn {
  display: none;
}

.home-page strong {
  font-weight: var(--font-weight-bold);
}

.home-page .section-kicker {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--obrk-green-text);
  font-family: var(--font-family-base);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-page .features-section,
.home-page .products-section,
.home-page .services-section,
.home-page .stats-section,
.home-page .location-section,
.home-page .home-projects-section {
  content-visibility: visible;
  contain: none;
}

.hero-pause {
  min-width: 76px;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--obrk-white);
  font-family: var(--font-family-base);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.hero-pause:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.65);
}

.hero-pause:focus-visible {
  outline: 2px solid var(--obrk-green-secondary);
  outline-offset: 3px;
}

.feature-card,
.product-card,
.service-card {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.feature-card::after,
.product-card::after {
  content: 'Ver más →';
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--obrk-green-text);
  font-family: var(--font-family-base);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-card:focus-visible,
.product-card:focus-visible,
.service-card:focus-visible,
.home-project-card:focus-visible {
  outline: 3px solid var(--obrk-green-primary);
  outline-offset: 4px;
}

.services-section .section-header h2 {
  color: var(--obrk-white);
}

.services-section .section-header p {
  color: rgba(255, 255, 255, 0.76);
}

.services-section .service-card {
  color: var(--obrk-white);
}

.service-card--logistics .service-cta {
  opacity: 1;
  transform: none;
}

.home-projects-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(116, 170, 31, 0.1), transparent 28%),
    var(--obrk-white);
}

.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.home-project-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: var(--obrk-white);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 22px 50px rgba(17, 17, 17, 0.1);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.home-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(116, 170, 31, 0.38);
  box-shadow: 0 28px 58px rgba(116, 170, 31, 0.17);
}

.home-project-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #202020;
}

.home-project-card__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
  content: '';
  pointer-events: none;
}

.home-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.home-project-card:hover .home-project-card__media img {
  transform: scale(1.035);
}

.home-project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.72rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.home-project-card__eyebrow {
  color: var(--obrk-green-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-project-card__body p {
  color: var(--obrk-text-secondary);
}

.home-project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--obrk-green-text);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-project-card__link .material-symbols-outlined {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.home-project-card:hover .home-project-card__link .material-symbols-outlined {
  transform: translateX(4px);
}

.home-projects-note {
  margin: 1rem auto 0;
  color: var(--obrk-text-secondary);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.home-projects-section .section-cta {
  margin-top: 1.5rem;
}

.stats-section {
  background:
    linear-gradient(180deg, rgba(116, 170, 31, 0.04), transparent),
    var(--obrk-bg-light);
}

.stat-number--local {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.location-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background:
    linear-gradient(135deg, #f5f6f3 0, #fff 62%),
    var(--obrk-white);
}

.location-content {
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: stretch;
}

.home-location-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background: #1c1c1c;
  box-shadow: 0 28px 58px rgba(17, 17, 17, 0.18);
}

.home-location-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.48));
  content: '';
  pointer-events: none;
}

.home-location-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-location-badge {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.76);
  color: var(--obrk-white);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.home-location-badge .material-symbols-outlined {
  color: var(--obrk-green-secondary);
  font-size: 1.1rem;
}

.location-info {
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(17, 17, 17, 0.08);
}

.location-info .section-kicker {
  margin-bottom: 0;
}

.location-intro {
  color: var(--obrk-text-secondary);
}

.location-details {
  font-family: var(--font-family-base);
  line-height: 1.55;
}

.location-details a {
  color: var(--obrk-green-text);
  font-weight: 700;
}

.home-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.home-guides-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.home-guide-link {
  font-family: var(--font-family-base);
}

.home-guide-title {
  font-family: var(--font-family-heading);
}

.footer {
  font-family: var(--font-family-base);
}

@media (max-width: 1024px) {
  .location-content {
    grid-template-columns: 1fr;
  }

  .home-location-visual {
    min-height: 430px;
  }
}

@media (min-width: 993px) and (max-width: 1500px) {
  .home-page .header-actions > .btn {
    display: none;
  }
}

@media (min-width: 1201px) and (max-width: 1500px) {
  .home-page .header-phone {
    width: 48px;
    min-width: 48px;
    padding-inline: 0;
    justify-content: center;
  }

  .home-page .header-phone .phone-text {
    display: none;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .home-page .header-nav {
    display: none;
  }

  .home-page .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .home-page .hero-controls {
    display: flex;
    bottom: 1rem;
  }

  .home-page .hero-dots {
    display: inline-flex;
  }

  .hero-pause {
    min-width: 68px;
    min-height: 34px;
    padding: 0.38rem 0.7rem;
    font-size: 0.66rem;
  }

  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .feature-card,
  .product-card {
    gap: 0.55rem;
    padding: 1rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.2rem;
    font-size: 1.45rem;
  }

  .product-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 0.25rem;
    font-size: 1.45rem;
  }

  .feature-card .obritek-product-name,
  .product-card .obritek-product-name {
    font-size: 1rem;
    line-height: 1.3;
  }

  .feature-card p,
  .product-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .feature-card::after,
  .product-card::after {
    font-size: 0.68rem;
  }

  .services-grid {
    display: grid;
    grid-auto-columns: minmax(78vw, 320px);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.25rem 0.15rem 1rem;
    scroll-padding-inline: 0.15rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  }

  .service-card {
    min-height: 285px;
    padding: 1.2rem;
    scroll-snap-align: start;
  }

  .service-card--logistics .service-cta {
    margin-top: auto;
  }

  .home-projects-grid {
    display: grid;
    grid-auto-columns: minmax(82vw, 340px);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.25rem 0.15rem 1rem;
    scroll-padding-inline: 0.15rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(116, 170, 31, 0.4) transparent;
  }

  .home-project-card {
    scroll-snap-align: start;
  }

  .home-location-visual {
    min-height: 360px;
  }

  .home-location-actions {
    flex-direction: column;
  }

  .home-location-actions .btn {
    width: 100%;
  }

  .home-guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .home-guide-link {
    min-height: 76px;
    padding: 0.9rem;
    border-radius: 16px;
  }

  .home-guide-title {
    font-size: 0.85rem;
  }

  .home-guide-arrow {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .home-page .hero-controls {
    display: flex;
  }

  .home-location-visual {
    min-height: 310px;
    border-radius: 18px;
  }

  .home-location-badge {
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
    max-width: calc(100% - 1.6rem);
    font-size: 0.72rem;
  }

  .location-info {
    border-radius: 18px;
  }

  .info-item {
    flex-direction: row;
    gap: 0.75rem;
  }

  .home-project-card__body {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .product-card,
  .service-card,
  .home-project-card,
  .home-project-card__media img,
  .hero-pause {
    transition: none;
  }
}
