/*
Theme Name: Ciaries Child Theme
Description: This is a custom child theme
Template: salient
Version: 1.0
*/

/*GENERAL*/
:root {
  --light: #fbfbfb;
  --dark: #0d393b;
  --black: #141414;
  --light-blue: #baebe9;
  --accent: #0fa4ab;
  --secondary: #ffaa3c;

  --current-color: var(--light);
  --base: 1440;

  --primary-font: 'Inter', sans-serif;
  --secondary-font: 'IBM Plex Serif', serif;
  --mono-font: 'IBM Plex Serif', monospace;

  /*1vw = 14.4 en 1440px*/
  --fnt-size-huge: calc(74 / 1440 * 100vw);
  --fnt-size-big: calc(56 / 1440 * 100vw);
  --fnt-size-medium: calc(40 / 1440 * 100vw);
  --fnt-size-small: calc(32 / 1440 * 100vw);
  --fnt-size-big-text: calc(24 / 1440 * 100vw);
  --fnt-size-body: calc(18 / 1440 * 100vw);
  --fnt-size-tiny: calc(13 / 1440 * 100vw);
}

@media (max-width: 1000px) {
  :root {
    --fnt-size-huge: calc(46 / 390 * 100vw);
    --fnt-size-big: calc(46 / 390 * 100vw);
    --fnt-size-medium: calc(24 / 390 * 100vw);
    --fnt-size-small: calc(22 / 390 * 100vw);
    --fnt-size-big-text: calc(18 / 390 * 100vw);
    --fnt-size-body: calc(16 / 390 * 100vw);
    --fnt-size-tiny: calc(14 / 390 * 100vw);
  }
}

::selection {
  background-color: var(--dark);
  color: var(--light);
  text-shadow: none;
}

@font-face {
  font-family: 'IBM Plex Serif';
  src:
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-Regular.woff2') format('woff2'),
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-Regular.woff') format('woff'),
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-Medium.woff2') format('woff2'),
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-Medium.woff') format('woff'),
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-Medium.ttf') format('ttf');
}

@font-face {
  font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src:
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-MediumItalic.woff2') format('woff2'),
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-MediumItalic.woff') format('woff'),
    url('/wp-content/themes/ciaries-child/fonts/IBMPlexSerif-MediumItalic.ttf') format('ttf');
}

