/* Home — una sola pantalla, sin scroll horizontal ni vertical */

html:has(body.page-home),
body.page-home {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden !important;
}

body.page-home {
  min-height: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  padding-top: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

body.page-home > header {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  z-index: 20;
}

body.page-home > main.home_main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

body.page-home > footer {
  flex: 0 0 auto;
  height: 5em !important;
  margin-top: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
  visibility: visible !important;
}

body.page-home .logo_row {
  height: 100%;
  max-width: none;
  visibility: visible !important;
}

body.page-home .logo_box,
body.page-home .logo_box img {
  visibility: visible !important;
  opacity: 1 !important;
}

.page-home .home_text {
  flex: 0.95 1 0;
  min-height: 0;
  height: auto !important;
  padding: 0.6em 1em 0.35em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.page-home .home_text .jumbo_text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  margin: 0 auto;
  max-width: min(18em, 92vw);
  width: 100%;
  font-size: clamp(1.2rem, 2.8vh + 0.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: #FFFFFF;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.page-home .jumbo_line {
  display: block;
}

.page-home .jumbo_emphasis {
  font-weight: 700;
  font-size: 1.18em;
  letter-spacing: 0.01em;
}

.page-home .jumbo_divider {
  width: 2.4em;
  height: 2px;
  margin: 0.7em auto 0;
  background: #FFFFFF;
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.page-home .home_carousel {
  flex: 1.15 1 0;
  min-height: 0;
  height: auto;
  padding: 0.2em 0 0.35em;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

.page-home .home_carousel_content {
  height: calc(100% - 1.6em);
  min-height: 0;
  max-height: none;
  width: max-content;
  max-width: none;
  align-items: flex-end;
  overflow: visible;
  transform: none;
  will-change: transform;
  box-sizing: border-box;
}

.page-home .carousel_item {
  width: min(22vw, 180px);
  height: 78%;
  margin: 0 0.35em;
  border-radius: 1.1em;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: height 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

.page-home .carousel_item_image {
  height: 100%;
  padding: 0;
}

.page-home .carousel_item_image a {
  display: block;
  height: 100%;
}

.page-home .carousel_item_image img {
  min-height: 100%;
  min-width: 100%;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 1.1em;
  opacity: 0.72;
}

.page-home .carousel_item_info {
  display: none;
  height: auto;
  padding: 0.65em 0.85em 0.8em;
  background: #FFFFFF;
  border-radius: 0 0 1.1em 1.1em;
  box-shadow: none;
  box-sizing: border-box;
}

.page-home .carousel_item_title,
.page-home .carousel_item_text {
  background: transparent;
  color: #192F40;
  padding: 0;
}

.page-home .carousel_item_title {
  font-size: clamp(0.78em, 1.4vh, 0.95em);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.55em;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .carousel_detail_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45em 0.95em;
  border-radius: 999px;
  background: #641113;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-size: 0.78em;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none;
  transition: background 0.2s ease;
}

.page-home .carousel_detail_btn:hover {
  background: #4e0d0f;
  color: #FFFFFF !important;
}

/* Centro activo desktop = 4º */
.page-home .carousel_item:nth-child(4) {
  height: 100%;
  width: min(28vw, 300px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 32px rgba(25, 47, 64, 0.28);
}

.page-home .carousel_item:nth-child(4) .carousel_item_image {
  height: 62%;
  flex: 1 1 auto;
  min-height: 0;
}

.page-home .carousel_item:nth-child(4) .carousel_item_image img {
  border-radius: 1.1em 1.1em 0 0;
  opacity: 1;
}

.page-home .carousel_item:nth-child(4) .carousel_item_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 0;
}

.page-home .carnav {
  width: 2.4em;
  height: 2.4em;
  top: 42%;
  transform: none;
  border: none;
  border-radius: 50%;
  background: rgba(25, 47, 64, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.page-home .carnav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5em;
  height: 0.5em;
  border-top: 2px solid #FFFFFF;
  border-right: 2px solid #FFFFFF;
}

.page-home .carnav.carnav_left {
  left: 0.7em;
  border-width: 0;
}

.page-home .carnav.carnav_left::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.page-home .carnav.carnav_right {
  right: 0.7em;
  border-width: 0;
}

.page-home .carnav.carnav_right::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.page-home .carousel_dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  height: 1.4em;
  margin: 0.15em 0 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.page-home .carousel_dot {
  width: 0.42em;
  height: 0.42em;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.page-home .carousel_dot.is-active {
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media all and (max-width: 992px) {
  body.page-home > footer {
    height: 5.5em !important;
    padding: 0.55em 0 !important;
  }

  body.page-home .logo_box {
    padding: 0.35em 0.75em;
  }

  body.page-home .logo_box img {
    max-height: 90%;
    max-width: 120px;
    min-width: 70px;
  }

  .page-home .home_text .jumbo_text {
    font-size: clamp(1.15rem, 3.2vh + 0.5vw, 1.85rem);
  }

  .page-home .carousel_item {
    width: min(28vw, 160px);
  }

  .page-home .carousel_item:nth-child(4) {
    height: 78%;
    width: min(28vw, 160px);
    display: inline-block;
    box-shadow: none;
  }

  .page-home .carousel_item:nth-child(4) .carousel_item_image {
    height: 100%;
  }

  .page-home .carousel_item:nth-child(4) .carousel_item_image img {
    border-radius: 1.1em;
    opacity: 0.72;
  }

  .page-home .carousel_item:nth-child(4) .carousel_item_info {
    display: none;
  }

  .page-home .carousel_item:nth-child(3) {
    height: 100%;
    width: min(52vw, 250px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 32px rgba(25, 47, 64, 0.28);
  }

  .page-home .carousel_item:nth-child(3) .carousel_item_image {
    height: 62%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
  }

  .page-home .carousel_item:nth-child(3) .carousel_item_image img {
    border-radius: 1.1em 1.1em 0 0;
    opacity: 1;
  }

  .page-home .carousel_item:nth-child(3) .carousel_item_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 auto;
  }
}

@media all and (max-width: 768px) {
  body.page-home > header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5em 0.75em !important;
  }

  body.page-home .logo {
    margin: 0 !important;
    width: auto !important;
    max-width: calc(100% - 3.6em) !important;
    flex: 0 1 auto;
  }

  body.page-home .header_button_row {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    margin-left: auto !important;
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  body.page-home .header_nav {
    top: 4.5em !important;
  }

  .page-home .home_text {
    flex: 0.9 1 0;
    height: auto !important;
    padding: 0.45em 0.85em 0.25em;
  }

  .page-home .home_carousel {
    flex: 1.15 1 0;
    min-height: 0;
    overflow: hidden;
  }

  .page-home .home_carousel_content {
    height: calc(100% - 1.5em);
    min-height: 0;
  }
}

@media all and (max-width: 640px) {
  body.page-home > footer {
    height: 5.25em !important;
    padding: 0.45em 0 !important;
  }

  body.page-home .logo_row {
    gap: 1.75em;
    animation-duration: 22s;
  }

  body.page-home .logo_box img {
    max-height: 85%;
    max-width: 110px;
    min-width: 64px;
  }

  .page-home .home_text .jumbo_text {
    font-size: clamp(1.05rem, 3.4vh + 0.6vw, 1.55rem);
    max-width: 15em;
  }

  .page-home .jumbo_divider {
    margin-top: 0.5em;
  }

  .page-home .carousel_item {
    width: min(42vw, 150px);
  }

  .page-home .carousel_item:nth-child(3) {
    height: 78%;
    width: min(42vw, 150px);
    display: inline-block;
    box-shadow: none;
  }

  .page-home .carousel_item:nth-child(3) .carousel_item_image {
    height: 100%;
  }

  .page-home .carousel_item:nth-child(3) .carousel_item_image img {
    border-radius: 1.1em;
    opacity: 0.72;
  }

  .page-home .carousel_item:nth-child(3) .carousel_item_info {
    display: none;
  }

  .page-home .carousel_item:nth-child(2) {
    height: 100%;
    width: min(68vw, 250px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 32px rgba(25, 47, 64, 0.28);
  }

  .page-home .carousel_item:nth-child(2) .carousel_item_image {
    height: 62%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
  }

  .page-home .carousel_item:nth-child(2) .carousel_item_image img {
    border-radius: 1.1em 1.1em 0 0;
    opacity: 1;
  }

  .page-home .carousel_item:nth-child(2) .carousel_item_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 auto;
  }

  .page-home .carnav {
    width: 2.15em;
    height: 2.15em;
    top: 40%;
  }

  .page-home .carnav.carnav_left {
    left: 0.4em;
  }

  .page-home .carnav.carnav_right {
    right: 0.4em;
  }
}

@supports not (height: 100dvh) {
  body.page-home {
    height: 100vh !important;
    max-height: 100vh !important;
  }
}
