/*
Theme Name: Salmeron Theme
Theme URI: https://www.squembri.com
Author: Squembri | Juan M.
Author URI: https://www.squembri.com
Description: Theme para Grupo Salmeron — WordPress + WebC-Blocks
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Text Domain: salmeron-theme
*/
/* ═══════════════════════════════════════════
   1. VARIABLES (Design Tokens)
   ═══════════════════════════════════════════ */
:root {
  --theme-font: 'Raleway', sans-serif;
  --theme-font-two: 'TASA Orbiter', sans-serif;
  --rojo-corporativo: #eb5e50;
  --fabria: #47313b;
  --abitia: #213432;
  --elvia: #20314b;
  --negro: #212122;
  --blanco: #FCFCFC;
  --bg-pretitulo: #08080a;
  --bg-pretitulo-rgb: 8, 8, 10;
  --bg-header: #39393B;
  --bg-form: #121212;
  --theme-base: #eb5e50;
  --theme-base-rgb: 235, 94, 80;
  --theme-white: #FCFCFC;
  --theme-white-rgb: 252, 252, 252;
  --theme-black: #212122;
  --theme-black-rgb: 33, 33, 34;
  --theme-gray: #515154;
  --theme-gray-rgb: 81, 81, 84;
  --theme-bdr-color: #c4c4cc;
}
/* ═══════════════════════════════════════════
   2. RESET / BASE
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
main {
  max-width: 100vw;
  overflow: hidden;
}
body {
  font-family: var(--theme-font);
  color: rgba(var(--theme-white-rgb), 0.8);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
  background: var(--theme-black);
}
body.locked {
  overflow: hidden;
}
a {
  color: var(--theme-base);
  text-decoration: none;
  transition: all 300ms ease;
}
a:hover,
a:focus,
a:visited {
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--theme-font-two);
  color: var(--theme-white);
  margin: 0;
}
p {
  font-family: var(--theme-font);
  color: rgba(var(--theme-white-rgb), 0.6);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}
dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: 0;
}
img {
  max-width: 100%;
  height: auto;
}
/* ═══════════════════════════════════════════
   3. CLASES GLOBALES DE TEMA (thm-*)
   ═══════════════════════════════════════════ */
