/* ===== Header Style 6 - Laboratorios Vargas (Figma specs) ===== */

/* Base */
.mc-header-section.header_style_six {
  background-color: #fff;
  padding: 0;
  border-bottom: none;
}

.mc-header-section.header_style_six .container {
  max-width: 100%;
  width: 100%;
  padding: 0 52px;
}

.mc-header-section.header_style_six .mc-header-content {
  height: 70px;
  padding: 0;
  margin-top: 10px;
}

/* Sticky */
.mc-header-section.header_style_six.txa_sticky {
  padding: 0;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mc-header-section.header_style_six.txa_sticky .mc-header-content {
  margin-top: 0;
  padding-top: 0;
}

/* Logo */
.header_style_six .brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header_style_six .brand-logo img {
  width: auto;
  height: 55px;
  max-height: 55px;
  object-fit: contain;
}

/* Navigation: push to the right */
.header_style_six .main-navigation {
  margin-left: auto;
  margin-right: 0;
}

.header_style_six .main-navigation>ul {
  display: flex;
  align-items: center;
}

/* Nav items: Montserrat 16px/20px */
.header_style_six .main-navigation li {
  margin: 0 18px;
}

.header_style_six .main-navigation li:last-child {
  margin-right: 0;
}

.header_style_six .main-navigation li a {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
  text-transform: none;
  padding-bottom: 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Active state: bold 700 */
.header_style_six .main-navigation li.current-menu-item>a,
.header_style_six .main-navigation li.current_page_item>a,
.header_style_six .main-navigation li.current-menu-ancestor>a {
  font-weight: 700;
}

/* Hover */
.header_style_six .main-navigation li a:hover {
  color: #002D74;
}

/* Remove dot indicators */
.header_style_six .main-navigation li a:before {
  display: none !important;
}

/* Remove underline pseudo-element */
.header_style_six .main-navigation li a:after {
  display: none !important;
}

/* Hide dropdown arrows for flat menu */
.header_style_six .main-navigation>ul>li.dropdown {
  padding-right: 0;
}

.header_style_six .main-navigation>ul>li.dropdown:after {
  display: none;
}

/* Hide CTA button */
.header_style_six .mc-header-cta {
  display: none;
}

/* Hide header-action on desktop: only logo + nav visible */
@media only screen and (min-width: 992px) {
  .header_style_six .header-action {
    display: none !important;
  }
}

/* ===== Hero 7 ===== */

/* Reduce top margin: header is in flow */
.mc-hero7-sec {
  margin-top: 20px;
}

/* Ensure hero has enough height for video background */
.mc-hero7-item {
  min-height: 75vh;
  align-items: flex-end;
  padding-bottom: 80px;
}

/* Full-width text container at bottom */
.mc-hero7-item .mc-hr7-text {
  width: 100%;
}

.mc-hero7-item .mc-hr7-textarea {
  width: 100%;
}

/* Description: full width at the very bottom */
.mc-hr7-desc {
  max-width: 100%;
}

/* ===== Responsive - Header ===== */

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .mc-header-section.header_style_six .container {
    padding: 0 30px;
  }

  .header_style_six .main-navigation li {
    margin: 0 14px;
  }

  .header_style_six .main-navigation li a {
    font-size: 15px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .mc-header-section.header_style_six .container {
    padding: 0 20px;
  }

  .header_style_six .main-navigation li {
    margin: 0 10px;
  }

  .header_style_six .main-navigation li a {
    font-size: 14px;
  }

  .header_style_six .brand-logo img {
    height: 45px;
    max-height: 45px;
  }

  .mc-header-section.header_style_six .mc-header-content {
    height: 60px;
  }
}

/* Tablet */
@media only screen and (max-width: 991px) {
  .mc-header-section.header_style_six {
    padding: 0;
  }

  .mc-header-section.header_style_six .container {
    padding: 0 20px;
  }

  .mc-header-section.header_style_six .mc-header-content {
    height: 60px;
    margin-top: 0;
  }

  .header_style_six .brand-logo img {
    height: 45px;
    max-height: 45px;
  }

  .header_style_six .main-navigation {
    display: none;
  }

  .header_style_six .header-action {
    display: flex;
    align-items: center;
  }

  .header_style_six .mc-mobile-menu-btn button span {
    background-color: #002D74;
  }

  .mc-hero7-sec {
    margin-top: 10px;
  }

  .mc-hero7-item {
    min-height: 50vh;
    align-items: flex-end;
    padding-bottom: 60px;
  }
}

/* Small mobile */
@media only screen and (max-width: 480px) {
  .mc-header-section.header_style_six .container {
    padding: 0 15px;
  }

  .mc-header-section.header_style_six .mc-header-content {
    height: 55px;
  }

  .header_style_six .brand-logo img {
    height: 38px;
    max-height: 38px;
  }

  .mc-hero7-sec {
    margin-top: 0;
  }

  .mc-hero7-item {
    min-height: 40vh;
    align-items: flex-end;
    padding-bottom: 40px;
  }
}

/* ===== Slider Style 2 - Description text (COMPROMETIDOS CON LA SALUD) ===== */

/* Container for description lines */
.mc-hr7-desc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 100%;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(50px, 6.5vw, 96px);
  /* Animate like the original <p> */
  -webkit-transition: 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

/* When slide is active, reveal description */
.swiper-slide-active .mc-hr7-desc {
  -webkit-transition-delay: 1500ms;
  transition-delay: 1500ms;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* First line: light weight */
.mc-hr7-desc .mc-hr7-desc-light {
  display: block;
  font-weight: 300;
  font-size: 60px !important;
  margin-left: 120px;
}

/* Remaining lines: bold weight */
.mc-hr7-desc .mc-hr7-desc-bold {
  display: block;
  font-weight: 700;
  font-size: 60px !important;
  text-align: center;
  align-self: center;
}

/* Responsive adjustments */
@media only screen and (min-width: 1600px) {
  .mc-hr7-desc {
    font-size: 96px;
  }

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 60px !important;
  }
}

@media only screen and (max-width: 991px) {
  .mc-hr7-desc {
    font-size: 56px;
  }

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 46px !important;
  }

  .mc-hr7-desc .mc-hr7-desc-light {
    margin-left: 80px;
  }
}

@media only screen and (max-width: 767px) {
  .mc-hr7-desc {
    font-size: 46px;
  }

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 38px !important;
  }

  .mc-hr7-desc .mc-hr7-desc-light {
    margin-left: 50px;
  }
}

