
@font-face {
    font-family: 'RobotFont';
    src: url('Robot_Font.otf') format('opentype');
    font-weight: normal; 
    font-style: normal; 
}
nav {
    font-family: 'RobotFont', sans-serif; 
    font-size: 115%;
}
.text-carousel {
    
    width: 100%;
    overflow: hidden; 
    white-space: nowrap; 
    box-sizing: border-box;
    background-color: #ff0000;
    padding: 10px 0;
  }
  
  .carousel-content {
    display: inline-block; 
    animation: scroll-text 22s linear infinite; }
  
  .carousel-content p {
    display: inline-block; 
    margin: 0 50px; 
    font-size: 1.5rem; 
    font-weight: bold;
    color: #ffffff; 
  }
  
  @keyframes scroll-text {
    from {
      transform: translateX(100%); 
    }
    to {
      transform: translateX(-100%); 
    }
  }
#logo {
    width: 60px; 
    height: auto; 
    margin-right: 10px; 
   
}
body {
    font-family: Arial;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
   
    padding: 15px 20px;
    border-bottom: 1px solid #6d6d6dd8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
  }

  header {
    background-color: #d32f2f;
    color: white;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  header h1 {
    font-size: 2rem;

    font-weight: 700;
  }

  header p {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .container {
    display: flex;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 1200px;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .main-articles {
    flex: 2 1 60%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
.main-articles a {

    color: #d32f2f;

}
  .main-articles .article {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .main-articles .article:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .main-articles .article img {
    width: 100%;
    height: auto;
  }

  .main-articles .article .content {
    padding: 1.5rem;
  }

  .main-articles .article h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #d32f2f;
  }

  .main-articles .article p {
    font-size: 1rem;
    color: #555;
  }

  .sidebar {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .sidebar .article {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .sidebar .article:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .sidebar .article img {
    width: 120px;
    height: auto;
  }

  .sidebar .article .content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .sidebar h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #d32f2f;
    text-transform: uppercase;
    border-bottom: 3px solid #d32f2f;
    padding-bottom: 0.5rem;
  }
  .sidebar h4 a{

    color: #d32f2f;

  }
  .sidebar .article h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #d32f2f;
  }

  .sidebar .article p {
    font-size: 0.9rem;
    color: #555;
  }
  .cta {
    margin-top: 1rem;
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  .cta:hover {
    background-color: darkred; 
    color: white; 
  }
  footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }

    .main-articles, .sidebar {
      flex: 1 1 100%;
    }

    .sidebar .article {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .sidebar .article img {
      width: 100%;
    }
  }
  /* Estilo general */
.hero-banner {
  position: relative;
  text-align: center;
  color: white;
}

.banner-image {
  width: 100%; /* La imagen siempre ocupa el 100% del ancho */
  height: auto; /* Mantiene la proporción */
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.banner-content h1 {
  font-size: 3rem;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 1rem;
  background-color: red;
}

.banner-content p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: rgb(124, 189, 201);
}

.cta {
  padding: 0.75rem 1.5rem;
  background-color: red;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1rem;
}

.cta:hover {
  background-color: darkred;
  color: white;
}

/* Responsividad */
@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 2.5rem; /* Reduce el tamaño del título en pantallas medianas */
  }

  .banner-content p {
    font-size: 1.25rem; /* Ajusta el subtítulo */
  }

  .cta {
    font-size: 0.9rem; /* Reduce ligeramente el botón */
    padding: 0.5rem 1rem; /* Ajusta el tamaño del botón */
  }
}

@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 2rem; /* Reduce más el tamaño del título en pantallas pequeñas */
  }

  .banner-content p {
    font-size: 1rem; /* Ajusta más el subtítulo */
  }

  .cta {
    font-size: 0.8rem; /* Botón más pequeño */
    padding: 0.5rem 0.75rem;
  }
}
