/*
Theme Name: HIP Kinesiologia
Template: astra
Version: 1.0.5
Text Domain: hip-kinesiologia
*/

:root {
  --hip-navy: #071724;
  --hip-navy-soft: #0d2637;
  --hip-accent: #d5ff3f;
  --hip-text: #18232b;
  --hip-muted: #66747d;
  --hip-cream: #f4f7f5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Aptos", "Segoe UI", sans-serif;
  color: var(--hip-text);
  background: #fff;
}

.site-header,
.ast-primary-header-bar,
.main-header-bar {
  background: var(--hip-navy) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.main-header-bar {
  min-height: 78px;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.site-header a,
.main-header-menu > .menu-item > .menu-link,
.main-header-menu > .menu-item > a {
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.main-header-menu > .menu-item:hover > a,
.main-header-menu > .menu-item.current-menu-item > a {
  color: var(--hip-accent) !important;
}

.custom-logo-link img,
.site-branding img {
  max-height: 58px;
  width: auto;
}

.ast-mobile-header-wrap .ast-button-wrap .menu-toggle .menu-toggle-icon,
.ast-mobile-header-wrap .ast-button-wrap .menu-toggle .menu-toggle-icon::before,
.ast-mobile-header-wrap .ast-button-wrap .menu-toggle .menu-toggle-icon::after {
  background: #fff;
}

.elementor-319 {
  overflow: hidden;
}

.elementor-319 > .e-con {
  max-width: none;
}

.elementor-319 .elementor-widget-slides,
.elementor-319 .elementor-widget-slides .swiper,
.elementor-319 .elementor-widget-slides .swiper-slide {
  min-height: 620px;
}

.elementor-319 .elementor-widget-slides .swiper-slide {
  background-position: center 42% !important;
}

.elementor-319 .elementor-widget-slides .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,23,36,.82) 0%, rgba(7,23,36,.35) 58%, rgba(7,23,36,.08) 100%);
}

.elementor-319 .elementor-widget-slides .swiper-slide-inner {
  z-index: 2;
  max-width: 1180px;
  margin: auto;
  padding: 0 30px;
  align-items: flex-start;
  text-align: left;
}

.elementor-319 .elementor-widget-slides .swiper-slide-inner .elementor-slide-heading {
  max-width: 720px;
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: none;
}

.elementor-319 .elementor-widget-slides .swiper-slide-inner .elementor-slide-description {
  color: #fff;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.elementor-319 .elementor-widget-slides .elementor-slide-button {
  min-width: 170px;
  margin-top: 22px;
  border: 2px solid var(--hip-accent);
  border-radius: 999px;
  background: var(--hip-accent);
  color: var(--hip-navy) !important;
  font-weight: 800;
  text-transform: uppercase;
}

.elementor-319 .elementor-widget-heading .elementor-heading-title {
  color: var(--hip-navy);
  font-family: "Manrope", "Aptos", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-transform: uppercase;
}

.elementor-319 .elementor-widget-text-editor,
.elementor-319 .elementor-widget-text-editor p {
  color: var(--hip-muted);
  font-size: 16px;
  line-height: 1.75;
}

.elementor-319 .e-con {
  box-sizing: border-box;
}

.elementor-319 .elementor-widget-image img,
.elementor-319 .e-con > .elementor-widget-image img {
  transition: transform .35s ease, filter .35s ease;
}

.elementor-319 .elementor-widget-image:hover img {
  transform: scale(1.025);
}

.elementor-319 .elementor-widget-google_maps iframe {
  filter: grayscale(.25) contrast(.92);
  border-radius: 18px;
}

.elementor-319 .elementor-widget-form input,
.elementor-319 .elementor-widget-form textarea,
.elementor-319 .wpforms-field input,
.elementor-319 .wpforms-field textarea {
  border: 1px solid #dbe3e5;
  border-radius: 8px;
  background: #fff;
}