/* Mobile: 441px - 480px */
@media only screen and (max-width: 480px) {
  .mc-hr7-desc {
    font-size: 36px;
  }

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 30px !important;
  }

  .mc-hr7-desc .mc-hr7-desc-light {
    margin-left: 30px;
  }
}

/* Mobile: 428px - 440px (iPhone 14 Pro Max, etc.) */
@media only screen and (max-width: 440px) {

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 28px !important;
  }

  .mc-hr7-desc .mc-hr7-desc-light {
    margin-left: 28px;
  }
}

/* Mobile: 412px - 427px (Pixel, Galaxy S series) */
@media only screen and (max-width: 414px) {

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 26px !important;
  }

  .mc-hr7-desc .mc-hr7-desc-light {
    margin-left: 24px;
  }
}

/* Mobile: 384px - 411px (Nexus, smaller Androids) */
@media only screen and (max-width: 393px) {

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 24px !important;
  }

  .mc-hr7-desc .mc-hr7-desc-light {
    margin-left: 20px;
  }
}

/* Mobile: 360px - 383px (Galaxy S8, etc.) */
@media only screen and (max-width: 375px) {

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 22px !important;
  }

  .mc-hr7-desc .mc-hr7-desc-light {
    margin-left: 16px;
  }
}

/* Mobile: 320px - 359px (iPhone SE, small devices) */
@media only screen and (max-width: 359px) {

  .mc-hr7-desc .mc-hr7-desc-light,
  .mc-hr7-desc .mc-hr7-desc-bold {
    font-size: 20px !important;
  }

  .mc-hr7-desc .mc-hr7-desc-light {
    margin-left: 12px;
  }
}

/* ===== Footer 7 - Logo badge column next to Horario ===== */
.mc-ftr7-logo-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  padding-top: 5px;
}

.mc-ftr7-logo-col .mc-ftr7-logo-badge {
  max-height: 200px;
  width: 200px;
  height: auto;
  object-fit: contain;
}

@media only screen and (max-width: 991px) {
  .mc-ftr7-logo-col {
    display: none;
  }
}

