:root {
  --primary-color: #26b3b4;
  --primary-hover: #1c8a8b;
  --dark-teal: #0b7e7f;
  --secondary-color: #ffffff;
  --text-color: #333333;
  --light-bg: #f5f9fa;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(38, 179, 180, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

/* ============================================
   HEADER
   ============================================ */
header {
  background-color: var(--primary-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  text-decoration: none;
  height: 100%;
  flex-shrink: 0;
  padding-left: 5px;
}

.logo img {
  height: 55px;
  width: auto;
  max-height: 55px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 100%;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 15px;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
}

.mobile-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
  width: 32px;
  height: 32px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 6px;
  transition: all 0.3s ease;
}

.mobile-menu:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.menu-icon {
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  width: calc(100% - 12px);
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  left: 0;
  transition: transform 0.3s ease;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  bottom: -7px;
}

.mobile-menu.active {
  background-color: rgba(255, 255, 255, 0.25);
}

.mobile-menu.active .menu-icon {
  background-color: transparent;
}

.mobile-menu.active .menu-icon::before {
  transform: rotate(45deg) translate(2px, 7px);
}

.mobile-menu.active .menu-icon::after {
  transform: rotate(-45deg) translate(2px, -7px);
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-nav-links {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-teal) 100%
  );
  padding: 80px 25px 30px;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links.show {
  right: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 500;
  padding: 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.mobile-nav-links a::after {
  content: "→";
  position: absolute;
  right: 15px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-links a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-close:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.mobile-nav-close span {
  position: relative;
  width: 16px;
  height: 16px;
}

.mobile-nav-close span::before,
.mobile-nav-close span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: white;
  top: 50%;
  left: 0;
}

.mobile-nav-close span::before {
  transform: rotate(45deg);
}

.mobile-nav-close span::after {
  transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2332 0%, #0d1520 50%, #1a2332 100%);
  padding: 100px 0;
  color: white;
  overflow: hidden;
}

.hero-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(38, 179, 180, 0.08),
      transparent
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(38, 179, 180, 0.05),
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(38, 179, 180, 0.04),
      transparent 50%
    );
  opacity: 0;
  animation: lightReveal 3s ease forwards;
}

@keyframes lightReveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(26, 35, 50, 0.5) 0%,
    rgba(13, 21, 32, 0.8) 100%
  );
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(38, 179, 180, 0.03) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 12s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: -250px;
  right: -150px;
  background: radial-gradient(
    circle,
    rgba(38, 179, 180, 0.06),
    transparent 70%
  );
  border-radius: 50%;
  animation: floatSlow 25s ease-in-out infinite;
  filter: blur(80px);
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, 30px);
  }
}

.hero-content {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 30px;
}

.hero-tag,
.hero-main-title,
.hero-cta-group,
.hero-scroll-indicator {
  display: none;
}

.hero-subtitle-large {
  font-size: 48px;
  font-weight: 600;
  color: white;
  margin-bottom: 50px;
  line-height: 1.3;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(20px);
  animation: gentleFadeIn 2s ease 0.5s forwards;
  position: relative;
}

.hero-subtitle-large::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  opacity: 0;
  animation: lineAppear 2s ease 2.5s forwards;
}

@keyframes lineAppear {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 0.6;
    width: 80px;
  }
}

@keyframes gentleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(38, 179, 180, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(15px);
  animation: gentleFadeIn 2s ease 1.2s forwards;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.hero-description-box::before {
  display: none;
}

.description-line {
  width: 4px;
  min-height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary-color) 0%,
    rgba(38, 179, 180, 0.4) 60%,
    transparent 100%
  );
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(38, 179, 180, 0.3);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  animation: lineGrow 1.5s ease 2s forwards;
  position: relative;
}

.description-line::before {
  display: none;
}

