.page {
    width: 100%;            /* La página ocupa el 100% del ancho disponible */
    max-width: 1200px;       /* El ancho máximo de la página */
    margin: 0 auto;          /* Centrar la página horizontalmente */
    padding: 10px;           /* Espacio interno */
    background-color: #fff;  /* Color de fondo blanco */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Sombra suave para dar relieve */
}

/* Estilos básicos para la sección */
    /* Asegurar que la primera sección no cubra el menú */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    position: relative; /* Permite que el z-index funcione */
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

/* --- ESTILOS PARA MÓVILES --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar menú en móviles por defecto */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        text-align: center;
        flex-direction: column;
        padding: 20px;
        z-index: 1000; /* Se mantiene por encima de otras secciones */
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex; /* Mostrar menú cuando se active */
    }

    body.no-scroll {
        overflow: hidden; /* Evitar scroll solo en móviles */
        height: 100vh;
    }
}

/* Asegurar que la primera sección no cubra el menú */
.legal-section {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}
    
		
		
		.legal-section {
    position: relative; /* Necesario para que el ::before esté posicionado correctamente */
    max-width: auto;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    /* color: #333; */
    text-align: justify;
    height: auto;
    margin: 0;
    z-index: 1; /* Asegura que el texto esté sobre el pseudo-elemento */
}
h4 {
	text-align:center;
	font-weight: bold;
	font-size: 1.5rem;
	margin-top:30px;
}
.title_doc{
	text-align:justify;
	margin-left:100px;
	margin-right:100px;
	line-height: 1.6;
	
	
}

.legal-section::before {
    content: ""; /* Necesario para generar el pseudo-elemento */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/Backgroud.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4; /* Ajusta el nivel de opacidad deseado */
    z-index: -1; /* Envía el pseudo-elemento detrás del contenido */
    pointer-events: none; /* Asegura que no interfiera con la interacción del usuario */
}

     
    .legal-title {
        color: black;
        margin-bottom: 10px;
		text-align: center;
		font-size: 40px;
    }
    .highlight_leg {
        color: #0077A7;
		
		
    }
    .legal-description {
        font-size: 16px;
        line-height: 1.5;
        color: #0b141a;
        max-width: 850px;
        margin: 0 auto;
		text-align:center;
    }
    .legal-title:after {
        content: "";
        display: block;
        width: 80%;
        height: 8px;
        background-color: #0077A7;
        margin: 10px auto;
		border-radius:10px;
    }
	   
.legal-links {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 20px;
		
    }

    .icon-link {
        text-decoration: none;
        text-align: center;
        font-family: Arial, sans-serif;
        font-size: 14px;
		color: #0077A7;
		
    }
    .icon-circle {
        background: linear-gradient(to left, #d7c6d4, #d1dcee);
        color: white;
        border-radius: 50%;
        width: 150px;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);

    }
	
.icon-leg:before {
    content: ""; /* Vacío porque no usaremos texto */
    display: inline-block; /* Permite mostrar como elemento en línea */
    width: 150px; /* Ajusta el tamaño según sea necesario */
    height: 150px;
    background-image: url('images/icono-terminos y condiciones.png'); /* Reemplaza con la ruta de tu ícono */
    background-size: contain; /* Asegura que la imagen se ajuste al contenedor */
    background-repeat: no-repeat;
}	

.icon-doc:before {
    content: ""; /* Vacío porque no usaremos texto */
    display: inline-block; /* Permite mostrar como elemento en línea */
    width: 150px; /* Ajusta el tamaño según sea necesario */
    height: 150px;
    background-image: url('images/icono-terminos y condiciones.png'); /* Reemplaza con la ruta de tu ícono */
    background-size: contain; /* Asegura que la imagen se ajuste al contenedor */
    background-repeat: no-repeat;
}

.icon-privacy:before {
    content: "";
    display: inline-block;
    width: 150px;
    height: 150px;
    background-image: url('images/A3.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-tag:before {
    content: "";
    display: inline-block;
    width: 150px;
    height: 150px;
    background-image: url('images/web.png');
    background-size: contain;
    background-repeat: no-repeat;
	margin-left:22px;
}

.icon-rules:before {
    content: "";
    display: inline-block;
    width: 150px;
    height: 150px;
    background-image: url('images/W3.png');
    background-size: contain;
    background-repeat: no-repeat;
	margin-left:0px;
}

/* tabla terminos */

.responsive-table {
      width: 100%;
      border-collapse: collapse;
      overflow-x: auto;
      display: block;
    }

    .responsive-table thead {
      background-color: #f2f2f2;
    }

    .responsive-table th, .responsive-table td {
      padding: 12px;
      border: 1px solid #ccc;
      text-align: left;
    }

    @media (max-width: 768px) {
      .responsive-table thead {
        display: none;
      }

      .responsive-table, 
      .responsive-table tbody, 
      .responsive-table tr, 
      .responsive-table td {
        display: block;
        width: 100%;
      }

      .responsive-table tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
      }

      .responsive-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
      }

      .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
      }
    }




	
	.footer-bottom {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 14px;
}

.footer-bottom a {
    color: #00c7d7;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
	
	/* Responsividad para íconos */


/* Media Queries */
@media (max-width: 768px) {
    .legal-description {
        font-size: 14px; /* Reduce el tamaño del texto */
    }

    .legal-links {
        flex-direction: column; /* Coloca los elementos en una columna */
        gap: 20px; /* Reduce la separación */
    }

    .icon-link {
        flex: 1 1 100%; /* Toma todo el ancho disponible */
        max-width: none;
    }

    .icon-circle {
        width: 150px; /* Ajusta el tamaño */
        height: 150px;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 18px; /* Reduce el tamaño del título */
    }

    .legal-description {
        font-size: 12px; /* Ajusta aún más el tamaño */
    }

    .icon-circle {
        width: 130px;
        height: 130px;
    }
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .title_doc {
        margin-left: 5%;
        margin-right: 5%;
    }
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 480px) {
    .title_doc {
        margin-left: 2%;
        margin-right: 2%;
        text-align: justify;
    }
}

/* tabla2 */
.tabla2 {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  margin-bottom: 1rem;
}

.tabla2 th,
.tabla2 td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.tabla2 th {
  background-color: #f4f4f4;
  color: #333;
  font-weight: bold;
}

@media (max-width: 768px) {
  .tabla2 thead {
    display: none;
  }

  .tabla2,
  .tabla2 tbody,
  .tabla2 tr,
  .tabla2 td {
    display: block;
    width: 100%;
  }

  .tabla2 tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .tabla2 td {
    padding: 10px;
    text-align: left;
    position: relative;
  }

  .tabla2 td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
  }
}

