* {
  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;
}
.about-lifemedic .container {
  max-width: 90%;
  padding-left: 0;
}
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  background: #0c1b2a;
  transition: transform 0.3s ease;
  height: 32px; 
}

.topbar.hidden {
  transform: translateY(-100%);
}

.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: 30px 0;
  background: #f7f9fc;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0px;
  align-items: center;
  margin-bottom: 150px;
}

.about-video {
  position: relative;
  z-index: 1; 
  transform: scale(1.05); 
  transition: transform 0.5s ease;
}



.about-video iframe {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2); 
  display: block;
}


.about-text h2 {
  color: #0c1b2a;
  font-size: 26px;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #3b3b3b;
  margin-bottom: 15px;
}



.about-values {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  perspective: 1400px;
}

.value-card {
  flex: 1;
  max-width: 500px;
  background: linear-gradient(135deg, #105fa927 0%, #e21b222c 100%);
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.8);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease,
    opacity 0.45s ease;
  transform-style: preserve-3d;
  z-index: 1;
}

.about-values:hover .value-card {
  transform: translateZ(-120px) scale(0.94);
  opacity: 0.45;
  filter: blur(1.5px);
}

.about-values .value-card:hover {
  transform: translateZ(200px) scale(1.06);
  box-shadow: 0 40px 80px rgba(0,0,0,0.28);
  opacity: 1;
  filter: none;
  z-index: 10;
}


.value-card h3 {
  color: #0c1b2a;
  font-size: 20px;
  margin-bottom: 12px;
}


.value-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
}

.about-values:hover .value-card {
  opacity: 0.6;
}

.about-values .value-card:hover {
  opacity: 1;
}


.hero-video {
  position: relative;
  width: 100%;
  max-width: 1850px;
  height: 44vh;
  min-height: 480px;
  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 30%;
  transform: translate(-50%, -50%);
}



.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 {
  position: absolute;
  left: 10px;
  max-width: 400px;
  top: 30%;
  transform: translateY(-50%);
  z-index: 2;
}

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

.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: 10px;
  top: 58%;
  transform: translateY(-50%);
  z-index: 2;
}

.personal-attention-card {
  background: #ffffff24;
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 10px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  color: #1f2d3d;
  max-width: 245px;
}

.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: translateY(-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(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.about-text.card {
  background: #ffffff;
  padding: 60px 55px;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(10, 23, 35, 0.367),
    inset 0 1px 0 rgba(255, 255, 255, 0.748);
  transition: transform .35s ease, box-shadow .35s ease;
}

.about-text.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 35px 60px rgba(12,27,42,.18);
}

.hero-text {
  max-width: 1800px;
  color: #ffffff;
}

.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;
}


.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.802);
}


.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 {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.footer {
  background: #f9fbfd;
  border-top: 1px solid #e5e7eb;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px;
}

.foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px;
}

.foot-col h4 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
  color: #ff0015;
}


.foot-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ff0000;
}

.foot-col p {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 15px;
}

.foot-col img {
  max-width: 300px;
}


.foot-col a {
  display: block;
  font-size: 13px;
  color: #494a4c;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .25s ease;
}

.foot-col a:hover {
  color: #e11d2e;
}


.credits {
  border-top: 1px solid #e5e7eb;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 900px) {

  .menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* ✅ solo uno */
    width: min(320px, 92vw);
    background: #fff;
    display: flex;
    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%); /* consistente */
  }

  .menu a {
    width: 100%;
    padding: 12px 0;
  }

  .hamb {
    display: block;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .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;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-video iframe {
    height: 200px;
    
  }

     .about-values {
    flex-direction: column;
  }

  .about-values:hover .value-card,
  .about-values .value-card:hover {
    transform: none;
    opacity: 1;
    filter: none;
  }

  .hero-video {
    display: none;
  }

  .about-lifemedic{
    padding: 40px 0;
  }

  .hero-logo {
    width: 200px;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
  }

  .credits {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .foot {
    grid-template-columns: 1fr;
  }

 

  .about-content{
    margin-bottom: 50px;
  }

  .value-card{
    padding: 25px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
  }

  .value-card h3{
    font-size: 17px;
  }

  .value-card p{
    font-size: 12px;
  }

  .about-values{
    gap: 20px;

  }

}

@media (min-width: 901px) {

  .header {
    position: fixed;
    top: 40px;
  }

  .header.scrolled {
    top: 0;
  }

}

@media (max-width: 768px) {
  .contact-info {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 20px;
  }

  .contact-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .contact-info p {
    font-size: 14px;
    line-height: 1.6;
  }

  .about-content {
    display: flex;
    flex-direction: column;
  }

  .about-video {
    order: 1;
  }

  .about-text {
    order: 2;
  } 

}

@media (max-width: 768px) {

  .about-more {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .about-text.expanded .about-more {
    max-height: 800px;
  }

  .read-more {
    margin-top: 10px;
    background: none;
    border: none;
    color: #adafb2;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
  }
  .personal-attention-card{
    display: none;
  }
  .hero-contentleft{
    display: none;
  }
  .hero-content{
    display: none;
  }
  .hero-overlay{
    background: linear-gradient(
    135deg,
    rgba(0, 14, 27, 0.283),
    rgba(0, 14, 27, 0.213)
  );
  }
}

@media (min-width: 769px) {
  .read-more {
    display: none;
  }
}

