/*
Theme Name: Integrem
Author: Nekku
Version: 0.1.0
*/

/* Layout changes */

.alignfull {
    align-self: center;
    justify-self: center;
    width: 1440px;
    max-width: 100%;
}

.wp-site-blocks {
  overflow-x: clip;
}


/* Em brush strokes */

.em-stroked mark,
.em-stroked-alt mark {
  background: none !important;
  color: inherit !important;  
  position: relative;
  z-index: 2;
}

.em-stroked mark::before,
.em-stroked-alt mark::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -40px;
  height: calc(100% + 17px);
  width: calc(100% + 85px);
  z-index: -1;
  background: url(./images/em-stroke.svg) center center no-repeat;
  background-size: contain;
}

.em-stroked-alt mark::before {
  top: 4px;
  left: 0;
  height: 100%;
  width: 100%;
  transform: scaleY(1.35) scaleX(1.1);
}

/* Footer */
.footer .em-stroked mark::before {
  background-image: url(./images/em-stroke-footer.svg);
  top: 6px;
  left: 4px;
  height: 100%;
  width: 100%;
  transform: scaleY(1.35) scaleX(1.2);
}

/* Buttons */

.integrem-pill {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: #0aa4ff;
  color: #082b3d;
  font-weight: 700;
  font-size: .875rem;
}

.integrem-header .wp-block-button__link {
  background: #06a8ff;
  color: #0b2d3c;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 16px;
  line-height: 1;
}

/* Optional: subtle hover */
.integrem-header .wp-block-button__link:hover {
  filter: brightness(0.96);
}

/* ===== Buttons animation ===== */
.wp-block-button__link {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    filter 0.15s ease;
}

/* ===== Hover: gentle lift ===== */
.wp-block-button__link:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
  box-shadow: 0 4px 10px rgba(6, 168, 255, 0.35);
}

/* ===== Active (click): pressed feel ===== */
.wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(6, 168, 255, 0.4);
  filter: brightness(0.94);
}

/* ===== Focus (keyboard accessibility) ===== */
.wp-block-button__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 168, 255, 0.35);
}

/* ===== Responsive: collapse spacing a bit ===== */
@media (max-width: 900px) {
  .integrem-header__inner{
    grid-template-columns: auto auto; /* logo | right */
  }
  .integrem-header .wp-block-navigation{
    display: none; /* or let it become overlayMenu */
  }
}

.integrem-header .current-menu-item a {
  color: var(--wp--preset--color--ink) !important;
  font-weight: 600;
}

h1, h2, h3, h4 {
  margin-top: 0;
  margin-bottom: 0.6em;
}

/* Home */

.home-hero-section {
    max-width: 1440px !important;
}


/* Header CTA: slightly stronger presence */
.integrem-header .wp-block-button__link {
  box-shadow: 0 4px 12px rgba(6, 168, 255, 0.25);
}

.integrem-header .wp-block-button__link:hover {
  box-shadow: 0 8px 20px rgba(6, 168, 255, 0.35);
}

.integrem-header .wp-block-button__link:active {
  box-shadow: 0 4px 10px rgba(6, 168, 255, 0.4);
}

.negative-margin {
  margin-right: -300px !important;
  z-index: 1000;
  position: relative;
}

.negative-margin-right-l {
  margin-right: -100px !important;
  z-index: 1001;
  position: relative;
}

.negative-margin-right-m {
  margin-right: -100px !important;
  position: relative;
}

.negative-top-margin-m {
  margin-top: -50px !important;
  position: relative;
}

.negative-bottom-margin-m {
  margin-bottom: -70px !important;
  z-index: 1001;
  position: relative;
}

.z-behind {
  z-index: -1;
  position: relative;
}

.page-header-cut.wp-block-cover img {
  height: 90%;
}

.hero-constrained-column {
  max-width: 433px;
}

.force-full-height {
    height: 100%;
}

/* Links */
a:where(:not(.wp-element-button)) {
  text-decoration: none;
}

a:where(:not(.wp-element-button)):hover {
  text-decoration: underline;
}

/* Query gallery */

.wp-block-query .wp-block-post-featured-image .wp-block-post-featured-image__overlay {
  opacity: 0 !important;
  transition: opacity 0.35s ease-out;
}

.wp-block-query .wp-block-post-featured-image {
  overflow: hidden !important;
}

.wp-block-query .wp-block-post-featured-image:hover .wp-block-post-featured-image__overlay {
  opacity: 0.35 !important;
}

.wp-block-query .wp-block-post-featured-image:hover img {
  transform: scale(1.02);
  transition: transform 0.35s ease-out;
}

.wp-block-query a {
  text-decoration: none;
}
.wp-block-query a:hover {
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--brand);
}


/* =========================
   Contact Form 7 — Integrem
   Targets CF7 default markup with <p><label>...<span class="wpcf7-form-control-wrap">...
   ========================= */

.wpcf7 form.wpcf7-form {
  margin: 0;
}

/* Turn each <p> into a row with consistent spacing */
.wpcf7 form.wpcf7-form > p {
  margin: 0 0 16px 0;
}

/* First <p> has two labels (Nombre + Apellidos) -> 2 columns */
.wpcf7 form.wpcf7-form > p:first-of-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.wpcf7 form br {
  display: none;
}

/* Other <p> rows: single column */
.wpcf7 form.wpcf7-form > p:not(:first-of-type) {
  display: block;
}

