@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Estilos generales */

/* Estilos generales */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header {
    background-image: url('https://www.cesepol.es/wp-content/uploads/2022/06/Mercancias-peligrosas.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    transition: background-image 1s ease-in-out;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 80px;
    margin-right: 10px;
}

header .logo h2 {
    margin: 0;
    font-size: 1.5em;
}

/* Botón del menú hamburguesa */
.menu-toggle {
    display: none; /* Oculto por defecto en pantallas grandes */
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Menú de navegación */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Menú desplegable */
.company-content, .services-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 200px;
}

.company-dropdown:hover .company-content,
.services-dropdown:hover .services-content {
    display: block;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostrar el botón en móviles */
    }

    nav {
        display: none; /* Ocultar el menú por defecto en móviles */
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100px;
        left: 0;
        z-index: 1000;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        color: #fff;
        padding: 10px;
        display: block;
        width: 100%;
    }

    /* Mostrar el menú cuando está activo */
    nav.active {
        display: block;
    }
}

/* Resto del CSS */
.hero-content {
    padding: 100px 0;
}

.hero-content .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.text-content {
    text-align: left;
    max-width: 100%;
    margin-bottom: 20px;
}

.text-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.text-content .btn {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.text-content .btn:hover {
    background-color: rgba(255, 255, 255, 0.564);
}

.services-dropdown {
    position: relative;
}

.services-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 300px;
}

.services-dropdown:hover .services-content {
    display: block;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
}

.service-item i {
    margin-right: 15px;
    font-size: 1.5em;
}

.service-item h3 {
    margin: 0;
    font-size: 1em;
}

.service-item p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #666;
}

.service-item:hover {
    background-color: #f0f0f0;
}

.company-dropdown {
    position: relative;
}

.company-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 200px;
}

.company-dropdown:hover .company-content {
    display: block;
}

.company-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-decoration: none;
    color: #000000;
}

.company-item i {
    margin-right: 15px;
    font-size: 1.2em;
}

.company-item h3 {
    margin: 0;
    font-size: 1em;
}

.company-item:hover {
    background-color: #f0f0f0;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px;
}
.service-box {
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}
.service-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #000000;
}
.service-box p {
    font-size: 14px;
    color: #000000;
}


