/*
 * contact-hero.css — the hero of /contact/ (MKT-WP-REPLICA-CONTACT-HERO), canvas Contact.dc.html
 * l.336-389 (markup) and l.100-158, l.213-232 (CSS). Loaded only on pages whose
 * `_cexum_sections_key` is `contact` (inc/page-sections.php).
 *
 * WHAT LIVES HERE: what Elementor has no control for. The glow of the band (the canvas' radial
 * light and its 56 px grid of hairlines), the glass of the form card (gradient fill, 18 px blur,
 * deep shadow and inner top light), the three blurred colour ribbons behind it, the white circles
 * of the contact icons, the round gradient core of the rotating seal and the seal's place (half
 * over the band below). Text, type, colours of the text, the pill, the badge, the paddings, the
 * radii, the borders, the grid and the seal button's own colours are settings in wp-admin.
 *
 * MOTION: the ribbons drift out and back once and the seal's ring of text turns once (one pass of
 * under 5 s, see the motion block) only after contact-hero.js sees the hero on screen
 * (`cx-ct-hero--on`), under html.cx-motion and prefers-reduced-motion: no-preference. With no JS,
 * reduced motion or the module off, the ribbons stand still and the seal is a plain round button
 * with its arrow (the ring of text is drawn by the script).
 *
 * COLOURS: tokens only, never a hex.
 */