.elementor-319 .elementor-button,
.wpforms-submit {
  border-radius: 999px !important;
  background: var(--hip-accent) !important;
  color: var(--hip-navy) !important;
  font-weight: 800;
  text-transform: uppercase;
}

.ast-site-footer,
.site-footer,
.ast-small-footer {
  background: var(--hip-navy) !important;
  color: #fff;
}

.site-footer a {
  color: var(--hip-accent);
}

@media (max-width: 921px) {
  .main-header-bar {
    min-height: 68px;
  }

  .custom-logo-link img,
  .site-branding img {
    max-height: 48px;
  }

  .elementor-319 .elementor-widget-slides,
  .elementor-319 .elementor-widget-slides .swiper,
  .elementor-319 .elementor-widget-slides .swiper-slide {
    min-height: 520px;
  }

  .elementor-319 .elementor-widget-slides .swiper-slide-inner {
    padding: 0 22px;
  }

  .elementor-319 .elementor-widget-slides .swiper-slide-inner .elementor-slide-heading {
    font-size: clamp(38px, 13vw, 62px);
  }
}

@media (max-width: 544px) {
  .elementor-319 .elementor-widget-slides,
  .elementor-319 .elementor-widget-slides .swiper,
  .elementor-319 .elementor-widget-slides .swiper-slide {
    min-height: 430px;
  }

  .elementor-319 .elementor-widget-heading .elementor-heading-title {
    font-size: 34px !important;
  }
}

.hip-home,
.hip-home * {
  box-sizing: border-box;
}

.hip-page-shell {
  display: block;
  position: relative;
  flex: none;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.hip-home {
  position: relative;
  left: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #101820;
  font-family: "Aptos", "Segoe UI", sans-serif;
}

.hip-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hip-hero {
  position: relative;
  height: 700px;
  background: #071724;
}

.hip-hero__track,
.hip-slide {
  height: 100%;
}

.hip-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-image: var(--slide-image);
  background-position: center 42%;
  background-size: cover;
  transition: opacity .8s ease, visibility .8s ease;
}

.hip-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hip-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,23,36,.92) 0%, rgba(7,23,36,.48) 48%, rgba(7,23,36,.06) 82%);
}

.hip-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 30px;
  color: #fff;
}

.hip-slide__content p,
.hip-section-heading p,
.hip-center__copy > p:first-child,
.hip-contact__grid > div:first-child > p:first-child {
  margin: 0 0 12px;
  color: #cfff32;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hip-slide__content h1 {
  max-width: 750px;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.hip-button {
  display: inline-flex;
  min-width: 170px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid #d5ff3f;
  border-radius: 999px;
  background: #d5ff3f;
  color: #071724 !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hip-button--dark {
  border-color: #071724;
  background: #071724;
  color: #fff !important;
}

.hip-button--outline {
  border-color: #071724;
  background: transparent;
  color: #071724 !important;
}

.hip-hero__dots {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hip-hero__dots button {
  width: 42px;
  height: 3px;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}

.hip-hero__dots button.is-active {
  background: #d5ff3f;
}

.hip-intro {
  background: #071724;
  color: #fff;
  padding: 72px 0;
}

.hip-intro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.hip-intro article {
  min-height: 170px;
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 28px;
}

.hip-intro__number {
  color: #d5ff3f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hip-intro h3 {
  margin: 25px 0 10px;
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
}

.hip-intro p {
  margin: 0;
  color: #aeb9c0;
  line-height: 1.7;
}

.hip-services,
.hip-team,
.hip-stories,
.hip-contact {
  padding: 110px 0;
}

.hip-services {
  background: #f4f7f5;
}

.hip-section-heading {
  margin-bottom: 48px;
  text-align: center;
}

.hip-section-heading p {
  color: #718079;
}

.hip-section-heading h2,
.hip-center h2,
.hip-contact h2 {
  margin: 0;
  color: #071724;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.hip-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hip-service {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #071724;
  color: #fff;
  text-decoration: none;
}

.hip-service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.hip-service:hover img {
  transform: scale(1.045);
}

.hip-service__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7,23,36,.92) 100%);
}

