/* Pulsacion fisica 3D de botones (fase 1: solo botones principales de la Home).
   - Reposo: relieve con sombras exteriores y reflejos; colores/medidas originales intactos.
   - Hover: mas volumen e iluminacion.
   - Active: el boton se hunde en su superficie (sombra exterior fuera, sombra inset dentro, sin reflejos).
   Se usa `translate` (independiente de `transform`) para no chocar con animaciones ni tilt.
   Ambito: main#main-content.elementor-398 (la Home); el resto de paginas no cambia. */

/* ---------- Botones Elementor (azul marino, sombra dura original 5px 4px #2E6BB6) ---------- */
main#main-content.elementor-398 .elementor-widget-button a.elementor-button {
  --press-edge: #2E6BB6;
  translate: 0 0;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 16%) 0%, rgb(255 255 255 / 0%) 55%);
  box-shadow:
    5px 4px 0 0 var(--press-edge),
    7px 12px 16px -6px rgb(13 13 63 / 45%),
    inset 0 1px 0 rgb(255 255 255 / 35%),
    inset 0 -3px 0 rgb(0 0 0 / 22%);
  touch-action: manipulation;
  transition:
    color .3s, background-color .3s, fill .3s, border-color .3s,
    translate 140ms cubic-bezier(.2, .8, .2, 1), box-shadow 140ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Boton ElementsKit "Contacto" (cian, sombra suave original) ---------- */
main#main-content.elementor-398 .elementor-widget-elementskit-button a.elementskit-btn {
  translate: 0 0;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 22%) 0%, rgb(255 255 255 / 0%) 55%);
  box-shadow:
    0 7px 15px 0 rgb(37 117 252 / 30%),
    0 4px 0 0 rgb(16 80 140 / 45%),
    inset 0 1px 0 rgb(255 255 255 / 50%),
    inset 0 -3px 0 rgb(0 0 0 / 16%);
  touch-action: manipulation;
  transition:
    color .3s, background-color .3s, fill .3s,
    translate 140ms cubic-bezier(.2, .8, .2, 1), box-shadow 140ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Slider: boton relleno ---------- */
main#main-content.elementor-398 a.slider-caption.btn-theme {
  translate: 0 0;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 20%) 0%, rgb(255 255 255 / 0%) 55%);
  box-shadow:
    0 4px 0 0 rgb(0 0 0 / 30%),
    0 10px 18px -6px rgb(0 0 0 / 45%),
    inset 0 1px 0 rgb(255 255 255 / 45%),
    inset 0 -3px 0 rgb(0 0 0 / 20%);
  touch-action: manipulation;
  transition:
    color .35s, background-color .35s, border-color .35s,
    translate 140ms cubic-bezier(.2, .8, .2, 1), box-shadow 140ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Slider: boton transparente con borde blanco (fondo oscuro -> luces claras) ---------- */
main#main-content.elementor-398 a.slider-caption.btn-border-white {
  translate: 0 0;
  box-shadow:
    0 4px 0 0 rgb(255 255 255 / 20%),
    0 10px 18px -8px rgb(255 255 255 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 40%),
    inset 0 -2px 0 rgb(255 255 255 / 12%);
  touch-action: manipulation;
  transition:
    color .35s, background-color .35s, border-color .35s,
    translate 140ms cubic-bezier(.2, .8, .2, 1), box-shadow 140ms cubic-bezier(.2, .8, .2, 1);
}

