@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}
:root {
  --color-primary-redesign: 0 152 120;
  --color-primary-redesign-rbg: #009878;
  --color-secondary-redesign: 37 150 190;
  --color-secondary-redesign-rbg: #2F95BB;
  --color-primary-2-redesign: 0 152 124;
  --color-primary-2-redesign-rbg: #00987C;
  --color-secondary-2-redesign: 7 116 185;
  --color-secondary-2-redesign-rbg: #0774B9;
  --color-bg-redesign: 255 255 255;
  --color-bg-redesign-rbg: #ffffff;
  --color-text-redesign-: 68 68 68;
  --color-text-redesign-rbg: #444444;
  --color-accent-redesign: 8 233 181;
  --color-accent-redesign-rbg: #08E9B5;
  --color-bg-grey-redesign: #F7F7F7;
  --color-gradient-black1-redesign: 0 0 0;
  --color-gradient-black1-redesign-rbg: #000000;
  --color-gradient-black2-redesign: 84 84 84;
  --color-gradient-black2-redesign-rbg: #545454;
  --color-blue-redesign: #2F95BB;
}

/* Redundant Scrollbar Fix */
.dialog-off-canvas-main-canvas {
  /* overflow-y: initial !important; removed per user request */
}

.hover\:underline:hover {
  text-decoration-line: none !important;
}

.z-999 {
  z-index: 999;
}

.max-h-\[100px\] {
  max-height: 100px;
}

.max-h-\[80px\] {
  max-height: 80px;
}

.right-20 {
  right: 5rem;
}

.h-72 {
  height: 18rem;
}

.h-56 {
  height: 14rem;
}

.h-60 {
  height: 15rem;
}

.w-44 {
  width: 11rem;
}

.gap-16 {
  gap: 4rem;
}

.text-\[\#057CAC\] {
  --tw-text-opacity: 1;
  color: rgb(5 124 172 / var(--tw-text-opacity, 1));
}

.max-h-\[80px\] {
  max-height: 80px;
}

.bg-black\/60 {
  background-color: rgba(0, 0, 0, 0.6);
}

.min-h-\[575px\] {
  min-height: 575px;
}

.p-32 {
  padding: 8rem;
}

.h-\[900px\] {
  max-height: 900px;
}

.p-12 {
  padding: 3rem;
}

.prose {
  color: #000;
}

.prose-a\:text-primary :is(:where(a):not(:where([class~="not-prose"], [class~="not-prose"] *))) {
  color: #2073C4;
}

@media (min-width: 768px) {
  .md\:p-32 {
    padding: 8rem;
  }

  .md\:h-\[900px\] {
    max-height: 900px;
    height: 900px;
  }
}

/*****************************************************************************************************/
/******************************* BIBLIOGRAFIA DESTACADA  **********************************************/
/*****************************************************************************************************/
/* --- Flyer Grid --- */
.pc-flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}


.pc-flyer-card {
  display: flex;
  flex-direction: column;
  /* background: white; */
  /* border-radius: 1.5rem; */
  padding: 1.5rem;
  text-decoration: none !important;
  height: 100%;
  /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); */
  cursor: pointer;
}

.pc-flyer-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pc-flyer-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.75rem;
}

.pc-flyer-image img[src*="/media-icons/"] {
  width: 64px !important;
  height: 64px !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
  margin: auto !important;
}

.pc-flyer-image:has(img[src*="/media-icons/"]) {
  background: #f4f7f6 !important;
  border: 1px solid #e2e8f0 !important;
}

.pc-flyer-card:hover .pc-flyer-image img {
  opacity: 0.92;
}

/* Teal placeholder with white folded-corner paper effect */
.pc-flyer-placeholder {
  width: 100%;
  height: 100%;
  background: #2F95BB;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
}

/* White paper sheet inside the teal card */
.pc-flyer-placeholder::before {
  content: '';
  position: absolute;
  bottom: 18%;
  left: 18%;
  right: 18%;
  top: 18%;
  background: white;
  border-radius: 0.25rem;
  /* Clip to simulate folded top-right corner */
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

/* The folded corner triangle */
.pc-flyer-placeholder::after {
  content: '';
  position: absolute;
  top: calc(18% + 0px);
  right: 18%;
  width: 28px;
  height: 28px;
  background: #2F95BB;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transform: rotate(90deg);
}

.pc-flyer-placeholder .icon-flyer {
  display: none;
  /* hide old icon, replaced by pseudo-element design */
}

.pc-flyer-title {
  font-size: 0.875rem;
  color: #18759c;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  margin-top: 0.25rem;
}

/* Consolidate: Moved to unified block below */

@media (max-width: 768px) {
  .pc-flyer-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .pc-flyer-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0.75rem !important;
    gap: 1rem !important;
    text-align: left !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
  }

  .pc-flyer-image {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    aspect-ratio: auto !important;
  }

  .pc-flyer-image img[src*="/media-icons/"] {
    width: 32px !important;
    height: 32px !important;
  }

  .pc-flyer-title {
    font-size: 0.95rem !important;
    word-break: break-all !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
  }
}

.disease-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  box-shadow: none;
}

.disease-card:hover {
  background-color: #ffffff;
  transform: scale(1.08);
  box-shadow: none;
  border: none;
}

.biblio-img {
  height: 200px;
  overflow: hidden;
  background-color: #f7fafc;
}

.biblio-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* --- Bibliography Styles --- */
.pc-blog-resource-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pc-blog-resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.biblio-desc {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 10px;
}

.productos-destacados-wrapper {
  position: relative;
  padding: 0 30px;
  overflow: visible;
}

.productos-destacados-wrapper .slick-list {
  overflow: hidden;
}

.slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: #3182ce;
  color: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slick-arrow:hover {
  background-color: #2b6cb0;
}

.slick-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  position: absolute;
  top: 50%;
  left: 50%;
}

.slick-prev {
  left: -20px;
}

.slick-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.slick-next {
  right: -20px;
}

.slick-next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}



.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 26px;
  position: absolute;
  top: -2px;
  right: 1px;
  width: 20px
}

/* --- 2. Slick Arrow Customization --- */
.slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  background-color: #0074BC;
  color: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.slick-arrow:hover {
  background-color: #005a96;
}

.slick-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  position: absolute;
  top: 50%;
  left: 50%;
}

.slick-prev {
  left: -25px;
}

.slick-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.slick-next {
  right: -25px;
}

.slick-next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}


/*****************************************************************************************************/
/******************************* PATTERNS V2                       ***********************************/
/*****************************************************************************************************/
.text-secondary-redesign {
  --tw-text-opacity: 1;
  color: rgb(var(--color-secondary-redesign) / var(--tw-text-opacity));
}