.hip-service__copy {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hip-service h3 {
  max-width: 250px;
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.hip-service span {
  border-bottom: 1px solid #d5ff3f;
  color: #d5ff3f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hip-insurance {
  display: grid;
  grid-template-columns: 62% 38%;
  min-height: 520px;
  background: #d5ff3f;
}

.hip-insurance__image {
  background-image: var(--insurance-image);
  background-position: center;
  background-size: cover;
}

.hip-insurance__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px;
  color: #071724;
}

.hip-insurance__copy p {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hip-insurance__copy h2 {
  max-width: 470px;
  margin: 0 0 28px;
  font-size: clamp(42px, 4vw, 66px);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.hip-ticker {
  overflow: hidden;
  border-top: 1px solid #071724;
  border-bottom: 1px solid #071724;
  background: #fff;
  white-space: nowrap;
}

.hip-ticker > div {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 42px;
  padding: 18px 0;
  animation: hipTicker 22s linear infinite;
}

.hip-ticker span {
  color: #071724;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.hip-ticker b {
  color: #d5ff3f;
  -webkit-text-stroke: 1px #071724;
  font-size: 24px;
}

@keyframes hipTicker {
  to { transform: translateX(-50%); }
}

.hip-section-heading--left {
  text-align: left;
}

.hip-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.hip-person__photo {
  height: 330px;
  overflow: hidden;
  background: #e9eeec;
}

.hip-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72);
  transition: filter .3s ease, transform .3s ease;
}

.hip-person:hover img {
  filter: saturate(1);
  transform: scale(1.02);
}

.hip-person h3 {
  margin: 18px 0 5px;
  color: #071724;
  font-size: 19px;
  text-transform: uppercase;
}

.hip-person p {
  margin: 0;
  color: #718079;
  font-size: 14px;
}

.hip-center {
  padding: 110px 0;
  background: #071724;
  color: #fff;
}

.hip-center__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 70px;
}

.hip-center h2 {
  color: #fff;
  margin-bottom: 24px;
}

.hip-center__copy > p:nth-last-child(2) {
  color: #b6c1c7;
  line-height: 1.75;
}

.hip-center .hip-button--outline {
  margin-top: 18px;
  border-color: #d5ff3f;
  color: #d5ff3f !important;
}

.hip-center__image {
  height: 520px;
  overflow: hidden;
  border-radius: 4px;
}

.hip-center__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hip-stories {
  background: #f4f7f5;
}

.hip-stories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hip-stories blockquote {
  margin: 0;
  border: 0;
  background: #fff;
  padding: 42px;
  box-shadow: 0 18px 50px rgba(7,23,36,.06);
}

.hip-stories blockquote > p {
  min-height: 150px;
  margin: 0 0 30px;
  color: #25343c;
  font-size: 18px;
  line-height: 1.65;
}

.hip-stories blockquote footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hip-stories blockquote footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.hip-stories blockquote footer span,
.hip-stories blockquote footer small {
  display: block;
}

.hip-stories blockquote footer strong {
  color: #071724;
  font-size: 14px;
  text-transform: uppercase;
}

.hip-stories blockquote footer small {
  color: #718079;
  margin-top: 3px;
}

.hip-insurers {
  border-bottom: 1px solid #dfe5e3;
  background: #fff;
  padding: 38px 0;
}

.hip-insurers__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 24px;
}

.hip-insurers__row img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(.15);
}

.hip-contact {
  background: #fff;
}

.hip-contact__grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.hip-contact h2 {
  margin-bottom: 22px;
}

.hip-contact__grid > div:first-child > p:last-child {
  max-width: 390px;
  color: #718079;
  line-height: 1.7;
}

.hip-contact__form .wpforms-field-label,
.hip-contact__form .wpforms-field-sublabel {
  color: #071724;
  font-weight: 800;
}

