body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #000000;
}

.Contenedor{
     
    display:grid;
    grid-template-columns: repeat(5,20% 20% 20% 20% 20%);
    grid-template-rows:repeat(1, auto);
    grid-template-areas:"topnav topnav topnav topnav topnav"
                        "bloque1 bloque1 bloque1 bloque1 bloque1"
                        "form-estado form-estado form-estado form-estado form-estado"
                         "ubicacion ubicacion ubicacion ubicacion ubicacion"
                       " publicidad publicidad recomendados recomendados recomendados"
                       "actividad actividad actividad actividad actividad"
                       "portadas portadas portadas portadas portadas"
                        "footer-mx footer-mx footer-mx footer-mx footer-mx"
    ;}


    .topnav {grid-area: topnav;
      overflow: hidden;
      background-color: #000000;
  position: fixed;
  width: 100%;
    }
    .topnav a {
      float: left;
      display: block;
      color: #f2f2f2;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 15px;
      font-weight:600;
    }
    .topnav a:hover {
      background-color: #009de6;
      color: rgb(255, 255, 255);
      text-decoration: underline;
    }
  
    .topnav .im{
      background-color: #000000;
      color: rgb(255, 255, 255);
     font-size: 9px;
    }
    .topnav .im:hover{
      background-color: #000000;
      color: #009de6;
      text-decoration: underline;
     
    }
  
    .topnav .im img:hover{
      margin: auto;
      width: 30px;
      
    }
   
  
    .topnav a.active {
      background-color: #000000;
      color: rgb(255, 255, 255);
    }
    .topnav .icon {
      display: none;
    }


.bloque1 {
  grid-area: bloque1;
  margin-top: 50px;
  position: relative;
  height: 30vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
    url('img/galaxy3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #888888;
  font-size:30px;
  text-align: center;
}
.Contenedor .bloque1 p{font-size: 35px; margin:auto; margin-top: 150px;}

@media screen and (max-width: 900px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}



@media screen and (max-width: 900px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

.topnav.responsive{
width: 100%; margin: auto; 
}
}

/* FORMULARIO DE ESTADO */
/* FORMULARIO TIPO BARRA DE BÚSQUEDA */
.form-estado {
  grid-area: form-estado;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: transparent;
}

#estadoForm {
  display: flex;
  align-items: center;
  background: rgba(25, 25, 25, 0.9);
  border-radius: 50px;
  padding: 8px 15px;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
  width: 600px;
  max-width: 90%;
  transition: all 0.3s ease;
}

#estadoForm:hover {
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

/* Select */
#estadoForm select {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1em;
  padding: 10px;
  outline: none;
  appearance: none;
}

#estadoForm select option {
  background: #111;
  color: #fff;
}

/* Botón de buscar */
#estadoForm button[type="submit"] {
  background: linear-gradient(135deg, #0078d7, #00bfff);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

#estadoForm button[type="submit"]:hover {
  background: linear-gradient(135deg, #00bfff, #0078d7);
  transform: scale(1.05);margin-top: 20x;
}

/* Botón de ubicación arriba */
#limpiar {
  background: linear-gradient(135deg, #00bfff, #0078d7);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  
  cursor: pointer;
  transition: all 0.3s ease;
}

#limpiar:hover {
  background: linear-gradient(135deg, #0078d7, #00bfff);
  transform: scale(1.05);
}

/* Título */
.form-estado h3 {
  color: #00bfff;
  margin-bottom: 10px;
  text-align: center;
  font-size: 1em;
}

/* Responsivo */
@media (max-width: 600px) {
  #estadoForm {
    width: 100%;
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
  }

  #estadoForm select {
    width: 100%;
    margin-bottom: 10px;
  }

  #estadoForm button[type="submit"] {
    width: 100%;
  }
}





.ubicacion{grid-area: ubicacion; width: 100%; height: 200px; background-color: #f2f2f2; display:none; }
.publicidad{grid-area: publicidad; width: 95%; height: 70vh; background-color: #161616; color: white;
 text-align: center; font-weight: 800; font-size: 12px;}
 
 .publicidad img{border-radius:10px;}

/* Sección de recomendados */
/* Contenedor general */
.recomendados {
  grid-area: recomendados;
  max-height: 70vh;; /* altura del carrusel */
  overflow-y: auto;
  background-color: #111;
  padding: 15px;
  border-radius: 10px;
  
}

/* Título */
.recomendados h3 {
  color: #fff;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.2em;
}

/* Lista sin viñetas */
.recomendados-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Cada elemento (logo + info) */
.recomendado-item {
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  transition: background 0.3s ease;
}

.recomendado-item:hover {
  background-color: #222;
}

/* Logo */
.logo-recomendado {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 5px;
  margin-right: 15px;
}

.sin-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  background-color: #222;
}

/* Información */
.info-recomendado {
  color: #fff;
  flex: 1;
}