.from-primary-2 {
  --tw-gradient-from: rgb(var(--color-primary-2-redesign) / 1) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(var(--color-primary-2-redesign) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.from-secondary-2 {
  --tw-gradient-from: rgb(var(--color-secondary-2-redesign) / 1) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(var(--color-secondary-2-redesign) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.to-primary-2 {
  --tw-gradient-to: rgb(var(--color-primary-2-redesign) / 1) var(--tw-gradient-to-position)
}

.to-secondary-2 {
  --tw-gradient-to: rgb(var(--color-secondary-2-redesign) / 1) var(--tw-gradient-to-position)
}

/* Translucent Header */
.from-secondary-2-translucent {
  --tw-gradient-from: rgb(var(--color-secondary-2-redesign) / 0.9) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(var(--color-secondary-2-redesign) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.to-primary-2-translucent {
  --tw-gradient-to: rgb(var(--color-primary-2-redesign) / 0.9) var(--tw-gradient-to-position)
}

.from-primary-2-translucent {
  --tw-gradient-from: rgb(var(--color-primary-2-redesign) / 0.9) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(var(--color-primary-2-redesign) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.to-secondary-2-translucent {
  --tw-gradient-to: rgb(var(--color-secondary-2-redesign) / 0.9) var(--tw-gradient-to-position)
}

.bg-color-grey {
  background-color: var(--color-bg-grey-redesign);
}

.bg-gray-50 {
  position: relative;
  z-index: 10;
}

.from-gradient-black1 {
  --tw-gradient-from: rgb(var(--color-gradient-black1-redesign) / 1) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(var(--color-gradient-black1-redesign) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

.to-gradient-black2 {
  --tw-gradient-to: rgb(var(--color-gradient-black2-redesign) / 1) var(--tw-gradient-to-position)
}

.bg-white h2.headline {
  /* color: #009B77; */
  text-transform: uppercase;
  font-weight: bolder;
}

/* Newsletter Redesign Specifics */
.newsletter-form-block-footer a {
  color: #2F95BB !important;
  text-decoration: none;
}

/* Hide large red validation error boxes on all webforms and forms */
.webform-submission-form div[role="alert"],
.webform-submission-form .alert.bg-red-100,
.webform-ajax-form-wrapper div[role="alert"],
.webform-ajax-form-wrapper .alert.bg-red-100,
form div[role="alert"].mb-4,
form .alert.alert--error {
  display: none !important;
}

/* Newsletter Button - more specific to override button.css */
.newsletter-actions button.btn,
.newsletter-actions input[type="submit"]{
  border-width: 2px !important;
  --tw-border-opacity: 1 !important;
  border-color: rgb(47 149 187 / var(--tw-border-opacity, 1)) !important;
  --tw-bg-opacity: 1 !important;
  background-color: rgb(47 149 187 / var(--tw-bg-opacity, 1)) !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  font-size: 1rem !important;
  line-height: 1.5rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.025em !important;
  --tw-text-opacity: 1 !important;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1)) !important;
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
  transition-property: all !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 300ms !important;
}

.newsletter-actions button.btn:hover,
.newsletter-actions input[type="submit"]:hover{
  --tw-border-opacity: 1 !important;
  border-color: rgb(30 124 161 / var(--tw-border-opacity, 1)) !important;
  --tw-bg-opacity: 1 !important;
  background-color: rgb(30 124 161 / var(--tw-bg-opacity, 1)) !important;
  opacity: 1 !important;
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}

/* Specific Blue Border and Black Text for Email Input */
.webform-submission-newsletter-form input[type="email"] {
  border-color: #2F95BB !important;
  border-width: 2px !important;
  line-height: 2.25rem !important;
  color: #000000 !important;
  /* 9 in tailwind spacing usually maps to 2.25rem */
}

/* Specific Blue for Checkboxes (Custom or Native accent) */
.webform-submission-form input[type="checkbox"],
.webform-submission-newsletter-form input[type="checkbox"] {
  color: #2F95BB;
  /* Tailwind form plugin uses text color for checkbox background */
  border-color: #2F95BB;
  border-width: 2px;
  --tw-ring-color: #2F95BB;
}

.webform-submission-form input[type="checkbox"]:checked,
.webform-submission-newsletter-form input[type="checkbox"]:checked {
  background-color: #2F95BB;
  border-color: #2F95BB;
}

.webform-submission-form input[type="checkbox"]:focus,
.webform-submission-newsletter-form input[type="checkbox"]:focus {
  --tw-ring-color: #2F95BB;
}

.submolecular {
  position: absolute;
  top: 45%;
  align-self: center;
  border-radius: 50%;
  background: black;
  opacity: 0.55;
  width: 150%;
  height: 80%;
  z-index: 0;
}

@media (max-width: 768px) {
  .submolecular {
    position: absolute;
    top: 0;
    align-self: center;
    border-radius: 50%;
    background: #000000;
    opacity: 0.55;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
}

/* Product/Instrument background serpiente - Combined on Main Content */
.bg-serpiente-combined {
  position: relative;
  isolation: isolate;
}

.bg-serpiente-combined::before,
.bg-serpiente-combined::after {
  content: "";
  position: absolute;
  width: 125vw;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% auto;
  z-index: -1;
  pointer-events: none;
  transform: rotate(10deg);
}

/* Top one */
.bg-serpiente-combined::before {
  top: 5%;
  background-image: url(../fonts/serpiente.svg);
  background-position: center top;
  left: -50vw;
}

/* Bottom one - Reversed */
.bg-serpiente-combined::after {
  bottom: 5%;
  background-image: url(../fonts/serpiente.svg);
  background-position: center bottom;
  transform: rotate(20deg);
  right: -50vw;
}

/* Control individual snakes based on field checkboxes */
.bg-serpiente-combined::before,
.bg-serpiente-combined::after {
  content: none;
}

.bg-serpiente-combined.show-serpiente-1::before {
  content: "";
}

.bg-serpiente-combined.show-serpiente-2::after {
  content: "";
  /* Gently shift pale-blue SVG (#ecf5fd, ~210°) to pale-green (~165°)
     keeping the same subtle watermark look as the 1st snake. */
  filter: hue-rotate(-45deg);
}

/* Blog specific background pattern (Serpiente) - Only 1 snake at top */
.bg-serpiente-blog {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.bg-serpiente-blog::before {
  content: "";
  position: absolute;
  width: 125vw;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% auto;
  z-index: -1;
  pointer-events: none;
  transform: rotate(10deg);
  top: -4.5%;
  background-image: url(../fonts/serpiente.svg);
  background-position: center top;
  left: -35vw;
  opacity: 0.8;
}

/* News specific background pattern (Serpiente) - 2 snakes top and bottom like products */
.bg-serpiente-news {
  position: relative;
  isolation: isolate;
}

.bg-serpiente-news::before,
.bg-serpiente-news::after {
  content: "";
  position: absolute;
  width: 125vw;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% auto;
  z-index: -1;
  pointer-events: none;
  transform: rotate(5deg);
  opacity: 0.6;
}

/* Top one */
.bg-serpiente-news::before {
  top: 0%;
  background-image: url(../fonts/serpiente.svg);
  background-position: center top;
  left: -10vw;
}

/* Bottom one - Reversed */
.bg-serpiente-news::after {
  display: none;
  bottom: -2%;
  background-image: url(../fonts/serpiente.svg);
  background-position: center bottom;
  transform: rotate(15deg);
  right: -40vw;
}

@media (max-width: 1023px) {

  .bg-serpiente-combined::before,
  .bg-serpiente-combined::after,
  .bg-serpiente-blog::before,
  .bg-serpiente-news::before,
  .bg-serpiente-news::after {
    display: none;
  }
}

/* News/Blog Checkbox Custom Style */
.news-vircell-spain-filter input.custom-checkbox {
  -webkit-appearance: none !important;
     -moz-appearance: none !important;
          appearance: none !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  border: 2px solid #141414 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  background-color: white !important;
  padding: 0 !important;
  margin: 0 !important;
}

.news-vircell-spain-filter input.custom-checkbox:checked {
  background-color: white !important;
  border-color: #141414 !important;
}

.news-vircell-spain-filter input.custom-checkbox:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #141414 !important;
  font-size: 14px !important;
  font-weight: bold !important;
}

.news-vircell-spain-filter label {
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}

/* News Category Buttons */
.blog-category-btn {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  border-radius: 9999px !important;
  border: 2px solid #1367AA !important;
  color: #1367AA !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.blog-category-btn:hover,
.blog-category-btn.is-active {
  background-color: #1367AA !important;
  color: #ffffff !important;
}

/* News Card Specifics (same as blog) */
.news-card-wrapper {
  height: 100% !important;
  width: 100% !important;
  background-color: #ffffff !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid #f3f4f6 !important;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.news-card-wrapper:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.news-card-image-container {
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  background-color: #f9fafb !important;
  height: 240px !important;
}

.news-card-content {
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  background-color: #ffffff !important;
}


/* Ensure sections have transparent backgrounds to show the serpiente */
body.page-node-type-product-reference .region-content,
body.page-node-type-product-reference #block-wingsuit-content,
body.page-node-type-product-category .region-content,
body.page-node-type-product-category #block-wingsuit-content {
  background-color: transparent !important;
}

/* Ensure sections have transparent backgrounds to show the serpiente */
body.page-node-type-product-reference .region-content,
body.page-node-type-product-reference #block-wingsuit-content,
body.page-node-type-product-category .region-content,
body.page-node-type-product-category #block-wingsuit-content {
  background-color: transparent !important;
}

.bg-serpiente,
.bg-serpiente-verde,
.bg-serpiente-azul-claro,
.bg-serpiente-verde-claro {
  background-image: url(../fonts/serpiente.svg);
  background-repeat: no-repeat;
  background-position: center var(--snake-offset, 50%) !important;
  background-size: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Ensure the large SVG doesn't overflow the container */
}

.bg-serpiente::before,
.bg-serpiente-verde::before,
.bg-serpiente-azul-claro::before,
.bg-serpiente-verde-claro::before {
  content: '';
  position: absolute;
  inset: 0;

  /* Use mask to shape the blue overlay like the snake pattern */
  -webkit-mask-image: url(../fonts/serpiente.svg);
  mask-image: url(../fonts/serpiente.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center var(--snake-offset, 50%);
  mask-position: center var(--snake-offset, 50%);
  -webkit-mask-size: auto;
  mask-size: auto;

  /* Reveal based on scroll progress */
  /* Fallback if JS fails */
  transition: clip-path 0.1s linear;
  clip-path: circle(0% at 90% 0%);

  pointer-events: none;
  z-index: 0;
}

.bg-serpiente::before {
  background-color: #2F95BB;
}

.bg-serpiente-verde::before {
  background-color: #00987C;
}

.bg-serpiente-azul-claro::before {
  background-color: rgba(8, 116, 186, 0.20);
}

.bg-serpiente-verde-claro::before {
  background-color: rgba(0, 152, 124, 0.25);
}

/* When JS is active, hide the CSS pseudo-element and rely on the injected SVG */
.js-snake-active .bg-serpiente::before,
.js-snake-active .bg-serpiente-verde::before,
.js-snake-active .bg-serpiente-azul-claro::before,
.js-snake-active .bg-serpiente-verde-claro::before {
  display: none;
}

.bg-serpiente-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Dimensions will be set by JS or intrinsic SVG size */
  pointer-events: none;
  z-index: 0;
  max-width: none;
  /* Important to prevent responsive constraints */
  max-height: none;
}

/* Ensure content sits on top of the overlay */
.bg-serpiente>*:not(.bg-serpiente-overlay),
.bg-serpiente-verde>*:not(.bg-serpiente-overlay),
.bg-serpiente-azul-claro>*:not(.bg-serpiente-overlay),
.bg-serpiente-verde-claro>*:not(.bg-serpiente-overlay) {
  position: relative;
  z-index: 10;
}


/* Background Serpiente Lateral (Flipped) */
.bg-serpiente-lateral,
.bg-serpiente-lateral-verde,
.bg-serpiente-lateral-azul-claro,
.bg-serpiente-lateral-verde-claro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Static Background (Flipped) */
.bg-serpiente-lateral::after,
.bg-serpiente-lateral-verde::after,
.bg-serpiente-lateral-azul-claro::after,
.bg-serpiente-lateral-verde-claro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../fonts/serpiente.svg);
  background-repeat: no-repeat;
  background-position: center var(--snake-offset, 50%) !important;
  background-size: auto;
  z-index: -1;
  transform: scaleX(-1);
  /* Flip horizontally */
}

/* Fallback CSS Fill (Flipped) */
.bg-serpiente-lateral::before,
.bg-serpiente-lateral-verde::before,
.bg-serpiente-lateral-azul-claro::before,
.bg-serpiente-lateral-verde-claro::before {
  content: '';
  position: absolute;
  inset: 0;

  -webkit-mask-image: url(../fonts/serpiente.svg);
  mask-image: url(../fonts/serpiente.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center var(--snake-offset, 50%);
  mask-position: center var(--snake-offset, 50%);
  -webkit-mask-size: auto;
  mask-size: auto;

  transition: clip-path 0.1s linear;
  clip-path: circle(0% at 10% 0%);

  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
  /* Flip the mask too */
}

.bg-serpiente-lateral::before {
  background-color: #2F95BB;
}

.bg-serpiente-lateral-verde::before {
  background-color: #00987C;
}

.bg-serpiente-lateral-azul-claro::before {
  background-color: rgba(8, 116, 186, 0.20);
}

.bg-serpiente-lateral-verde-claro::before {
  background-color: rgba(0, 152, 124, 0.25);
}

.js-snake-active .bg-serpiente-lateral::after,
.js-snake-active .bg-serpiente-lateral-verde::after,
.js-snake-active .bg-serpiente-lateral-azul-claro::after,
.js-snake-active .bg-serpiente-lateral-verde-claro::after {
  /* Display handled by JS injected overlay */
}

.js-snake-active .bg-serpiente-lateral::before,
.js-snake-active .bg-serpiente-lateral-verde::before,
.js-snake-active .bg-serpiente-lateral-azul-claro::before,
.js-snake-active .bg-serpiente-lateral-verde-claro::before {
  display: none;
}

.page-node-type-technique .views-field-product-reference__qualification {
  display: block;
}

/* Product Destacado Cards */
.destacado-card {
  border: 2px solid #2F95BB;
  border-radius: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 450px;
  min-height: 450px;
  max-height: 450px;
}

.destacado-card .img-wrapper img {
  min-height: 250px;
  max-height: 250px;
  height: 250px;
}

.slick-slider .slick-slide.slick-center .destacado-card .img-wrapper img {
  min-height: 250px;
  max-height: 250px;
  height: 250px;
}

.slick-slider .slick-slide .destacado-card {
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.slick-slider .slick-slide.slick-center .destacado-card {
  transform: scale(1);
}

/* When fewer than 3 slides: normalize all cards to the same size */
/* .slick-few-slides is set by JS but comes too late (causes flash). */
/* Use data-few-slides="true" instead, set server-side at render time.  */
.slick-slider.slick-few-slides .slick-slide .destacado-card,
[data-few-slides="true"] .slick-slide .destacado-card {
  transform: scale(1);
  transition: none;
}

/* Limit card width when fewer than 3 are present to match a 3-column layout visually */
/* Targeting both Slick and standard Views row output for robust centering */
[data-few-slides="true"] .slick-slider {
  width: 100% !important;
}

@media (min-width: 1025px) {

  [data-few-slides="true"] .view-content,
  [data-few-slides="true"] .slick-list,
  [data-few-slides="true"] .slick,
  [data-few-slides="true"] .slick-track {
    display: flex !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    transform: none !important;
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  [data-few-slides="true"] .views-row,
  [data-few-slides="true"] .slick__slide,
  [data-few-slides="true"] .slick-slide {
    max-width: 410px !important;
    width: 100% !important;
    flex: 1 1 0px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Global limit for destacado cards in the carousel to prevent 1-item stretching */
.productos-destacados-wrapper .destacado-card {
  max-width: 410px !important;
  width: calc(100% - 20px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: scale(1) !important;
}

@media (max-width: 1024px) {
  .destacado-card {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
    padding: 1.5rem !important;
  }

  .destacado-card .img-wrapper img,
  .slick-slider .slick-slide.slick-center .destacado-card .img-wrapper img {
    min-height: auto !important;
    max-height: 180px !important;
    height: auto !important;
    -o-object-fit: contain;
       object-fit: contain;
  }

  .slick-slider .slick-slide .destacado-card,
  .slick-slider .slick-slide.slick-center .destacado-card {
    transform: scale(1) !important;
  }
}

/* Search input clear button styling */
.js-fake-product-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.js-fake-product-clear:hover {
  opacity: 1;
}


.destacado-card a.bg-\[\#1467AB\] {
  background-color: #1467AB;
}

.destacado-card a.bg-\[\#1467AB\]:hover {
  background-color: #0f4d80;
}

/* Hide carousel arrows on mobile/tablet — shown on desktop only */
@media (max-width: 1024px) {

  .productos-destacados-wrapper {
    padding: 2.5rem 0.5rem;
  }

  .productos-destacados-wrapper .slick-prev,
  .productos-destacados-wrapper .slick-next {
    display: none !important;
  }
}

/* Desktop arrow styling for Productos Destacados */
@media (min-width: 1025px) {
  .productos-destacados-wrapper {
    padding: 0 !important;
  }

  .productos-destacados-wrapper .slick-list {
    z-index: 1 !important;
  }

  .productos-destacados-wrapper .slick-prev,
  .productos-destacados-wrapper .slick-next {
    display: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    clip: auto !important;
    clip-path: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    background-color: #1467AB !important;
    border-radius: 50% !important;
    z-index: 9999 !important;
    font-size: 0 !important;
    color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 50% !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .productos-destacados-wrapper .slick-prev {
    left: -35px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27white%27%3E%3Cpath d=%27M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z%27/%3E%3C/svg%3E") !important;
  }

  .productos-destacados-wrapper .slick-next {
    right: -35px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27white%27%3E%3Cpath d=%27M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z%27/%3E%3C/svg%3E") !important;
  }

  .productos-destacados-wrapper .slick-prev::before,
  .productos-destacados-wrapper .slick-next::before {
    display: none !important;
  }
}


/* 
 * UI Polish: Pristine Select2 Container Dropdown Styling 
 * Overlaps the native input perfectly so it feels like a unified interface.
 */
.select2-container--open .select2-dropdown {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  border: 2px solid #2F95BB !important;
  border-radius: 0.375rem !important;
  /* Prevent immediate auto-close when overlapping the input by ignoring initial mouseup */
  /* User report: "To search in select, you have to double click or you cannot write." */
  /* pointer-events: none was interfering with immediate focus. Changed to auto. */
  animation: s2-enable-clicks 0.15s forwards;
}

@keyframes s2-enable-clicks {
  0% {
    pointer-events: auto;
  }

  99% {
    pointer-events: auto;
  }

  100% {
    pointer-events: auto;
  }
}

/* 
 * OVERLAP LOGIC (User requested: "MUST be in own place of input not below")
 * For dropdowns natively dropping below, they anchor at the bottom of the 40px input.
 * Moving them UP by 40px pins their top exactly to the top of the input.
 */
.select2-container--open .select2-dropdown--below {
  margin-top: -40px !important;
}

/* 
 * OVERLAP FORCED FOR ABOVE
 * Select2 calculates "above" if the screen bottom is tight. It anchors its BOTTOM to the TOP of the input.
 * translateY(100%) slides it down by its exact height. 
 * This pins its top exactly to the top of the input, meaning it grows natively DOWNWARDS avoiding the 'direction of top' bug.
 */
.select2-container--open .select2-dropdown--above {
  transform: translateY(100%) !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 
 * Force search box back to the top of the visual stack since Select2 moves it to the bottom for '--above'
 */
.select2-container--open .select2-dropdown--above .select2-search--dropdown {
  order: -1;
}

/* Ensure the search field looks native inside the dropdown */
.select2-search--dropdown .select2-search__field {
  padding: 0.55rem 0.5rem;
  border: 1px solid transparent;
  outline: none !important;
  box-shadow: none !important;
  height: 40px;
  /* match the input height */
  font-size: 1rem;
}

.select2-search--dropdown {
  padding: 0;
  border-bottom: 1px solid #eee;
}

/* Ensure content sits on top */
.bg-serpiente-lateral>*:not(.bg-serpiente-overlay),
.bg-serpiente-lateral-verde>*:not(.bg-serpiente-overlay) {
  position: relative;
  z-index: 10;
}

.bg-serpiente-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Dimensions will be set by JS or intrinsic SVG size */
  pointer-events: none;
  z-index: 0;
  max-width: none !important;
  max-height: none !important;
  width: 2361px !important;
  height: 1732px !important;
}

.bg-serpiente .bg-serpiente-overlay,
.bg-serpiente-verde .bg-serpiente-overlay,
.bg-serpiente-azul-claro .bg-serpiente-overlay,
.bg-serpiente-verde-claro .bg-serpiente-overlay {
  top: var(--snake-offset, 50%) !important;
  transform: translate(-50%, calc(var(--snake-offset, 50%) * -1)) !important;
}

.bg-serpiente-lateral .bg-serpiente-overlay,
.bg-serpiente-lateral-verde .bg-serpiente-overlay,
.bg-serpiente-lateral-azul-claro .bg-serpiente-overlay,
.bg-serpiente-lateral-verde-claro .bg-serpiente-overlay {
  top: var(--snake-offset, 50%) !important;
  transform: translate(-50%, calc(var(--snake-offset, 50%) * -1)) !important;
}

.subir {
  display: grid;
  text-align: center;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translate(-50%);
}


/* =========================================================================
   Vircell Custom Banners CSS (Responsive)
   ========================================================================= */

/* Force relative positioning on the banner container regardless of contextual module CSS */
.vircell-banner-container {
  position: relative !important;
}

/* Overrides for Wingsuit Breadcrumbs inside Banners */
.vircell-banner-container .breadcrumbs *,
.t3-breadcrumbs-plain * {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.vircell-banner-container .breadcrumbs .breadcrumb,
.vircell-banner-container .breadcrumbs nav,
.vircell-banner-container .breadcrumbs div,
.t3-breadcrumbs-plain .breadcrumb,
.t3-breadcrumbs-plain nav,
.t3-breadcrumbs-plain div {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.vircell-banner-container .breadcrumbs,
.t3-breadcrumbs-plain {
  font-size: 0.95rem;
}

.vircell-banner-container .breadcrumbs ol,
.vircell-banner-container .breadcrumbs ul,
.t3-breadcrumbs-plain ol,
.t3-breadcrumbs-plain ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  line-height: 1.8 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.vircell-banner-container .breadcrumbs li,
.t3-breadcrumbs-plain li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Breadcrumb Colors */
.vircell-banner-container.banner-type-1 .breadcrumbs a,
.vircell-banner-container.banner-type-1 .breadcrumbs span {
  color: #ffffff !important;
  text-decoration: none;
}

.vircell-banner-container.banner-type-1 .breadcrumbs {
  position: absolute !important;
  top: 1.5rem !important;
  left: 4vw !important;
  z-index: 20 !important;
  margin-bottom: 0 !important;
}

.vircell-banner-container.banner-type-2 .breadcrumbs a,
.vircell-banner-container.banner-type-2 .breadcrumbs span,
.vircell-banner-container.banner-type-3 .breadcrumbs a,
.vircell-banner-container.banner-type-3 .breadcrumbs span {
  color: #0082a5 !important;
  font-weight: 500;
  text-decoration: none;
}

.vircell-banner-container.banner-type-2 .breadcrumb-item+.breadcrumb-item::before,
.vircell-banner-container.banner-type-3 .breadcrumb-item+.breadcrumb-item::before {
  color: inherit !important;
}

.vircell-banner-container .breadcrumb-item+.breadcrumb-item::before {
  color: inherit;
  content: ">";
  padding: 0 0.5rem;
}

/* Global Media Entity Wrappers */
.vircell-banner-bg-image,
.vircell-banner-right-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

.vircell-banner-right-image {
  right: 0 !important;
  left: auto !important;
  width: 75% !important;
}

@media (max-width: 768px) {
  .vircell-banner-right-image {
    width: 100% !important;
  }
}

.vircell-banner-container .vircell-banner-bg-image img,
.vircell-banner-container .vircell-banner-bg-image picture,
.vircell-banner-container .vircell-banner-bg-image *,
.vircell-banner-container .vircell-banner-right-image img,
.vircell-banner-container .vircell-banner-right-image picture,
.vircell-banner-container .vircell-banner-right-image * {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

/* ==================================
   TYPE 1 (LATERAL)
   ================================== */
.vircell-banner-container.banner-type-1,
.vircell-banner-container.banner-type-4,
.t1-inner-wrapper,
.t3-inner-wrapper {
  height: 600px !important;
}

.t1-left-content {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 50% !important;
  max-width: 950px !important;
  height: 100% !important;
  min-width: 500px !important;
  background-color: #0082a5 !important;
  padding: 4vw 8vw 4vw 4vw !important;
  border-radius: 0 500px 500px 0 !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

@media (min-width: 769px) {
  .t1-bg-gradient {
    background: linear-gradient(135deg, #0874BA 0%, #00987C 100%) !important;
  }

  .t1-bg-blue {
    background-color: #2073C4 !important;
  }
}

.t1-title {
  text-transform: uppercase !important;
  font-size: 2.2rem !important;
  line-height: 1.25 !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
}

.t1-desc {
  max-height: 300px !important;
  overflow: hidden !important;
}

/* --- News & Events Specifics --- */
.news-vircell-spain-badge {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-vircell-spain-filter label:hover span {
  text-decoration: underline;
}

.news-vircell-spain-filter input[type="checkbox"] {
  cursor: pointer;
}

.t1-desc h2,
.t1-desc h3 {
  text-transform: uppercase !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
  font-size: 1.5rem !important;
}

.t1-desc p,
.t1-desc {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
}

/* Type 1 Mobile Adjustments */
@media (max-width: 768px) {
  .vircell-banner-container.banner-type-1 {
    height: auto !important;
  }

  .t1-inner-wrapper {
    height: 500px !important;
  }

  .t1-left-content {
    background-color: rgba(0, 130, 165, 0.8) !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 6rem 2rem 2rem 2rem !important;
    border-radius: 0 !important;
    height: 100% !important;
  }
}

/* ==================================
   TYPE 2 (SIMPLE)
   ================================== */
.vircell-banner-container.banner-type-2 {
  min-height: 200px !important;
  padding: 3rem 6rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.t2-breadcrumbs {
  position: absolute !important;
  top: 1.5rem !important;
  left: 4vw !important;
  z-index: 20 !important;
  margin-bottom: 0 !important;
}

.t3-breadcrumbs-plain ol {
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.t3-breadcrumbs-plain a,
.t3-breadcrumbs-plain span,
.t3-breadcrumbs-plain li {
  color: #0076BD !important;
  font-weight: 500 !important;
}

.t3-breadcrumbs-plain svg {
  color: #0082a5 !important;
}

.vircell-banner-container.banner-type-3 .t3-mobile-breadcrumbs a,
.vircell-banner-container.banner-type-3 .t3-mobile-breadcrumbs span,
.vircell-banner-container.banner-type-3 .t3-mobile-breadcrumbs li,
.vircell-banner-container.banner-type-3 .t3-mobile-breadcrumbs .breadcrumb-item+.breadcrumb-item::before {
  color: #ffffff !important;
}

@media (max-width: 768px) {

  .t2-breadcrumbs,
  .vircell-banner-container.banner-type-1 .breadcrumbs,
  .vircell-banner-container.banner-type-4 .breadcrumbs {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-bottom: 1.5rem !important;
  }
}

.t2-title {
  color: #009878 !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  font-size: 2.8rem !important;
  font-family: 'Helvetica Bold' !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.t2-desc {
  margin: 0 auto 0 auto !important;
  max-width: 900px !important;
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  color: #333333 !important;
}

@media (max-width: 768px) {
  .vircell-banner-container.banner-type-2 {
    height: 500px !important;
    min-height: 500px !important;
    padding: 6rem 2rem 2rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
  }

  .vircell-banner-container.banner-type-2 h1.banner-title.t2-title,
  .vircell-banner-container.banner-type-2 .banner-desc.t2-desc {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .t2-title {
    font-size: 1.8rem !important;
    line-height: normal;
  }
}

/* ==================================
   TYPE 3 (HERO)
   ================================== */
.vircell-banner-container.banner-type-3 {
  background-color: #041026 !important;
}

.t3-submolecular-shadow {
  position: absolute !important;
  top: 35% !important;
  left: -25% !important;
  width: 150% !important;
  height: 85% !important;
  border-radius: 50% !important;
  /* Semi-transparent gradient so background image is still visible */
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.15) 100%) !important;
  opacity: 1 !important;
  z-index: 2 !important;
}


.t3-content-wrapper {
  position: absolute !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
  top: 15%;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
}

.t3-inner {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

.t3-title {
  text-align: center !important;
  text-transform: uppercase !important;
  font-size: 2.5rem !important;
  letter-spacing: 1px !important;
  color: #ffffff !important;
  margin: 0 auto 2rem auto !important;
  padding: 0 !important;
}

.t3-desc {
  max-width: 800px !important;
}

.t3-desc h2,
.t3-desc h3 {
  display: inline-block !important;
  text-align: center !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
}

.t3-desc p,
.t3-desc {
  text-align: center !important;
  color: #ffffff !important;
  font-size: 1.2rem !important;
  margin-bottom: 1rem !important;
}

@media (max-width: 768px) {
  .t3-submolecular-shadow {
    width: 220% !important;
    left: -60% !important;
    top: 20% !important;
    height: 100% !important;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.70) 55%, rgba(0, 0, 0, 0.20) 100%) !important;
  }

  /* Taller banner on mobile to accommodate longer text */
  .vircell-banner-container.banner-type-3 {
    background-color: #041026 !important;
    height: auto !important;
  }

  .t3-inner-wrapper {
    height: 500px !important;
  }

  .t3-title {
    font-size: 2.2rem !important;
  }
}

/* ==================================
   TYPE 4 (VIRCLIA LOTUS STYLE)
   ================================== */
.vircell-banner-container.banner-type-4 {
  background-color: #ffffff !important;
}

.t4-inner-wrapper {
  height: 600px !important;
  min-height: 600px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.t4-title {
  color: #0076BD !important;
  text-transform: uppercase !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  margin-bottom: 1.5rem !important;
  font-size: 2.8rem !important;
}

.t4-desc {
  color: #0076BD !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.6 !important;
  font-size: 1.3rem !important;
}

.vircell-banner-container.banner-type-4 .breadcrumbs {
  position: absolute !important;
  top: 1.5rem !important;
  left: 4vw !important;
  z-index: 20 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.vircell-banner-container.banner-type-4 .breadcrumbs,
.vircell-banner-container.banner-type-4 .breadcrumbs a,
.vircell-banner-container.banner-type-4 .breadcrumbs span,
.vircell-banner-container.banner-type-4 .breadcrumbs li,
.vircell-banner-container.banner-type-4 .breadcrumbs .breadcrumb-item+.breadcrumb-item::before {
  color: #0076BD !important;
  font-weight: 500 !important;
}

@media (max-width: 768px) {
  .vircell-banner-container.banner-type-4 {
    height: auto !important;
  }

  .vircell-banner-container.banner-type-4 .banner-type-4-gradient-mask {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 55%, rgba(255, 255, 255, 0) 100%) !important;
  }

  .t4-title {
    font-size: 1.8rem !important;
  }

  .t4-desc {
    font-size: 1.1rem !important;
  }

  .t4-inner-wrapper {
    height: 500px !important;
    min-height: 500px !important;
    padding: 6rem 0 3rem 0 !important;
    justify-content: center !important;
    display: flex !important;
    flex-direction: column !important;
  }
}


/* Phase 18: Restore precise Fidesol button gradient over sliders */
.banner-type-3 .t3-desc a.btn,
.banner-type-3 .t3-desc a.button,
.banner-type-3 .t3-desc .btn,
.splide__slide a.btn,
.splide__slide a.button,
.splide__slide .btn {
  background: linear-gradient(90deg, #0A659E 0%, #009B77 100%) !important;
  border: none !important;
  border-radius: 1rem !important;
  /* Slightly less rounded than pill */
  color: #fff !important;
  padding: 1rem 1.5rem !important;
  /* Less padding */
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
}

.banner-type-3 .t3-desc a.btn:hover,
.banner-type-3 .t3-desc a.button:hover,
.banner-type-3 .t3-desc .btn:hover,
.splide__slide a.btn:hover,
.splide__slide a.button:hover,
.splide__slide .btn:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}



/* Phase 17: Enforce Equal Heights on Grid Article Items (Blog Cards) */
.bloque-blog .grid,
.redesign-home-events .grid {
  align-items: stretch !important;
}

.bloque-blog-item,
.redesign-home-event-item,
.bloque-blog-item>div,
.redesign-home-event-item>div,
.bloque-blog-item>div>div,
.redesign-home-event-item>div>div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.bloque-blog-item article,
.redesign-home-event-item article {
  flex: 1 1 auto !important;
  height: 100% !important;
}

/* Phase 19: Limits for the Tarjeta Cards */
.tarjeta-molecular,
.tarjeta-instrumentos {
  max-width: 550px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 26px;
  position: absolute;
  top: -2px;
  right: 1px;
  width: 20px
}

/*
 * Shared redesign button component
 * Use with class="redesign-button redesign-button--teal"
 * Matches the rounded pill CTA style from the home page
 */
.redesign-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
  border: none;
  line-height: 1.5;
}

.redesign-button--teal {
  background-color: #009878;
  color: #ffffff !important;
}

.redesign-button--teal:hover {
  background-color: rgb(0 127 97 / var(--tw-bg-opacity, 1)) !important;
  color: #ffffff !important;
}

/* Explicit utilities to ensure font and color continuity */
.font-helvetica {
  font-family: 'Helvetica', sans-serif !important;
}

.text-vircell-teal {
  color: #009878 !important;
}

.border-vircell-teal {
  border-color: #009878 !important;
}

/* Bibliography carousel card refinements */
.bibliografia-destacada-wrapper .slick-slide .views-row {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 10px;
}

.bibliografia-destacada-wrapper .slick-slide img {
  width: 100%;
  max-height: 200px;
  height: 200px;
  -o-object-fit: contain;
     object-fit: contain;
  background: transparent;
  /* margin-bottom: 1.5rem; */
}

/* Mobile specific list width reinforcement - No margin on mobile table */
@media (max-width: 767px) {
  .bibliography-list .views-row {
    width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* 
 * Reinforce: Bibliography destacada arrow white dot suppression
 * The global .slick-arrow::before creates a white border cross that appears as a "dot"
 * when the background is an SVG image (not a solid color).
 */
.bibliografia-destacada-wrapper .slick-arrow {
  background-color: transparent !important;
  box-shadow: none !important;
}

.bibliografia-destacada-wrapper .slick-arrow::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

/* Make all featured bibliography cards equal height on both paragraph and view page */
.bibliografia-carousel-center .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.bibliografia-carousel-center .slick-slide {
  height: auto !important;
  display: flex !important;
}

.bibliografia-carousel-center .slick-slide>div {
  display: flex !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

.bibliografia-carousel-center .views-row {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.bibliografia-carousel-center .biblio-item {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
}

.bibliografia-carousel-center .biblio-content {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/* Styling when there are fewer than 3 items (no slider active) */
@media (min-width: 768px) {

  /* When Slick is completely disabled/unslicked, style the container as a flex row */
  .bibliografia-carousel-center .slick.unslick,
  .bibliografia-carousel-center .unslick-grid {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
  }

  /* When Slick is initialized but has fewer items than slidesToShow (slick--less) */
  .bibliografia-carousel-center .slick--less .slick-track {
    width: 100% !important;
    min-width: 100% !important;
    transform: none !important;
    justify-content: center !important;
    gap: 20px !important;
  }

  /* Style individual slides to have 1/3 width */
  .bibliografia-carousel-center .slick--less .slick__slide,
  .bibliografia-carousel-center .slick.unslick .slick__slide,
  .bibliografia-carousel-center .unslick-grid .views-row {
    width: calc(33.333% - 20px) !important;
    max-width: 380px !important;
    flex: 0 0 auto !important;
  }
}

/*****************************************************************************************************/
/******************************* SOBRE NOSOTROS PATTERNS **********************************************/
/*****************************************************************************************************/

/* Infografia Grafica - Grid Layout */
.sn-infografia-grid-wrapper {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  max-width: 1000px;
  /* Limit width to help with centering */
  margin: 0 auto;
  /* Center the core grid content */
}

.sn-infografia-pill-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: white;
  text-align: center;
  min-height: 220px;
}

.sn-infografia-pill-segment.segment-blue {
  background-color: #2F95BB;
}

.sn-infografia-pill-segment.segment-teal {
  background-color: #009878;
}

.sn-infografia-pill-segment.segment-green {
  background-color: #00A650;
}

/* Remove visible lines/lanes between segments on mobile */
@media (max-width: 767px) {
  .sn-infografia-pill-segment {
    border-top: none !important;
    border-bottom: none !important;
  }
}

.sn-infografia-pill-segment .icon {
  width: 70px;
  height: 70px;
  margin-bottom: 0.75rem;
}

.sn-infografia-pill-segment .icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.sn-infografia-pill-segment .label {
  font-family: 'Helvetica Bold', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: none;
}

.sn-infografia-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.sn-infografia-item h3 {
  font-family: 'Helvetica Bold', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sn-infografia-item.item-blue h3 {
  color: #2F95BB;
}

.sn-infografia-item.item-teal h3 {
  color: #009878;
}

.sn-infografia-item.item-green h3 {
  color: #00A650;
}

.sn-infografia-item .description {
  font-family: 'Helvetica', sans-serif;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .sn-infografia-pill-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .sn-infografia-pill {
    width: 100%;
    max-width: 200px;
    border-radius: 40px;
  }

  .sn-infografia-content {
    text-align: center;
    gap: 2rem;
  }
}

/* Nuestra Vision - Full Background Overlay */
.sn-vision-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.sn-vision-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sn-vision-bg img,
.sn-vision-bg picture,
.sn-vision-bg video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

.sn-vision-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(90deg, rgba(8, 20, 30, 0.95) 0%, rgba(8, 20, 30, 0.8) 35%, rgba(8, 20, 30, 0.4) 60%, rgba(8, 20, 30, 0) 100%);
  display: flex;
  align-items: center;
}

.sn-vision-content {
  max-width: 750px;
  padding: 4rem 8rem;
  color: white;
}

.sn-vision-content h2 {
  font-family: 'Helvetica Bold', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.sn-vision-content .description {
  font-family: 'Helvetica', sans-serif;
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .sn-vision-content {
    padding: 3rem 4rem;
  }

  .sn-vision-content h2 {
    font-size: 2.75rem;
  }
}

@media (max-width: 767px) {
  .sn-vision-hero {
    min-height: 500px;
  }

  .sn-vision-overlay {
    background: rgba(8, 20, 30, 0.85);
  }

  .sn-vision-content {
    padding: 2.5rem;
    text-align: center;
  }

  .sn-vision-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }
}

/* Webform Pattern Specific Overrides */
.paragraph--type--lp-webform .bg-serpiente::before,
.paragraph--type--lp-webform .bg-serpiente-verde::before,
.paragraph--type--lp-webform .bg-serpiente-lateral::after,
.paragraph--type--lp-webform .bg-serpiente-lateral-verde::after,
.paragraph--type--lp-webform .bg-serpiente-lateral::before,
.paragraph--type--lp-webform .bg-serpiente-lateral-verde::before {
  display: none !important;
}

.paragraph--type--lp-webform h3.headline,
.paragraph--type--lp-webform h2.headline,
.paragraph--type--lp-webform h3.text-teal-600 {
  color: #057CAC !important;
  text-transform: uppercase !important;
}

.paragraph--type--lp-webform .form-item label {
  font-weight: 500;
}

.paragraph--type--lp-webform .form-item.js-form-type-checkbox label,
.paragraph--type--lp-webform .form-item.js-form-type-checkbox label *,
.paragraph--type--lp-webform .form-item.js-form-type-checkbox span,
.paragraph--type--lp-webform .form-item.js-form-type-checkbox span.form-required,
.paragraph--type--lp-webform .form-item.js-form-type-checkbox .webform-element-description,
.paragraph--type--lp-webform .form-item.js-form-type-checkbox .webform-element-description a {
  color: #057CAC !important;
}

/* SN Video Component */
.sn-video-container::after {
  display: none !important;
  content: none !important;
}

.sn-video-container video,
.sn-video-container iframe,
.sn-video-container .oembed-lazyload__iframe {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sn-video-container .oembed-lazyload {
  border-radius: 32px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sn-video-container .oembed-lazyload__button {
  background: transparent;
}

.sn-video-container .oembed_lazyload__yt-icon-fill {
  fill: #2F95BB !important;
}

.sn-video-container .oembed-lazyload__yt-icon {
  width: 120px;
  height: 120px;
}

/* Custom Cover Image Overrides */
.custom-cover-img img,
.custom-cover-img picture,
.custom-cover-img picture img {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  display: block;
}

.sn-video-play-btn {
  background-color: #2F95BB !important;
}

.sn-video-play-btn:hover {
  background-color: #1e7ca1 !important;
}

/* Promotional Material Grid & Cards */
.material-promocional-view {
  margin-top: 2rem;
}

.promotional-card {
  perspective: 1000px;
}

.card-image-wrapper {
  background-color: #fff;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Select2 Custom style for Catalog Dropdown */
.form-promotional-container .select2-container--default .select2-selection--single {
  border-radius: 0.75rem !important;
}

/* Items per page custom dropdown styling */
#fake-items-per-page {
  transition: border-color 0.3s, box-shadow 0.3s;
}

#fake-items-per-page:hover {
  border-color: #009B77;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .material-promocional-view .view-header-custom h1 {
    font-size: 2.25rem !important;
  }

  .promotional-material-filters {
    padding: 1.5rem !important;
    margin-bottom: 3rem !important;
  }

  .form-promotional-container .grid {
    gap: 1.5rem !important;
  }

  .promotional-card .card-image-wrapper {
    margin-bottom: 1.5rem !important;
  }

  .pager-wrapper {
    gap: 2rem !important;
  }
}

/* =========================================================================
   Curriculum Webform Redesign Overrides
   Match styles from http://vircell.local/inicio
   ========================================================================= */

.webform-submission-curriculum-add-form h1.webform-title,
.webform-submission-curriculum-add-form .webform-title,
.webform-submission-curriculum-add-form h2.headline {
  color: #057CAC !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  margin-bottom: 2rem !important;
}

/* Match Inicio input styles: border-2, rounded, py-2 px-2, text-sm */
.webform-submission-curriculum-add-form .form-text,
.webform-submission-curriculum-add-form .form-email,
.webform-submission-curriculum-add-form .form-tel,
.webform-submission-curriculum-add-form .form-textarea{
  border-radius: 0.25rem !important;
  border-width: 2px !important;
  --tw-border-opacity: 1 !important;
  border-color: rgb(var(--color-primary) / var(--tw-border-opacity, 1)) !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  transition-property: all !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 300ms !important;
}

.webform-submission-curriculum-add-form .form-text:focus,
.webform-submission-curriculum-add-form .form-email:focus,
.webform-submission-curriculum-add-form .form-tel:focus,
.webform-submission-curriculum-add-form .form-textarea:focus{
  --tw-border-opacity: 1 !important;
  border-color: rgb(var(--color-secondary) / var(--tw-border-opacity, 1)) !important;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
}

/* Compact spacing between fields like Inicio (~22px margin-bottom for items) */
.webform-submission-curriculum-add-form .form-item {
  margin-bottom: 1rem !important;
}

.webform-submission-curriculum-add-form .form-type-checkbox {
  margin-bottom: 1rem !important;
}

.webform-submission-curriculum-add-form .form-type-checkbox label {
  color: #057CAC !important;
  font-size: 0.875rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* CV Button Arrow & Style Adjustment */
/* Target the span containing the arrow ↑ */
.webform-submission-curriculum-add-form [id^="edit-cv-upload"]+label span,
.webform-submission-curriculum-add-form label[for^="edit-cv-upload"] span:first-child {
  font-size: 1.5rem !important;
  line-height: 1 !important;
  margin-top: -3px;
  /* visual alignment nudge */
}

/* Ensure CV button uses the design's rounded standard if requested, but matches design color */
.webform-submission-curriculum-add-form label[for^="edit-cv-upload"],
.webform-submission-curriculum-add-form .managed-file label{
  border-radius: 0.25rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Enviar Button - Ensure it matches Inicio style if not already */
.webform-submission-curriculum-add-form .form-actions .webform-button--submit{
  border-radius: 1rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
  transition-property: all !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 300ms !important;
}

.\[\&_a\]\:text-primary a {
  --tw-text-opacity: 1;
  color: unset;
}

/* =========================================================================
   Producto Profile Custom View Styles
   ========================================================================= */

/* ---- Navbar ---- */
#producto-navbar {
  background-color: #69C1B0;
  border-radius: 9999px;
  padding: 0.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  /* Above site header (999) if needed, or just high enough */
  box-sizing: border-box;
}

#producto-navbar.is-fixed {
  position: fixed !important;
  /* left, right, width are set dynamically by JS to match the content column */
  margin: 0 !important;
  display: flex !important;
  border-radius: 9999px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  z-index: 30 !important;
}

@media (min-width: 1025px) {
  #producto-navbar.is-fixed {
    top: calc(105px + var(--drupal-displace-offset-top, 0px)) !important;
  }
}


@media (max-width: 1024px) {
  #producto-navbar.is-fixed {
    top: calc(35px + var(--drupal-displace-offset-top, 0px)) !important;
    width: calc(100% - 1.5rem) !important;
    padding: 0.15rem !important;
    z-index: 1002 !important;
    /* Site header is not sticky on mobile, stay above content */
  }
}



/* Ensure scroll-spy anchor jumps don't end up under the sticky navbar */
html {
  scroll-padding-top: 210px;
  /* Balance for 140px header + navbar height */
}

@media (max-width: 1024px) {
  html {
    scroll-padding-top: 110px;
  }
}

/* Duplicate selector removed - styled beautifully in redesigned pc-como-card section below */

/* Conflict removed - styled beautifully in redesigned pc-como-card section below */

#producto-navbar ul {
  display: flex;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

#producto-navbar li {
  flex: 0 1 auto;
  text-align: center;
  margin: 0;
}

/* Scroll Spy Nav Links */
.scroll-spy-nav {
  position: relative;
}

.scroll-spy-nav ul,
.scroll-spy-nav ul li,
.scroll-spy-nav ul li::marker,
.scroll-spy-nav ul li::before,
.scroll-spy-nav *::marker {
  list-style: none !important;
  list-style-type: none !important;
  content: none !important;
  display: none !important;
}

.scroll-spy-nav ul {
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

.scroll-spy-nav ul li {
  display: list-item !important;
  /* Force to re-apply display but without dot */
  list-style-type: none !important;
}

.scroll-spy-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0.125rem;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.scroll-spy-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.scroll-spy-nav .nav-link.active-state {
  background-color: #ffffff !important;
  color: #009878 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Icon: #009878 (green) by default on any background */
.scroll-spy-nav .nav-link .icon-container {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  background-color: #009878;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: background-color 0.3s ease;
}

/* Active state: green icon on white active pill */
.scroll-spy-nav .nav-link.active-state .icon-container {
  background-color: #009878 !important;
}

/* Hover: keep white icon on teal pill */
.scroll-spy-nav .nav-link:hover .icon-container {
  background-color: rgba(255, 255, 255, 0.9);
}

.scroll-spy-nav .nav-link.active-state:hover {
  background-color: #ffffff !important;
  color: #009878 !important;
}

.scroll-spy-nav .nav-link.active-state:hover .icon-container {
  background-color: #009878;
}

.scroll-spy-nav .nav-link:hover .icon-container {
  background-color: white;
}

/* Liquid indicator: slides horizontally under active item */
#producto-navbar ul {
  position: relative;
}

/* Map specific SVGs to the containers */
.icon-antecedentes {
  mask-image: url(../fonts/ion-earth.svg);
  -webkit-mask-image: url(../fonts/ion-earth.svg);
}

.icon-informacion {
  mask-image: url(../fonts/fa-solid-book-open.svg);
  -webkit-mask-image: url(../fonts/fa-solid-book-open.svg);
}

.icon-productos {
  mask-image: url(../fonts/ion-ribbon.svg);
  -webkit-mask-image: url(../fonts/ion-ribbon.svg);
}

.icon-comofunciona {
  mask-image: url(../fonts/fa-solid-screwdriver-wrench.svg);
  -webkit-mask-image: url(../fonts/fa-solid-screwdriver-wrench.svg);
}

.icon-masrecursos {
  mask-image: url(../fonts/add-circle-outline.svg);
  -webkit-mask-image: url(../fonts/add-circle-outline.svg);
}

/* ---- Profile Wrapper ---- */
.producto-profile-wrapper {
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

/* ---- Sections ---- */
.producto-section {
  padding: 2.75rem 0;
}

/* ---- Section Card ---- */
.pc-card {
  background-color: #F7F7F7;
  border-radius: 1.5rem;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
}

/* ---- Two column layout ---- */
.pc-two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .pc-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Headings ---- */
.pc-title {
  color: #2F95BB;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.pc-subtitle {
  color: #2F95BB;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 0;
}

/* ---- Body Text ---- */
.pc-body {
  color: #000;
  line-height: 1.7;
  font-size: 0.925rem;
}

.pc-card-usado-en {
  font-size: 0.8rem !important;
}

.pc-body p {
  margin-top: 0;
}

/* ---- Buttons (Standard Pattern) ---- */
.pc-btn,
.pc-btn-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #009B77;
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 1rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.pc-btn:hover,
.pc-btn-round:hover {
  background-color: #007f61;
  shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: white !important;
}

/* ---- Image ---- */
.pc-image {
  border-radius: 0.75rem;
  overflow: hidden;
}

.pc-image img {
  width: 100%;
  height: auto;
  display: block;
}

#antecedentes .pc-two-col {
  align-items: stretch;
}

.pc-image-col {
  height: 100%;
}

.pc-image-antecedentes {
  height: 100%;
  min-height: 300px;
}

.pc-image-antecedentes,
.pc-image-antecedentes>div,
.pc-image-antecedentes>div>div,
.pc-image-antecedentes picture,
.pc-image-antecedentes img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.pc-image-antecedentes img {
  -o-object-fit: cover !important;
     object-fit: cover !important;
  -o-object-position: center !important;
     object-position: center !important;
  max-height: none !important;
}

/* ---- Productos Card (Split design) ---- */
.pc-product-card {
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  background: white;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.pc-product-header {
  background-color: #F3F4F6;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.pc-product-title {
  color: #2F95BB;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.pc-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  place-content: center;
}

.pc-badge {
  background-color: #009878;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.pc-product-body {
  padding: 1rem 2.5rem;
  display: flex;
  gap: 2rem;
  flex-grow: 1;
}

.pc-product-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0;
}

.pc-product-usage-label {
  color: #2F95BB;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}


.pc-product-main .pc-body {
  /* Dynamic height to show full text */
  margin-bottom: 0.5rem;
}

.pc-product-analitos-wrapper {
  margin-top: auto;
}

.pc-product-meta {
  width: 250px;
  flex-shrink: 0;
}

.pc-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #D8D8D8;
  font-size: 0.9rem;
}

.pc-meta-label {
  color: #2F95BB;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  align-content: center;
}

.pc-meta-value {
  color: #444;
  font-weight: 500;
  text-align: right;
}

.pc-analitos {
  font-size: 0.9rem;
  color: #444;
}

.pc-analitos-label {
  color: #2F95BB;
}

/* ---- Cómo funciona ---- */
.pc-como-expli {
  margin-bottom: 3rem;
  overflow: hidden;
}

.pc-como-expli img {
  max-height: 500px;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .pc-como-expli img {
    max-height: none !important;
  }
}


.pc-como-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: stretch !important;
  grid-auto-rows: 1fr !important;
  /* Force all rows to have identical heights, adapting to the maximum size card */
}

@media (min-width: 1024px) {
  .pc-como-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

.pc-como-card {
  background: #f4f7f6;
  /* Modern cool grey background as requested */
  border-radius: 2.5rem;
  padding: 2rem 1.5rem !important;
  /* Card padding restored to wrap all contents */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: none;
  box-shadow: none;
  overflow: visible !important;
  height: 100% !important;
  /* Force all cards to fill grid cell height */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 0.5rem !important;
  /* Spaces title and columns container */
}

@media (min-width: 768px) {
  .pc-como-card {
    min-height: 320px !important;
    /* Premium uniform height so short description cards look gorgeous */
  }
}

.pc-como-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

/* Columns wrapper inside the card below the title */
.pc-como-columns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .pc-como-columns {
    flex-direction: row;
    align-items: stretch !important;
    gap: 1.5rem !important;
  }
}

.pc-como-img {
  width: 100%;
  flex-shrink: 0;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 2rem !important;
}

@media (min-width: 768px) {
  .pc-como-img {
    width: calc(50% - 1.25rem) !important;
    flex-basis: calc(50% - 1.25rem) !important;
    max-width: 50% !important;
    aspect-ratio: 1.5 !important;
    height: auto !important;
    align-self: center !important;
    margin-bottom: 0 !important;
  }
}

.pc-como-img img {
  width: 100% !important;
  /* Vertical format on mobile (wider than width inside the card wrapper) */
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}

@media (min-width: 768px) {
  .pc-como-img img {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    -o-object-fit: cover !important;
       object-fit: cover !important;
    /* Fits horizontal container precisely */
  }
}

.pc-como-card:hover .pc-como-img img {
  transform: scale(1.02);
}

.pc-como-right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 !important;
  /* Padding handled by outer card */
}

@media (min-width: 768px) {
  .pc-como-right {
    width: calc(50% - 1.25rem) !important;
    flex-basis: content !important;
    max-width: 50% !important;
    flex-grow: 0 !important;
  }
}

.pc-como-content {
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pc-como-actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

/* ---- Beneficios ---- */
.pc-beneficios {
  background-color: #F7F7F7;
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
}

.pc-recursos-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.pc-recurso-row {
  background-color: #F7F7F7;
  border-radius: 1.5rem;
  overflow: visible;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  position: relative;
}

/* Removed elevation and background change when open */
.pc-recurso-row.is-open {
  z-index: 10;
}

.pc-recurso-row .pc-recurso-icon {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Removed scale effect to keep it stable */
.pc-recurso-row.is-open .pc-recurso-icon {
  transform: none;
}

.pc-recurso-header {
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  cursor: pointer;
}

.pc-recurso-title-group {
  width: 28%;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-shrink: 0;
}

.pc-recurso-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-recurso-icon img {
  max-width: 100%;
  max-height: 100%;
  /* Filter to tint black SVGs to Vircell Blue #2F95BB */
  filter: invert(48%) sepia(87%) saturate(302%) hue-rotate(152deg) brightness(88%) contrast(91%);
}

.pc-recurso-label {
  display: block;
  font-size: 1.1rem;
  color: #2F95BB;
  line-height: 1.2;
}

@media (max-width: 991px) {
  .pc-recurso-label {
    font-size: 0.95rem;
  }
}

.pc-recurso-info {
  flex-grow: 1;
}

.pc-recurso-excerpt {
  color: #000000;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.pc-recurso-arrow {
  color: #2F95BB;
  transition: transform 0.3s ease;
}

.pc-recurso-row.is-open .pc-recurso-arrow {
  transform: rotate(180deg);
}

.pc-recurso-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.pc-recurso-row.is-open .pc-recurso-content {
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-recurso-content-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.pc-recurso-content-inner>div {
  padding: 0 3rem 2.5rem;
}

/* Sub-layouts */

/* Image 3 style: Zebra striped list */
.pc-germ-list {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.pc-germ-item,
a.pc-germ-item,
a.pc-germ-item:hover,
a.pc-germ-item:focus,
a.pc-germ-item:active,
a.pc-germ-item:visited {
  display: block;
  padding: 1.25rem 2rem;
  background-color: #ffffff;
  color: #2F95BB !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-decoration: none !important;
}

.pc-germ-item:nth-child(even),
a.pc-germ-item:nth-child(even),
a.pc-germ-item:nth-child(even):hover,
a.pc-germ-item:nth-child(even):focus,
a.pc-germ-item:nth-child(even):active,
a.pc-germ-item:nth-child(even):visited {
  background-color: #F7F7F7 !important;
}

/* Unified Rounded List Items for Diseases Page */
.list-item-rounded {
  display: block;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  border-radius: 1.25rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.list-item-rounded:nth-child(even) {
  background-color: #F8F9FA;
}

.list-item-rounded:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.vircell-dot {
  display: inline-block;
  background-color: #1467AA;
}


/* Blog Grid (Spacier and Taller) */
.pc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 1.5rem;
}

.pc-blog-resource-card {
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  min-height: 420px;
  /* User requested taller */
}

.pc-blog-image {
  aspect-ratio: 16/11;
  /* Slightly taller aspect ratio */
  position: relative;
  overflow: hidden;
}

.pc-blog-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.pc-blog-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #2F95BB;
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pc-blog-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pc-blog-date {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-bottom: 1rem;
}

.pc-blog-title a {
  margin: 0;
  font-size: 1.2rem;
  color: #2F95BB;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
}

.pc-blog-title a:hover {
  text-decoration: underline;
}

/* Bibliography Style (Zebra Striped matching Germs) */
.pc-bib-list {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.pc-bib-item {
  display: block;
  padding: 1.25rem 2rem;
  background-color: #ffffff;
  color: #333;
  font-size: 1rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  line-height: 1.4;
  cursor: default;
}

.pc-bib-item:nth-child(even) {
  background-color: #F7F7F7;
}

/* Single Blog Card Horizontal Layout (User Requested Design Replicating Image 1) */
.pc-blog-grid-single {
  display: block;
  width: 100%;
}

.pc-blog-resource-card-single {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 250px;
  width: 100%;
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pc-blog-resource-card-single .pc-blog-image {
  flex: 0 0 35%;
  max-width: 320px;
  min-height: 250px;
  aspect-ratio: auto;
  /* override grid standard vertical aspect-ratio */
}

.pc-blog-resource-card-single .pc-blog-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.pc-blog-resource-card-single .pc-blog-body {
  flex: 1;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pc-blog-resource-card-single .pc-blog-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.pc-blog-resource-card-single .pc-blog-title a {
  font-size: 1.6rem;
  color: #2F95BB;
  font-weight: 700;
  line-height: 1.3;
}

.pc-blog-resource-card-single .pc-blog-summary {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Responsive for Single Blog Card */
@media (max-width: 768px) {
  .pc-blog-resource-card-single {
    flex-direction: column;
    min-height: auto;
  }

  .pc-blog-resource-card-single .pc-blog-image {
    flex: none;
    max-width: 100%;
    width: 100%;
    min-height: 200px;
    height: 200px;
  }

  .pc-blog-resource-card-single .pc-blog-body {
    padding: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .pc-blog-grid {
    grid-template-columns: 1fr;
  }

  .pc-recurso-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .pc-recurso-title-group {
    width: 100%;
  }
}

/* Blog Summary and 'Seguir viendo' link */
.pc-blog-summary {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-top: 0.75rem;
  margin-bottom: auto;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.pc-blog-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2F95BB;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

.pc-blog-link svg {
  transition: transform 0.2s ease;
}

.pc-blog-resource-card:hover .pc-blog-link svg {
  transform: translateX(4px);
}

/* =============================================
   MOBILE RESPONSIVE — Product Profile Page
   ============================================= */

/* Icon-only navbar on tablets and mobile */
@media (max-width: 991px) {
  #producto-navbar {
    display: flex;
    padding: 0.35rem;
    width: auto !important;
    min-width: -moz-min-content;
    min-width: min-content;
  }

  .scroll-spy-nav .nav-link {
    font-size: 0 !important;
    padding: 0.6rem 0.85rem !important;
    gap: 0 !important;
    margin: 0 0.15rem !important;
  }

  .scroll-spy-nav .nav-link .icon-container {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Specific mobile layout optimizations */
@media (max-width: 767px) {

  /* Products: stack meta below body on mobile */
  .pc-product-body {
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }


  .pc-product-meta {
    width: 100%;
    border-top: 1px solid #E5E7EB;
    padding-top: 1rem;
  }

  .producto-section {
    padding: 1.5rem 0;
  }

  .pc-recurso-header {
    padding: 1.25rem 1rem;
    gap: 1rem;
    position: relative;
    padding-right: 3rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .pc-recurso-content-inner {
    padding: 0;
  }

  .pc-recurso-content-inner>div {
    padding: 0 1rem 1.25rem;
  }

  .pc-card {
    padding: 1.5rem 1.25rem;
  }

  .pc-recurso-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
  }

  .pc-recurso-row.is-open .pc-recurso-arrow {
    transform: translateY(-50%) rotate(180deg);
  }

  .pc-recurso-title-group {
    width: auto;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .scroll-spy-nav .nav-link {
    font-size: 0.75rem;
    gap: 0.35rem;
  }
}

/* =============================================
   Menciones Científicas Section
   ============================================= */

.pc-menciones-section {
  padding: 3rem 0;
}

/* Title matches .section-title style (MÁS RECURSOS, etc.) */
.pc-menciones-title {
  color: #2F95BB;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.pc-menciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
}

/* Card wrapper */
.pc-mencion-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

/* ---- Comic-bubble shape: all corners round, bottom-left = 90° ---- */
.pc-mencion-inner {
  width: 100%;
  background: #ffffff;
  border-radius: 7rem 7rem 7rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  min-height: 260px;
  box-shadow: 0 4px 6px 4px rgba(0, 0, 0, 0.1), 0 2px 4px 2px rgba(0, 0, 0, 0.06);
}

/* White / teal / white alternating backgrounds */
.pc-mencion-card:nth-child(1) .pc-mencion-inner,
.pc-mencion-card:nth-child(3) .pc-mencion-inner {
  background: #ffffff;
}

.pc-mencion-card:nth-child(2) .pc-mencion-inner {
  background: #F0F7F6;
}

/* Remove old --featured class logic */
.pc-mencion-card--featured .pc-mencion-inner {
  background: #F0F7F6;
}

/* ---- SVG format_quote icon ---- */
.pc-mencion-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.pc-mencion-quote svg {
  width: 100%;
  height: 100%;
  fill: #00987C;
}

.pc-mencion-quote--open {
  margin-bottom: 0.5rem;
}

.pc-mencion-quote--close {
  margin-top: 0.5rem;
  transform: rotate(180deg);
}

/* ---- Body text ---- */
.pc-mencion-body {
  font-size: 0.9rem;
  color: #000;
  line-height: 1.65;
  text-align: center;
}

/* ---- Attribution (right-aligned) ---- */
.pc-mencion-attribution {
  text-align: left;
  padding: 0;
  width: 100%;
}

.pc-mencion-link {
  color: #009878;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s ease;
}

.pc-mencion-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.pc-mencion-link-icon {
  display: flex;
  align-items: center;
}

/* Navbar icon for Menciones */
.icon-menciones {
  mask-image: url(../fonts/book-solid-full.svg);
  -webkit-mask-image: url(../fonts/book-solid-full.svg);
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
  #producto-navbar.is-fixed {
    left: 0;
  }

  .pc-menciones-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pc-mencion-inner {
    border-radius: 1.5rem 1.5rem 1.5rem 0;
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .pc-mencion-card {
    align-items: flex-end;
  }

  .pc-recurso-title-group {
    gap: 0.25rem
  }

  .pc-recurso-icon img {
    max-width: 30px;
    max-height: 30px;
  }
}

/* ---- Productos Relacionados ---- */
.section-title {
  color: #009878;
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

.section-title-product {
  color: #00987c;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.pc-related-card {
  height: 100%;
}

.pc-related-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  /* Reduced padding for compact "default" look */
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 5px solid #009878;
  /* Authentic default border accent */
  position: relative;
  overflow: hidden;
}

.pc-related-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
}

.pc-related-image {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.pc-related-image:empty {
  display: none;
}

.pc-related-image img {
  display: none;
}

.pc-related-name {
  color: #2F95BB;
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: none;
  margin-bottom: 2rem;
  line-height: 1.3;
  min-height: 4.5rem;
  /* Forces consistent start for meta area */
  display: flex;
  align-items: flex-start;
}

.pc-related-meta {
  display: grid;
  grid-template-rows: minmax(2rem, auto) auto;
  /* Ensures Analitos starts at same lane */
  gap: 0;
}

.pc-related-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}


.pc-related-dot {
  width: 10px;
  height: 10px;
  background-color: #2F95BB;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
  /* Align dot with first line of text */
}

.pc-related-label {
  font-weight: 400;
  /* Normal font */
  color: #000;
  font-size: 0.95rem;
  margin-top: 0.15rem;
  /* Align label with first line of text */
}

.pc-related-value {
  color: #4b5563;
  font-size: 0.95rem;
}

.pc-related-value.italic {
  font-style: italic;
  color: #6b7280;
}

/* Newsletter Title and Layout Override */
.pc-newsletter-section .text-primary,
.pc-newsletter-section h2 {
  color: #2F95BB !important;
}

.pc-newsletter-section .newsletter-form-block-footer {
  margin-top: 4rem;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding-bottom: 2rem !important;
}

/* Specific background adjustment for product page - Restore visibility but prevent overlap */
.pc-newsletter-section .newsletter-form-block-footer img[src*="left.png"] {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) !important;
  --tw-translate-x: -30vw !important;
  --tw-translate-y: 18vh !important;
  overflow: hidden !important;
  overflow-x: unset !important;
  height: 200% !important;
}

.pc-newsletter-section .newsletter-form-block-footer img[src*="right.png"] {
  display: block !important;
  position: absolute !important;
  right: -15% !important;
  top: -50% !important;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) !important;
  --tw-translate-x: 10vw !important;
  --tw-translate-y: -15vh !important;
  height: 300% !important
}

@media (max-width: 768px) {
  .pc-newsletter-section .newsletter-form-block-footer img[src*="right.png"] {
    height: 120% !important;
    top: -10% !important;
    right: -20% !important;
    opacity: 0.4;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .pc-related-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
}

#productos-relacionados {
  z-index: 1;
  position: relative;
}

/* ==========================================================================
   INSTRUMENTO LAYOUT SPECIFIC STYLES
   ========================================================================== */

#producto-navbar .nav-link-redesign:not(.active) .icon-instrument-caracteristicas,
#producto-navbar .nav-link-redesign:not(.active) .icon-instrument-slider,
#producto-navbar .nav-link-redesign:not(.active) .icon-instrument-test,
#producto-navbar .nav-link-redesign:not(.active) .icon-instrument-tecnica {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

#producto-navbar .nav-link-redesign.active .icon-instrument-caracteristicas,
#producto-navbar .nav-link-redesign.active .icon-instrument-slider,
#producto-navbar .nav-link-redesign.active .icon-instrument-test,
#producto-navbar .nav-link-redesign.active .icon-instrument-tecnica {
  background-color: #2f95bb;
  filter: none;
}

/* --- Badge & Icon Utilities --- */
.instr-badge-green {
  background-color: #009B77;
  border-radius: 8px;
  /* Square-rounded per design */
}

.icon-instrument-caracteristicas {
  mask-image: url(../fonts/icon-material-category.svg);
  -webkit-mask-image: url(../fonts/icon-material-category.svg);
}

.icon-instrument-slider {
  mask-image: url(../fonts/icon-fa-solid-medal.svg);
  -webkit-mask-image: url(../fonts/icon-fa-solid-medal.svg);
}

.icon-instrument-test {
  mask-image: url(../fonts/ion-material-outline-coronavirus.svg);
  -webkit-mask-image: url(../fonts/ion-material-outline-coronavirus.svg);
}

.icon-instrument-tecnica {
  mask-image: url(../fonts/icon-fa-solid-clipboard-list.svg);
  -webkit-mask-image: url(../fonts/icon-fa-solid-clipboard-list.svg);
}



/* --- Instrumento Unified Styles (Consolidated) --- */
.instr-char-card {
  border-radius: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
  background-color: #fff;
  padding: 2.5rem;
  height: 100%;
}

.instr-dot-blue {
  display: none !important;
}

.instr-char-card h3 {}

.instr-char-card h3::before {}

.instr-slide-card-outer,
.instr-slide-card-outer *,
.disease-card,
.disease-card *,
.paragraph--type--lp-icon-text-card,
.paragraph--type--lp-icon-text-card *,
[class*="shadow-"],
[class*="hover\:shadow-"] {
  box-shadow: none !important;
  text-shadow: none !important;
  --tw-shadow: 0 0 #0000 !important;
  --tw-shadow-colored: 0 0 #0000 !important;
  filter: none !important;
}

.instr-slide-card-outer {
  background-color: #F7F7F7;
  border-radius: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1.5rem 2rem;
}

.instr-slide-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  align-items: center !important;
  min-height: auto;
  width: 100%;
}

.instr-slide-img-col {
  width: 100%;
  max-width: 400px;
}

.instr-slide-text-col {
  width: 100%;
  text-align: center;
}

.instr-splide .splide__list {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  list-style: none !important;
  padding: 0 !important;
}

.instr-splide .splide__slide {
  display: flex !important;
  width: 100% !important;
}

@media (min-width: 1024px) {
  .instr-slide-inner {
    flex-direction: row !important;
    min-height: 300px !important;
    gap: 4rem !important;
    text-align: left !important;
  }

  .instr-slide-img-col {
    width: 45% !important;
    flex: 0 0 45% !important;
    max-width: none;
  }

  .instr-slide-text-col {
    width: 45% !important;
    flex: 0 0 45% !important;
    text-align: left;
  }
}

.instr-slide-img {
  width: 100%;
  height: auto;
  border-radius: 2.5rem;
  box-shadow: none !important;
  -o-object-fit: cover;
     object-fit: cover;
}

.instr-slide-title {
  color: #2F95BB !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center;
}

@media (min-width: 1024px) {
  .instr-slide-title {
    font-size: 2.25rem;
    justify-content: flex-start;
  }
}

.instr-slide-title::before,
.instr-slide-title::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
}

.instr-slide-number {
  color: #00987C !important;
  font-weight: 600 !important;
  margin-right: 0.5rem;
}

/* Hide the redundant gallery row above Used In */
.como-funciona-steps {
  display: none !important;
}

/* --- Technical Information Refinements --- */
.instr-tech-card {
  background: #fff;
  border-radius: 2rem;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}



.instr-tech-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  background: white;
}

@media (min-width: 1024px) {
  .instr-tech-header {
    padding: 2.5rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.instr-tech-title {
  color: #2F95BB;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}

.instr-tech-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.instr-tech-label-ref {
  font-size: 1rem !important;
  color: #2F95BB !important;
}

.instr-tech-value-ref {
  font-size: 1rem !important;
  color: #000 !important;
}

.instr-tech-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #F0F7F6;
  align-items: center;
}

@media (min-width: 1024px) {
  .instr-tech-body {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center !important;
  }

  .instr-tech-main {
    order: -1;
  }
}

.instr-specs-grid {
  width: 100%;
}

.instr-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.instr-spec-label {
  width: 40%;
  color: #374151;
  font-weight: 700;
  text-align: right;
  font-size: 0.9rem;
}

.instr-spec-value {
  width: 60%;
  font-size: 0.9rem;
}

@media (min-width: 1024px) {

  .instr-spec-label,
  .instr-spec-value {
    font-size: 1rem;
  }

  .instr-spec-row {
    gap: 2rem;
  }
}

.instr-slide-desc {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.75;
}

.instr-slide-desc.pc-body ul {
  list-style-type: none !important;
  padding-left: 0 !important;
}

.instr-slide-desc.pc-body li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.25rem;
}

.instr-slide-desc.pc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  background-color: #2F95BB;
  border-radius: 50%;
}

.instr-slider-controls-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0;
}

.instr-arrow-btn {
  width: 44px;
  height: 44px;
  border: 2px solid #2F95BB;
  border-radius: 50%;
  background: white;
  color: #2F95BB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.instr-arrow-btn:hover {
  background: #2F95BB;
  color: white;
}

.instr-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #2F95BB;
  background: transparent;
  transition: all 0.3s ease;
  padding: 0;
  cursor: pointer;
}

.instr-dot-btn.active {
  background-color: #009B77;
  border-color: #009B77;
  transform: scale(1.2);
}

/* --- Información Técnica Revised --- */
.instr-tech-card-enhanced {
  background-color: white !important;
  border-radius: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.3s ease;
}

.instr-tech-card-enhanced:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.instr-badge-enhanced {
  padding: 0.75rem 1.5rem !important;
  font-size: 0.875rem !important;
  border-radius: 12px !important;
}

.instr-tech-image img {
  border-radius: 2.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid #fff;
  background: white;
}

.instr-tech-section-separator {
  border-top: 1px solid #eef2f6;
  margin: 1.5rem 0 3rem;
}

/* --- Video interaction --- */
.sn-video-custom-cover {
  cursor: pointer;
}

/* Contact Section Styling Refinement */
.pc-contact-section {
  border-radius: 80px;
}

.pc-contact-card {
  min-height: 600px;
}

.pc-contact-form .form-item {
  margin-bottom: 2rem;
}

.pc-contact-form .form-item input,
.pc-contact-form .form-item textarea,
.pc-contact-form .form-item select {
  border: 1px solid #eef7fa;
  background-color: #fcfdfe;
  border-radius: 12px;
  padding: 1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.pc-contact-form .form-item input:focus {
  border-color: #2f95bb;
  box-shadow: 0 0 0 4px rgba(47, 149, 187, 0.05);
  background-color: white;
}

/* Adjust Newsletter for Product Page to avoid overlap */
.node--product-category--full .newsletter-wrapper {
  position: relative;
  z-index: 10;
}

/* Remove all bullets from instrument characteristics */
.instr-char-desc p::before,
.instr-char-desc::before,
.instr-char-desc p::after {
  content: none !important;
  display: none !important;
}

.instr-char-desc {
  list-style-type: none !important;
}

.instr-char-desc *:before,
.instr-char-desc *:after {
  display: none !important;
  content: none !important;
}

/* Usado En Grid Refinements */
.pc-como-card-subtitle {
  font-size: 1.6rem;
  font-weight: 700;
  color: #009CA6;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  width: 100%;
}

.pc-btn-ver-mas {
  background-color: #008D81 !important;
  color: #fff !important;
  padding: 0.75rem 2.2rem !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  margin-top: 1rem;
  text-transform: none;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0, 141, 129, 0.15);
}

.pc-btn-ver-mas:hover {
  background-color: #006d64 !important;
  box-shadow: 0 6px 15px rgba(0, 141, 129, 0.25);
  transform: translateY(-1px);
}

.disease-icon {
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Slider Indexing Fix: Hide redundant Splide button text to keep only my custom format */
.instr-splide .splide__pagination li button {
  font-size: 0 !important;
  color: transparent !important;
}

.instr-splide .splide__pagination li {
  list-style: none !important;
}

/* Disease Accordion Refinements - Design v3 (Final Precision Fix) */
.grid__column:nth-child(odd) .disease-accordion-item {
  background-color: #F2F2F2;
}

.grid__column:nth-child(even) .disease-accordion-item {
  background-color: #ffffff;
}

.disease-accordion-item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: none !important;
}

/* Open state "Card-like" effect matching Producto/Instrumento Shadow */
.disease-accordion-item.shadow-xl {
  background-color: #ffffff !important;
  border-radius: 0 !important;
  border-color: transparent !important;
  overflow: hidden;
  /* Soft shadow to match Producto/Instrumento cards */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Accordion list: bottom padding so last item breathes */
.field--name-field-diseases>.field__items,
.view-diseases .view-content,
.grid--diseases {
  padding-bottom: 3rem !important;
}

/* Accordion button text align left to prevent browser default text-align center */
.disease-accordion-item button {
  transition: all 0.3s ease;
  text-align: left !important;
}

/* Slower and smoother opening for the content wrapper */
.disease-accordion-item .relative.overflow-hidden {
  transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pathogen list styling: No underlines */
.disease-accordion-item .prose a {
  color: #000;
  text-decoration: none !important;
  font-weight: 500;
}

.disease-accordion-item .prose a:hover {
  color: #057CAC;
  text-decoration: none !important;
}

/* Individual Germ Page: Related Products List Styling */
.disease-pathogens-list ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 1.25rem 2rem !important;
}

@media (min-width: 768px) {
  .disease-pathogens-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.disease-pathogens-list ul li {
  position: relative !important;
  padding-left: 2rem !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em !important;
  line-height: 1.4 !important;
}

.disease-pathogens-list ul li a {
  color: #4B5563 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: color 0.2s ease !important;
}

.disease-pathogens-list ul li a:hover {
  color: #2F95BB !important;
}

.disease-pathogens-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #2F95BB;
  border-radius: 9999px;
}

/* Germ Page: Disable Slider Interactivity */
.no-slider-interactivity .slick-arrow,
.no-slider-interactivity .slick-dots,
.no-slider-interactivity .splide__arrows,
.no-slider-interactivity .splide__pagination {
  display: none !important;
}

.no-slider-interactivity .slick-list,
.no-slider-interactivity .splide__track {
  pointer-events: none !important;
  cursor: default !important;
}

/* Ensure the image doesn't overflow its container in the floating layout */
.germ-main-image-wrapper img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Clearfix utility */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* ==========================================================================
   BLOG REDESIGN STYLES
   ========================================================================== */

.view-blog {
  padding-bottom: 0;
}

/* Remove background from Inicio blog block */
.view-id-blog.view-display-id-block_home {
  background-color: transparent;
}

.blog-featured-outer-wrapper {
  width: 100%;
  margin-bottom: 0;
}

.blog-main-page-wrapper,
.news-main-page-wrapper{
  width: 100%;
}

@media (min-width: 100%){

  .blog-main-page-wrapper,
.news-main-page-wrapper{
    max-width: 100%;
  }
}

@media (min-width: 1024px){

  .blog-main-page-wrapper,
.news-main-page-wrapper{
    max-width: 1024px;
  }
}

@media (min-width: 1170px){

  .blog-main-page-wrapper,
.news-main-page-wrapper{
    max-width: 1170px;
  }
}

.blog-main-page-wrapper,
.news-main-page-wrapper{
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.vircell-spain-infografia-3 .blog-main-page-wrapper,.vircell-spain-infografia-3 
.news-main-page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}


.page-user-password-reset .blog-main-page-wrapper.mx-auto.my-4.px-4,
.page-user-password-reset 
.news-main-page-wrapper.mx-auto.my-4.px-4 {
  display: none;
}


.page-user-password-reset .container.blog-main-page-wrapper.my-4.px-4,
.page-user-password-reset .container
.news-main-page-wrapper.my-4.px-4 {
  display: none;
}


.page-user-password-reset .container.mx-auto.my-4.blog-main-page-wrapper,
.page-user-password-reset .container.mx-auto.my-4
.news-main-page-wrapper {
  display: none;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog Individual View */
.node--type--blog.node--view-mode--full {
  padding-bottom: 0;
}

.blog-individual-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-body-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.blog-body-content p {
  margin-bottom: 1.5rem;
}

.blog-body-content h2 {
  color: #2F95BB;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-body-content h3,
.blog-body-content h4 {
  color: #5AC3B5;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-body-content h2 {
  font-size: 1.75rem;
}

.blog-body-content h3 {
  font-size: 1.5rem;
}

.blog-body-content img {
  border-radius: 1.5rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-share-section img {
  display: inline-block;
  margin: 0;
}

.blog-related-card {
  background-color: #F8F8F8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.blog-related-card:hover {
  transform: scale(1.04);
  z-index: 30;
}

/* Related card title adjustment */
.blog-related-card {
  font-size: 0.95rem;
  line-height: 1.4;
}

.blog-share-section img {
  width: 20px;
  height: 20px;
}

/* bg-serpiente is allowed on all landing pages - removed global override */

/* --- Featured Post (Most Recent) --- */
.blog-featured-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin: 0 auto 3rem;
  border: 1px solid #f3f4f6;
  height: auto;
  max-width: 1168px;
}

@media (min-width: 1024px) {
  .blog-featured-card {
    flex-direction: row;
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
  }
}

.blog-featured-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .blog-featured-image {
    width: 50%;
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
    flex-shrink: 0;
  }
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.blog-featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .blog-featured-content {
    padding: 1.5rem 2rem;
    height: 400px !important;
    max-height: 400px !important;
    min-height: 400px !important;
    background: #F8F8F8;
  }
}

.blog-badge-recent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFC107;
  color: #000;
  padding: 0.4rem 1.25rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.85rem;
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: 1.25rem;
}

.blog-badge-recent svg {
  display: block;
}

.blog-badge-category {
  display: inline-block;
  background: #1367AA;
  color: #fff;
  padding: 0.25rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  width: -moz-fit-content;
  width: fit-content;
}

.blog-featured-content .blog-badge-category {
  margin-bottom: 0.5rem;
}

/* Category badge specifically for cards in grid */


.blog-featured-date {
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 0.75rem;
}

.blog-featured-title {
  font-size: 1.2rem;
  line-height: 1.2;
  color: #2F95BB;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .blog-featured-title {
    font-size: 2.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


.blog-featured-excerpt {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .blog-featured-excerpt {
    font-size: 1rem;
  }
}

.blog-featured-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-featured-link {
  color: #2F95BB;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  margin-left: auto;
  margin-top: auto;
  /* Push to bottom */
}

.blog-featured-link:hover {
  text-decoration: none;
}

/* --- Main Content Card --- */
.blog-main-content-card {
  background: #F8F8F8;
  border-radius: 2.5rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .blog-main-content-card {
    padding: 2.5rem;
  }
}

/* --- Search & Filters --- */
.blog-filters-wrapper {
  margin-bottom: 4rem;
}

.blog-search-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 0.25rem 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
}

.blog-search-input {
  border: none !important;
  flex-grow: 1;
  padding: 0.75rem 0;
  font-size: 1rem;
  outline: none !important;
  box-shadow: none !important;
  color: #374151;
}

.blog-search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.blog-search-box input::-moz-placeholder {
  font-style: italic;
  color: #9ca3af;
}

.blog-search-box input::placeholder {
  font-style: italic;
  color: #9ca3af;
}

.blog-search-icon {
  color: #2F95BB;
  width: 24px;
  height: 24px;
}

.blog-categories-and-clear {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.blog-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-category-btn {
  background: #fff;
  border: 2px solid #1367AA;
  color: #1367AA;
  padding: 0.65rem 1.75rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-category-btn:hover,
.blog-category-btn.is-active {
  background: #1367AA;
  color: #fff;
}

/* --- Grid Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 800px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Shadow for individual cards — overflow on wrapper, not article, so scale zoom works fully */
.blog-grid-item {
  overflow: hidden;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Ensure article inside fills the grid item height */
.blog-grid-item>article,
.blog-grid-item>.contextual-region {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-grid-item article {
  /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; */
  border-radius: 1.5rem !important;
  overflow: visible !important;
  height: 100%;
}

/* --- Questions Section Outer (Full Width page break-out) --- */
.blog-questions-section-outer {
  position: relative;
  background-color: #EAEAEA;
  padding: 6rem 0;
  overflow: hidden;
  /* Break out of any parent container to achieve full viewport width */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  left: 0;
}

@media (max-width: 1024px) {
  .blog-questions-section-outer {
    padding: 5rem;
  }
}

.blog-questions-patterns {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fake-select-container.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Technical Notes Filter Buttons */
.technical-notes-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-filter-pill {
  border: 2px solid #2F95BB;
  border-radius: 20px;
  padding: 6px 20px;
  background: white;
  color: #2F95BB;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.btn-filter-pill:hover,
.btn-filter-pill.active {
  background: #2F95BB;
  color: white;
}


.blog-questions-patterns .pattern-left {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  z-index: 5;
}

.blog-questions-patterns .pattern-right {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  z-index: 5;
}

.blog-questions-container-full {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  /* Match blog-container width */
  margin: 0 auto;
  width: 100%;
}

.blog-questions-inner {
  background: #fff;
  border-radius: 2.5rem;
  /* Match blog-main-content-card */
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
  width: 100%;
  margin: 0;
}

@media (min-width: 1024px) {
  .blog-questions-inner {
    max-width: none;
    margin: 0;
    padding: 4rem;
  }
}

.blog-questions-title {
  color: #009878;
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-questions-section-outer {
    padding: 3rem 2rem !important;
  }

  .blog-questions-inner {
    padding: 3rem 2rem !important;
  }

  .blog-questions-title {
    font-size: 1.6rem !important;
  }

  .blog-questions-btn {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
  }
}

@media (max-width: 768px) {
  .blog-questions-section-outer {
    padding: 2rem 1rem !important;
  }

  .blog-questions-inner {
    padding: 2.5rem 1.25rem !important;
    border-radius: 1.5rem !important;
  }

  .blog-questions-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .blog-questions-btn {
    padding: 0.875rem 1.75rem !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .blog-questions-patterns {
    display: none !important;
  }
}

.blog-questions-text {
  font-size: 1.35rem;
  color: #4b5563;
  margin-bottom: 3rem;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.blog-questions-btn {
  display: inline-flex;
  background: #009878;
  color: #fff;
  padding: 1.25rem 3.5rem;
  border-radius: 1rem;
  /* font-weight: 700; */
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.blog-questions-btn:hover {
  background: #007d63;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 152, 120, 0.2);
}

/* --- Pagination --- */
.blog-pagination {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.blog-pagination .pager__item {
  list-style: none;
}

.blog-pagination a,
.blog-pagination .is-active span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 15px;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  color: #374151;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  background: #fff;
}

.blog-pagination .is-active span {
  background: #2F95BB;
  color: #fff;
  border-color: #2F95BB;
}

.blog-pagination a:hover {
  border-color: #2F95BB;
  color: #2F95BB;
  background-color: #f0f9ff;
}

.event-news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.events-news-card-home,
.event-news-card,
.tarjeta-molecular,
.tarjeta-instrumentos,
.featured-text,
.featured-icon,
.news-block {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.featured-text {
  background-color: #F7F7F7 !important;
}

/* Blog & Event Card Full Outer Zoom */
.blog-grid-item,
.redesign-home-event-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.event-news-card:hover,
.blog-grid-item:hover,
.redesign-home-event-item:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  z-index: 10;
}

.blog-grid-item article,
.redesign-home-event-item article {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: none !important;
}

.blog-grid-item h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* --- News & Events Specifics --- */
.news-vircell-spain-badge {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-vircell-spain-filter label:hover span {
  text-decoration: underline;
}

.news-vircell-spain-filter input[type="checkbox"] {
  cursor: pointer;
}

/* Newsletter Sidebar Webform - FINAL FIX */
.lg\:pl-12 .webform-submission-newsletter-form {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .lg\:flex,
.lg\:pl-12 .webform-submission-newsletter-form .lg\:flex-row {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .lg\:w-7\/12 {
  display: flex !important;
  flex-direction: column !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .lg\:flex-row {
  display: contents !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .flex-grow {
  order: 1 !important;
  margin-bottom: 1.5rem !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .space-y-2 {
  order: 2 !important;
  margin-bottom: 1.5rem !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .newsletter-actions {
  order: 3 !important;
  width: 100% !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .lg\:w-5\/12,
.lg\:pl-12 .webform-submission-newsletter-form .lg\:mb-0 {
  width: 100% !important;
  margin-bottom: 1.5rem !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .flex-grow,
.lg\:pl-12 .webform-submission-newsletter-form .newsletter-actions {
  width: 100% !important;
}

.lg\:pl-12 .webform-submission-newsletter-form h2 {
  font-size: 1.5rem !important;
  line-height: 2rem !important;
}

.lg\:pl-12 .webform-submission-newsletter-form .form-actions {
  margin-top: 0 !important;
}

/* Original vertical overrides for cards/standard forms */
.news-card-content .webform-submission-newsletter-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.webform-submission-newsletter-form input[type="email"] {
  width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
  transition-property: all !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 150ms !important;
  background-color: #fcfcfc !important;
  height: 50px !important;
  display: block !important;
}

.webform-submission-newsletter-form input[type="email"]:focus {
  --tw-ring-color: #2F95BB !important;
  box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
}

.webform-submission-form .form-type-checkbox,
.webform-submission-newsletter-form .form-type-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  font-size: 11px !important;
  color: #4b5563 !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.2 !important;
}

.webform-submission-form .form-type-checkbox input,
.webform-submission-newsletter-form .form-type-checkbox input {
  margin-top: 0.125rem !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  flex-shrink: 0 !important;
  float: none !important;
}

.webform-submission-newsletter-form .button--primary,
.webform-submission-newsletter-form [id^="edit-actions-submit"] {
  width: 100% !important;
  background-color: #1467AB !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  border-radius: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  transition-property: all !important;
  transition-duration: 300ms !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(20, 103, 171, 0.2) !important;
  height: 50px !important;
  display: block !important;
}

.webform-submission-newsletter-form .button--primary:hover,
.webform-submission-newsletter-form [id^="edit-actions-submit"]:hover {
  background-color: #2F95BB !important;
  transform: scale(1.02) !important;
}

/* Vircell Spain Label Text (Teaser cards) */
.vircell-spain-label-text {
  background-color: transparent !important;
  color: #1467AB !important;
  padding: 0 !important;
  margin: 0 !important;
  border-style: none !important;
  border-radius: 0px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 1rem;
}

/* Individual Page Headers - Teal Color */
.lg\:pl-12 h2.text-xl.font-bold.uppercase {
  color: #059a7b !important;
}

.btn-pill {
  border: 2px solid #1367aa;
  border-radius: 20px;
  padding: 6px 20px;
  background: white;
  color: #1367aa;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.btn-pill:hover,
.btn-pill.active {
  background: #1367aa;
  color: white;
}

.tech-pager-arrow {
  font-size: 2.2rem;
  font-weight: 300;
  color: #1367aa;
  text-decoration: none;
}

.vid-category-pill {
  max-width: 220px !important;
  display: inline-block;
  background-color: #1367aa;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slick--less .slick-track {
  text-align: left;
}

/* ==========================================================================
   VIRCELL SPAIN REDESIGN - NEW PATTERNS & ELEMENTS
   ========================================================================== */

/* --- Infografia Tipo 1 (Building Style - Overlay-like) --- */
.vircell-spain-infografia-1 {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 40px;
  overflow: hidden;
  margin: 4rem 0 !important;
}

.vircell-spain-infografia-1__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.7s ease;
}

.vircell-spain-infografia-1:hover .vircell-spain-infografia-1__image img {
  transform: scale(1.05);
}

.vircell-spain-infografia-1__content {
  background-color: #052136 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.vircell-spain-infografia-1__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #2F95BB;
}

/* --- Infografia Tipo 2 (Lotus Style - Curved) --- */
.vircell-card-curved {
  border-radius: 40px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vircell-card-curved:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.2) !important;
}

/* --- Infografia 3 (Detalles Home Style) --- */
.vircell-spain-infografia-3 {
  /* Container for the 3-column grid */
}

/* --- Image 2: Curved Card (VirClia Lotus Style) --- */
.vircell-card-curved {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  min-height: 450px;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .vircell-card-curved {
    flex-direction: row;
  }
}

.vircell-card-curved__image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

@media (min-width: 768px) {
  .vircell-card-curved__image-container {
    width: 50%;
  }
}

.vircell-card-curved__image-container img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  /* Replicating the distinct semi-circle curve from Image 2 */
  border-radius: 0;
}

@media (min-width: 768px) {
  .vircell-card-curved__image-container img {
    border-radius: 0 500px 500px 0;
    margin-right: -100px;
    width: calc(100% + 100px);
  }
}

.vircell-card-curved__content {
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .vircell-card-curved__content {
    width: 50%;
    padding: 4rem;
  }
}

.vircell-card-curved__content h3 {
  color: #2F95BB;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: right;
}

.vircell-card-curved__content .description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4B5563;
  margin-bottom: 2.5rem;
  text-align: right;
  font-weight: 400;
}

.vircell-card-curved__content .actions {
  display: flex;
  justify-content: flex-end;
}

/* --- Image 1: Vircell Spain Card Button Redesign --- */
/* Target the specific buttons found by browser in /vircell-spain */
.vircell-spain-card-button-redesign,
[class*="vircell-spain"] .text-primary.md\:border-primary,
.node--type-vircell-spain .text-primary.md\:border-primary {
  background-color: #009B77 !important;
  border: none !important;
  color: white !important;
  border-radius: 1rem !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.vircell-spain-card-button-redesign:hover,
[class*="vircell-spain"] .text-primary.md\:border-primary:hover,
.node--type-vircell-spain .text-primary.md\:border-primary:hover {
  background-color: #007f61 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}


/* --- Vircell Spain Landing Refinements --- */
.page-node-type-vircell-spain #block-vircell-banner-block,
.page-node-type-vircell-spain .vircell-banner-container {
  display: none !important;
}



.vircell-spain-redesign-main {
  background-color: white;
  position: relative;
  z-index: 0;
}



.paragraph--type--lp-slider {
  position: relative;
  z-index: 10;
}

/* Infografia 3 (Detalles home - Image 3) */
.vircell-spain-infografia-3-card {
  background-color: #F4F9F8;
  padding: 2.5rem;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}


.vircell-spain-infografia-3-card h3,
.vircell-spain-infografia-3-card .card-title {
  color: #009B77;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.vircell-spain-infografia-3-card .description {
  color: #4B5563;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Noticias Grid (Image 5) */
.vircell-spain-noticias h2 {
  color: #2F95BB;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vircell-spain-noticias p {
  color: #009B77;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Recursos Accordion (Image 5) */
.vircell-spain-recursos-accordion {
  max-width: 1000px;
  margin: 0 auto;
}

/* Buttons style */
.vs-solucion-btn {
  background-color: #009B77;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.vs-solucion-btn:hover {
  background-color: #007A5E;
  transform: translateY(-2px);
}

/* --- SOLUCIÓN GLOBAL DE DIAGNÓSTICO (Image 2) --- */
.vs-solucion-section {
  padding: 5rem 0;
  text-align: center;
  background-color: white;
}

.vs-solucion-header h2 {
  color: #009B77;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.vs-solucion-header p {
  color: #6B7280;
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.vs-solucion-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .vs-solucion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vs-solucion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vs-solucion-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.vs-solucion-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.vs-solucion-title {
  color: #2F95BB;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-solucion-desc {
  color: #4B5563;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.vs-solucion-btn {
  background-color: #009B77;
  color: white !important;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-block;
}

.vs-solucion-btn:hover {
  background-color: #007f61;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Infografia Tipo 1 (Building - Image 3 Bottom) --- */
.vs-infografia-building {
  display: flex;
  flex-direction: column;
  min-height: 600px;
  background-color: #052136;
  color: white;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .vs-infografia-building {
    flex-direction: row;
  }
}

.vs-infografia-building__image {
  width: 100%;
  min-height: 300px;
}

@media (min-width: 1024px) {
  .vs-infografia-building__image {
    width: 50%;
  }
}

.vs-infografia-building__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.vs-infografia-building__content {
  width: 100%;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .vs-infografia-building__content {
    width: 50%;
    padding: 5rem;
  }
}

.vs-infografia-building__content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.vs-infografia-building__subtitle {
  color: #009B77;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  display: block;
}

.vs-infografia-building__desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #D1D5DB;
}

/* --- Infografia Tipo 2 (Lotus - Image 3 Top) --- */
.vs-infografia-lotus {
  display: flex;
  flex-direction: column;
  padding: 5rem 0;
  background-color: white;
  align-items: center;
}

@media (min-width: 1024px) {
  .vs-infografia-lotus {
    flex-direction: row;
  }
}

.vs-infografia-lotus__image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .vs-infografia-lotus__image-wrapper {
    width: 55%;
    border-radius: 0 500px 500px 0;
  }
}

.vs-infografia-lotus__image-wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.vs-infografia-lotus__content {
  width: 100%;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
}

@media (min-width: 1024px) {
  .vs-infografia-lotus__content {
    width: 45%;
    padding: 0 5rem 0 2rem;
  }
}

.vs-infografia-lotus__content h2 {
  color: #2F95BB;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.vs-infografia-lotus__content .desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* --- Cloned Resources (Producto style) --- */
.vircell-spain-recursos {
  background-color: #F9FAFB;
  padding: 5rem 0;
}

/* --- Cloned Newsletter --- */
.vircell-spain-newsletter {
  background: white;
  padding: 6rem 0;
  position: relative;
}

.vircell-spain-newsletter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 500px;
  background-image: url(../fonts/left.png);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}

.vircell-spain-newsletter::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 500px;
  background-image: url(../fonts/right.png);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}

.vircell-spain-infografia-1 .title-box {
  border: 3px solid #2F95BB;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.vircell-spain-infografia-1:hover .title-box {
  background-color: rgba(47, 149, 187, 0.1);
}

/* --- Vircell Spain - Infografia 3 (Cards) --- */
.vircell-spain-infografia-3 {
  padding: 100px 0;
  background-color: white;
}

.vircell-spain-infografia-3 .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.vircell-spain-infografia-3 .field--name-lp-home-details-items {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 2.5rem !important;
  width: 100% !important;
  align-items: flex-start !important;
}

@media (max-width: 1023px) {
  .vircell-spain-infografia-3 .field--name-lp-home-details-items {
    flex-direction: column !important;
  }
}

.vircell-spain-infografia-3-card {
  background-color: #F4F9F8 !important;
  padding: 3rem !important;
  border-radius: 2rem !important;
  text-align: center;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transition: all 0.3s ease;
  height: 100% !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  flex: 1 !important;
  min-width: 0 !important;
}


.vircell-spain-infografia-3-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.vircell-spain-infografia-3-card .icon-container {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  min-height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 2rem auto !important;
  overflow: hidden;
}

.vircell-spain-infografia-3-card .icon-container img,
.vircell-spain-infografia-3-card .icon-container picture {
  width: 60px !important;
  height: 60px !important;
  display: block !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
}



.vircell-spain-infografia-3-card h3,
.vircell-spain-infografia-3-card .card-title {
  color: #009B77 !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  margin-bottom: 1.5rem !important;
}

.vircell-spain-infografia-3-card .description {
  color: #444 !important;
  font-size: 1.125rem !important;
  line-height: 1.6 !important;
  margin-bottom: 2rem !important;
}

/* --- Infografia Tipo 2 (Lotus) Curved Style --- */
.vircell-card-curved {
  min-height: 500px;
  background-color: white;
  z-index: 1;
}

.vircell-card-curved__image-container img {
  border-radius: 0 500px 500px 0 !important;
  margin-right: -100px;
  width: calc(100% + 100px);
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

@media (max-width: 767px) {
  .vircell-card-curved__image-container img {
    border-radius: 0 0 200px 200px !important;
    margin-right: 0;
    width: 100%;
  }
}

/* Redesign Infografias Vircell Spain */
.vs-infografia-lotus .rounded-r-\[500px\] {
  border-top-right-radius: 500px;
  border-bottom-right-radius: 500px;
}

.vs-infografia-building .vs-infografia-building__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.vircell-spain-infografia-3-card {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 155, 119, 0.1);
}

.vs-solucion-btn {
  display: inline-block;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vs-solucion-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 155, 119, 0.2);
}

.vircell-spain-infografia-3-card {
  min-height: 250px;
}

.field--name-lp-sections>.paragraph--type--lp-accordion-card {
  display: none !important;
}

/* =====================================================
   STEP 2: Fix accordion duplication
   Hide lp-accordion-card direct children of lp_sections
   (the duplicated rows below the 3-col grid)
   ===================================================== */
.field--name-lp-sections>.paragraph--type--lp-accordion-card {
  /* display: none !important; */
}

/* =====================================================
   STEP 3 & 4: Image utility fixes for new vs_info patterns
   ===================================================== */

/* Force absolute image wrapper and ALL of its descendants to stretch and cover perfectly */
.vs-infografia-building .absolute.inset-0,
.vs-infografia-building .absolute.inset-0 * {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  display: block !important;
}

/* Ensure building section covers min height and absolute items stretch fully */
.vs-infografia-building {
  overflow: hidden;
  min-height: 600px;
}

@media (min-width: 768px) {
  .vs-infografia-building .md\:absolute.md\:inset-y-0 {
    height: 100% !important;
  }
}



.vs-infografia-lotus {
  overflow: hidden;
}


/* =====================================================
   FIX: Accordion duplication - hide duplicated rows
   Try both possible parent selectors and paragraph types
   ===================================================== */
.field--name-lp-sections>.paragraph--type--lp-accordion-card,
.field--name-lp-sections>.paragraph--type--lp-home-details-element,
.field--lp-sections>.paragraph--type--lp-accordion-card,
.field--lp-sections>.paragraph--type--lp-home-details-element {
  display: none !important;
}

/* =====================================================
   FIX: Lotus image must cover full container height
   ===================================================== */
.vs-infografia-lotus__img {
  height: 100% !important;
  min-height: 600px !important;
  /* Increased height as requested */
  overflow: visible !important;
  /* Allow image rounding to be seen */
  border-radius: 0 !important;
  /* Remove container rounding */
}

/* Force absolute descendants inside Lotus image to stretch fully */
.vs-infografia-lotus__img * {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

/* Specific fix for rounding on the lazy-loaded image */
.vs-infografia-lotus__img img {
  border-radius: 0 500px 500px 0 !important;
}



/* Remove space bottom on the section and its paragraph wrapper */
.vs-infografia-lotus,
.paragraph--type--vs-info-2 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

/* =====================================================
   FIX: Remove italic and letter-spacing from vs headings
   ===================================================== */
.vs-infografia-lotus h2,
.vs-infografia-building h2 {
  font-style: normal !important;
  letter-spacing: normal !important;
}

/* =====================================================
   FIX: Infografia 3 Tarjeta - remove duplicate cards
   Duplicates are DIRECT children of .field--lp-sections
   The real cards are nested: lp-section > grid > grid__column > paragraph
   ===================================================== */

/* Hide duplicates that render directly in the field wrapper */
.field--lp-sections>.paragraph--type--vs-info-3,
.field--name-lp-sections>.paragraph--type--vs-info-3 {
  display: none !important;
}

/* Equal height cards: card fills its grid column */
.paragraph--type--vs-info-3 {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.paragraph--type--vs-info-3 .vircell-spain-infografia-3-card {
  flex: 1 1 auto !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #F0F7F6 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  border: none !important;
}

/* Description grows to push button to bottom */
.vircell-spain-infografia-3-card .description {
  flex: 1 1 auto !important;
}

/* =====================================================
   FIX: Normalize Accordion Cards (Infografia 3 alternative)
   Ensure cards in the 3-column grid have equal height and aligned buttons
   ===================================================== */
.paragraph--type--lp-accordion-card {
  max-width: 420px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: transparent !important;
  height: auto !important;
}

.paragraph--type--lp-accordion-card>div[x-data] {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
}

/* Flex-row layout to put icon on the left, content on the right. Form same size content box */
.paragraph--type--lp-accordion-card .flex.gap-4.flex-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  text-align: left !important;
  width: 100% !important;
  gap: 1.5rem !important;
  border-bottom: 0 !important;
  padding-bottom: 1rem !important;
  height: 220px !important;
}

@media (max-width: 767px) {
  .paragraph--type--lp-accordion-card .flex.gap-4.flex-row {
    height: auto !important;
  }
}

/* Left column: Icon styling */
.paragraph--type--lp-accordion-card .w-16 {
  flex: 0 0 70px !important;
  width: 70px !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.paragraph--type--lp-accordion-card .w-16 img {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
  max-width: 50px;
}

/* Right column: Content wrapper */
.paragraph--type--lp-accordion-card .flex.flex-col.gap-y-2.md\:gap-y-4 {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  width: auto !important;
  gap: 0.5rem !important;
  height: 100% !important;
}

/* Title on top right */
.paragraph--type--lp-accordion-card .headline--variant-card_title {
  text-align: left !important;
  padding: 0 !important;
  width: 100% !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

/* Description in the middle right */
.paragraph--type--lp-accordion-card .text-center.align-center.hidden.md\:block {
  text-align: left !important;
  display: block !important;
  width: 100% !important;
  color: #4B5563 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  min-height: unset !important;
}

/* Button on bottom right */
.paragraph--type--lp-accordion-card button.w-fit {
  margin-top: auto !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  align-self: flex-start !important;
  padding-top: 1rem !important;
}

@media (max-width: 767px) {
  .paragraph--type--lp-accordion-card button.w-fit {
    position: relative !important;
    margin-top: 1.25rem !important;
    align-self: flex-start !important;
    top: unset !important;
    right: unset !important;
    left: unset !important;
    bottom: unset !important;
    display: inline-flex !important;
  }
}

/* Accordion expanded content dropdown positioning */
.paragraph--type--lp-accordion-card [x-ref="container1"] {
  width: 100% !important;
  padding-left: 5.75rem !important;
  text-align: left !important;
}

.paragraph--type--lp-accordion-card [x-ref="container1"] ul {
  list-style-type: disc !important;
  margin-left: 1.25rem !important;
  padding-left: 0 !important;
  text-align: left !important;
  display: block !important;
}

.paragraph--type--lp-accordion-card [x-ref="container1"] li {
  list-style: disc !important;
  display: list-item !important;
  text-align: left !important;
  margin-bottom: 0.5rem !important;
  color: #009B77 !important;
}

.paragraph--type--lp-accordion-card [x-ref="container1"] li a,
.paragraph--type--lp-accordion-card [x-ref="container1"] li span {
  color: #2F95BB !important;
  text-decoration: none !important;
}

.paragraph--type--lp-accordion-card [x-ref="container1"] li a:hover {
  text-decoration: underline !important;
}

/* =====================================================
   FIX: Remove sidebar and expand content on Legal Pages
   Targeting: Aviso Legal (1132), Privacidad (1133), Cookies (1134)
   ===================================================== */
.page-node-1132 .main-content .grid,
.page-node-1133 .main-content .grid,
.page-node-1134 .main-content .grid,
body.page-node-type-page .main-content .grid {
  display: block !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 2rem 1.5rem !important;
}

.page-node-1132 .main-content .grid>.grid__column:first-child,
.page-node-1133 .main-content .grid>.grid__column:first-child,
.page-node-1134 .main-content .grid>.grid__column:first-child,
body.page-node-type-page .main-content .grid>.grid__column:first-child {
  display: none !important;
  /* Hide sidebar */
}

.page-node-1132 .main-content .grid>.grid__column:nth-child(2),
.page-node-1133 .main-content .grid>.grid__column:nth-child(2),
.page-node-1134 .main-content .grid>.grid__column:nth-child(2),
body.page-node-type-page .main-content .grid>.grid__column:nth-child(2) {
  width: 100% !important;
}

.submenu-text {
  color: #000 !important;
}

.submenu-text:hover {
  color: #fff !important;
}

/* Custom Search Results Title Styles */
.search-results-list a {
  color: #2F95BB !important;
  text-decoration: none !important;
  transition: color 0.15s ease-in-out;
}

.search-results-list a:hover {
  color: #1467AB !important;
}

/* User Login / Password Page Styles */
.path-user-pass #user-pass>p {
  margin-bottom: 2rem !important;
  line-height: 1.6;
}

/* =====================================================
   Vircell Spain - Infografia Tipo 2 Rounded Variation
   ===================================================== */
.vs-infografia-lotus.vs-infografia-rounded {
  background-color: #F8F8F8 !important;
  display: block !important;
  padding: 0 !important;
  /* Remove section padding so absolute image bleeds */
  min-height: auto !important;
  position: relative !important;
}

@media (min-width: 1024px) {
  .vs-infografia-lotus.vs-infografia-rounded {
    display: block !important;
    min-height: 480px !important;
  }

  /* Make grid container full width relative to viewport, matching building layout */
  .vs-infografia-rounded>div.max-w-7xl {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }

  /* Position the image column absolutely to the left half */
  .vs-infografia-rounded .col-span-1.lg\:col-span-6:first-child {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Restore padding for the text column on the right, setting right-padding to exactly 4rem (matching building section md:p-16) */
  .vs-infografia-rounded .col-span-1.lg\:col-span-6:last-child {
    grid-column: 7 / span 6 !important;
    /* Force text column to columns 7-12 */
    position: relative !important;
    z-index: 5 !important;
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
    /* Perfect 4rem alignment matching type 1 */
  }
}

@media (max-width: 1023px) {
  .vs-infografia-lotus.vs-infografia-rounded {
    padding: 4rem 0 !important;
  }
}

.vs-infografia-rounded .rounded-circle-container {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  /* No rounded corners */
  overflow: hidden !important;
  box-shadow: none !important;
  border: none !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 1023px) {
  .vs-infografia-rounded .rounded-circle-container {
    height: 350px !important;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .vs-infografia-rounded .rounded-circle-container {
    height: 280px !important;
  }
}

.vs-infografia-rounded .rounded-circle-container * {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  border-radius: 0 !important;
}

.vs-infografia-rounded .rounded-circle-container img {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  border-radius: 0 !important;
}

/* Center all form action/submit buttons for login, registration, and reset forms */
form.user-login-form .form-actions,
form.user-pass .form-actions,
form.webform-submission-user-registration-form .form-actions,
form.webform-submission-user-registration-add-form .form-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

form.user-login-form .form-actions input[type="submit"],
form.user-pass .form-actions input[type="submit"],
form.webform-submission-user-registration-form .form-actions input[type="submit"],
form.webform-submission-user-registration-add-form .form-actions input[type="submit"],
form.webform-submission-user-registration-form .form-actions button,
form.webform-submission-user-registration-add-form .form-actions button {
  margin-left: auto !important;
  margin-right: auto !important;
  display: inline-block !important;
}

/* --- User Profile Centered Redesign (Mockup Parity) --- */
.vircell-user-profile-wrapper {
  max-width: 650px !important;
  margin: 3.5rem auto !important;
  padding: 0 1.5rem !important;
  text-align: center !important;
  background: transparent !important;
}

.vircell-profile-list-container {
  position: relative !important;
  margin-bottom: 3.5rem !important;
}

/* Edit pencil floating precisely on the right above the list */
.vircell-profile-edit-pencil {
  position: absolute !important;
  right: 0 !important;
  top: -45px !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
  opacity: 0.85 !important;
  cursor: pointer !important;
  display: inline-block !important;
  z-index: 10 !important;
}

.vircell-profile-edit-pencil:hover {
  transform: scale(1.12) !important;
  opacity: 1 !important;
}

.vircell-profile-edit-pencil-img {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

.vircell-profile-details {
  border-top: none !important;
}

.vircell-profile-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 1.5rem 0 !important;
  border-bottom: 1.5px solid #d2d6dc !important;
}

.vircell-profile-label {
  color: #009CA6 !important;
  font-weight: 500 !important;
  font-size: 1.125rem !important;
  text-align: left !important;
}

.vircell-profile-value {
  color: #1e293b !important;
  font-weight: 400 !important;
  font-size: 1.125rem !important;
  text-align: right !important;
}

.vircell-profile-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

.vircell-profile-logout-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  padding: 0.875rem 2.25rem !important;
  background-color: #009B77 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 155, 119, 0.15) !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.vircell-profile-logout-btn:hover {
  background-color: #007f61 !important;
  box-shadow: 0 8px 20px rgba(0, 155, 119, 0.25) !important;
  transform: translateY(-1px) !important;
}

.vircell-profile-logout-btn svg {
  stroke: currentColor !important;
  transition: transform 0.2s ease !important;
}

.vircell-profile-logout-btn:hover svg {
  transform: translateX(2px) !important;
}

.vircell-profile-delete-info {
  text-align: center !important;
  color: #4a5568 !important;
  font-size: 1rem !important;
  max-width: 550px !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

.vircell-profile-delete-info a {
  color: #009CA6 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.vircell-profile-delete-info a:hover {
  color: #00767e !important;
  text-decoration: underline !important;
}

/* Add less padding and white background to header on user views */
.page-user-profile-view .vircell-banner-container,
.page-user-edit-form .vircell-banner-container,
.page-user-password-reset .vircell-banner-container,
.page-user-profile-view [style*="background-color"].vircell-banner-container,
.page-user-edit-form [style*="background-color"].vircell-banner-container,
.page-user-password-reset [style*="background-color"].vircell-banner-container,
.page-user-edit-form .bg-\[\#F7F7F7\].vircell-banner-container,
.page-user-edit-form .bg-\[\#F7F7F7\] .vircell-banner-container,
.page-user-edit-form .block-vircell-banner-block {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
}

.page-user-edit-form #block-vircell-banner-block {
  background-color: #ffffff;
}

/* --- Replicating format inside User Edit Page (1 Lane Input, descriptions at bottom) --- */
.page-user-edit-form form,
.page-user-edit-form .user-form,
.page-user-edit-form #user-form {
  max-width: 650px !important;
  margin: 3.5rem auto !important;
  padding: 0 1.5rem !important;
  background: transparent !important;
}

.page-user-edit-form form .js-form-item,
.page-user-edit-form form .form-item,
.page-user-edit-form .user-form .js-form-item,
.page-user-edit-form .user-form .form-item,
.page-user-edit-form #user-form .js-form-item,
.page-user-edit-form #user-form .form-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  padding: 1.25rem 0 !important;
  border-bottom: 1.5px solid #d2d6dc !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-user-edit-form form .js-form-item label,
.page-user-edit-form form .form-item label,
.page-user-edit-form .user-form .js-form-item label,
.page-user-edit-form .user-form .form-item label,
.page-user-edit-form #user-form .js-form-item label,
.page-user-edit-form #user-form .form-item label {
  color: #009CA6 !important;
  font-weight: 500 !important;
  font-size: 1.125rem !important;
  text-align: left !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
  width: 100% !important;
  order: 1 !important;
}

.page-user-edit-form form .js-form-item input,
.page-user-edit-form form .js-form-item select,
.page-user-edit-form form .js-form-item textarea,
.page-user-edit-form form .form-item input,
.page-user-edit-form form .form-item select,
.page-user-edit-form form .form-item textarea,
.page-user-edit-form .user-form .js-form-item input,
.page-user-edit-form .user-form .js-form-item select,
.page-user-edit-form .user-form .js-form-item textarea,
.page-user-edit-form .user-form .form-item input,
.page-user-edit-form .user-form .form-item select,
.page-user-edit-form .user-form .form-item textarea,
.page-user-edit-form #user-form .js-form-item input,
.page-user-edit-form #user-form .js-form-item select,
.page-user-edit-form #user-form .js-form-item textarea,
.page-user-edit-form #user-form .form-item input,
.page-user-edit-form #user-form .form-item select,
.page-user-edit-form #user-form .form-item textarea {
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1.05rem !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  order: 2 !important;
}

.page-user-edit-form form .description,
.page-user-edit-form form .form-item--description,
.page-user-edit-form form .form-item__description,
.page-user-edit-form form .help-block,
.page-user-edit-form .user-form .description,
.page-user-edit-form .user-form .form-item--description,
.page-user-edit-form .user-form .form-item__description,
.page-user-edit-form .user-form .help-block,
.page-user-edit-form #user-form .description,
.page-user-edit-form #user-form .form-item--description,
.page-user-edit-form #user-form .form-item__description,
.page-user-edit-form #user-form .help-block,
.page-user-edit-form .description,
.page-user-edit-form .form-item--description,
.page-user-edit-form .form-item__description,
.page-user-edit-form .help-block,
.form-item__description {
  margin-top: 0.5rem !important;
  font-size: 0.95rem !important;
  color: #64748b !important;
  text-align: left !important;
  order: 3 !important;
  display: block !important;
}

/* Force current password and all fields descriptions to be strictly at the bottom */
.page-user-edit-form form .form-item-current-pass,
.page-user-edit-form form #edit-current-pass-wrapper,
.page-user-edit-form .user-form .form-item-current-pass,
.page-user-edit-form .user-form #edit-current-pass-wrapper,
.page-user-edit-form #user-form .form-item-current-pass,
.page-user-edit-form #user-form #edit-current-pass-wrapper {
  display: flex !important;
  flex-direction: column !important;
}

.page-user-edit-form form .form-item-current-pass label,
.page-user-edit-form form #edit-current-pass-wrapper label,
.page-user-edit-form .user-form .form-item-current-pass label,
.page-user-edit-form .user-form #edit-current-pass-wrapper label,
.page-user-edit-form #user-form .form-item-current-pass label,
.page-user-edit-form #user-form #edit-current-pass-wrapper label {
  order: 1 !important;
}

.page-user-edit-form form .form-item-current-pass input,
.page-user-edit-form form #edit-current-pass-wrapper input,
.page-user-edit-form .user-form .form-item-current-pass input,
.page-user-edit-form .user-form #edit-current-pass-wrapper input,
.page-user-edit-form #user-form .form-item-current-pass input,
.page-user-edit-form #user-form #edit-current-pass-wrapper input {
  order: 2 !important;
}

.page-user-edit-form form .form-item-current-pass .description,
.page-user-edit-form form #edit-current-pass-wrapper .description,
.page-user-edit-form form #edit-current-pass--description,
.page-user-edit-form form .form-item-current-pass .form-item__description,
.page-user-edit-form form #edit-current-pass-wrapper .form-item__description,
.page-user-edit-form .user-form .form-item-current-pass .description,
.page-user-edit-form .user-form #edit-current-pass-wrapper .description,
.page-user-edit-form .user-form #edit-current-pass--description,
.page-user-edit-form .user-form .form-item-current-pass .form-item__description,
.page-user-edit-form .user-form #edit-current-pass-wrapper .form-item__description,
.page-user-edit-form #user-form .form-item-current-pass .description,
.page-user-edit-form #user-form #edit-current-pass-wrapper .description,
.page-user-edit-form #user-form #edit-current-pass--description,
.page-user-edit-form #user-form .form-item-current-pass .form-item__description,
.page-user-edit-form #user-form #edit-current-pass-wrapper .form-item__description {
  order: 3 !important;
  margin-top: 0.5rem !important;
  display: block !important;
}

/* Remove borders inside Password fields */
.page-user-edit-form form #edit-pass .js-form-item,
.page-user-edit-form form #edit-pass .form-item,
.page-user-edit-form .user-form #edit-pass .js-form-item,
.page-user-edit-form .user-form #edit-pass .form-item,
.page-user-edit-form #user-form #edit-pass .js-form-item,
.page-user-edit-form #user-form #edit-pass .form-item,
.page-user-edit-form .form-item-pass-pass1,
.page-user-edit-form .form-item-pass-pass2 {
  border-bottom: none !important;
}

/* Force whole Password widget to have a single border bottom */
.page-user-edit-form form #edit-pass,
.page-user-edit-form .user-form #edit-pass,
.page-user-edit-form #user-form #edit-pass {
  border-bottom: 1.5px solid #d2d6dc !important;
  padding-bottom: 1.25rem !important;
}

/* Centered layout for password reset page */
.page-user-password-reset #main-content {
  max-width: 896px !important;
  margin: 3.5rem auto !important;
  padding: 0 1.5rem !important;
}

/* Hide tabs button group on password reset page completely */
.page-user-password-reset h2.visually-hidden,
.page-user-password-reset h2.visually-hidden+div,
.page-user-password-reset h2.visually-hidden+div+div,
.page-user-password-reset .container.mx-auto.my-4.px-4 {
  display: none !important;
}

/* Center and blue color for "Se han guardado los cambios" success message on profile view */
/* Center and blue color for status messages on all user-related views */
.page-user-profile-view [role="alert"],
.page-user-profile-view .messages--status,
.page-user-profile-view .messages.status,
.page-user-profile-view .alert-status,
.page-user-profile-view .alert[class*="status"],
.page-user-profile-view .alert[class*="green"],
.page-user-profile-view [role="contentinfo"],
.page-user-edit-form [role="alert"],
.page-user-edit-form .messages--status,
.page-user-edit-form .messages.status,
.page-user-edit-form .alert-status,
.page-user-edit-form .alert[class*="status"],
.page-user-edit-form .alert[class*="green"],
.page-user-edit-form [role="contentinfo"],
.page-user-password-reset [role="alert"],
.page-user-password-reset .messages--status,
.page-user-password-reset .messages.status,
.page-user-password-reset .alert-status,
.page-user-password-reset .alert[class*="status"],
.page-user-password-reset .alert[class*="green"],
.page-user-password-reset [role="contentinfo"],
.page-user-login-view [role="alert"],
.page-user-login-view .messages--status,
.page-user-login-view .messages.status,
.page-user-login-view .alert-status,
.page-user-login-view .alert[class*="status"],
.page-user-login-view .alert[class*="green"],
.page-user-login-view [role="contentinfo"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 650px !important;
  margin: 1.5rem auto !important;
  padding: 1rem 1.5rem !important;
  background-color: #f0f9ff !important;
  /* Soft sky blue */
  border: 1.5px solid #bae6fd !important;
  border-left: 5px solid #009CA6 !important;
  /* Premium brand blue/teal border */
  color: #00767e !important;
  /* Deep teal brand text color */
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.page-user-profile-view [role="alert"] *,
.page-user-profile-view .messages--status *,
.page-user-profile-view .alert[class*="status"] *,
.page-user-profile-view [role="contentinfo"] *,
.page-user-edit-form [role="alert"] *,
.page-user-edit-form .messages--status *,
.page-user-edit-form .alert[class*="status"] *,
.page-user-edit-form [role="contentinfo"] *,
.page-user-password-reset [role="alert"] *,
.page-user-password-reset .messages--status *,
.page-user-password-reset .alert[class*="status"] *,
.page-user-password-reset [role="contentinfo"] *,
.page-user-login-view [role="alert"] *,
.page-user-login-view .messages--status *,
.page-user-login-view .alert[class*="status"] *,
.page-user-login-view [role="contentinfo"] * {
  color: #00767e !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Remove left border and hide SVG icon from alerts on user pages */
.page-user-profile-view [role="alert"] .alert,
.page-user-edit-form [role="alert"] .alert,
.page-user-password-reset [role="alert"] .alert,
.page-user-login-view [role="alert"] .alert {
  border-left: none !important;
}

.page-user-profile-view [role="alert"] .alert svg,
.page-user-edit-form [role="alert"] .alert svg,
.page-user-password-reset [role="alert"] .alert svg,
.page-user-login-view [role="alert"] .alert svg {
  display: none !important;
}


/* Remove all inner borders, backgrounds, and fieldsets */
.page-user-edit-form form details,
.page-user-edit-form form fieldset,
.page-user-edit-form .user-form details,
.page-user-edit-form .user-form fieldset,
.page-user-edit-form #user-form details,
.page-user-edit-form #user-form fieldset,
.page-user-edit-form #user-form #edit-account {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.page-user-edit-form #user-form details summary {
  font-weight: 600 !important;
  color: #009CA6 !important;
  font-size: 1.125rem !important;
  margin: 1.5rem 0 1rem 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  border-bottom: none !important;
}

.page-user-edit-form #user-form .form-actions {
  display: flex !important;
  justify-content: center !important;
  margin-top: 3rem !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.page-user-edit-form #user-form .form-actions input[type="submit"] {
  padding: 0.875rem 3.5rem !important;
  background-color: #009B77 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 155, 119, 0.15) !important;
  border: none !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  width: auto !important;
  max-width: none !important;
  text-align: center !important;
}

.page-user-edit-form #user-form .form-actions input[type="submit"]:hover {
  background-color: #007f61 !important;
  box-shadow: 0 8px 20px rgba(0, 155, 119, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* Responsiveness for floating pencil on smaller screens */
@media (max-width: 768px) {
  .vircell-profile-edit-pencil {
    right: 0 !important;
    top: -45px !important;
  }

  .page-user-edit-form #user-form .js-form-item,
  .page-user-edit-form #user-form .form-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  .page-user-edit-form #user-form .js-form-item label,
  .page-user-edit-form #user-form .form-item label {
    flex: 0 0 auto !important;
  }

  .page-user-edit-form #user-form .js-form-item input,
  .page-user-edit-form #user-form .js-form-item select,
  .page-user-edit-form #user-form .form-item input,
  .page-user-edit-form #user-form .form-item select {
    max-width: 100% !important;
    width: 100% !important;
    text-align: left !important;
  }
}

/* Marketing resources search input polish */
.page-marketing-resources input[type="text"],
.page-marketing-resources .form-text,
.page-marketing-resources input.form-control,
.page-marketing-resources .views-exposed-form input {
  color: #333333 !important;
  /* Normal text color, not blue */
  border: 1.5px solid #cbd5e0 !important;
  /* Soft grey border */
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.page-marketing-resources input[type="text"]:focus,
.page-marketing-resources .form-text:focus,
.page-marketing-resources input.form-control:focus,
.page-marketing-resources .views-exposed-form input:focus {
  color: #333333 !important;
  border-color: #009B77 !important;
  /* Brand green focus border, not blue! */
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 155, 119, 0.15) !important;
}

@media (max-width: 1023px) {

  /* Make the image section full bleed (no padding, edge-to-edge) on mobile for Vircell Spain Infografia Lotus */
  .vs-infografia-lotus .col-span-1:first-child {
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    width: calc(100% + 3rem) !important;
    max-width: none !important;
  }

  .vs-infografia-rounded .rounded-circle-container {
    height: 350px !important;
    margin-bottom: 2rem;
  }
}

/* Force white background on user account pages for banners and containers */
body.page-user-profile-view .vircell-banner-container,
body.page-user-edit-form .vircell-banner-container,
body.page-user-password-reset .vircell-banner-container,
body.page-user-login-view .vircell-banner-container,
body.page-user-profile-view .block-vircell-banner-block,
body.page-user-edit-form .block-vircell-banner-block,
body.page-user-password-reset .block-vircell-banner-block,
body.page-user-login-view .block-vircell-banner-block,
body.page-user-profile-view #block-vircell-banner-block,
body.page-user-edit-form #block-vircell-banner-block,
body.page-user-password-reset #block-vircell-banner-block,
body.page-user-login-view #block-vircell-banner-block {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Vircell Spain Infografia 3 Card Restyling to Match Original */

/* =====================================================
   Registration Form: Privacy Policy checkbox — same-line label,
   link text same color as surrounding text (no blue link)
   ===================================================== */
form.webform-submission-user-registration-form .js-form-type-checkbox label,
form.webform-submission-user-registration-add-form .js-form-type-checkbox label {
  display: inline !important;
  white-space: normal !important;
}

form.webform-submission-user-registration-form .js-form-type-checkbox label a,
form.webform-submission-user-registration-add-form .js-form-type-checkbox label a {
  color: inherit !important;
  text-decoration: underline !important;
  font-weight: inherit !important;
}

form.webform-submission-user-registration-form .js-form-type-checkbox label a:hover,
form.webform-submission-user-registration-add-form .js-form-type-checkbox label a:hover {
  opacity: 0.75 !important;
}

.text-justify {
  text-align: justify;
}

/* OTROS CATALOGOS */
/* Table Styles - Mobile First (default) */
.product-table-header {
  display: none !important;
}

.product-table-row {
  display: grid !important;
  grid-template-columns: 1fr 40px !important;
  gap: 0.25rem 1rem !important;
  padding: 0.85rem 1rem !important;
  align-items: stretch !important;
  cursor: pointer;
  transition: background-color 0.2s;
}

.product-table-row>div:nth-child(1) {
  grid-column: 1 / 2 !important;
  line-height: 1.3 !important;
  margin-bottom: 0.15rem !important;
  font-weight: 700 !important;
}

.product-table-row>div:nth-child(2) {
  grid-column: 1 / 2 !important;
  color: #4B5563 !important;
}

.product-table-row>div:nth-child(2)::before {
  content: "Ref: " !important;
  font-weight: 700 !important;
  color: #374151 !important;
}

.product-table-row>div:nth-child(3) {
  grid-column: 1 / 2 !important;
  color: #4B5563 !important;
}

.product-table-row>div:nth-child(3)::before {
  content: "Nº Test: " !important;
  font-weight: 700 !important;
  color: #374151 !important;
}

.product-table-row>div:nth-child(4) {
  grid-column: 2 / 3 !important;
  grid-row: 1 / 4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
}

.product-table-row:hover {
  background-color: #F3F4F6;
}

.product-table-row-content {
  grid-column: 1 / -1;
  color: #2F95BB;
  padding: 1.25rem 1rem;
}

/* Exact Pager Styles from Documentation Page */
.pager-wrapper select {
  padding: 0.15rem 2rem 0.15rem 0.75rem !important;
  line-height: 1.25rem !important;
}

.js-pager__items a {
  font-size: 1.125rem !important;
  line-height: 1.75rem !important;
  font-weight: 300 !important;
  text-decoration: none !important;
}

.js-pager__items .font-bold {
  font-weight: 700 !important;
}

/* Desktop Overrides */
@media (min-width: 1025px) {
  .product-table-header {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 40px !important;
    gap: 1rem !important;
    padding: 1rem !important;
    font-weight: 700 !important;
    color: #6B7280 !important;
    font-size: 1.125rem;
  }

  .product-table-row {
    grid-template-columns: 2fr 1fr 1fr 40px !important;
    gap: 1rem !important;
    padding: 0.75rem 1rem !important;
    align-items: center !important;
  }

  .product-table-row>div:nth-child(1) {
    margin-bottom: 0 !important;
    font-weight: normal !important;
  }

  .product-table-row>div:nth-child(2) {
    grid-column: auto !important;
    color: #4B5563 !important;
  }

  .product-table-row>div:nth-child(2)::before {
    content: "" !important;
  }

  .product-table-row>div:nth-child(3) {
    grid-column: auto !important;
    color: #4B5563 !important;
  }

  .product-table-row>div:nth-child(3)::before {
    content: "" !important;
  }

  .product-table-row>div:nth-child(4) {
    grid-column: auto !important;
    grid-row: auto !important;
    display: flex !important;
    align-self: center !important;
  }
}

/* Remove underline from links in webform checkboxes */
.webform-submission-form label a,
.webform-submission-form .form-type-checkbox label a,
.webform-submission-form .form-type-checkbox a,
.form-type-checkbox a {
  text-decoration: none !important;
}

/* Tarjeta Molecular Mobile 3D Card Flip Effect */
@media (max-width: 767px) {
  .tarjeta-molecular-flip-container {
    perspective: 1000px;
    width: 100%;
    margin-bottom: 2rem;
  }

  .tarjeta-molecular-flip-card {
    position: relative;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
  }

  .tarjeta-molecular-flip-container.is-flipped .tarjeta-molecular-flip-card {
    transform: rotateY(180deg);
  }

  .tarjeta-molecular-front,
  .tarjeta-molecular-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 2.5rem;
    overflow: hidden;
  }

  .tarjeta-molecular-front {
    transform: rotateY(0deg);
  }

  .tarjeta-molecular-back {
    transform: rotateY(180deg);
  }
}

/* Mobile Accordion Card Transitions */
.vircell-mobile-accordion-card div.overflow-hidden {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s ease;
}

/* =====================================================================
   TASK 1: Tarjeta Molecular – remove white background bleed on mobile
   ===================================================================== */
@media (max-width: 1024px) {
  .tarjeta-molecular {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: unset !important;
  }

  .tarjeta-molecular-flip-container,
  .tarjeta-molecular-flip-card {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: unset !important;
  }
}

/* =====================================================================
   TASK 2: Featured Text Group – section background + desktop card height
   ===================================================================== */

/* Section wrapper: #F7F7F7 background with padding */
.paragraph--type--featured-text {
  padding: 3rem 2rem;
}

@media (max-width: 1024px) {
  .paragraph--type--featured-text {
    padding: 1rem;
  }

  .mobile-featured-text-container {
    background: #F7F7F7;
  }
}

/* Desktop card equal height */
.featured-text-group__item,
.featured-text-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-text-wrapper .featured-text {
  flex: 1;
}

/* Mobile accordion transition */
.featured-text-accordion .overflow-hidden {
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
}

/* =====================================================================
   TASK 3: Featured Icons – compact padding on mobile (2-col layout)
   ===================================================================== */
@media (max-width: 767px) {
  .featured-icon {
    min-height: 100px !important;
  }

  .featured-icon__icon {
    margin-bottom: 0.5rem;
  }

  .featured-icon__title {
    font-size: 1rem !important;
  }
}

.image-tarjetas-instrumentos {
  max-height: 150px !important;
}

/* ---- Product Info Description Styles (HTML Bullet Points & Colored Links) ---- */
.producto-section .pc-body ul {
  list-style-type: disc !important;
  margin-left: 1.5rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
}

.producto-section .pc-body ol {
  list-style-type: decimal !important;
  margin-left: 1.5rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
}

.producto-section .pc-body li {
  margin-bottom: 0.4rem !important;
  display: list-item !important;
}

.producto-section .pc-body a {
  color: #009878 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.producto-section .pc-body a:hover {
  color: #2F95BB !important;
}

/* Hide "Ver Blog" button when bloque_blog is shown on the noticias-eventos (/news) page */
.page-view-news .bloque-blog-ver-blog-btn {
  display: none !important;
}

/* 3. Limit blog grid to 1 item on mobile */
@media (max-width: 767px) {
  .pc-blog-grid>*:nth-child(n+2) {
    display: none !important;
  }
}

/* 4. Hide green navbar on mobile */
@media (max-width: 767px) {
  #producto-navbar {
    display: none !important;
  }
}

/* related products hover scaling */
a.pc-related-card {
  text-decoration: none !important;
  cursor: pointer !important;
  display: block;
}

a.pc-related-card:hover .pc-related-inner {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08) !important;
  border-bottom-color: #0076BD !important;
}

/* Truncate long breadcrumbs with ellipsis, especially the last element */
.vircell-banner-container .breadcrumbs li a,
.vircell-banner-container .breadcrumbs li span,
.t3-breadcrumbs-plain li a,
.t3-breadcrumbs-plain li span {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

.vircell-banner-container .breadcrumbs li:last-child a,
.vircell-banner-container .breadcrumbs li:last-child span,
.t3-breadcrumbs-plain li:last-child a,
.t3-breadcrumbs-plain li:last-child span {
  max-width: 350px;
}

@media (max-width: 767px) {

  .vircell-banner-container .breadcrumbs li a,
  .vircell-banner-container .breadcrumbs li span,
  .t3-breadcrumbs-plain li a,
  .t3-breadcrumbs-plain li span {
    max-width: 120px;
  }

  .vircell-banner-container .breadcrumbs li:last-child a,
  .vircell-banner-container .breadcrumbs li:last-child span,
  .t3-breadcrumbs-plain li:last-child a,
  .t3-breadcrumbs-plain li:last-child span {
    max-width: 150px;
  }
}

/* Add vertical spacing to stacked form and webform fields on mobile only */
@media (max-width: 768px) {

  form.user-login-form .js-form-item,
  form.user-login-form .form-item,
  form.user-pass .js-form-item,
  form.user-pass .form-item,
  form.webform-submission-user-registration-form .webform-flex,
  form.webform-submission-user-registration-add-form .webform-flex,
  form.webform-submission-user-registration-form .js-form-item,
  form.webform-submission-user-registration-add-form .form-item,
  .webform-flexbox .webform-flex,
  .webform-flexbox .js-form-item,
  .webform-flexbox .form-item,
  form.webform-submission-user-registration-form label,
  form.webform-submission-user-registration-add-form label,
  form.user-login-form label,
  form.user-pass label {
    margin-bottom: 1.25rem !important;
    display: block !important;
  }

  form.webform-submission-user-registration-form input,
  form.webform-submission-user-registration-form select,
  form.webform-submission-user-registration-form textarea,
  form.webform-submission-user-registration-add-form input,
  form.webform-submission-user-registration-add-form select,
  form.webform-submission-user-registration-add-form textarea,
  form.user-login-form input,
  form.user-login-form select,
  form.user-login-form textarea,
  form.user-pass input,
  form.user-pass select,
  form.user-pass textarea {
    margin-bottom: 1.25rem !important;
  }

  /* Exclude submit buttons from bottom margin */
  form.webform-submission-user-registration-form input[type="submit"],
  form.webform-submission-user-registration-add-form input[type="submit"],
  form.user-login-form input[type="submit"],
  form.user-pass input[type="submit"],
  form.webform-submission-user-registration-form button,
  form.webform-submission-user-registration-add-form button,
  form.user-login-form button,
  form.user-pass button {
    margin-bottom: 0 !important;
  }
}

/* =========================================================================
   Product Profile Page Custom Fixes
   ========================================================================= */

/* 1. Adapt green navbar to handle one lane only on desktop */
@media (min-width: 992px) {
  #producto-navbar ul {
    flex-wrap: nowrap !important;
  }

  .scroll-spy-nav .nav-link {
    font-size: 0.95rem !important;
    padding: 0.5rem 0.75rem !important;
    gap: 0.35rem !important;
  }
}

/* 2. Slider image max-height limit & fit */
.instr-slide-img {
  max-height: 280px !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
}

/* 3. Instrument technical info: text aligned left */
.instr-spec-label {
  text-align: left !important;
}

/* 4. Video max-width 75% and centered (mobile 100%) */
.producto-profile-wrapper .pc-video-container {
  max-width: 75% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 767px) {
  .producto-profile-wrapper .pc-video-container {
    max-width: 100% !important;
  }
}

/* Align and position mobile breadcrumbs to top for Banner Type 1, 2, and 4 */
@media (max-width: 768px) {

  .vircell-banner-container.banner-type-1 .breadcrumbs,
  .vircell-banner-container.banner-type-4 .breadcrumbs {
    position: absolute !important;
    top: 1.5rem !important;
    left: 2rem !important;
    z-index: 30 !important;
    margin-bottom: 0 !important;
  }

  .vircell-banner-container.banner-type-1 .breadcrumbs *,
  .vircell-banner-container.banner-type-1 .breadcrumbs a,
  .vircell-banner-container.banner-type-1 .breadcrumbs span {
    color: #ffffff !important;
  }

  .vircell-banner-container.banner-type-1 .breadcrumbs .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  .vircell-banner-container.banner-type-4 .breadcrumbs *,
  .vircell-banner-container.banner-type-4 .breadcrumbs a,
  .vircell-banner-container.banner-type-4 .breadcrumbs span {
    color: #0076BD !important;
  }

  .vircell-banner-container.banner-type-4 .breadcrumbs .breadcrumb-item+.breadcrumb-item::before {
    color: #0076BD !important;
  }

  .vircell-banner-container.banner-type-2 .breadcrumbs.t2-breadcrumbs {
    position: absolute !important;
    top: 1.5rem !important;
    left: 2rem !important;
    z-index: 30 !important;
    margin-bottom: 0 !important;
  }
}

/* Prevent main navigation header from wrapping into two lines on smaller desktop/tablet views */
@media (min-width: 992px) {

  #main-header ul.relative.flex.lg\:flex-row,
  header ul.relative.flex.lg\:flex-row {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }

  /* Nav container must not overflow the header */
  #main-header .grow,
  #main-header [class*="grow"] {
    min-width: 0;
    overflow: hidden;
  }

  header ul.relative.flex.lg\:flex-row>li.item-menu {
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    text-align: center !important;
    justify-content: center !important;
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
    min-width: 0 !important;
  }

  header ul.relative.flex.lg\:flex-row>li.item-menu>a,
  header ul.relative.flex.lg\:flex-row>li.item-menu>span {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }

  header .submenu {
    text-align: left !important;
  }

  @media (min-width: 1200px) and (max-width: 1499px) {

    header ul.relative.flex.lg\:flex-row>li.item-menu>a,
    header ul.relative.flex.lg\:flex-row>li.item-menu>span {
      font-size: 0.78rem !important;
    }

    header ul.relative.flex.lg\:flex-row>li.item-menu {
      padding-left: 0.35rem !important;
      padding-right: 0.35rem !important;
    }
  }

  @media (min-width: 1500px) and (max-width: 1699px) {

    header ul.relative.flex.lg\:flex-row>li.item-menu>a,
    header ul.relative.flex.lg\:flex-row>li.item-menu>span {
      font-size: 0.88rem !important;
    }

    header ul.relative.flex.lg\:flex-row>li.item-menu {
      padding-left: 0.6rem !important;
      padding-right: 0.6rem !important;
    }
  }

  @media (min-width: 1700px) and (max-width: 1919px) {

    header ul.relative.flex.lg\:flex-row>li.item-menu>a,
    header ul.relative.flex.lg\:flex-row>li.item-menu>span {
      font-size: 0.95rem !important;
    }

    header ul.relative.flex.lg\:flex-row>li.item-menu {
      padding-left: 0.75rem !important;
      padding-right: 0.75rem !important;
    }
  }

  @media (min-width: 1920px) {

    header ul.relative.flex.lg\:flex-row>li.item-menu>a,
    header ul.relative.flex.lg\:flex-row>li.item-menu>span {
      font-size: 1.05rem !important;
    }

    header ul.relative.flex.lg\:flex-row>li.item-menu {
      padding-left: 0.9rem !important;
      padding-right: 0.9rem !important;
    }
  }
}

.banner-settings-trigger {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.banner-settings-trigger:hover {
  transition: all 0.3s ease-in-out;
  transform: scale(1.3);
}


/* All edit icon wrappers should start hidden and show on hover */
.edit-icon-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.edit-icon-wrapper .edit-icon-btn {
  pointer-events: auto;
}

/* Hover selectors for all relevant parent items */
.group:hover .edit-icon-wrapper,
.tech-doc-card:hover .edit-icon-wrapper,
.vid-card:hover .edit-icon-wrapper,
.blog-grid-item:hover .edit-icon-wrapper,
.blog-featured-card:hover .edit-icon-wrapper,
.event-news-card:hover .edit-icon-wrapper,
.views-row:hover .edit-icon-wrapper,
.biblio-item:hover .edit-icon-wrapper,
.otros-catalogos-page:hover .edit-icon-wrapper,
.calidad-page:hover .edit-icon-wrapper,
.view-promotional-material:hover>.edit-icon-wrapper {
  opacity: 1;
}

/* Hide default Drupal contextual links for views we customize */
.view-promotional-material .contextual,
.view-bibliography .contextual,
.view-blog .contextual,
.view-news .contextual,
.view-videos .contextual,
.view-technical-notes .contextual {
  display: none !important;
}

/* Home page blocks only: on mobile show only 1 event/blog item.
   - body.page-view-news = /noticias-eventos page (has .bloque-blog embedded as attachment)
   - body.page-view-blog = /blog page
   Exclude those pages so only the home page blocks are affected. */
@media (max-width: 767px) {
  body:not(.page-view-news) .redesign-home-events .redesign-home-event-item:not(:first-child) {
    display: none !important;
  }

  body:not(.page-view-news):not(.page-view-blog) .bloque-blog .blog-grid-item:not(:first-child) {
    display: none !important;
  }
}