/* ===== Medicox About - Style 3 (Laboratorios Vargas - Figma) ===== */

/* Override default theme styles that conflict */
.mc-wc1-sec.lv-about-section {
  padding: clamp(60px, 8vw, 120px) 0 0 0;
  overflow: hidden;
  background-color: #cbd7f2;
}

/* Hide old absolute-positioned images (no longer in markup but safety) */
.mc-wc1-sec.lv-about-section .mc-wc1-img1,
.mc-wc1-sec.lv-about-section .mc-wc1-img2 {
  display: none !important;
}

/* ---- Grid Layout ---- */
.lv-about-grid {
  display: grid;
  grid-template-columns: 28.7% 1fr 30.5%;
  grid-template-rows: auto 1fr;
  min-height: clamp(480px, 46vw, 700px);
  overflow: visible;
}

/* Heading: spans left + center columns, top row */
.lv-about-heading {
  grid-column: 1 / 3;
  grid-row: 1;
  padding: clamp(45px, 5.1vw, 80px) 40px clamp(25px, 2.6vw, 40px);
  padding-left: clamp(30px, 10.7vw, 162px);
  align-self: start;
  z-index: 2;
}

.lv-about-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.35vw, 20px);
  line-height: 1.3;
  color: #2d3f65;
  margin-bottom: 20px;
}

.lv-about-heading .sec_title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 48px);
  line-height: 1.1;
  color: #2d3f65;
  max-width: 15.3em;
  margin: 0;
}

/* Right Image: full right column, spans both rows */
.lv-about-img-right {
  grid-column: 3;
  grid-row: 1 / 3;
  overflow: visible;
  position: relative;
  min-height: 0;
  margin-top: calc(-1 * clamp(60px, 8vw, 120px));
}

.lv-about-img-right>img:first-child {
  width: 100%;
  height: 76%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Pill icon - bottom-left of right image */
.lv-about-pill-icon {
  position: absolute;
  top: 66%;
  left: -60px;
  width: clamp(80px, 8vw, 130px);
  height: auto;
  z-index: 3;
  object-fit: contain;
  pointer-events: none;
}

/* Left Image: left column, bottom row */
.lv-about-img-left {
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
  position: relative;
}

.lv-about-img-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Description: center column, bottom row */
.lv-about-description {
  grid-column: 2;
  grid-row: 2;
  padding: clamp(10px, 1.3vw, 20px) 40px clamp(30px, 4vw, 60px);
  padding-left: clamp(25px, 4.5%, 68px);
  align-self: start;
  z-index: 2;
}

.lv-about-desc-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #2d3f65;
  max-width: 400px;
}

.lv-about-desc-text p {
  margin-bottom: 8px;
}

.lv-about-desc-text p:last-child {
  margin-bottom: 0;
}

.lv-about-list {
  margin-top: 14px;
}

.lv-about-quote {
  margin-top: 14px;
}

.lv-about-quote p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: #2d3f65;
}

.lv-about-btn {
  margin-top: 25px;
}

/* ---- Responsive: 1400–1599px ---- */
@media only screen and (min-width: 1400px) and (max-width: 1599px) {
  .lv-about-grid {
    grid-template-columns: 27% 1fr 28%;
  }
}

/* ---- Responsive: 1200–1399px ---- */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .lv-about-grid {
    grid-template-columns: 25% 1fr 27%;
  }

  .lv-about-heading {
    padding-left: clamp(25px, 10.7%, 150px);
  }

  .lv-about-subtitle {
    margin-bottom: 16px;
  }

  .lv-about-description {
    padding: 15px 25px 50px;
    padding-left: clamp(20px, 4%, 56px);
  }

  .lv-about-desc-text {
    font-size: 15px;
    max-width: 380px;
  }
}

/* ---- Responsive: 992–1199px (Tablet Landscape) ---- */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .lv-about-grid {
    grid-template-columns: 23% 1fr 25%;
  }

  .lv-about-heading {
    padding-right: 20px;
    padding-bottom: 25px;
    padding-left: clamp(20px, 10.7%, 120px);
  }

  .lv-about-subtitle {
    margin-bottom: 14px;
  }

  .lv-about-description {
    padding: 10px 20px 40px;
    padding-left: clamp(15px, 3.5%, 42px);
  }

  .lv-about-desc-text {
    font-size: 14px;
    line-height: 19px;
    max-width: 340px;
  }
}