/* ================= HOVER (solo con raton) ================= */
@media (hover: hover) and (pointer: fine) {
  main#main-content.elementor-398 .elementor-widget-button a.elementor-button:hover {
    translate: 0 -1px;
    background-image: linear-gradient(180deg, rgb(255 255 255 / 24%) 0%, rgb(255 255 255 / 0%) 60%);
    box-shadow:
      6px 5px 0 0 var(--press-edge),
      9px 18px 22px -6px rgb(13 13 63 / 50%),
      inset 0 1px 0 rgb(255 255 255 / 50%),
      inset 0 -3px 0 rgb(0 0 0 / 26%);
  }
  main#main-content.elementor-398 .elementor-widget-elementskit-button a.elementskit-btn:hover {
    translate: 0 -1px;
    background-image: linear-gradient(180deg, rgb(255 255 255 / 30%) 0%, rgb(255 255 255 / 0%) 60%);
    box-shadow:
      0 12px 22px 0 rgb(37 117 252 / 38%),
      0 6px 0 0 rgb(16 80 140 / 45%),
      inset 0 1px 0 rgb(255 255 255 / 65%),
      inset 0 -3px 0 rgb(0 0 0 / 20%);
  }
  main#main-content.elementor-398 a.slider-caption.btn-theme:hover {
    translate: 0 -1px;
    background-image: linear-gradient(180deg, rgb(255 255 255 / 28%) 0%, rgb(255 255 255 / 0%) 60%);
    box-shadow:
      0 6px 0 0 rgb(0 0 0 / 30%),
      0 16px 24px -6px rgb(0 0 0 / 50%),
      inset 0 1px 0 rgb(255 255 255 / 60%),
      inset 0 -3px 0 rgb(0 0 0 / 24%);
  }
  main#main-content.elementor-398 a.slider-caption.btn-border-white:hover {
    translate: 0 -1px;
    box-shadow:
      0 6px 0 0 rgb(255 255 255 / 30%),
      0 14px 24px -8px rgb(255 255 255 / 32%),
      inset 0 1px 0 rgb(255 255 255 / 60%),
      inset 0 -2px 0 rgb(0 0 0 / 14%);
  }
}

/* ================= PULSADO (raton y tactil) ================= */
main#main-content.elementor-398 .elementor-widget-button a.elementor-button:active {
  translate: 0 2px;
  background-image: linear-gradient(180deg, rgb(0 0 0 / 14%), rgb(0 0 0 / 14%));
  box-shadow:
    2px 1px 0 0 var(--press-edge),
    inset 0 4px 10px rgb(0 0 0 / 55%),
    inset 0 0 0 1px rgb(0 0 0 / 25%);
  transition-duration: .3s, .3s, .3s, .3s, 50ms, 50ms;
}
main#main-content.elementor-398 .elementor-widget-elementskit-button a.elementskit-btn:active {
  translate: 0 2px;
  background-image: linear-gradient(180deg, rgb(0 0 0 / 14%), rgb(0 0 0 / 14%));
  box-shadow:
    0 0 2px 0 rgb(37 117 252 / 30%),
    inset 0 4px 10px rgb(0 20 60 / 55%),
    inset 0 0 0 1px rgb(0 40 90 / 30%);
  transition-duration: .3s, .3s, .3s, 50ms, 50ms;
}
main#main-content.elementor-398 a.slider-caption.btn-theme:active {
  translate: 0 2px;
  background-image: linear-gradient(180deg, rgb(0 0 0 / 14%), rgb(0 0 0 / 14%));
  box-shadow:
    0 0 0 0 rgb(0 0 0 / 0%),
    inset 0 4px 10px rgb(0 0 0 / 55%),
    inset 0 0 0 1px rgb(0 0 0 / 25%);
  transition-duration: .35s, .35s, .35s, 50ms, 50ms;
}
main#main-content.elementor-398 a.slider-caption.btn-border-white:active {
  translate: 0 2px;
  box-shadow:
    0 0 0 0 rgb(255 255 255 / 0%),
    inset 0 4px 10px rgb(0 0 0 / 50%),
    inset 0 -1px 0 rgb(255 255 255 / 18%);
  transition-duration: .35s, .35s, .35s, 50ms, 50ms;
}

