:root {
  --primary: #c4122f;
  --primary-dark: #8f0d23;
  --ink: #17171b;
  --ocean: #2c6aa0;
  --fresh: #2f9b72;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
}

img {
  display: block;
}

.glass-nav {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(23, 23, 27, 0.56);
  backdrop-filter: blur(22px);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  width: 100%;
}

.whatsapp-button,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  border-radius: 8px;
  padding: 0.82rem 1.1rem;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-button,
.primary-cta {
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #0f8f56);
  box-shadow: 0 18px 35px rgba(22, 163, 74, 0.25);
}

.secondary-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
}

.whatsapp-button:hover,
.primary-cta:hover,
.secondary-cta:hover,
.route-cta:hover {
  transform: translateY(-2px);
}

.menu-line,
.menu-line::before,
.menu-line::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-line {
  position: relative;
}

.menu-line::before {
  position: absolute;
  transform: translateY(-7px);
}

.menu-line::after {
  position: absolute;
  transform: translateY(7px);
}

.is-open .menu-line {
  background: transparent;
}

.is-open .menu-line::before {
  transform: rotate(45deg);
}

.is-open .menu-line::after {
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu:not(.hidden) {
  display: flex;
}

.mobile-menu a:not(.whatsapp-button) {
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu a:not(.whatsapp-button):hover,
.mobile-menu a:not(.whatsapp-button):focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.header-hidden {
  transform: translateY(-120%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(196, 18, 47, 0.24), rgba(44, 106, 160, 0.14));
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 8px;
  padding: 0.35rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.section-kicker {
  color: var(--primary);
  background: #fff0f3;
}

.hero-panel,
.glass-light,
.service-card,
.contact-panel,
.modal-card {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
}

.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
}

.hero-caption {
  position: absolute;
  left: 2.15rem;
  right: 2.15rem;
  bottom: 6.9rem;
  border-radius: 8px;
  padding: 1rem;
  color: #fff;
  background: rgba(23, 23, 27, 0.64);
  backdrop-filter: blur(18px);
}

.hero-caption span,
.hero-caption strong {
  display: block;
}

.hero-caption span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-caption strong {
  margin-top: 0.22rem;
  font-size: 1.05rem;
}

.trust-row {
  display: grid;
  max-width: 42rem;
  gap: 0.75rem;
}

.trust-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.trust-pill strong,
.trust-pill span {
  display: block;
}

.trust-pill strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.trust-pill span {
  margin-top: 0.24rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 600;
}

.mini-stat {
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat strong {
  font-size: 1.45rem;
  line-height: 1;
}

.mini-stat span {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-pad {
  padding: 6rem 0;
}

.about-layout {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.about-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.16);
}

.about-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(23, 23, 27, 0.32));
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.value-grid {
  display: grid;
  gap: 0.9rem;
}

.value-card {
  border: 1px solid rgba(196, 18, 47, 0.13);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.value-card strong,
.value-card span {
  display: block;
}

.value-card strong {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.value-card span {
  margin-top: 0.4rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(196, 18, 47, 0.09), rgba(44, 106, 160, 0.08), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card > * {
  position: relative;
}

.service-card:hover {
  border-color: rgba(196, 18, 47, 0.26);
  box-shadow: 0 30px 65px rgba(196, 18, 47, 0.14);
  transform: translateY(-6px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.72rem;
  text-align: left;
}

.service-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.service-list li::before {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  content: "";
  background: linear-gradient(135deg, var(--primary), var(--ocean));
}

.text-primary,
.text-primary-DEFAULT {
  color: var(--primary);
}

.gallery-bg {
  background:
    linear-gradient(135deg, rgba(23, 23, 27, 0.96), rgba(143, 13, 35, 0.94)),
    url("img/fachada-principal.jpeg") center/cover;
}

.gallery-item {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.gallery-item:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.05);
}

.gallery-item::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel {
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.contact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 1.2rem;
}

.contact-heading span,
.contact-heading strong {
  display: block;
}

.contact-heading span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-heading strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.contact-panel dt {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-panel dd {
  margin-top: 0.2rem;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-panel a {
  color: var(--ocean);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.route-cta {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  border: 1px solid rgba(196, 18, 47, 0.22);
  border-radius: 8px;
  padding: 0.82rem 1.1rem;
  color: var(--primary) !important;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.07);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-note {
  margin-top: 1.3rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.55;
}

.map-panel {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.1);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

.modal-card {
  background: rgba(23, 23, 27, 0.86);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .section-pad {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: 92vh;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 230px;
  }

  .about-image,
  .about-image img {
    min-height: 300px;
  }

  .contact-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 640px) {
  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 0.82fr 1.18fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