/* ---- Responsive: 768–991px (Tablet Portrait) ---- */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .lv-about-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }

  .lv-about-heading {
    grid-column: 1;
    grid-row: 1;
    padding: 40px 20px 30px 30px;
  }

  .lv-about-img-right {
    grid-column: 2;
    grid-row: 1;
    max-height: 420px;
    overflow: hidden;
  }

  .lv-about-pill-icon {
    bottom: 8%;
    left: -40px;
    width: clamp(70px, 7vw, 100px);
  }

  .lv-about-img-left {
    grid-column: 1;
    grid-row: 2;
    max-height: 320px;
  }

  .lv-about-description {
    grid-column: 2;
    grid-row: 2;
    padding: 20px 25px 40px;
  }

  .lv-about-heading .sec_title {
    max-width: 100%;
  }

  .lv-about-subtitle {
    margin-bottom: 12px;
  }

  .lv-about-desc-text {
    font-size: 14px;
    line-height: 19px;
    max-width: 100%;
  }
}

/* ---- Responsive: 576–767px (Mobile Landscape) ---- */
@media only screen and (min-width: 576px) and (max-width: 767px) {
  .lv-about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
  }

  .lv-about-heading {
    grid-column: 1;
    grid-row: 1;
    padding: 40px 25px 25px;
  }

  .lv-about-img-right {
    grid-column: 1;
    grid-row: 2;
    max-height: 400px;
    overflow: hidden;
  }

  .lv-about-pill-icon {
    bottom: auto;
    top: -35px;
    left: auto;
    right: 20px;
    width: 70px;
  }

  .lv-about-description {
    grid-column: 1;
    grid-row: 3;
    padding: 25px 25px 30px;
  }

  .lv-about-img-left {
    grid-column: 1;
    grid-row: 4;
    max-height: 280px;
  }

  .lv-about-heading .sec_title {
    max-width: 100%;
  }

  .lv-about-desc-text {
    font-size: 14px;
    line-height: 19px;
    max-width: 100%;
  }
}

/* ---- Responsive: 481–575px (Small Mobile) ---- */
@media only screen and (min-width: 481px) and (max-width: 575px) {
  .lv-about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
  }

  .lv-about-heading {
    grid-column: 1;
    grid-row: 1;
    padding: 35px 20px 20px;
  }

  .lv-about-img-right {
    grid-column: 1;
    grid-row: 2;
    max-height: 350px;
    overflow: hidden;
  }

  .lv-about-pill-icon {
    bottom: auto;
    top: -30px;
    left: auto;
    right: 15px;
    width: 60px;
  }

  .lv-about-description {
    grid-column: 1;
    grid-row: 3;
    padding: 20px 20px 25px;
  }

  .lv-about-img-left {
    grid-column: 1;
    grid-row: 4;
    max-height: 250px;
  }

  .lv-about-heading .sec_title {
    max-width: 100%;
  }

  .lv-about-subtitle {
    margin-bottom: 12px;
  }

  .lv-about-desc-text {
    font-size: 14px;
    line-height: 19px;
    max-width: 100%;
  }
}

/* ---- Responsive: ≤480px (Extra Small Mobile) ---- */
@media only screen and (max-width: 480px) {
  .lv-about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
  }

  .lv-about-heading {
    grid-column: 1;
    grid-row: 1;
    padding: 30px 15px 15px;
  }

  .lv-about-img-right {
    grid-column: 1;
    grid-row: 2;
    max-height: 300px;
    overflow: hidden;
  }

  .lv-about-pill-icon {
    bottom: auto;
    top: -25px;
    left: auto;
    right: 15px;
    width: 50px;
  }

  .lv-about-description {
    grid-column: 1;
    grid-row: 3;
    padding: 20px 15px;
  }

  .lv-about-img-left {
    grid-column: 1;
    grid-row: 4;
    max-height: 220px;
  }

  .lv-about-heading .sec_title {
    max-width: 100%;
  }

  .lv-about-subtitle {
    margin-bottom: 10px;
  }

  .lv-about-desc-text {
    font-size: 13px;
    line-height: 18px;
    max-width: 100%;
  }
}