@keyframes lineGrow {
  0% {
    opacity: 0;
    transform: scaleY(0);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.hero-description-text {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  margin: 0;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  letter-spacing: 0.3px;
}

/* ============================================
   ENCABEZADOS DE SECCIÓN
   ============================================ */
.section-header-image-style {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 50px;
  padding-bottom: 25px;
  border-bottom: 4px solid var(--primary-color);
  position: relative;
}

.section-number-large {
  font-size: 80px;
  font-weight: 900;
  color: rgba(38, 179, 180, 0.15);
  line-height: 0.9;
  font-family: "Montserrat", sans-serif;
  margin-top: -10px;
}

.section-content-header {
  flex: 1;
  padding-top: 10px;
}

.section-title-bold {
  font-size: 36px;
  font-weight: 900;
  color: #2d2d2d;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.1;
  font-family: "Montserrat", sans-serif;
}

.section-description {
  font-size: 16px;
  color: #666;
  font-weight: 400;
  line-height: 1.5;
  font-family: "Open Sans", sans-serif;
  margin: 0;
}

/* ============================================
   PÁRRAFOS CON SIDEBAR
   ============================================ */
.paragraph-with-sidebar {
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin-bottom: 35px;
  position: relative;
}

.sidebar-line {
  width: 5px;
  background: linear-gradient(
    180deg,
    var(--primary-color) 0%,
    transparent 100%
  );
  border-radius: 10px;
  flex-shrink: 0;
  min-height: 100%;
  align-self: stretch;
}

.paragraph-with-sidebar p {
  font-size: 15px;
  line-height: 1.9;
  text-align: justify;
  color: #444;
  margin: 0;
  flex: 1;
  padding-left: 15px;
}

/* ============================================
   CONTENT FLEX (para listas y contenido mixto)
   ============================================ */
.content-flex {
  flex: 1;
}

/* ============================================
   LISTAS CON GUIONES
   ============================================ */
.lista-guiones {
  margin: 20px 0;
  padding-left: 25px;
  list-style-type: "— ";
}

.lista-guiones li {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.9;
  text-align: justify;
  color: #444;
  padding-left: 10px;
}

.lista-guiones-small {
  margin: 20px 0;
  padding-left: 25px;
  list-style-type: "— ";
}

.lista-guiones-small li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.9;
  text-align: justify;
  color: #444;
  padding-left: 10px;
}

/* ============================================
   SUBSECCIONES (h3 y h4)
   ============================================ */
.subsection-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
}

.subsubsection-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d2d2d;
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
}

.subsection-text {
  font-size: 15px;
  line-height: 1.9;
  text-align: justify;
  color: #444;
  margin-bottom: 20px; /* Cambié de margin-bottom: 20px por defecto */
}

/* ============================================
   EJEMPLO CLÍNICO
   ============================================ */

.ejemplo-clinico p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin: 0;
  font-style: italic;
}

/* ============================================
   SECCIONES
   ============================================ */
.introduccion-section {
  padding: 80px 0;
  background-color: white;
}

.fundamento-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.justificacion-section {
  padding: 80px 0;
  background-color: white;
}

.etapas-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.content-text {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================
   TABLAS RESPONSIVE
   ============================================ */
.tabla-responsive-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  -webkit-overflow-scrolling: touch;
}

.tabla-responsive {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  table-layout: fixed;
}

.tabla-responsive thead tr {
  background-color: var(--primary-color);
  color: white;
}

.tabla-responsive th {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  word-wrap: break-word;
}

