/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Evita desplazamiento horizontal innecesario */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #34495e;
    padding: 10px 20px;
    position: fixed; /* Navbar fija */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px; /* Altura fija de la navbar */
}

#language-selector {
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Optional: Improve the select element's appearance */
#language-selector:focus {
  outline: none;
  border-color: #007bff; /* Highlight on focus */
}

.nav-links {
    flex: 1;
    text-align: right; /* Mantiene la alineación a la derecha */
    display: flex; /* Asegura que el contenedor sea flexible */
    justify-content: flex-end; /* Alinea los elementos a la derecha */
    align-items: center; /* Centra verticalmente los links */
}

.nav-links ul {
    display: flex; /* Hace que los elementos de la lista se muestren en línea */
    list-style: none; /* Elimina los puntos de la lista */
    margin: 0; /* Elimina márgenes por defecto */
    padding: 0; /* Elimina padding por defecto */
}

.nav-links li {
    margin-left: 20px; /* Espacio entre los links */
}

.nav-links a {
    color: white; /* Color del texto */
    text-decoration: none; /* Elimina el subrayado */
    font-size: 16px; /* Tamaño de fuente */
    transition: color 0.3s ease; /* Transición suave para el hover */
}

.nav-links a:hover {
    color: #3498db; /* Color al pasar el ratón (puedes ajustarlo) */
}

.logo-container {
    flex: 1;
}

.logo {
    height: 50px;
    width: auto;
}

.logo2 {
    height: 250px;
    width: auto;
}



.nav-links {
    flex: 1;
    text-align: right;
}

.container {
    display: flex;
    height: calc(100vh - 60px); /* Ajusta la altura restando la navbar */
    margin-top: 60px; /* Espacio para la navbar fija */
}

.sidebar {
    width: 300px; /* Aumentado de 250px a 350px, ajustable según necesites */
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    position: fixed;
    height: calc(100vh - 60px); /* Altura total menos la navbar */
    overflow-y: auto; /* Barra de desplazamiento vertical siempre visible si es necesario */
    transition: transform 0.3s ease;
}

.sidebar-copyright {
    bottom: 0; /* Alinea con el borde inferior */
    left: 0;
    right: 0;
    padding: 10px 0 20px 0; /* 20px de espacio inferior */
    text-align: center; /* Centra el texto horizontalmente */
    font-size: 12px;
    color: #bdc3c7;
    border-top: 1px solid #34495e; /* Línea separadora */
    background-color: #2c3e50; /* Mismo fondo que la sidebar */
    z-index: 1; /* Evita superposiciones */
}
.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
	margin-top: 20px;

}