@font-face {
  font-family: 'Inter';
  src:
    url('/wp-content/themes/ciaries-child/fonts/Inter-Regular.woff2') format('woff2'),
    url('/wp-content/themes/ciaries-child/fonts/Inter-Regular.woff') format('woff'),
    url('/wp-content/themes/ciaries-child/fonts/Inter-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src:
    url('/wp-content/themes/ciaries-child/fonts/Inter-Medium.woff2') format('woff2'),
    url('/wp-content/themes/ciaries-child/fonts/Inter-Medium.woff') format('woff'),
    url('/wp-content/themes/ciaries-child/fonts/Inter-Medium.ttf') format('ttf');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/*WRAPPERS*/
@media (min-width: 1000px) {
  .full-width-content:not(.no-padding, .special-padding) > .row_col_wrap_12 {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .no-padding {
    padding: 0 !important;
  }

  .no-padding > .row_col_wrap_12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.img-with-aniamtion-wrap {
  border-radius: 8px;
  overflow: hidden;
}

#header-outer {
  background-color: var(--light) !important;
}

@media (max-width: 1000px) {
  .full-width-content:not(.no-padding) > .row_col_wrap_12 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .no-padding > .row_col_wrap_12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/*NAV*/

/*TITLES*/
.custom-title *,
.custom-title {
  margin-bottom: 0t;
}

.custom-title strong {
  font-weight: 600;
}

.custom-title {
  margin-bottom: 20px !important;
  letter-spacing: -0.05em;
}

.custom-title.small-margin {
  margin-bottom: 10px !important;
}

.custom-title.regular,
.custom-title.regular * {
  font-weight: 400;
}

.custom-title.bold,
.custom-title.bold * {
  font-weight: 500;
}

.custom-title.uppercase .custom-title.uppercase * {
  text-transform: uppercase !important;
}

.custom-title.lowercase,
.custom-title.lowercase * {
  text-transform: initial !important;
}

.custom-title.black,
.custom-title.black * {
  color: var(--black);
}
.custom-title.light,
.custom-title.light * {
  color: var(--light);
}

.custom-title.dark,
.custom-title.dark * {
  color: var(--dark);
}

.custom-title.accent,
.custom-title.accent * {
  color: var(--accent);
}
.custom-title.light-blue.accent {
  color: var(--light-blue);
}

.custom-title.secondary-color,
.custom-title.secondary-color * {
  color: var(--secondary);
}

a.toggle-heading {
  font-family: var(--secondary-font) !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  color: var(--dark) !important;
}

.custom-title.space-bottom {
  margin-bottom: 40px !important;
}

.custom-title.huge *,
.custom-title.huge {
  font-size: var(--fnt-size-huge) !important;
  line-height: 0.95 !important;
}
.custom-title.big *,
.custom-title.big {
  font-size: var(--fnt-size-big) !important;
  line-height: 0.95 !important;
}

.custom-title.medium *,
.custom-title.medium {
  font-size: var(--fnt-size-medium) !important;
  line-height: 1.1 !important;
}
.custom-title.small *,
.custom-title.small {
  font-size: var(--fnt-size-small) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em;
}

.custom-title.body *,
.custom-title.body {
  font-size: var(--fnt-size-body) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
}

.custom-title.tiny *,
.custom-title.tiny,
.nectar-button.medium {
  font-size: var(--fnt-size-tiny) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.05em;
}

.custom-title.tiny.bigger-tiny *,
.custom-title.tiny.bigger-tiny {
  font-size: calc(16 / 1440 * 100vw) !important;
  line-height: 1.1 !important;
}

a.toggle-heading {
  font-size: var(--fnt-size-tiny) !important;
}

.custom-title.primary,
.custom-title.primary * {
  font-family: var(--primary-font) !important;
}

.custom-title.mono,
.custom-title.mono * {
  font-family: var(--mono-font) !important;
}

.custom-title.secondary,
.custom-title.secondary *,
.nectar-button.medium {
  font-family: var(--secondary-font) !important;
}

.custom-title.margin_bottom_title {
  margin-bottom: 28px !important;
}

/*TITLE ANIMATION*/

/*Fix lines*/
.animated.lines:before,
.animated.lines:after,
.splitting-lines.lines:after,
.splitting.lines:before {
  display: none !important;
}

.splitting-lines.lines {
  background-color: transparent;
  width: fit-content;
  height: auto !important;
}

.animated.lines {
  width: auto !important;
  height: auto;
  background-color: transparent;
}

.splitting-lines {
  opacity: 0;
}

.line-wrapper {
  display: block;
}

.line {
  display: block;
}

.word {
  display: inline-block;
}

.char {
  display: inline-block;
  will-change: transform, opacity;
}

/*FOOTER*/
.footer-logo {
  max-width: 43px !important;
}

.legals .wpb_wrapper {
  display: flex;
  padding: 3rem 0 1rem 0;
  gap: 2rem;
}

#footer a:hover {
  color: #ffffff;
}

@media (max-width: 1000px) {
  .legals .wpb_wrapper {
    flex-flow: column;
  }

  #footer img {
    max-width: 140px !important;
  }
}

/*BTN*/
a.nectar-button.medium.see-through.extra-color-2:before,
a.nectar-button.medium.see-through.accent-color:before {
  content: '';
  height: 0;
  background: var(--accent);
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  transition: all 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: -1;
}

a.nectar-button.medium.see-through.accent-color:before {
  background: var(--dark);
}

a.nectar-button.see-through.extra-color-2,
a.nectar-button.see-through.accent-color {
  background-color: var(--secondary) !important;
  border: none !important;
  padding: 0.8em 1.8em !important;
}

a.nectar-button.medium.see-through.accent-color {
  background-color: var(--accent) !important;
}

a.nectar-button.medium.see-through.extra-color-2.light:before {
  background: var(--light);
}

.submit-wrapper {
  position: relative;
}

a.nectar-button.medium.see-through.extra-color-2,
a.nectar-button.medium.see-through.accent-color {
  position: relative;
  z-index: 99;
  transition: all 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  border-width: 1px;
  color: var(--dark);
  border: 1px solid var(--dark);
}

a.nectar-button.medium.see-through.accent-color {
  color: var(--light);
  border: 1px solid var(--accent);
}

a.nectar-button.medium.see-through.extra-color-2.light {
  color: var(--light);
  border: 1px solid var(--light);
}

a.nectar-button.medium.see-through.extra-color-2 span {
  color: var(--dark);
}

a.nectar-button.medium.see-through.accent-color span {
  color: var(--light);
}

a.nectar-button.medium.see-through.extra-color-2:hover span {
  color: var(--light);
}

a.nectar-button.medium.see-through.extra-color-2.light span {
  color: var(--light);
}

a.nectar-button.medium.see-through.extra-color-2.light:hover span {
  color: var(--dark);
}

a.nectar-button.medium.see-through.extra-color-2:hover:before,
a.nectar-button.medium.see-through.accent-color:hover:before,
.submit-wrapper:hover .submit-hover {
  height: 100%;
}

.footer-bottom-social .wpb_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1000px) {
  span.not-break {
    white-space: nowrap;
  }
}

/*SLIDER
  ---------------------------------------------*/
#hero .flickity-slider .cell .inner {
  max-width: 82vw;
  margin: 0 auto;
}

