* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #0f6675;
}

.clinica-page {
  position: relative;
  overflow: hidden;
}

/* HERO INTERNO */
.clinica-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* background: #006176; */
  padding: 300px 24px;
  text-align: center;
  margin-left: -25vw;
  margin-right: -25vw;
  width: 150vw;
}

.clinica-hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.clinica-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(0, 97, 118, 0.375), rgba(60, 33, 104, 0.275));
}

.clinica-hero-line {
  display: block;
  width: 96px;
  height: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.4);
}

.clinica-hero-title {
  margin: 24px 0 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.03;
  color: #ffffff;
}

.clinica-hero-sub {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* SECCIONES */
.clinica-section {
  padding: 80px 24px 50px;
  margin-top: -160px;
  position: relative;
}

.clinica-section2 {
  padding: 50px 24px 180px;
  position: relative;
}

.clinica-section3 {
  padding: 50px 24px;
  position: relative;
}

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

.clinica-container-narrow {
  max-width: 900px;
}

.clinica-section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.clinica-section-title-wrap .hairline {
  height: 1px;
  flex: 1;
  background-image: linear-gradient(
    to right,
    transparent,
    rgba(0, 97, 118, 0.4),
    transparent
  );
}

.clinica-section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: #006176;
  white-space: nowrap;
  text-align: center;
}

/* CARDS */
.clinica-card {
  border: 1px solid #e2ecf0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px -22px rgba(0, 97, 118, 0.55);
}

.clinica-history {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.clinica-history p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5a6f7a;
}

/* MISIÓN Y VISIÓN */
.clinica-mv {
  background: #f1f6f8;
  padding-bottom: 90px;
}

.clinica-mv-card {
  height: 100%;
  padding: 40px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinica-mv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px -30px rgba(60, 33, 104, 0.45);
}

.clinica-icon-circle {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: #f1f6f8;
}

.clinica-icon-circle i {
  font-size: 2.4rem;
  color: #006176;
}

.clinica-mv-title {
  margin: 24px 0 0;
  font-size: 2rem;
  font-weight: 600;
  color: #006176;
}

.clinica-mv-card p {
  margin: 16px 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5a6f7a;
}

.clinica-proposito-card {
  text-align: center;
}

.clinica-proposito-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.clinica-proposito-card .clinica-icon-circle {
  margin: 0;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
}

.clinica-proposito-card .clinica-icon-circle i {
  font-size: 1.8rem;
}

.clinica-proposito-card .clinica-mv-title {
  margin: 0;
  font-size: 1.8rem;
}

/* VALORES */
.clinica-value-card {
  height: 100%;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinica-value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px -30px rgba(60, 33, 104, 0.45);
}

.clinica-value-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: #f1f6f8;
  transition: background 0.3s ease;
}

.clinica-value-icon i {
  font-size: 1.9rem;
  color: #006176;
  transition: color 0.3s ease;
}

.clinica-value-card:hover .clinica-value-icon {
  background: #3c2168;
}

.clinica-value-card:hover .clinica-value-icon i {
  color: #ffffff;
}

.clinica-value-card h3 {
  margin: 20px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #006176;
}

.clinica-value-card p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #5a6f7a;
}

/* CTA */
.clinica-cta {
  background: #f1f6f8;
  text-align: center;
}

.clinica-cta h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #006176;
}

.clinica-cta p {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5a6f7a;
}

.clinica-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.clinica-btn-primary {
  border-radius: 50px;
  background: #006176;
  color: #ffffff;
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: 0 18px 45px -22px rgba(0, 97, 118, 0.55);
  transition: transform 0.3s ease, background 0.3s ease;
}

.clinica-btn-primary:hover {
  color: #ffffff;
  background: #0087a5;
  transform: translateY(-2px);
}

.clinica-btn-outline {
  border-radius: 50px;
  border: 1px solid rgba(0, 97, 118, 0.3);
  background: #ffffff;
  color: #006176;
  padding: 14px 28px;
  font-weight: 600;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.clinica-btn-outline:hover {
  color: #006176;
  transform: translateY(-2px);
  border-color: #006176;
}

@media (max-width: 767px) {
  .clinica-hero {
    padding: 140px 20px;
  }

  .clinica-section {
    padding: 56px 20px;
  }

  .clinica-section-title {
    white-space: normal;
  }

  .clinica-section-title-wrap {
    flex-direction: column;
    gap: 12px;
  }

  .clinica-section-title-wrap .hairline:first-child {
    display: none;
  }

  .clinica-history {
    padding: 28px 24px;
  }

  .clinica-mv-card {
    padding: 28px 24px;
  }

  .logo-placeholder {
    transform: scale(0.5);
    margin: -40px auto;
  }
}