/* Main panel */
.main-panel {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.panel-transporte {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab {
    background-color: #000000;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.tab.active {
    background-color: #00d9ff;
    color: #ffffff;
}

.tab:hover {
    background-color: #00d9ff;
    color: #ffffff;
}

.contenidos {
    margin-top: 20px;
}

.contenido {
    display: none;
}

.contenido.active {
    display: block;
}

.contenido-interno {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.imagen-transporte {
    width: 300px;
    height: auto;
    margin-right: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.texto-transporte {
    flex: 1;
}

.titulo-transporte {
    font-size: 30px;
    color: #000000;
    margin-bottom: 10px;
}

.descripcion-transporte {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
}

/* Divisiones mágicas */
.la-division-magica {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.el-texto-increible {
    flex: 1;
    margin-right: 20px;
}

.el-texto-increible h3 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 10px;
}

.el-texto-increible p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.la-imagen-genial img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #000000;
    color: white;
    padding: 40px 0;
}

.bottom-footer {
    text-align: center;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.column {
    flex: 1;
    margin: 0 10px;
}

.column h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    margin: 0 10px;
}

.social-icons img {
    width: 30px;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .logo a {
        font-size: 24px;
    }

    nav ul {
        flex-direction: column;
    }

    .contenido-interno {
        flex-direction: column;
    }

    .imagen-transporte {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .la-division-magica {
        flex-direction: column;
    }

    .el-texto-increible {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-columns {
        flex-direction: column;
    }

    .column {
        margin-bottom: 20px;
    }
}   

.contenedor-galaxia {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.nebulosa-tarjeta {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 20px;
    width: 300px;
    text-align: left;
}

.estrella-icono {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    vertical-align: middle;
}

.constelacion-contenido {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.planeta-titulo {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}

.cometa-descripcion {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

.boton-leer {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.boton-leer:hover {
    background-color: #333;
}


.contenedor {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.titulo {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Ajuste automático de tamaño */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Permite que el contenido se acomode si es necesario */
    max-width: 90%;
    text-align: center;
}

.icono-circulo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
    border-radius: 50%;
    background: red;
    color: white;
    margin-left: 10px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
}

/* Estilos generales */

.main-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.container2 {
    display: flex;
    gap: 20px;
    flex-direction: column; /* Cambia a columna en pantallas pequeñas */
    position: relative; /* Para la línea divisoria */
}

/* Línea divisoria */
.container2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 200px; /* Ajusta según el ancho del menú */
    width: 1px;
    height: 100%;
    background-color: #ddd; /* Color de la línea */
    z-index: 1;
}

.navigation-panel {
    flex: 1;
    max-width: 100%; /* Ocupa todo el ancho en pantallas pequeñas */
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap; /* Los botones se envuelven en pantallas pequeñas */
    gap: 10px; /* Espacio entre botones */
    position: relative; /* Para la línea divisoria */
    z-index: 2; /* Asegura que el menú esté sobre la línea */
}

.navigation-button {
    flex: 1 1 calc(50% - 10px); /* Dos botones por fila en pantallas pequeñas */
    padding: 10px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
    max-width: 200px; /* Ancho máximo para los botones */
}

.navigation-button:hover {
    background-color: #7375ff;
    color: white;
}

.navigation-button.selected {
    background-color: #7375ff;
    color: white;
}

.content-section {
    flex: 3;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    position: relative; /* Para la línea divisoria */
    z-index: 2; /* Asegura que el contenido esté sobre la línea */
}

.section-content {
    display: none;
}

.section-content.visible {
    display: block;
}

/* Estilos para las imágenes */
.imgv {
    max-width: 100%; /* La imagen no será más ancha que su contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
    max-height: 200px; /* Altura máxima reducida */
    object-fit: cover; /* Ajusta la imagen sin distorsionarla */
}

.subclass {
    margin-bottom: 20px;
}

.subclass img {
    max-height: 150px; /* Imágenes más pequeñas para subclases */
}

.subclass p {
    margin-top: 10px;
    font-size: 0.95em;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

ul li {
    margin-bottom: 5px;
    color: #555;
}

/* Estilos para las tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ffffff;
}

th {
    background-color: #1abc9c; /* Color de fondo para los encabezados */
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

tr:nth-child(even) {
    background-color: #f9f9f9; /* Fondo alternado para las filas */
}

tr:hover {
    background-color: #f1f1f1; /* Efecto hover en las filas */
}

td {
    color: #555;
}

/* Estilos responsivos */
@media (min-width: 768px) {
    .container2 {
        flex-direction: row; /* Vuelve a fila en pantallas grandes */
    }

    .navigation-panel {
        max-width: 200px; /* Ancho fijo en pantallas grandes */
        flex-direction: column; /* Botones en columna en pantallas grandes */
    }

    .navigation-button {
        flex: 1 1 auto; /* Botones ocupan todo el ancho en pantallas grandes */
        max-width: 100%; /* Los botones no exceden el ancho del panel */
    }

    /* Ajuste de la línea divisoria en pantallas grandes */
    .container2::after {
        left: 200px; /* Ajusta según el ancho del menú */
    }
}


  
.platypus-zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background: red;
    color: white;
  }
  
  .quokka-hub {
    width: 50%;
    padding-right: 20px;
  }
  
  .capybara-gallery {
    width: 40%;
  }
  
  .capybara-gallery h2 {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .capybara-gallery table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .capybara-gallery th, .capybara-gallery td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    text-align: left;
  }
  
  .capybara-gallery th {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
  }
  
  .capybara-gallery tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .wombat-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #800080;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
  }
  
  @media (max-width: 768px) {
    .platypus-zone {
      flex-direction: column;
      padding: 20px;
    }
  
    .quokka-hub {
      width: 100%;
      padding-right: 0;
      margin-bottom: 20px;
    }
  
    .capybara-gallery {
      width: 100%;
    }
  }
  