.sidebar-logo {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.sidebar h2 {
    margin: 0;
    font-size: 1.2em;
	}
.sidebar 	ul {
    list-style: none;
    padding: 0;
  line-height: 1.0; 


	
	
}


ul {
  padding-left: 2rem;
}

ul {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 2.0; 
}

ul ul {
  margin-bottom: 0;
}


.section-item > a {
    font-weight: bold;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: #34495e;
}

.nav-icon {
    margin-right: 10px;
}

.star-icon {
    color: #ffd700; /* Color dorado para las estrellas */
}

.subsection-list {
    display: none;
    margin-left: 20px;
}

.section-item.open .subsection-list {
    display: block;
}

.content {
    flex: 1;
    padding: 20px;
    background-color: white;
    margin-left: 400px; /* Espacio para la sidebar */
    height: calc(100vh - 60px); /* Altura total menos la navbar */
    overflow-y: auto; /* Barra de desplazamiento vertical */
    padding-top: 80px; /* Espacio para evitar superposición con la navbar */
    max-width: calc(100% - 400px); /* Limita el ancho del contenido al espacio restante */
    box-sizing: border-box; /* Incluye padding en el cálculo */
    padding-left: 40px; /* Sangría adicional a la izquierda */
}


.section {
    display: none;
}

.section.active {
    display: block;
}

/* styles.css (solo la parte relevante, manteniendo el resto intacto) */

.custom-table {
    width: auto; /* Se ajusta al contenido */
    max-width: 600px; /* Ancho máximo permitido, ajustable */
    min-width: 600px; /* Mínimo para evitar que se colapse demasiado */
    border-collapse: collapse;
    margin: 20px auto; /* Centrado con margen */
    box-sizing: border-box; /* Incluye padding y bordes en el cálculo del ancho */
	
}

.custom-table th, .custom-table td {
    border: 1px solid #ddd;
    padding: 8px;
	text-align: center;
}

.custom-table th {
    background-color: #f2f2f2;
}

.unordered-list {
    list-style: none;
    padding-left: 20px;
}

.unordered-list li {
    position: relative;
    padding-left: 20px;
}

.unordered-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.nav-button:hover {
    background-color: #2980b9;
}

.nav-image {
    max-width: 100px;
    margin-top: 10px;
    display: none; /* Ocultar imágenes por defecto hasta que se implemente lógica */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
}

/* Center images only within the content area */
.content img {
    display: block; /* Makes the image a block element to allow centering */
    margin-left: auto; /* Centers the image horizontally */
    margin-right: auto; /* Centers the image horizontally */
}

/* New styling for image-only tables */
.image-table {
    width: auto; /* Removes fixed width */
    max-width: none; /* Overrides max-width from custom-table */
    min-width: 0; /* Removes min-width constraint */
    margin: 20px auto; /* Keeps centering */
}

.image-table td {
    padding: 5px; /* Adjust padding as needed */
}

.image-table td img {
    width: 100%; /* Makes the image determine the table width */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Ensures proper alignment */
    margin: 0; /* Removes auto margins to let width control sizing */
}

/* Ensure other tables with images (e.g., Golden Antiguos) are unaffected */
.custom-table:not(.image-table) td img {
    width: 100px; /* Retains your fixed width for other tables */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


     .custom-table-2 {
            width: 100%;
            border-collapse: collapse;
            text-align: center;
            font-family: Arial, sans-serif;
        }
        .custom-table-2  th, .custom-table td {
            border: 1px solid #ddd;
            padding: 10px;
        }
        .custom-table-2  th {
            background-color: #f2f2f2;
            font-size: 1.2em;
        }
        .custom-table-2  img {
            max-width: 200px; /* Aumenta el tamaño de las imágenes */
            height: auto; /* Mantiene la proporción */
        }
        .custom-table-2  caption {
            font-size: 1.5em;
            font-weight: bold;
            padding: 10px;
            background-color: #fff;
            color: black;
        }



.custom-table-3 {
    width: auto; /* Se ajusta al contenido */
    max-width: 1100px; /* Ancho máximo permitido, ajustable */
    min-width: 1000px; /* Mínimo para evitar que se colapse demasiado */
    border-collapse: collapse;
    margin: 20px auto; /* Centrado con margen */
    box-sizing: border-box; /* Incluye padding y bordes en el cálculo del ancho */
	
}

.custom-table-3 th, .custom-table-3 td {
    border: 1px solid #ddd;
    padding: 8px;
	text-align: center;
}

.custom-table-3 th {
    background-color: #f2f2f2;
}

/* TABS REPOSNIVE 3*/ 
.warpper {
  display: flex;
  flex-direction: column;
  align-items: center;

}

.tab {
  cursor: pointer;
  padding: 10px 20px;
  margin: 0px 2px;
  background: #2c3e50;
  display: inline-block;
  color: #7FFFD4;
  border-radius: 3px 3px 0px 0px;
  box-shadow: 0 0.5rem 0.8rem #00000080;
}

.panels {
  background: #00FF0000;
  box-shadow: 0 2rem 2rem #00000080;
  min-height: 200px;
  width: 100%;
  max-width: 900px;
  border-radius: 3px;
  overflow: hidden;
  padding: 20px;
  text-align:center;
}

.panel {
  display: none;
  animation: fadein 0.8s;

}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.panel-title {
  font-size: 1.5em;
  font-weight: bold;
}

.radio {
  display: none;
}

#one:checked ~ .panels #one-panel,
#two:checked ~ .panels #two-panel,
#three:checked ~ .panels #three-panel, 
#four:checked ~ .panels #four-panel, 
#five:checked ~ .panels #five-panel, 
#six:checked ~ .panels #six-panel, 
#seven:checked ~ .panels #seven-panel, 
#eight:checked ~ .panels #eight-panel,
#nine:checked ~ .panels #nine-panel, 
#ten:checked ~ .panels #ten-panel {

  display: block;
}

#one:checked ~ .tabs #one-tab,
#two:checked ~ .tabs #two-tab,
#three:checked ~ .tabs #three-tab,
#four:checked ~ .tabs #four-tab, 
#five:checked ~ .tabs #five-tab, 
#six:checked ~ .tabs #six-tab, 
#seven:checked ~ .tabs #seven-tab, 
#eight:checked ~ .tabs #eight-tab,
#nine:checked ~ .tabs #nine-tab, 
#ten:checked ~ .tabs #ten-tab {

  background: #fff;
  color: #000;
  border-top: 3px solid #00c7c7;
}/*TABS RESPONSIVE 3 */