.tabla-responsive td {
  padding: 12px;
  border: 1px solid #ddd;
  vertical-align: top;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tabla-responsive tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Estilos específicos para Tabla 2 (diagnóstico) */
.tabla-diagnostico .col-info-medica,
.tabla-diagnostico .col-situacion,
.tabla-diagnostico .col-hallazgo,
.tabla-diagnostico .col-evidencia,
.tabla-diagnostico .col-asociacion {
  background-color: var(--primary-color);
  color: white;
  vertical-align: middle;
}

.tabla-titulo {
  font-size: 15px;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
}

.tabla-nota {
  font-size: 13px !important;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

/* Textos especiales en tablas */
.texto-italico {
  font-size: 13px;
}

.codigos-lista {
  line-height: 1.8;
  font-size: 13px;
}

/* Tabla comparativa específica con tamaño 13px */
.tabla-responsive.tabla-comparativa {
  font-size: 13px;
}

.tabla-responsive.tabla-comparativa th,
.tabla-responsive.tabla-comparativa td {
  font-size: 13px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--text-color);
  color: white;
  padding: 50px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 35px;
  filter: brightness(0) invert(1);
}

.footer-about p {
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  fill: var(--primary-color);
}

.footer-link-whatsapp {
  all: unset;
  display: inline-flex;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    min-height: 60vh;
    padding: 80px 0;
  }

  .hero-subtitle-large {
    font-size: 40px;
    margin-bottom: 40px;
  }

  .hero-description-box {
    padding: 35px;
    gap: 25px;
  }

  .hero-description-text {
    font-size: 17px;
  }

  .hero::after {
    width: 400px;
    height: 400px;
  }

  .section-number-large {
    font-size: 70px;
  }

  .section-title-bold {
    font-size: 32px;
  }

  .section-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: 55vh;
    padding: 70px 0;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-subtitle-large {
    font-size: 32px;
    margin-bottom: 35px;
  }

  .hero-subtitle-large::after {
    width: 60px;
    height: 2px;
  }

  .hero-description-box {
    padding: 30px 25px;
    gap: 20px;
    border-radius: 12px;
  }

  .description-line {
    width: 3px;
  }

  .hero-description-text {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero::after {
    display: none;
  }

  .section-header-image-style {
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
  }

  .section-number-large {
    font-size: 60px;
  }

  .section-content-header {
    padding-top: 0;
  }

  .section-title-bold {
    font-size: 28px;
  }

  .section-description {
    font-size: 14px;
  }

  .paragraph-with-sidebar {
    flex-direction: row;
    gap: 20px;
    padding-left: 0;
  }

  .sidebar-line {
    width: 4px;
    height: auto;
    min-height: 100%;
  }

  .paragraph-with-sidebar p {
    font-size: 15px;
    text-align: left;
    padding-left: 10px;
  }

  .lista-guiones li,
  .lista-guiones-small li {
    font-size: 15px;
    text-align: left;
  }

  .subsection-title {
    font-size: 20px;
  }

  .subsubsection-title {
    font-size: 17px;
  }

  .subsection-text {
    font-size: 15px;
    text-align: left;
  }

  .introduccion-section,
  .justificacion-section,
  .fundamento-section,
  .etapas-section {
    padding: 60px 0;
  }

  .logo img {
    height: 45px;
  }

  /* Tablas en móvil */
  .tabla-responsive-wrapper {
    margin: 20px 0;
  }

  .tabla-responsive {
    font-size: 13px;
    min-width: 100%;
    display: block;
    overflow-x: auto;
  }

  .tabla-responsive th,
  .tabla-responsive td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .tabla-titulo {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero-subtitle-large {
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
  }

  .hero-subtitle-large::after {
    width: 50px;
    bottom: -10px;
  }

  .hero-description-box {
    padding: 25px 20px;
    gap: 15px;
    border-radius: 10px;
  }

  .description-line {
    width: 3px;
  }

  .hero-description-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-subtitle-large {
    animation: gentleFadeIn 1.5s ease 0.3s forwards;
  }

  .hero-subtitle-large::after {
    animation: lineAppear 1.5s ease 1.8s forwards;
  }

  .hero-description-box {
    animation: gentleFadeIn 1.5s ease 0.8s forwards;
  }

  .description-line {
    animation: lineGrow 1.2s ease 1.5s forwards;
  }

  .section-number-large {
    font-size: 50px;
  }

  .section-title-bold {
    font-size: 24px;
  }

  .section-description {
    font-size: 13px;
  }

  .paragraph-with-sidebar {
    flex-direction: row;
    gap: 15px;
    padding-left: 0;
  }

  .sidebar-line {
    width: 4px;
    height: auto;
    min-height: 100%;
  }

  .paragraph-with-sidebar p {
    font-size: 14px;
    text-align: left;
    padding-left: 5px;
  }

  .lista-guiones li,
  .lista-guiones-small li {
    font-size: 14px;
  }

  .subsection-title {
    font-size: 19px;
  }

  .subsubsection-title {
    font-size: 16px;
  }

  .subsection-text {
    font-size: 14px;
  }

  .introduccion-section,
  .justificacion-section,
  .fundamento-section,
  .etapas-section {
    padding: 50px 0;
  }

  .scroll-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-top svg {
    width: 18px;
    height: 18px;
  }

  .tabla-responsive {
    font-size: 11px;
  }

  .tabla-responsive th,
  .tabla-responsive td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .ejemplo-clinico {
    padding: 20px 15px;
  }

  .ejemplo-clinico p {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .hero {
    padding: 50px 0;
  }

  .hero-subtitle-large {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .hero-description-box {
    padding: 20px 15px;
  }

  .hero-description-text {
    font-size: 14px;
    line-height: 1.6;
  }
}
/* ============================================
   TEXTO CON IMAGEN FLOTANTE A LA DERECHA
   ============================================ */
.text-with-float-image {
  padding-left: 0;
  position: relative;
  flex: 1;
}

.float-image-right {
  float: right;
  margin: 0 0 20px 35px;
  max-width: 580px;
  width: 580px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.float-image-right:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.float-image-right img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.float-image-right:hover img {
  transform: scale(1.05);
}

.text-with-float-image p {
  font-size: 15px;
  line-height: 2;
  text-align: justify;
  color: #444;
  margin-bottom: 22px;
  padding-left: 15px;
}

.text-with-float-image::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive */
@media (max-width: 1024px) {
  .float-image-right {
    max-width: 500px;
    width: 500px;
    margin-left: 30px;
  }
}

@media (max-width: 968px) {
  .float-image-right {
    max-width: 450px;
    width: 450px;
    margin-left: 25px;
  }
}

@media (max-width: 768px) {
  .float-image-right {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 0 0 25px 0;
    /* Cambio clave: hacer que la imagen aparezca después del primer párrafo */
    order: 2;
  }

  .text-with-float-image {
    display: flex;
    flex-direction: column;
  }

  .text-with-float-image p:first-of-type {
    order: 1;
  }

  .text-with-float-image p:nth-of-type(2) {
    order: 3;
  }

  .text-with-float-image p {
    text-align: left;
    line-height: 1.9;
    margin-bottom: 20px;
    padding-left: 10px;
  }
}

@media (max-width: 480px) {
  .float-image-right {
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
  }

  .text-with-float-image p {
    padding-left: 10px;
  }
}

@media (max-width: 360px) {
  .float-image-right {
    max-width: 100%;
    width: 100%;
  }
}

/* ============================================
   IMAGEN CENTRADA CON EFECTO HOVER
   ============================================ */
.image-centered {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 30px auto 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-centered:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .image-centered {
    max-width: 100%;
  }
}

/* Agrega esto al final de tu archivo styles.css */

/* Espaciado para todos los párrafos dentro de content-flex */
.content-flex p {
  margin-bottom: 20px;
}

/* Espaciado adicional para subsection-text */
.subsection-text {
  margin-bottom: 20px !important;
}

/* Asegurar espaciado en párrafos generales dentro de paragraph-with-sidebar */
.paragraph-with-sidebar p {
  margin-bottom: 20px;
}

.implementacion-section {
  padding: 80px 0;
  background-color: white;
}