/* ---- the band [canvas .v3 .top l.100] ---- */
.cx-ct-hero {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}
.cx-ct-hero > .cx-ct-top {
  background-image:
    radial-gradient(120% 80% at 85% 10%, hsl(var(--cx-primary-hsl) / 0.22), transparent 60%),
    linear-gradient(hsl(var(--cx-on-dark-muted) / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--cx-on-dark-muted) / 0.035) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

/* ---- the title breaks in balanced lines [canvas .v3 h1 l.95, text-wrap: balance] ---- */
/* Elementor has no control for it; nothing the widget sets is touched (0,1,0). */
:where(.cx-ct-tl) .elementor-heading-title {
  text-wrap: balance;
}

/* ---- the contact list: icon in a white circle [canvas .qc l.108-112] ---- */
/* Its colour is the widget's Icon colour (azul noche); only the round plate is drawn here. */
:where(.cx-ct-qc) .elementor-icon-list-icon {
  display: inline-flex;
  inline-size: 34px;
  block-size: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: hsl(var(--cx-on-dark));
}
:where(.cx-ct-qc) .elementor-icon-list-item {
  align-items: center;
}
:where(.cx-ct-qc) .elementor-icon-list-items {
  row-gap: 14px;
}

/* ---- the ribbons behind the glass [canvas .rib l.116-120] ---- */
.cx-ct-glass-wrap {
  position: relative;
}
.cx-ct-glass-wrap > .cx-ct-rib {
  position: absolute;
  z-index: 0;
  width: auto;
  min-height: 0;
  padding: 0;
  border-radius: 40px;
  filter: blur(28px);
  opacity: 0.85;
  pointer-events: none;
}
.cx-ct-glass-wrap > .cx-ct-rib--1 {
  inline-size: 70%;
  block-size: 90px;
  inset-inline-start: -14%;
  inset-block-start: 16%;
  transform: rotate(-28deg);
  background-image: linear-gradient(90deg, var(--cx-azul-corporativo), var(--cx-azul-suave));
}
.cx-ct-glass-wrap > .cx-ct-rib--2 {
  inline-size: 60%;
  block-size: 80px;
  inset-inline-end: -12%;
  inset-block-end: 12%;
  transform: rotate(-28deg);
  background-image: linear-gradient(90deg, var(--cx-turquesa), var(--cx-azul-corporativo));
}
.cx-ct-glass-wrap > .cx-ct-rib--3 {
  inline-size: 40%;
  block-size: 60px;
  inset-inline-end: 4%;
  inset-block-start: -4%;
  transform: rotate(18deg);
  background-color: var(--cx-turquesa);
  opacity: 0.5;
}

/* ---- the glass card [canvas .glass l.121] ---- */
.cx-ct-glass-wrap > .cx-ct-glass {
  position: relative;
  z-index: 1;
  background-image: linear-gradient(160deg, hsl(var(--cx-primary-hsl) / 0.38), color-mix(in srgb, var(--cx-azul-profundo) 55%, transparent));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px hsl(var(--cx-shadow-deep) / 0.5), inset 0 1px 0 color-mix(in srgb, var(--cx-blanco) 18%, transparent);
}

/* ---- the rotating seal [canvas .seal l.152-158] ---- */
/* Half over the band below: centred on the band's bottom edge, above the next band. */
.cx-ct-hero > .cx-ct-seal {
  position: absolute;
  inset-block-end: -60px;
  inset-inline-start: 50%;
  z-index: 3;
  width: auto;
  margin: 0;
  transform: translateX(-50%);
}
:where(.cx-ct-seal) .elementor-button {
  position: relative;
  overflow: visible;
}
/* The round core behind the arrow (canvas .core, 44 px, azul corporativo to turquesa). The turquoise
 * stop is the deep one: the arrow is a glyph that needs 3:1 (WCAG 1.4.11) and white on the bright
 * stop is 2.02:1, 1.89:1 for this arrow's colour (MKT-WP-REPLICA-G1-GRADIENT-GLYPH-CONTRAST). */
:where(.cx-ct-seal) .elementor-button-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--cx-azul-corporativo), var(--cx-turquesa-deep));
  transition: transform 0.3s ease;
}
:where(.cx-ct-seal) .elementor-button:is(:hover, :focus-visible) .elementor-button-icon {
  transform: translateY(3px);
}
/* The ring of text (contact-hero.js draws it from the widget's data-cx-ring attribute). */
.cx-ct-ring {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  overflow: visible;
  pointer-events: none;
}
.cx-ct-ring text {
  font-family: var(--cx-font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  fill: hsl(var(--cx-on-dark-muted));
}
@media (max-width: 767px) {
  .cx-ct-hero > .cx-ct-seal {
    inset-block-end: -52px;
  }
}

/* ---- motion (contact-hero.js) [canvas float l.120, rot l.158] ----
 * ONE pass from the moment the hero is on screen, then rest (owner 2026-11-09, «Quitar y parar
 * solas», MKT-WP-MOTION-NO-AUTOPLAY-NO-PAUSE-BUTTONS; the canvas loops both): each ribbon drifts out
 * and back once (2 x 2.2 s, staggered 0.2 s, done at 4.8 s) and rests where it stands without JS; the
 * ring of text turns 108 deg at the canvas' pace (16 s a turn) in 4.8 s, slowing to a stop. */
@media (prefers-reduced-motion: no-preference) {
  :where(html.cx-motion) .cx-ct-hero--on .cx-ct-rib {
    animation: cx-ct-float 2.2s ease-in-out 2 alternate;
  }
  :where(html.cx-motion) .cx-ct-hero--on .cx-ct-rib--2 {
    animation-delay: 0.2s;
  }
  :where(html.cx-motion) .cx-ct-hero--on .cx-ct-rib--3 {
    animation-delay: 0.4s;
  }
  :where(html.cx-motion) .cx-ct-hero--on .cx-ct-ring {
    animation: cx-ct-rot 4.8s ease-out 1 forwards;
  }
  @keyframes cx-ct-float {
    from {
      translate: 0 0;
    }
    to {
      translate: 24px -18px;
    }
  }
  @keyframes cx-ct-rot {
    to {
      transform: rotate(108deg);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(.cx-ct-seal) .elementor-button-icon {
    transition: none;
  }
  :where(.cx-ct-seal) .elementor-button:is(:hover, :focus-visible) .elementor-button-icon {
    transform: none;
  }
}
