/* ==========================================================================
   components.css - Piezas reutilizables de la interfaz
   GlaciarCMS - publish/css/components.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Enlaces y botones de la barra de navegacion
   -------------------------------------------------------------------------- */

.nav-link {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}

.nav-link:hover { color: var(--c-ice); }

.nav-btn {
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .2s;
}

.nav-btn:hover { filter: brightness(1.12); }

.nav-btn--primary { background: var(--c-primary); }
.nav-btn--urgent  { background: var(--c-urgent); }

/* Iconos redondos de redes sociales */
.social-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s, color .2s, border-color .2s;
}

.social-icon svg { width: 17px; height: 17px; }

.social-icon:hover {
  background: #fff;
  color: var(--c-navy);
}

.footer .social-icon { border-color: rgba(245, 241, 232, .3); }

.footer .social-icon:hover {
  background: var(--c-ice);
  color: var(--c-navy);
  border-color: var(--c-ice);
}

/* --------------------------------------------------------------------------
   Cinta de especialidades
   -------------------------------------------------------------------------- */

.marquee__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-size: 18px;
}

.marquee__item em {
  color: var(--c-accent);
  font-style: normal;
  margin-left: 16px;
}

/* --------------------------------------------------------------------------
   Slider
   -------------------------------------------------------------------------- */

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 13, 18, .9) 0%, rgba(7, 13, 18, .64) 45%, rgba(7, 13, 18, .32) 100%);
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.hero__subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px var(--c-primary);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--c-navy);
  border-color: #fff;
}

.btn svg { width: 15px; height: 15px; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.hero__arrow svg { width: 20px; height: 20px; }

.hero__arrow:hover {
  background: #fff;
  color: var(--c-navy);
}

.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

.hero__dots {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: rgba(255, 255, 255, .45);
  transition: width .3s ease, background .3s ease;
}

.hero__dot.is-active {
  width: 30px;
  background: #fff;
}

/* --------------------------------------------------------------------------
   Lista de garantias (sobre nosotros)
   -------------------------------------------------------------------------- */

.checklist {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* --------------------------------------------------------------------------
   Tarjetas de servicio
   -------------------------------------------------------------------------- */

.service-card {
  background: var(--c-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: 0 1px 3px rgba(15, 39, 71, .05);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}

.service-card:hover {
  box-shadow: 0 20px 40px -16px rgba(15, 39, 71, .25);
  transform: translateY(-3px);
}

.service-card__head { padding: 22px 24px; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
}

.service-card__body { padding: 24px 28px 20px; }

.service-card__text {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.service-card__cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.service-card__cta svg { width: 13px; height: 13px; }

.service-card__gallery {
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: #D8D4CA;
  margin-top: auto;
  overflow: hidden;
}

.service-card__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Trabajos
   -------------------------------------------------------------------------- */

.works__cta {
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-navy);
  white-space: nowrap;
  text-decoration: none;
}

.work-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Etiqueta de fecha, sobre la foto. Solo aparece en los trabajos
   que tienen fecha guardada en data.json. */
.work-card__date {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.work-card__title {
  font-weight: 500;
  font-size: 14px;
}

.work-card__location {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
  white-space: nowrap;
}

.works__arrow {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  z-index: 6;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(15, 39, 71, .15);
  background: #fff;
  color: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px -6px rgba(15, 39, 71, .3);
  transition: background .2s, color .2s;
}

.works__arrow svg { width: 18px; height: 18px; }

.works__arrow:hover {
  background: var(--c-navy);
  color: #fff;
}

.works__arrow--prev { left: 8px; }
.works__arrow--next { right: 8px; }

/* --------------------------------------------------------------------------
   Bloques de contacto
   -------------------------------------------------------------------------- */

.contact-item {
  background: var(--c-navy);
  padding: 32px 20px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}

a.contact-item:hover { background: rgba(245, 241, 232, .05); }

.contact-item__label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, .6);
  margin-bottom: 12px;
}

.contact-item__value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-accent);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Zonas de trabajo
   -------------------------------------------------------------------------- */

.areas__title {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, .5);
  margin-bottom: 14px;
}

.areas__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.areas__item {
  font-size: 12.5px;
  color: rgba(245, 241, 232, .75);
  padding: 6px 14px;
  border: 1px solid rgba(245, 241, 232, .2);
  border-radius: 100px;
}

.areas__note {
  font-size: 13px;
  color: rgba(245, 241, 232, .55);
  font-style: italic;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Enlaces del pie
   -------------------------------------------------------------------------- */

.footer__list a,
.footer__legal a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.footer__list a:hover,
.footer__legal a:hover { color: var(--c-ice); }

/* --------------------------------------------------------------------------
   Banner de cookies
   -------------------------------------------------------------------------- */

.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--c-navy);
  color: #fff;
  box-shadow: 0 -4px 24px -8px rgba(0, 0, 0, .45);
}

.cookies[hidden] { display: none; }

.cookies__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245, 241, 232, .85);
  max-width: 640px;
}

.cookies__text a {
  color: var(--c-ice);
  text-decoration: underline;
}

.cookies__buttons {
  display: flex;
  gap: 10px;
  flex: none;
}

.cookies__btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}

.cookies__btn--reject {
  border: 1px solid rgba(245, 241, 232, .4);
  background: transparent;
  color: #fff;
}

.cookies__btn--accept {
  border: none;
  background: var(--c-ice);
  color: var(--c-navy);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Boton flotante de WhatsApp
   -------------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: var(--c-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px -4px rgba(37, 211, 102, .5);
  z-index: 100;
  transition: transform .2s;
}

.whatsapp-float[hidden] { display: none; }

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

.whatsapp-float:hover { transform: scale(1.08); }
