body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: #324b56;
  padding-top: 72px;
}

a {
  text-decoration: none;
}

/* HERO */
.hero {
  position: relative;
  min-height: 85vh;
  background-color: #f7fafc;
  background-image: url("../img/home/slide-1.jpg");
  background-size: cover;
  background-position: center;
}

.hero-title {
  line-height: 1;
  color: #668d9d;
  margin: 0;
}

/* .hero-title-main {
  display: block;
  font-weight: 600;
  font-size: 3.3rem;
} */

.hero-title-sub {
  display: block;
  font-weight: 400;
  font-size: 5rem;
  color: #eca694;
}

.hero-title-main,
.hero-subtitle {
  font-size: 2rem;
  color: #668d9d;
  font-weight: 200;
  line-height: 1.2;
}

.hero-text-block {
  margin-top: 90px;
}

.btn-hero {
  font-size: 0.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.4rem;
  background-color: transparent;
  border: 1px solid #eca694;
  color: #668d9d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-hero:hover {
  background-color: rgba(242, 140, 125, 0.08);
  border-color: #eca694;
  color: #3f6f83;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* fondo slide 1 */
.hero-slide-1 {
  background-image: url("../img/home/slide-1.jpg");
}

/* fondo slide 2 */
.hero-slide-2 {
  background-image: url("../img/home/slide-2.jpg");
}

.vh-90 {
  height: 90vh;
}

/* Estilos para flechas del slide show */

#carouselExampleIndicators .carousel-control-prev-icon,
#carouselExampleIndicators .carousel-control-next-icon {
  background-image: none;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #668d9d;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}

#carouselExampleIndicators .carousel-control-prev-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

#carouselExampleIndicators .carousel-control-next-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 14.354a.5.5 0 0 1 0-.708L10.293 8 4.646 2.354a.5.5 0 1 1 .708-.708l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708 0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 14.354a.5.5 0 0 1 0-.708L10.293 8 4.646 2.354a.5.5 0 1 1 .708-.708l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708 0z'/%3E%3C/svg%3E");
}

/* Estilos para los circulos indicadores del slide show */
#carouselExampleIndicators .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 6px;
}

/* opcional: color y opacidad */
#carouselExampleIndicators .carousel-indicators [data-bs-target] {
  background-color: #668d9d; /* tu color */
  opacity: 0.35;
}

#carouselExampleIndicators .carousel-indicators .active {
  opacity: 1;
}

@media (min-width: 1200px) {
  .hero {
    background-position: 70% center;
  }
}

/* SECCIÓN INFERIOR */
.feature-section {
  background-color: #ffffff;
}

/* Título */
.feature-title {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  color: #668d9d;
  font-weight: 400;
  margin: 0;
}

.feature-title strong {
  font-weight: 600;
}

/* Texto */
.feature-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #000000;
}

.feature-btn {
  margin-top: 0.5rem;
}

/* ==== BLOQUE DE IMÁGENES  ==== */
.product-image-stack {
  position: relative;
  width: 100%;
  max-width: 680px;
  border-radius: 1.4rem;
  height: 380px;
  overflow: hidden;
}