table.cells td{ padding:1px; border: 2px solid #2c3e50; font-weight:bold; text-align:center;}
table.cells th{color:#7FFFD4; background-color:#2c3e50; border: 2px solid #2c3e50; text-align:center; font-weight:bold;}

#tdmain td,th {
    border: black 2px solid;

}

#tdmain th {
    color:#7FFFD4; background-color:#2c3e50; border: 2px solid #000 ; text-align:center; font-weight:bold;

}



.topics {
    border-collapse: collapse;
    border-spacing: 0;
    background-color: rgba(255, 255, 255, 0.1);
    line-height: 1.5;

}

        .pricing-container {
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .pricing-container::-webkit-scrollbar {
            display: none;
        }
        .custom-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        .custom-table th, .custom-table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        .custom-table th {
            background-color: #f2f2f2;
        }
        @media (max-width: 767px) {
            .pricing-container {
                max-width: 100%;
                padding-bottom: 10px;
            }
            .custom-table {
                min-width: 280px;
            }
        }

 /* Estilos para la sección Useful Links */
        .links-section {
            margin-top: 20px; /* Espacio de separación respecto a la sección anterior */
        }
        .subsection-list {
            padding-left: 20px;
        }
        .subsection-list li {
            margin: 8px 0;
        }
        .subsection-list a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #FFFFFF; /* Ajusta según tu diseño */
            transition: color 0.3s;
        }
        .subsection-list a:hover {
            color: #007bff; /* Color al pasar el mouse */
        }
        .subsection-list i {
            margin-right: 8px;
            font-size: 1.2em;
        }
        /* Ajustes para móviles */
        @media (max-width: 767px) {
            .pricing-container {
                max-width: 100%;
                padding-bottom: 10px;
            }
            .custom-table {
                min-width: 280px;
            }
            .links-section {
                margin-top: 15px;
            }
            .subsection-list {
                padding-left: 15px;
            }
            .subsection-list a {
                font-size: 0.9em;
            }
            .subsection-list i {
                font-size: 1em;
            }
        }		
   /* Estilos para el contenedor de listas */
        .list-container {
            display: flex;
            justify-content: center;
            margin: 10px 0;
            text-align: left;
        }
        .list-container .list-column {
            flex: 1;
            min-width: 0;
            padding-left: 20px;
        }
        .list-container ul {
            margin: 0;
            padding: 0;
        }
        .list-container ul li {
            white-space: nowrap;
            margin-bottom: 5px;
            display: block;
        }
        /* Determinar el ancho mínimo basado en el contenido más largo */
        .list-container .characteristics ul li {
            min-width: max-content;
        }
        .list-container .advantages ul li {
            min-width: max-content;
        }
        /* Asegurar que las columnas se ajusten dinámicamente */
        .list-container .characteristics,
        .list-container .advantages {
            flex: 0 0 auto;
            max-width: 50%;
        }
        /* Estilos para los títulos de las listas */
        .list-container p {
            margin: 10px 0 5px;
            font-weight: bold;
        }
        .list-container .characteristics p {
            text-align: left;
        }
        .list-container .advantages p {
            text-align: left;
        }
        /* Ajuste de padding para espaciado visual en PC */
        .list-container .characteristics ul li {
            padding-right: 250px; /* Espaciado visual solo en PC */
        }