.nectar-flickity.nectar-simple-slider[data-arrows='true']:not(.arrow-position-overlapping) .flickity-slider .cell .nectar-button:hover {
  color: var(--white) !important;
}
@media only screen and (max-width: 1000px) {
  .nectar-flickity.nectar-simple-slider[data-arrows='true']:not(.arrow-position-overlapping) .flickity-slider .cell {
    padding: 0 28px;
    align-items: flex-end;
  }

  .nectar-flickity.nectar-simple-slider[data-arrows='true']:not(.arrow-position-overlapping) .flickity-slider .cell .nectar-button {
    margin-bottom: 80px;
  }
}
@media only screen and (max-width: 690px) {
  .nectar-flickity.nectar-simple-slider[data-arrows='true']:not(.arrow-position-overlapping) .flickity-slider .cell {
    padding: 0 28px;
    align-items: flex-end;
  }
}

@media (min-width: 1000px) {
  .nectar-simple-slider[data-arrows='true']:not(.arrow-position-overlapping) .flickity-slider .cell {
    padding: 0 8.5vw !important;
  }
}

/*HOME*/
.gallery-home::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(closest-side, #baebe9 0%, rgba(186, 235, 233, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.gallery-home {
  position: relative;
  isolation: isolate;
}

.gallery-home-wrapper {
  overflow: visible;
}
.gallery-home .wpb_wrapper .hover-wrap,
.gallery-home .wpb_wrapper .hover-wrap-inner {
  height: 100% !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.row .col .gallery-home img {
  height: 100% !important;
  height: 100% !important;
  object-fit: cover;
  width: 100%;
}

.row .col .gallery-home .img-with-aniamtion-wrap:nth-child(1),
.row .col .gallery-home .img-with-aniamtion-wrap:nth-child(2) {
  aspect-ratio: 1 / 1;
}

@media (max-width: 1000px) {
  .gallery-home .wpb_wrapper {
    flex-wrap: wrap !important;
  }
  .gallery-home .wpb_wrapper .img-with-aniamtion-wrap {
    width: calc(44vw - 10px);
  }
}

/*FOOTER*/
#footer > .row-bg-wrap .inner-wrap .row-bg {
  background: linear-gradient(55deg, var(--dark) 0%, var(--accent) 63%, var(--secondary) 100%);
}

@media (max-width: 1000px) {
  #footer > .row-bg-wrap .inner-wrap .row-bg {
    background: linear-gradient(125deg, var(--dark) 0%, var(--accent) 63%, var(--secondary) 100%);
  }
}

/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
  width: 100%;
}

/* ---------------------------------------------------------
   ROWS
   --------------------------------------------------------- */

.contact-form .form-row {
  display: flex;
  width: 100%;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-form .form-row.full-row {
  display: flex;
}

.form-col {
  min-width: 50%;
}

.contact-form .col1,
.contact-form .col2 {
  flex: 1 1 0;
}

.contact-form .col3 {
  width: 100%;
}

/* ---------------------------------------------------------
   LABELS
   --------------------------------------------------------- */

.contact-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.2;
}

