* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --topbar-height: 32px;
  --header-height: 70px;
}


body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f7f9fc;

}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-lifemedic .container {
  max-width: 90%;
}

.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  background: #0c1b2a;
  transition: transform 0.3s ease;
  height: 32px; 
}

.topbar .wrap {
  margin-top: 0; 
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.topbar a {
  color: #d5d5d5;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.topbar span{
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
}

.topbar a:hover {
  color: #e11d2e;
}

.topbar .emoji {
  width: 12px;
  height: 12px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill-mini {
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar.hidden {
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}

.header { 
  position: fixed; 
  top: var(--topbar-height, 32px);
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgb(255, 255, 255); 
  backdrop-filter: blur(5px); 
  -webkit-backdrop-filter: blur(5px); 
  transition: top 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled { 
  top: 0;
  background: rgba(255, 255, 255, 0.681); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.brand-logo img {
  height: 30px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu a {
  color: #3b3b3b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1.5px;
  background: #8f8f8f84;
  transition: width 0.3s ease;
}

.menu a:hover::after{
  width: 100%;
}

.menu a:hover {
  color: #6EC1E4;
}

.menu .cta {
  background: #e11d2e;
  color: #ffffff !important;
  padding: 10px 10px; 
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: 
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.menu .cta::after {
  display: none;
}

.menu .cta:hover {
  color: #ffffff !important;
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,.12);
  background: #e11d2e;
}

.menu .cta:hover {
  background: #b91523;
}

.hamb {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.about-lifemedic {
  padding: 80px 0;
  background: #f7f9fc;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.lifemedic-blog {
  background: #f7f9fc;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.hero-video {
  position: relative;
  width: 100%;
  max-width: 1850px;
  height: 30vh;
  min-height: 400px;
  margin: -10px auto; 
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
}

.hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  transform: translate(-50%, -50%);

}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 14, 27, 0.65),
    rgba(0, 14, 27, 0.65)
  );
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  color: #eeeeee;
  max-width: 1800px;
  }

.hero-text h1 {
  display: inline-block;
  background-color: #ffffff60;
  padding: 10px 200px;
  border-radius: 50px 50px 50px 50px;
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

.hero-text h1 span {
  color: #0689f5;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;    
  width: 100%;
  height: 100%;
  left: 0;               
  text-align: center;     
}

.hero-contentleft {
  text-align: center;
  position: absolute;
  left: 180px;
  max-width: 350px;
  top: 60%;
  transform: translate(-50%);
  z-index: 2;
}

.hero-left{
  max-width: 400px;
  padding: 28px 32px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 15px;
}

.hero-left button{
  margin: 18px 0;
  padding: 12px 28px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #5aa0ff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;

  transition: all 0.25s ease;
}

.hero-left button:hover{
  background: #5aa0ff;
  color: #fff;
}


.hero-contentright{
  position: absolute;
  right: 15px;
  top: 60%;
  transform: translate(-50%);
  z-index: 2;
}
 
.personal-attention-card{
  background: #ffffff80;
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 10px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  color: #1f2d3d;
}



.personal-attention-card h3{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.personal-attention-card .description{
  font-size: 12px;
  color: #5f6c7b;
  margin-bottom: 5px;
}

.personal-attention-card .btn-whatsapp{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition:  all 0.25s ease;
}

.personal-attention-card .btn-whatsapp:hover{
  background: #1ebe5d;
  transform: translate(-1px);
}

.personal-attention-card .response-time{
  font-size: 12px;
  color: #8a97a6;
  text-align: center;
  margin-top: 14px;
}

.personal-attention-card p{
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.delayed-element {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.delayed-element.show {
  opacity: 1;
  transform: translateY(0);
}

.blog-container {
  max-width: 1300px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
} 

.blog-arrow {
  display: none;
}

.blog-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 10px 30px rgba(12, 27, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.679);
  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 45px rgba(12, 27, 42, 0.16);
}

.blog-image {
  display: block;
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.blog-image img {
  width: 100%;
  height: 200px;
  display: block;
  transition: transform .6s cubic-bezier(0.33, 1, 0.68, 1);
}

.blog-card:hover .blog-image img {
  transform: scale(1.06);
}

.blog-content {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  margin: 0;
}

.blog-content h3 a {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #0c1b2a;
  text-decoration: none;
  transition: color .25s ease;
}

.blog-content h3 a:hover {
  color: #1980d4;
}

.blog-content p {
  margin: 10px 12px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #4f4f52;
}

.blog-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 25px;
  color: #1980d4;
  border: 1.5px solid #1980d4;
  text-decoration: none;
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.blog-btn:hover {
  background: #1980d4;
  color: #ffffff;
  transform: translateY(-2px);
}

.blog-slider {
  position: relative;
  max-width: 1300px;
  margin: 80px auto;
  padding: 0 40px;
}

.blog-card {
  min-width: 320px;
  flex: 0 0 auto;
}

.blog-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: #0f4c81;
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
}

.blog-arrow.left {
  left: 0;
}

.blog-arrow.right {
  right: 0;
}

@media (max-width:900px){
    .menu {
      position: absolute;
      top: 100%;
      right: 0;
      left: 50%;
      transform: translateX(-50%) translateY(-10px);
      max-width: 320px;
      width: 90%;
      background: #ffffff;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px;
      box-shadow: 0 8px 18px rgba(0,0,0,0.08);

      opacity: 0;
      visibility: hidden;
      transition: all 0.25s ease
  }

  .topbar {
    display: none;
  }

  .menu.active {
    opacity: 1;
    visibility: visible;
    transform:translateX(-50%) translateY(0);
  }
.menu a {
    width: 100%;
    padding: 12px 0;
  }

  .hamb {
    display: block;
  }

  .hero-text h1 {
    font-size: 20px;
    padding: 10px 50px;
    border-radius: 25px;
    margin: 12% auto;
    margin-top: 9px;
  }

  .hero-text{
    padding: 10px 20px;
    border-radius: 0 0 20px 20px;
    padding: 10px 20px;

  }

  .blog-container{
    padding: 0 0;
  }

  .hero-text p {
    font-size: 16px;
  }

   .topbar .wrap {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
    .header {
    top: 0;
  }
    .actions {
    flex-wrap: wrap;
    justify-content: center;
  }


  .hero-contentright{
    display: none;
  }

  .hero-video{
    min-height: 100px;
    height: 20vh;
    max-width: 500px;
  }

    .blog-container {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    scroll-behavior: smooth;
  }

  .blog-container::-webkit-scrollbar {
    display: none;
  }

  .blog-card {
    min-width: 100%;
    border-radius: 18px;
    flex: 0 0 100% ;
  }

  .blog-image img{
    height: 180px;
    object-fit: cover;
  }

  .blog-content{
    padding: 16px 18px;
  }
  

  .blog-slider {
    position: relative;
  }

  .blog-arrow {
    display: flex;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: #0f4c81;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }

  .blog-arrow.left {
    left: 5px;
  }

  .blog-arrow.right {
    right: 5px;
  }

  .blog-container {
  scroll-snap-type: x mandatory;
}

.blog-card {
  scroll-snap-align: start;
}


}

@media (hover: none) {
  .blog-card:hover {
    transform: none;
  }

  .blog-card:hover .blog-image img {
    transform: none;
  }

}

@media (max-width:900px){

  .blog-arrow{
    display: grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    z-index: 10;

    background: linear-gradient(145deg, #0f4c81, #1980d4);
    box-shadow:
      0 14px 28px rgba(12, 27, 42, 0.18),
      0 0 0 6px rgba(25, 128, 212, 0.10);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;

    top: 50% !important;
    transform: translateY(-50%) !important;

    position: absolute;
  }

  .blog-arrow:active{
    transform: translateY(-50%) scale(.95) !important;
    filter: brightness(.98);
  }

  .blog-arrow{
    font-size: 0 !important;
  }

  .blog-arrow::before{
    content:"";
    position:absolute;
    inset:0;
    margin:auto;
    width: 11px;
    height: 11px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
  }

  .blog-arrow.left::before{ transform: rotate(135deg); }
  .blog-arrow.right::before{ transform: rotate(-45deg); }

  .blog-arrow::after{
    content:"";
    position:absolute;
    inset:2px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);
    pointer-events:none;
    opacity: .65;
  }

  .blog-arrow.left{ left: 6px; }
  .blog-arrow.right{ right: 6px; }
}

@media (max-width:900px){

  .blog-container{
    perspective: 1200px;
  }

  .blog-card{
    transform: none;
    opacity: .92;
    filter: none;
    transition:
      transform 520ms cubic-bezier(.22,1,.36,1),
      opacity 320ms ease,
      filter 320ms ease,
      box-shadow 320ms ease;
    will-change: transform;
  }

  .blog-card.is-active{
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: 0 20px 45px rgba(12, 27, 42, 0.18);
  }

  .blog-container.is-moving .blog-card.is-next{
    transform: translateX(14px) rotateZ(-6deg) rotateY(-10deg) scale(.98);
    opacity: .85;
    filter: saturate(.98) contrast(.98);
  }

  .blog-container.is-moving .blog-card.is-prev{
    transform: translateX(-14px) rotateZ(6deg) rotateY(10deg) scale(.98);
    opacity: .85;
    filter: saturate(.98) contrast(.98);
  }

  .blog-container.is-moving .blog-card.is-next,
  .blog-container.is-moving .blog-card.is-prev{
    box-shadow: 0 18px 38px rgba(12, 27, 42, 0.14);
  }

}

@media (max-width:900px){
  .blog-card[data-clone="first"],
  .blog-card[data-clone="last"]{
    display: none !important;
  }
}

/* =========================
   PAGINACION PREMIUM MEDICA
   ========================= */

.viewer-toolbar {
  background:
    linear-gradient(90deg, rgba(20, 44, 78, 0.92), rgba(16, 33, 60, 0.88)),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-bottom: 1px solid rgba(120, 190, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 30px rgba(0, 0, 0, 0.16);
}

#pageIndicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(136, 201, 255, 0.22);
  color: #eaf6ff;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 24px rgba(0,0,0,.18);
}

#pageIndicator i {
  color: #8fd7ff;
  font-size: 0.95rem;
}

.viewer-toolbar-right .btn {
  min-height: 46px;
  border-radius: 16px;
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid rgba(150, 210, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color: #f4fbff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 22px rgba(0,0,0,.14);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.viewer-toolbar-right .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 198, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(42,167,255,.18), rgba(255,255,255,.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 28px rgba(0,0,0,.2);
}

.viewer-toolbar-right .btn:active {
  transform: translateY(0);
}

.viewer-toolbar-right .btn i {
  color: #9ee2ff;
}

#btnPrev,
#btnNext {
  min-width: 118px;
}

#btnFullscreen {
  border-color: rgba(122, 92, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(122,92,255,.16), rgba(255,255,255,.04));
}

#btnFullscreen:hover {
  border-color: rgba(142, 118, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(122,92,255,.22), rgba(255,255,255,.05));
}

.blog-pagination {
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #0f4c81;
  background: #ffffff;
  border: 1px solid rgba(15, 76, 129, 0.14);
  box-shadow: 0 10px 24px rgba(12, 27, 42, 0.08);
  transition: all .22s ease;
}

.blog-pagination .page-numbers:hover {
  transform: translateY(-2px);
  background: #0f4c81;
  color: #ffffff;
  border-color: #0f4c81;
}

.blog-pagination .page-numbers.current {
  background: linear-gradient(135deg, #0f4c81, #1980d4);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.22);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  padding: 0 18px;
}

@media (max-width: 900px) {
  .blog-pagination {
    margin-top: 22px;
    padding: 0 12px 12px;
    gap: 8px;
  }

  .blog-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
  }
}

.lifemedic-blog .blog-pagination {
  width: 100%;
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lifemedic-blog .blog-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: #0f4c81 !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 76, 129, 0.14) !important;
  box-shadow: 0 10px 24px rgba(12, 27, 42, 0.08);
  transition: all .22s ease;
}

.lifemedic-blog .blog-pagination a.page-numbers:hover {
  transform: translateY(-2px);
  background: #0f4c81 !important;
  color: #ffffff !important;
  border-color: #0f4c81 !important;
}

.lifemedic-blog .blog-pagination .page-numbers.current,
.lifemedic-blog .blog-pagination span.page-numbers[aria-current="page"] {
  background: linear-gradient(135deg, #0f4c81, #1980d4) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.22);
}

.lifemedic-blog .blog-pagination .page-numbers.prev,
.lifemedic-blog .blog-pagination .page-numbers.next {
  padding: 0 18px;
}

@media (max-width: 900px) {
  .lifemedic-blog .blog-pagination {
    margin-top: 22px;
    padding: 0 12px 12px;
    gap: 8px;
  }

  .lifemedic-blog .blog-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .blog-pagination {
    display: none !important;
  }
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-whatsapp {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 18px;
}