/* Botón principal */
.thm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 18px 32px;
  min-height: 60px;
  font-family: var(--theme-font-two);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--theme-white);
  background: linear-gradient(95.21deg, #EB5E50 3.84%, #B3473D 100.33%);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 300ms ease;
  position: relative;
}
.thm-btn__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thm-btn__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thm-btn span {
  transition-property: transform, translate, scale, rotate;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
  --tw-duration: 0.3s;
  --tw-ease: var(--ease-in-out);
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-in-out);
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 1;
}
.thm-btn:before {
  content: "";
  top: 50%;
  right: calc(var(--spacing) * 0);
  height: calc(var(--spacing) * 0);
  width: calc(var(--spacing) * 0);
  --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
  translate: var(--tw-translate-x) var(--tw-translate-y);
  opacity: 0;
  transition-property: all;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
  --tw-duration: 0.3s;
  --tw-ease: var(--ease-in-out);
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-in-out);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='white' viewBox='0 0 256 256'%3E%3Cpath fill='white' d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'%3E%3C/path%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  z-index: 3;
}
.thm-btn:hover:before {
  width: calc(var(--spacing) * 3);
  height: calc(var(--spacing) * 3);
  --tw-translate-x: calc(var(--spacing) * -4);
  translate: var(--tw-translate-x) var(--tw-translate-y);
  opacity: 1;
}
.thm-btn:hover span {
  --tw-translate-x: calc(var(--spacing) * -2);
  translate: var(--tw-translate-x) var(--tw-translate-y);
}
.thm-btn:hover span span {
  color: var(--theme-white);
}
.thm-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -219%;
  width: 350%;
  height: 200%;
  background: linear-gradient(90deg, rgba(var(--bg-pretitulo-rgb), 1) 30%, #ffffff, rgba(var(--bg-pretitulo-rgb), 1) 70%);
  transform: skewX(-18deg);
  transition: all 0.55s ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.thm-btn:hover::after {
  left: -6px;
  opacity: 1;
}
.thm-btn:hover,
.thm-btn:focus {
  color: var(--theme-white);
}
.thm-btn:hover span,
.thm-btn:focus span {
  color: var(--theme-white);
}
.thm-listado {
  padding: 0;
  margin: 0;
}
.thm-listado li {
  position: relative;
  padding-left: 25px;
}
.thm-listado li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml,%3Csvg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M12.8125 1L4.9375 8.8746L1 4.9375" stroke="%23EB5E50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E%0A');
  background-size: auto;
  background-position: center center;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 3px;
}
/* Botón con borde (stroke/outline) */
.thm-btn-stroke {
  background: transparent;
  border: 1px solid #7B7B80;
  color: var(--theme-white);
}
.thm-btn-stroke:hover,
.thm-btn-stroke:focus {
  color: var(--theme-white);
}
.thm-btn-stroke:hover span,
.thm-btn-stroke:focus span {
  color: var(--theme-white);
}
/* Título principal (H1) */
.thm-h1 {
  margin: 0;
  font-family: var(--theme-font-two);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 68px);
  line-height: 1.1;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  color: var(--blanco);
}
/* Título de sección (H2) */
.thm-titulo {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--theme-black);
  font-family: var(--theme-font-two);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.2;
  color: var(--theme-white);
  margin: 0;
}
/* Pretítulo / tagline */
.thm-pretitulo {
  display: inline-block;
  color: var(--theme-base);
  letter-spacing: 1px;
  margin: 0;
  font-family: var(--theme-font-two);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  text-transform: uppercase;
  padding: 6px 20px;
  background-color: #39393B;
  border-radius: 999px;
  backdrop-filter: blur(0px);
  backdrop-filter: blur(17.22830009px);
}
/* ═══════════════════════════════════════════
   4. BOTÓN EDITAR POST (Dev)
   ═══════════════════════════════════════════ */
.sq_edit_post {
  position: fixed;
  z-index: 9999999;
  border-radius: 100%;
  background: #333;
  border: 3px #e00034 solid;
  box-shadow: 0 1px 16px 0px rgba(0, 0, 0, 0.75);
  transition: 0.5s;
}
.sq_edit_post a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
}
.sq_edit_post a svg {
  width: 20px;
  height: 20px;
}
.sq_edit_post:hover {
  border-color: #000;
}
.sq_edit_post:hover a {
  color: #ebebeb;
}
.sq_edit_post.sq_wp_link {
  bottom: 90px;
  left: 30px;
}
.sq_edit_post.sq_info_link {
  bottom: 150px;
  left: 30px;
}
/* ═══════════════════════════════════════════
   5. CHECK FORMULARIOS (Contact Form 7)
   ═══════════════════════════════════════════ */
input[type="radio"],
input[type="checkbox"] {
  position: relative;
  width: 16px;
  height: 16px;
  margin: 0;
  background-image: url('data:image/svg+xml,%3Csvg id="Grupo_1622" data-name="Grupo 1622" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"%3E%3Crect id="Rectángulo_516" data-name="Rectángulo 516" width="15" height="15" rx="7.5" transform="translate(0.5 0.5)" fill="none" stroke="%23515154" stroke-width="1"/%3E%3C/svg%3E%0A');
  background-repeat: no-repeat;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
input[type="radio"]:checked,
input[type="checkbox"]:checked {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"%3E%3Cg id="Grupo_1623" data-name="Grupo 1623" transform="translate(10071.5 -977.5)"%3E%3Cg id="Grupo_1621" data-name="Grupo 1621" transform="translate(-10071.5 977.5)"%3E%3Crect id="Rectángulo_516" data-name="Rectángulo 516" width="15" height="15" rx="7.5" transform="translate(0.5 0.5)" fill="none" stroke="%23515154" stroke-width="1"/%3E%3Crect id="Rectángulo_517" data-name="Rectángulo 517" width="10" height="10" rx="5" transform="translate(3 3)" fill="%23eb5e50"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A');
}