/* ---------------------------------------------------------
   INPUTS
   --------------------------------------------------------- */

.contact-form .form-field {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  margin: 0;
  border: 0;
  background: #e7e7d2;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: #222;
  box-sizing: border-box;
  outline: none;
}

/* Select */

.contact-form select.form-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  cursor: pointer;
}

/* Textarea */

.contact-form textarea.form-field {
  min-height: 210px;
  padding: 16px;
  resize: vertical;
  width: 100%;
}

.canal-denuncia .contact-form textarea.form-field {
  min-height: 80px;
}

/* Focus */

.contact-form .form-field:focus {
  outline: none;
  box-shadow: none;
}

form * {
  border-radius: 4px;
}

/* ---------------------------------------------------------
   PRIVACY
   --------------------------------------------------------- */

.contact-form .form-privacy {
  display: flex;
  align-items: center;
}

.contact-form .form-privacy .wpcf7-list-item {
  margin: 0;
}

.contact-form .form-privacy label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  cursor: pointer;
}

/* Checkbox */

.contact-form .form-privacy input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;

  width: 27px;
  height: 27px;

  margin: 0;
  padding: 0;

  border: 1px solid #222;

  background: transparent;

  flex: 0 0 27px;
  cursor: pointer;
}

/* Checkbox checked */

.contact-form .form-privacy input[type='checkbox']:checked {
  background: #222;
  box-shadow: inset 0 0 0 5px #f1f1e5;
}

/* ---------------------------------------------------------
   SUBMIT
   --------------------------------------------------------- */

.contact-form .form-submit {
  display: block;
  width: 100%;
  height: 66px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 4px;

  background: #222;
  color: #f1f1e5;

  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;

  text-align: center;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.contact-form .form-submit:hover {
  background: #333;
}

/* ---------------------------------------------------------
   CF7
   --------------------------------------------------------- */

.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
}

.contact-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 15px;
}

form br {
  display: none;
}

form p {
  padding-bottom: 0 !important;
  width: 100%;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {
  .contact-form .form-row {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
  }

  .contact-form .col1,
  .contact-form .col2,
  .contact-form .col3 {
    width: 100%;
    flex: none;
  }

  .contact-form label {
    font-size: 18px;
  }

  .contact-form .form-field {
    height: 52px;
  }

  .contact-form textarea.form-field {
    height: 180px;
  }

  .contact-form .form-submit {
    height: 60px;
    font-size: 16px;
  }
}

/* ---------------------------------------------------------
   FILE UPLOAD
   --------------------------------------------------------- */

.contact-form input[type='file'] {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  margin-bottom: 24px;
  border: 0;
  background: #e7e7d2;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 15px;
  color: #222;
  cursor: pointer;
}

.contact-form input[type='file']::file-selector-button {
  height: 100%;
  margin-right: 15px;
  padding: 0 18px;

  border: 0;
  border-radius: 4px;

  background: #222;
  color: #f1f1e5;

  font-family: inherit;
  font-size: 15px;

  cursor: pointer;
}

.contact-form input[type='file'] {
  height: 52px;
}

/* ---------------------------------------------------------
   RADIO BUTTONS - PILLS
   --------------------------------------------------------- */

.contact-form .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form .radio-group .wpcf7-list-item {
  margin: 0;
}

.contact-form .radio-group label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 10px 18px;

  background: #e7e7d2;
  border: 1px solid transparent;
  border-radius: 4px;

  color: #222;
  font-size: 15px;
  line-height: 1.1;
  text-align: center;

  cursor: pointer;
  user-select: none;

  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

/* Ocultar el radio nativo */
.contact-form .radio-group input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Hover */
.contact-form .radio-group label:hover {
  background: #dedec7;
}

/* Activo (lo añade tu JS) */
.contact-form .radio-group label.is-active {
  background: var(--accent);
}
.contact-form .radio-group label.is-active * {
  color: #fff !important;
}

/* Accesibilidad */
.contact-form .radio-group label:focus-within {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

span.wpcf7-form-control.wpcf7-radio {
  display: flex !important;
  gap: 12px;
}

@media (max-width: 1000px) {
  .span.wpcf7-form-control.wpcf7-radio {
    flex-direction: column;
  }
}