td .unordered-list {
  padding-left: 0px !important;
  margin-left: 0px !important;
  text-align: left !important; /* Force left alignment */

}


/* Ensure list items align properly */
td .unordered-list li {
  margin: 0; /* Remove any default margins */
  padding-left: 20px; /* Optional: Small space between bullet and text */
}

    }
 .race-container {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.race-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.build-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.build-selector button {
    padding: 10px 20px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.build-selector button:hover {
    background: #0056b3;
}

.build-selector button.active {
    background: #28a745;
}

.build-info {
    text-align: center;
}

.build-info h3 {
    margin: 10px 0;
    color: #333;
}

.build-info p {
    margin: 10px 0;
    color: #555;
}

.stats {
    margin-top: 20px;
}

.stat {
    margin: 10px 0;
}

.stat label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.bar {
    background: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.fill {
    background: #007bff;
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.image-container {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.image-container h2 {
    color: #333;
    margin-bottom: 20px;
}

.image-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.image-selector button {
    padding: 10px 20px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.image-selector button:hover {
    background: #0056b3;
}

.image-selector button.active {
    background: #28a745;
}

.image-container img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
		
@media (max-width: 768px) {
    .menu-toggle {
		display: block; /* Asegura que la hamburguesa sea visible */
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001; /* Sobre el sidebar */
    }
	
	   .container {
        position: relative;
        min-height: 100vh;
    }
    .sidebar {
	    position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        width: 250px; /* Ancho fijo para la barra lateral en móviles */
		height: 100%;
		top: 0; /* Alinea con la parte superior */
        z-index: 1000; /* Asegura que la barra esté sobre el contenido */
        transition: transform 0.3s ease;
		overflow-y: auto; /* Mantenido */
    }

    .sidebar.open {
        transform: translateX(0);
    }
	
	.sidebar-copyright {
    margin-top: auto; /* Empuja el copyright al fondo */
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #bdc3c7; /* Color gris claro para contraste */
    border-top: 1px solid #34495e; /* Línea separadora opcional */
    background-color: #2c3e50; /* Mismo fondo que la sidebar */
    position: sticky; /* Fija el copyright al fondo del contenedor desplazable */
    bottom: 0; /* Asegura que esté al final */
    z-index: 1; /* Por si hay superposiciones */
}

    .content {
        margin-left: 0;
        width: 100%;
        max-width: 100%; /* Asegura que el contenido use todo el ancho */
        height: calc(100vh - 60px); /* Ajusta la altura restando la navbar */
        overflow-y: auto; /* Permite desplazamiento vertical */
        padding: 20px; /* Ajusta el padding para evitar superposición */
        padding-top: 80px; /* Espacio para la navbar y el botón hamburguesa */
        box-sizing: border-box;
        transition: margin-left 0.3s ease; /* Suaviza la transición del contenido */
    }

    /* Asegura que el contenido no se desplace cuando la barra lateral está abierta */
    .sidebar.open ~ .content {
        margin-left: 0; /* Evita que el contenido se desplace */
    }

 /* Ajustes para tablas en móviles */
    .custom-table {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 100%; /* No excede el contenedor */
        min-width: 0; /* Elimina el ancho mínimo */
        table-layout: fixed; /* Distribuye el ancho uniformemente */
    }

    .custom-table th, .custom-table td {
        padding: 6px; /* Reduce el padding */
        font-size: 12px; /* Reduce el tamaño de fuente */
        word-wrap: break-word; /* Permite envoltura de texto */
        white-space: normal; /* Permite saltos de línea */
        overflow: hidden; /* Evita desbordamiento */
        text-overflow: ellipsis; /* Agrega elipsis si el texto es muy largo */
		text-align: center;
    }
	  img {
        max-width: 100%; /* Asegura que la imagen no exceda el contenedor */
        height: auto; /* Mantiene la proporción */
        display: block; /* Elimina espacios extra debajo */
    }

    .custom-table img {
        max-width: 100px; /* Limita el tamaño de las imágenes en tablas */
        height: auto;
    }

    .custom-table td img {
        max-width: 100%; /* Imagen se ajusta al ancho de la celda */
        height: auto; /* Mantiene la proporción */
        display: block; /* Elimina espacios extra */
        margin: 0 auto; /* Centra la imagen si la celda es más ancha */
    }
    .section {
        overflow-x: auto; /* Permite desplazamiento horizontal si la tabla es ancha */
    }
    /* CHANGE END */
 /* Ajustes para tablas en móviles */
    .custom-table-2 {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 100%; /* No excede el contenedor */
        min-width: 0; /* Elimina el ancho mínimo */
        table-layout: fixed; /* Distribuye el ancho uniformemente */
    }

    .custom-table-2 th, .custom-table td {
        padding: 6px; /* Reduce el padding */
        font-size: 12px; /* Reduce el tamaño de fuente */
        word-wrap: break-word; /* Permite envoltura de texto */
        white-space: normal; /* Permite saltos de línea */
        overflow: hidden; /* Evita desbordamiento */
        text-overflow: ellipsis; /* Agrega elipsis si el texto es muy largo */
		
    }
	  img {
        max-width: 100%; /* Asegura que la imagen no exceda el contenedor */
        height: auto; /* Mantiene la proporción */
        display: block; /* Elimina espacios extra debajo */
    }

    .custom-table-2 img {
        max-width: 100px; /* Limita el tamaño de las imágenes en tablas */
        height: auto;
    }

    .custom-table-2 td img {
        max-width: 100%; /* Imagen se ajusta al ancho de la celda */
        height: auto; /* Mantiene la proporción */
        display: block; /* Elimina espacios extra */
        margin: 0 auto; /* Centra la imagen si la celda es más ancha */
    }
	
    .custom-table-3 {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 100%; /* No excede el contenedor */
        min-width: 0; /* Elimina el ancho mínimo */
        table-layout: fixed; /* Distribuye el ancho uniformemente */
    }

    .custom-table-3 th, .custom-table-3 td {
        padding: 6px; /* Reduce el padding */
        font-size: 12px; /* Reduce el tamaño de fuente */
        word-wrap: break-word; /* Permite envoltura de texto */
        white-space: normal; /* Permite saltos de línea */
        overflow: hidden; /* Evita desbordamiento */
        text-overflow: ellipsis; /* Agrega elipsis si el texto es muy largo */
		text-align: center;
    }

    .custom-table-3 img {
        max-width: 100px; /* Limita el tamaño de las imágenes en tablas */
        height: auto;
    }

    .custom-table-3 td img {
        max-width: 100%; /* Imagen se ajusta al ancho de la celda */
        height: auto; /* Mantiene la proporción */
        display: block; /* Elimina espacios extra */
        margin: 0 auto; /* Centra la imagen si la celda es más ancha */
    }
	
	
	
 .list-container {
                flex-direction: column;
                width: 100%;
                max-width: 100%;
                white-space: normal;
                margin: 10px 0;
            }
            .list-container .list-column {
                width: 100%;
                padding-left: 0;
            }
            .list-container ul {
                max-width: 100%;
                white-space: normal;
                padding-left: 20px;
            }
            .list-container ul li {
                white-space: normal;
                margin-bottom: 5px;
                display: block;
                max-width: 100%;
                padding-right: 0; /* Elimina el padding en móvil */
            }
            .list-container .characteristics ul li,
            .list-container .advantages ul li {
                min-width: 290px;
                max-width: 100%;
                white-space: normal;
                padding-right: 0; /* Asegura que no haya padding fijo en móvil */
            }
            .list-container .characteristics p,
            .list-container .advantages p {
                text-align: left;
            }
}