.info-recomendado h4 {
  margin: 0;
  font-size: 1.1em;
  color: #00bfff;
}

.info-recomendado .giro {
  color: #ccc;
  font-style: italic;
  margin: 5px 0;
}

.info-recomendado .descripcion {
  color: #ddd;
  font-size: 0.9em;
  line-height: 1.4em;
}

/* Scroll bonito */
.recomendados::-webkit-scrollbar {
  width: 8px;
}

.recomendados::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.recomendados::-webkit-scrollbar-thumb:hover {
  background: #666;
}


.actividad {grid-area: actividad;
    width: 90%;
    margin: 20px 0;
    overflow: hidden; /* Oculta el contenido desbordado */
    position: relative;
    margin: auto;
    margin-top: 50px;
}




.actividad h2{color: #ffffff;}


.actividad ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

.actividad li {
    flex: 0 0 auto;
    width: 300px; /* Establece el tamaño rectangular de las fichas */
    height: 200px; /* Alto de las fichas */
    margin-right: 10px; /* Espaciado entre fichas */
    background-color: #009de6;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 900;
    color: #c2c2c2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    font-size: 30px;
}

.actividad li:hover {
    background-color: #006ab1;
    color: #ffffff;
    transform: scale(1.05);
    text-decoration: underline;
}

/* Estilo para los botones de control del slider */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(228, 0, 114);
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Responsividad: ajuste del tamaño de las fichas en pantallas más pequeñas */
@media (max-width: 1024px) {
    .actividad li {
        width: 180px; /* Fichas más pequeñas en pantallas medianas */
        height: 90px;
    }
}

@media (max-width: 768px) {
    .actividad li {
        width: 250px; /* Fichas aún más pequeñas */
        height: 100px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .actividad li {
        width: 200px; /* Fichas pequeñas en pantallas más pequeñas */
        height: 70px;
        font-size: 20px; /* Reducir tamaño de texto */
    }
}


/* === Sección Portadas === */
.portadas {
    grid-area: portadas;
    padding: 30px 20px;
    background: #161616 ;
    text-align: center;
    margin-top: 50px;
}

.portadas h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #f9f9f9;
    text-transform: capitalize;
}

/* Contenedor de fichas */
.portadas-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1300px;
}

/* Cada ficha */
.portadas-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.portadas-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Imagen o portada */
.logo-portadas {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.sin-logo {
    background: #ddd;
    color: #555;
    font-size: 0.9em;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Información de la empresa */
.info-portadas {
    padding: 15px;
}

.info-portadas h4 {
    margin: 0 0 5px;
    font-size: 1.1em;
    color: #222;
}

.info-portadas .giro {
    font-weight: bold;
    font-size: 0.9em;
    color: #007B83;
    margin-bottom: 8px;
}

.info-portadas .descripcion {
    font-size: 0.85em;
    color: #555;
    line-height: 1.4em;
}

/* Responsivo */
@media (max-width: 768px) {
    .portadas {
        padding: 20px 10px;
    }

    .portadas-lista {
        gap: 15px;
    }

    .logo-portadas {
        height: 130px;
    }
}

.footer-mx {grid-area: footer-mx;
    display: block;
    width: 100%;
}

.footer-mx {
    background: #0a0a0a;
    color: #f1f1f1;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
    margin-top: 40px;
}

.footer-contenedor {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 12px;
    color: #00e1ff;
}

.footer-col p {
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    text-decoration: none;
    color: #eeeeee;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #00e1ff;
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding: 18px 0;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #cccccc;
    display: block;
}




  @media (max-width:900px){
    .Contenedor{ 
    width:100%;
    display:grid;
    grid-gap:0px;
    grid-template-columns: repeat(1, 100%);
    grid-template-rows:repeat(3, auto);
    grid-template-areas:"topnav"
                        "bloque1"
                        "form-estado"
                        "ubicacion"
                        "publicidad"
                       "recomendados"
                       "actividad"
                       "portadas"
                       "footer-mx"
                        
    ;}

     /*inicia header*/
   /*inicia header*/
   .topnav .im{ font-size: 20px;
    
   }
   .topnav a{ display: none;}
   .topnav{width: 100%;}
   .Contenedor .bloque1{width: 100%; margin-top: 50px; }
   .Contenedor .bloque1 p{font-size: 15px; margin:auto; margin-top: 160px;}
    .Contenedor  .form-estado {
    width: 90%;
    padding: 15px;
  }
  .Contenedor .footer-mx{width: 90%; margin: auto;}
  .Contenedor .recomendados{margin-top: 50px;}
.Contenedor .publicidad{margin: auto; text-align: center; height: 400px; font-size: 10px;}

.Contenedor .publicidad  img{margin-left:-40px; width:70%; } 

  .Contenedor .portada{width: 100%; margin-top: 50px;}
  
  }