/* ================= Movimiento reducido: sin desplazamiento ni transiciones de movimiento ================= */
@media (prefers-reduced-motion: reduce) {
  main#main-content.elementor-398 :is(.elementor-widget-button a.elementor-button, .elementor-widget-elementskit-button a.elementskit-btn, a.slider-caption.btn-theme, a.slider-caption.btn-border-white),
  main#main-content.elementor-398 :is(.elementor-widget-button a.elementor-button, .elementor-widget-elementskit-button a.elementskit-btn, a.slider-caption.btn-theme, a.slider-caption.btn-border-white):is(:hover, :active) {
    translate: 0 0;
    transition-property: color, background-color, fill, border-color;
    transition-duration: .3s;
  }
}

/* =====================================================================
   FASE 2: resto de paginas. Mismo efecto aprobado en la Home, parametrizado con variables.
   La Home conserva sus reglas propias de arriba (llevan id y ganan en especificidad).
   --pb / --pbh / --pba : sombra ORIGINAL del boton en reposo / hover / pulsado (se conserva).
   ===================================================================== */

/* ---------- Botones rellenos (Elementor, ElementsKit, slider, formulario, Cocoon, ShockFast, Orejuela) ---------- */
html body .elementor-element.elementor-widget-button a.elementor-button.elementor-button-link,
html body .elementor-element.elementor-widget-elementskit-button a.elementskit-btn.whitespace--normal,
a.slider-caption.btn-theme,
a.cocoon-button:not(.cocoon-outline),
a.sf-button,
a.or-button,
input.wpcf7-submit {
  --pb: 0 0 0 0 transparent;
  --pbh: var(--pb);
  --pba: var(--pb);
  --pe: rgb(0 0 0 / 30%);
  --ps: rgb(0 0 0 / 45%);
  --pg: linear-gradient(180deg, rgb(255 255 255 / 20%) 0%, rgb(255 255 255 / 0%) 55%);
  --pgh: linear-gradient(180deg, rgb(255 255 255 / 28%) 0%, rgb(255 255 255 / 0%) 60%);
  --pga: linear-gradient(180deg, rgb(0 0 0 / 14%), rgb(0 0 0 / 14%));
  translate: 0 0;
  background-image: var(--pg);
  box-shadow:
    var(--pb),
    0 4px 0 0 var(--pe),
    0 10px 18px -6px var(--ps),
    inset 0 1px 0 rgb(255 255 255 / 45%),
    inset 0 -3px 0 rgb(0 0 0 / 20%);
  touch-action: manipulation;
  transition:
    color .3s, background-color .3s, border-color .3s, fill .3s,
    translate 140ms cubic-bezier(.2, .8, .2, 1), box-shadow 140ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Botones transparentes con borde (fondo oscuro -> luces claras) ---------- */
html body a.btn-border-white,
html body a.btn-cta,
html body a.cocoon-button.cocoon-outline {
  translate: 0 0;
  box-shadow:
    0 4px 0 0 rgb(255 255 255 / 20%),
    0 10px 18px -8px rgb(255 255 255 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 40%),
    inset 0 -2px 0 rgb(255 255 255 / 12%);
  touch-action: manipulation;
  transition:
    color .35s, background-color .35s, border-color .35s,
    translate 140ms cubic-bezier(.2, .8, .2, 1), box-shadow 140ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Sombras originales que se conservan ---------- */
html body .elementor-element.elementor-element-f34c0f8 a.elementor-button.elementor-button-link { /* Curiosity */
  --pb: inset 9px 0 10px 0 rgb(0 0 0 / 50%);
}
html body .elementor-element.elementor-element-583d244 a.elementor-button.elementor-button-link { /* Myval */
  --pb: 18px 10px 10px 0 rgb(0 0 0 / 50%);
  --pbh: 20px 12px 12px 0 rgb(0 0 0 / 50%);
  --pba: 6px 4px 8px 0 rgb(0 0 0 / 50%);
}
/* ElementsKit (IMDS): sombra suave original; sin sombra de apoyo extra, como el boton aprobado de la Home */
html body .elementor-element.elementor-widget-elementskit-button a.elementskit-btn.whitespace--normal {
  --ps: transparent;
  --pb: 0 7px 15px 0 rgb(0 0 0 / 20%);
  --pbh: 0 12px 22px 0 rgb(0 0 0 / 28%);
  --pba: 0 0 2px 0 rgb(0 0 0 / 20%);
}
html body .elementor-element.elementor-element-5a7882f5 a.elementskit-btn.whitespace--normal {
  --pe: rgb(16 80 140 / 45%);
  --pb: 0 7px 15px 0 rgb(37 117 252 / 30%);
  --pbh: 0 12px 22px 0 rgb(37 117 252 / 38%);
  --pba: 0 0 2px 0 rgb(37 117 252 / 30%);
}
html body .elementor-element.elementor-element-fc86862 a.elementskit-btn.whitespace--normal {
  --pb: 0 7px 15px 0 rgb(39 42 48 / 30%);
  --pbh: 0 12px 22px 0 rgb(39 42 48 / 38%);
  --pba: 0 0 2px 0 rgb(39 42 48 / 30%);
}
/* ---------- Hover (solo con raton) ---------- */
@media (hover: hover) and (pointer: fine) {
  html body .elementor-element.elementor-widget-button a.elementor-button.elementor-button-link:hover,
  html body .elementor-element.elementor-widget-elementskit-button a.elementskit-btn.whitespace--normal:hover,
  a.slider-caption.btn-theme:hover,
  a.cocoon-button:not(.cocoon-outline):hover,
  a.sf-button:hover,
  a.or-button:hover,
  input.wpcf7-submit:hover {
    translate: 0 -1px;
    background-image: var(--pgh);
    box-shadow:
      var(--pbh),
      0 6px 0 0 var(--pe),
      0 16px 24px -6px var(--ps),
      inset 0 1px 0 rgb(255 255 255 / 60%),
      inset 0 -3px 0 rgb(0 0 0 / 24%);
  }
  a.sf-button:hover { translate: 0 0; } /* ya tiene su propio levantamiento (transform) original */
  a.btn-border-white:hover,
  a.btn-cta:hover,
  a.cocoon-button.cocoon-outline:hover {
    translate: 0 -1px;
    box-shadow:
      0 6px 0 0 rgb(255 255 255 / 30%),
      0 14px 24px -8px rgb(255 255 255 / 32%),
      inset 0 1px 0 rgb(255 255 255 / 60%),
      inset 0 -2px 0 rgb(0 0 0 / 14%);
  }
}

/* ---------- Pulsado (raton y tactil) ---------- */
html body .elementor-element.elementor-widget-button a.elementor-button.elementor-button-link:active,
html body .elementor-element.elementor-widget-elementskit-button a.elementskit-btn.whitespace--normal:active,
a.slider-caption.btn-theme:active,
a.cocoon-button:not(.cocoon-outline):active,
a.sf-button:active,
a.or-button:active,
input.wpcf7-submit:active {
  translate: 0 2px;
  background-image: var(--pga);
  box-shadow:
    var(--pba),
    inset 0 4px 10px rgb(0 0 0 / 55%),
    inset 0 0 0 1px rgb(0 0 0 / 25%);
  transition:
    color .3s, background-color .3s, border-color .3s, fill .3s,
    translate 50ms cubic-bezier(.2, .8, .2, 1), box-shadow 50ms cubic-bezier(.2, .8, .2, 1);
}
a.btn-border-white:active,
a.btn-cta:active,
a.cocoon-button.cocoon-outline:active {
  translate: 0 2px;
  box-shadow:
    0 0 0 0 rgb(255 255 255 / 0%),
    inset 0 4px 10px rgb(0 0 0 / 50%),
    inset 0 -1px 0 rgb(255 255 255 / 18%);
  transition:
    color .35s, background-color .35s, border-color .35s,
    translate 50ms cubic-bezier(.2, .8, .2, 1), box-shadow 50ms cubic-bezier(.2, .8, .2, 1);
}

/* ShockFast conserva su transicion original de transform (levantamiento al hover) */
a.sf-button {
  transition:
    color .3s, background-color .3s, border-color .3s, transform .3s,
    translate 140ms cubic-bezier(.2, .8, .2, 1), box-shadow 140ms cubic-bezier(.2, .8, .2, 1);
}
a.sf-button:active {
  transition:
    color .3s, background-color .3s, border-color .3s, transform .3s,
    translate 50ms cubic-bezier(.2, .8, .2, 1), box-shadow 50ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html body .elementor-element.elementor-widget-button a.elementor-button.elementor-button-link,
  html body .elementor-element.elementor-widget-elementskit-button a.elementskit-btn.whitespace--normal,
  a.slider-caption.btn-theme, a.cocoon-button, a.sf-button, a.or-button, a.btn-cta, a.btn-border-white, input.wpcf7-submit,
  html body .elementor-element.elementor-widget-button a.elementor-button.elementor-button-link:is(:hover, :active),
  html body .elementor-element.elementor-widget-elementskit-button a.elementskit-btn.whitespace--normal:is(:hover, :active),
  a.slider-caption.btn-theme:is(:hover, :active), a.cocoon-button:is(:hover, :active), a.sf-button:is(:hover, :active),
  a.or-button:is(:hover, :active), a.btn-cta:is(:hover, :active), a.btn-border-white:is(:hover, :active), input.wpcf7-submit:is(:hover, :active) {
    translate: 0 0;
    transition-property: color, background-color, fill, border-color;
    transition-duration: .3s;
  }
}

/* Odyssey "See Picasso": enlace con aspecto de texto (sin fondo, sin borde, padding izquierdo 0).
   El mismo efecto se dibuja en un pseudo-elemento que sobresale 14px a la izquierda, para que el relieve
   no quede pegado al texto y sin alterar el tamano ni la posicion del boton. El movimiento vertical es el de los demas. */
html body .elementor-element.elementor-element-258536a8.elementor-widget-button a.elementor-button.elementor-button-link {
  box-shadow: none;
  background-image: none;
  isolation: isolate;
}
html body .elementor-element.elementor-element-258536a8.elementor-widget-button a.elementor-button.elementor-button-link::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -14px;
  z-index: -1;
  border-radius: 8px;
  pointer-events: none;
  box-shadow:
    0 4px 0 0 rgb(0 0 0 / 30%),
    0 10px 18px -6px rgb(0 0 0 / 45%),
    inset 0 1px 0 rgb(255 255 255 / 45%),
    inset 0 -3px 0 rgb(0 0 0 / 20%);
  transition: box-shadow 140ms cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) and (pointer: fine) {
  html body .elementor-element.elementor-element-258536a8.elementor-widget-button a.elementor-button.elementor-button-link:hover {
    box-shadow: none;
    background-image: none;
  }
  html body .elementor-element.elementor-element-258536a8.elementor-widget-button a.elementor-button.elementor-button-link:hover::before {
    box-shadow:
      0 6px 0 0 rgb(0 0 0 / 30%),
      0 16px 24px -6px rgb(0 0 0 / 50%),
      inset 0 1px 0 rgb(255 255 255 / 60%),
      inset 0 -3px 0 rgb(0 0 0 / 24%);
  }
}
html body .elementor-element.elementor-element-258536a8.elementor-widget-button a.elementor-button.elementor-button-link:active {
  box-shadow: none;
  background-image: none;
}
html body .elementor-element.elementor-element-258536a8.elementor-widget-button a.elementor-button.elementor-button-link:active::before {
  box-shadow:
    0 0 0 0 rgb(0 0 0 / 0%),
    inset 0 4px 10px rgb(0 0 0 / 55%),
    inset 0 0 0 1px rgb(0 0 0 / 25%);
  transition-duration: 50ms;
}
@media (prefers-reduced-motion: reduce) {
  html body .elementor-element.elementor-element-258536a8.elementor-widget-button a.elementor-button.elementor-button-link::before { transition: none; }
}