.product-image-layer {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.product-image-1 {
  background-image: url("../img/home/montaje-packaging-copa-coral.jpg");
  opacity: 1;
}

.product-image-2 {
  background-image: url("../img/home/montaje-packaging-copa-turquesa.jpg");
}

@media (min-width: 992px) {
  .feature-title {
    font-size: 1.7rem;
  }

  .feature-text {
    font-size: 1.3rem;
  }

  .product-image-stack {
    max-width: 720px;
    height: 420px;
  }
}

@media (min-width: 992px) {
  .product-image-layer{
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
}


/* ====== BENEFITS SECTION ====== */

.benefits-section {
  position: relative;
  min-height: 70vh;
  background-image: url("../img/home/home-copa-corazon-manos.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  overflow: hidden;
}

@media (min-width: 992px) {
  .benefits-section {
    background-attachment: fixed;
    background-position: center top;
  }
}

.benefits-overlay {
  position: absolute;
  inset: 0;
  background: rgba(102, 141, 157, 0.7);
}

.benefits-section .container {
  position: relative;
  z-index: 1;
}

.benefit-item {
  color: #ffffff;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.benefit-icon img,
.benefit-icon svg {
  max-width: 100%;
  max-height: 100%;
}

.benefit-value {
  font-size: 1.8rem;
  font-weight: 600;
}

.benefit-label {
  font-size: 1.1rem;
  opacity: 0.95;
}

.benefits-row {
  --bs-gutter-x: 1rem;
}

.benefits-text {
  font-size: 2rem;
}

.benefits-container {
  padding-top: 8rem !important;
  padding-bottom: 4rem !important;
}

@media (min-width: 992px) {
  .benefits-container {
    padding-top: 8rem !important;
    padding-bottom: 4rem !important;
  }
}

@media (min-width: 768px) {
  .benefits-section {
    min-height: 70vh;
  }

  .benefits-row {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* ====== MANUFACTURING / ABOUT SECTION ====== */

.manufacturing-section {
  background-color: #ffffff;
}

.mf-row-top {
  margin-top: 3rem;
  margin-bottom: 5rem;
  --bs-gutter-x: 4rem;
}

.mf-row-bottom {
  margin-top: 5rem;
  margin-bottom: 3rem;
  --bs-gutter-x: 2.5rem;
}

/* === IMÁGENES === */
.mf-card-img {
  border-radius: 18px;
  overflow: hidden;
  background-color: #f3f6f8;
}

.mf-card-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* === TEXTOS === */
.mf-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #668d9d;
}

.mf-heading-small {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #668d9d;
}

.mf-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #000000;
}

@media (min-width: 992px) {
  .mf-heading {
    font-size: 1.15rem;
  }

  .mf-text {
    font-size: 0.95rem;
  }
}

.manufacturing-section .mf-card-img {
  margin-bottom: 2rem !important;
}

.manufacturing-section .mf-heading,
.manufacturing-section .mf-heading-small {
  margin-bottom: 1rem !important;
}

.manufacturing-section .mf-text {
  margin-bottom: 0;
}

.manufacturing-section .col-md-6,
.manufacturing-section .col-md-4 {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.manufacturing-section .col-md-6:hover,
.manufacturing-section .col-md-4:hover {
  transform: translateY(-6px);
}

.manufacturing-section .col-md-6:hover .mf-card-img,
.manufacturing-section .col-md-4:hover .mf-card-img {
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.06);
}

.manufacturing-section .col-md-6:hover .mf-heading,
.manufacturing-section .col-md-4:hover .mf-heading,
.manufacturing-section .col-md-4:hover .mf-heading-small {
  color: #3f6f83;
}

/* ====== PUBLICACIONES ====== */

.publications-section {
  background-color: #f3f6f8;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-image: url("../img/home/publicaciones-novassana-web.jpg");
  background-position: center;
  background-repeat: no-repeat;
}

.publications-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.publications-section > .container {
  position: relative;
  z-index: 1;
}

.pub-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #eca694;
}

.pub-card {
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #e3eaef;
  display: flex;
}

.pub-card-body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pub-card-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: #668d9d;
  margin-bottom: 0.45rem;
}

.pub-card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.pub-btn {
  font-size: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: 9px;
  border-color: #cad5dd;
  color: #668d9d;
  background-color: #ffffff;
  align-self: flex-start;
}

.pub-btn:hover {
  background-color: #e7eef3;
  border-color: #b4c3ce;
  color: #42525b;
}

.pub-more-btn {
  margin-top: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 0.9rem;
  background-color: #eca694;
  color: #233647;
  border-color: #668d9d;
}

.pub-more-btn:hover {
  background-color: #e08b73;
  border-color: #e08b73;
  color: #3f6f83;
}

/* ===== HERO: MÓVIL (hasta 767.98px) ===== */
@media (max-width: 767.98px) {
  .hero {
    background-image: none;
    min-height: auto;
    align-items: stretch !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero .row {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero > .container {
    padding-top: 0 !important;
  }

  .hero {
    overflow-x: clip;
  }

  .hero-lab {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;

    height: 42vh;
    background-image: url("../img/home/slider-home-novassana-web.jpg");
    background-size: cover;
    background-position: 100% center;
    background-repeat: no-repeat;
    border-radius: 0;
  }
  .hero-text-block {
    margin-top: 1.25rem;
    text-align: center;
  }

  .btn-hero {
    display: inline-block;
  }

  .hero-title-main {
    font-size: 2.1rem;
  }
  .hero-title-sub {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-slide {
    background-image: none !important;
  }

  .hero-mobile-img {
    width: 100%;
    height: 42vh;
    object-fit: cover;
    object-position: right center;
    display: block;
  }

  .hero-text-block {
    background: #fff;
    padding: 2rem 1.25rem;
  }

  .vh-90 {
    height: auto;
  }

  #carouselExampleIndicators .carousel-control-prev,
  #carouselExampleIndicators .carousel-control-next {
    top: 0;
    bottom: auto;
    height: 45vh;
  }

  .carousel-indicators {
    bottom: -15px;
  }
}

.carousel-control-prev{
  width: auto;
  left: 1rem;
}

.carousel-control-next{
  width: auto;
  right: 1rem;
}

/* ===== FEATURE SECTION: SOLO MÓVIL ===== */
@media (max-width: 767.98px) {
  .feature-section .row {
    display: flex;
    flex-direction: column-reverse;
    margin-top: 1rem;
  }

  .feature-section .col-md-6.d-flex {
    justify-content: center !important;
  }

  .product-image-stack {
    width: 100%;
    max-width: 560px;
    height: clamp(320px, 60vw, 420px);

    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    overflow: hidden;
  }

  .feature-section .col-md-6:first-child {
    text-align: center;
  }

  .feature-btn {
    display: inline-block;
  }

  .product-image-layer {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
}

/* ===== BENEFITS: SOLO MÓVIL ===== */
@media (max-width: 991.98px) {
  .benefits-container {
    padding-top: 4.5rem !important;
    padding-bottom: 3rem !important;
  }

  .benefits-row {
    margin-bottom: 1.25rem !important;
  }
}

/* ===== MANUFACTURING: SOLO MÓVIL ===== */
@media (max-width: 991.98px) {
  .manufacturing-section .mf-row-top,
  .manufacturing-section .mf-row-bottom {
    margin-top: 0;
    margin-bottom: 0;
    --bs-gutter-x: 1.5rem;
  }

  .manufacturing-section .row {
    row-gap: 1.75rem;
  }

  .manufacturing-section .mf-heading,
  .manufacturing-section .mf-heading-small,
  .manufacturing-section .mf-text {
    text-align: center;
  }

  .manufacturing-section .mf-card-img {
    width: 100%;
    height: 220px;
    margin-bottom: 0.9rem !important;
  }

  .manufacturing-section .mf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .manufacturing-section .col-md-6:hover,
  .manufacturing-section .col-md-4:hover {
    transform: none;
  }
}

@media (min-width: 391px) and (max-width: 767.98px) {
  .manufacturing-section .mf-row-top .mf-card-img {
    height: 300px !important;
  }
}

/* ===== BENEFITS: SOLO MÓVIL (<= 767.98px) ===== */
@media (max-width: 767.98px) {
  .benefits-section,
  .benefits-section .benefits-container,
  .benefits-section .benefits-row,
  .benefits-section .benefit-item,
  .benefits-section .benefits-text {
    text-align: center !important;
  }

  .benefits-section .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
  }

  .benefits-section .benefit-icon {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }

  .benefits-section .benefit-icon img {
    display: block;
    margin: 0 auto !important;
  }

  .benefits-section .benefits-text {
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    margin-left: auto;
    margin-right: auto;
  }
}
/* ===== BENEFITS: SOLO TABLET (768px a 991.98px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .benefits-section,
  .benefits-section .benefits-container,
  .benefits-section .benefits-row,
  .benefits-section .benefit-item,
  .benefits-section .benefits-text {
    text-align: center !important;
  }

  .benefits-section .benefits-row {
    justify-content: center !important;
  }

  .benefits-section .benefit-item {
    align-items: center !important;
  }

  .benefits-section .benefit-icon {
    justify-content: center !important;
  }
}

/* ===== PUBLICACIONES: SOLO TABLET (768px a 991.98px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* sección menos alta */
  .publications-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-position: center top;
  }

  .pub-card-body {
    padding: 14px 14px 12px;
  }

  .pub-card-heading {
    font-size: 1.1rem; 
    margin-bottom: 0.35rem;
  }

  .pub-card-text {
    font-size: 0.85rem; 
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; 
    overflow: hidden;
  }

  .pub-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
  }

  .pub-title {
    margin-bottom: 1.25rem !important;
  }
}

/* ===== PUBLICACIONES: SOLO MÓVIL ===== */
@media (max-width: 991.98px) {
  .publications-section {
    padding-top: 2.75rem;
    padding-bottom: 4rem;
    background-position: center top;
  }

  .pub-title {
    margin-bottom: 1rem !important;
  }

  .publications-section .row {
    margin-bottom: 1.25rem !important;
  }
}