.hip-contact__form input,
.hip-contact__form textarea,
.hip-contact__form select {
  min-height: 48px;
  border: 1px solid #ccd6d2 !important;
  border-radius: 4px !important;
  background: #f8faf9 !important;
}

.hip-contact__form textarea {
  min-height: 140px;
}

.hip-contact__form .wpforms-submit {
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #d5ff3f;
  color: #071724;
  font-weight: 900;
  text-transform: uppercase;
}

.hip-footer,
.ast-site-footer,
.site-footer,
.ast-small-footer {
  background: #071724 !important;
}

body.home .ast-container,
body.page-id-319 .ast-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Astra convierte este contenedor en flex en escritorio; en la portada eso
   hacía que el contenido y el pie aparecieran como dos columnas. */
body.home .site-content > .ast-container,
body.page-id-319 .site-content > .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.home .hip-page-shell,
body.page-id-319 .hip-page-shell,
body.home .hip-home,
body.page-id-319 .hip-home,
body.home .hip-footer,
body.page-id-319 .hip-footer {
  display: block;
  width: 100%;
  max-width: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.home .site-footer,
body.page-id-319 .site-footer,
body.home .footer-widgets,
body.page-id-319 .footer-widgets,
body.home .ast-small-footer,
body.page-id-319 .ast-small-footer {
  display: none;
}

.hip-footer {
  color: #fff;
  padding-top: 48px;
}

.hip-footer__grid {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 120px;
}

.hip-footer__brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.hip-footer__nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.hip-footer__nav a,
.hip-footer__social a {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.hip-footer__nav a:hover,
.hip-footer__social a:hover {
  color: #d5ff3f;
}

.hip-footer__social {
  display: flex;
  gap: 10px;
}

.hip-footer__social a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}

.hip-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  color: #91a0a8;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 921px) {
  .hip-hero { height: 580px; }
  .hip-intro__grid,
  .hip-services__grid,
  .hip-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hip-service { height: 360px; }
  .hip-insurance { grid-template-columns: 52% 48%; }
  .hip-center__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hip-insurers__row { grid-template-columns: repeat(4, 1fr); }
  .hip-contact__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 544px) {
  .hip-container { width: min(100% - 32px, 1180px); }
  .hip-hero { height: 520px; }
  .hip-slide__shade { background: linear-gradient(180deg, rgba(7,23,36,.12), rgba(7,23,36,.86)); }
  .hip-slide__content { justify-content: flex-end; padding-bottom: 80px; }
  .hip-slide__content h1 { font-size: 54px; }
  .hip-intro { padding: 50px 0; }
  .hip-intro__grid,
  .hip-services__grid,
  .hip-team__grid,
  .hip-stories__grid,
  .hip-center__grid {
    grid-template-columns: 1fr;
  }
  .hip-intro__grid { gap: 28px; }
  .hip-intro article { min-height: 0; }
  .hip-services,
  .hip-team,
  .hip-stories,
  .hip-contact,
  .hip-center { padding: 72px 0; }
  .hip-section-heading { margin-bottom: 32px; }
  .hip-section-heading h2,
  .hip-center h2,
  .hip-contact h2 { font-size: 42px; }
  .hip-service { height: 330px; }
  .hip-insurance { grid-template-columns: 1fr; }
  .hip-insurance__image { height: 280px; }
  .hip-insurance__copy { padding: 44px 24px; }
  .hip-insurance__copy h2 { font-size: 43px; }
  .hip-person__photo { height: 380px; }
  .hip-center__image { height: 320px; }
  .hip-stories blockquote { padding: 28px; }
  .hip-stories blockquote > p { min-height: 0; }
  .hip-insurers__row { grid-template-columns: repeat(3, 1fr); }
  .hip-contact__grid { gap: 28px; }
  .hip-footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 30px 0;
  }
  .hip-footer__nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}