/* Labels */
.wpcf7 form.wpcf7-form label {
  display: block;
  color: #0b2d3c;          /* ink */
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

/* Remove CF7 <br> spacing inside labels */
.wpcf7 form.wpcf7-form label br {
  display: none;
}

/* Wraps: ensure controls sit below label text */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

/* Inputs + textarea shared */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea.wpcf7-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: #0b2d3c;
  border: none;
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 18px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* Textarea height like the mock (not huge) */
.wpcf7 textarea.wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Placeholder (if you add placeholders later) */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(11, 45, 60, 0.55);
}

/* Focus style (matches your brand cyan) */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: rgba(6, 168, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(6, 168, 255, 0.28);
}

/* Validation: CF7 adds .wpcf7-not-valid on the control */
.wpcf7 .wpcf7-not-valid {
  border-color: rgba(225, 70, 70, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(225, 70, 70, 0.18);
}

/* Error tip bubble */
.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #b11a1a;
}

/* Submit row */
.wpcf7 form.wpcf7-form > p:last-of-type {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-direction: column;
}

/* Submit button */
.wpcf7 input.wpcf7-submit {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--wp--preset--color--ink);
  width: 100%;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 34px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* Checkbox row layout */
/* =========================
   Contact Form 7 Checkbox (Integrem style)
   ========================= */

/* Layout alignment */
.wpcf7 .wpcf7-acceptance {
  margin: 18px 0 10px 0;
}

.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #0b2d3c;
  cursor: pointer;
}

/* Hide native appearance */
.wpcf7 input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(11, 45, 60, 0.35);
  background: #ffffff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0;
  margin-right: 7px;
}

/* Checkmark */
.wpcf7 input[type="checkbox"]::before {
  content: "✓";
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  transform: scale(0);
  transition: transform 0.12s ease;
}

/* Checked state */
.wpcf7 input[type="checkbox"]:checked {
  background: #06a8ff; /* brand color */
  border-color: #06a8ff;
}

.wpcf7 input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* Hover */
.wpcf7 input[type="checkbox"]:hover {
  border-color: #06a8ff;
}

/* Focus (accessibility) */
.wpcf7 input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 168, 255, 0.35);
}

.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}



/* Hover / active */
.wpcf7 input.wpcf7-submit:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}
.wpcf7 input.wpcf7-submit:active {
  transform: translateY(0);
  filter: brightness(0.94);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}
.wpcf7 input.wpcf7-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 168, 255, 0.35);
}

/* Spinner alignment */
.wpcf7 .wpcf7-spinner {
  margin: 0;
}

/* Response output (success / error message) */
.wpcf7 .wpcf7-response-output {
  margin: 16px 0 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  color: #0b2d3c;
  font-size: 16px;
}

.recaptcha-legal a {
  display: inline;
}

/* Mobile: stack first row fields */
@media (max-width: 700px) {
  .wpcf7 form.wpcf7-form > p:first-of-type {
    grid-template-columns: 1fr;
  }
}





/* Tabs wrapper background like the mock */
.integrem-tabs {
  /* background: #bfe6f7; */
  padding: 0;
}

/* Nav bar */
.integrem-tabs__nav {
  gap: 0;
}

/* Tab links look like pills/rectangles */
.integrem-tabs__nav a {
  display: block;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 700;
  color: #0b2d3c;
  background: #E2F3FB;
}

.integrem-tabs__nav a:hover {
  background: #bfddec;
}

/* Panels */
.integrem-tab {
  display: none;
  padding: 44px 56px;
}

/* Default tab (first) shown if no hash */
.integrem-tab:first-of-type {
  display: block;
}

/* When a tab is targeted, show it */
.integrem-tab:target {
  display: block;
}

/* Hide the default when another is targeted */
.integrem-tabs__panels:has(.integrem-tab:target) .integrem-tab:first-of-type {
  display: none;
}

/* Active tab styling (based on current hash) */
.integrem-tabs:has(#tab-empatia:target) .integrem-tabs__nav a[href="#tab-empatia"],
.integrem-tabs:has(#tab-transparencia:target) .integrem-tabs__nav a[href="#tab-transparencia"],
.integrem-tabs:has(#tab-innovacion:target) .integrem-tabs__nav a[href="#tab-innovacion"],
.integrem-tabs:has(#tab-compromiso:target) .integrem-tabs__nav a[href="#tab-compromiso"]{
  background: #9fd4ee;
}


/* Language switcher */
/* Container */
.widget_polylang > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1rem;          /* match menu text */
  letter-spacing: 0.02em;
}

/* Items */
.widget_polylang > ul > li {
  margin: 0;
  padding: 0;
}

/* Links */
.widget_polylang > ul > li > a {
  text-decoration: none;
  font-weight: 400;
  color: currentColor;
  opacity: 0.75;
}

/* Hover */
.widget_polylang > ul > li > a:hover {
  opacity: 1;
}

/* Current language */
.widget_polylang > ul > li.current-lang > a {
  font-weight: 700;
  opacity: 1;
  pointer-events: none; /* optional: prevents clicking current lang */
}

/* Slash separator between languages */
.widget_polylang > ul > li:not(:last-child)::after {
  content: "/";
  margin-left: 3px;
  opacity: 0.5;
}

.grecaptcha-badge {
  display: none;
}

.formaciones-grid .wp-block-post-title {
  min-height: 54px;
}

.formaciones-grid .wp-block-read-more {
  text-decoration: underline var(--wp--preset--color--brand)
}