/* Style for desktop */
@media (min-width: 800px) {
  /* General styles */

  body {
    /* Body styles */
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    background-color: white;
    min-width: 300px;
    margin: 0;
    padding: 0;
  }

  header {
    /* Header styles */
    /* The header will be fixed at the top of the page */
    position: fixed;
    top: 0;
    z-index: 1000;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    /* The header will have a dark background color */
    background-color: #2d635c;
    height: 60px;
    justify-content: center;
    align-items: center;
    color: #ebedec;
    text-align: center;
   /* background image in img/balamsys25-cuadrado-chico.png */
    background-image: url('../img/balamsys25-banner.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 100%; 
   }

   header .language-switcher {
    /* Language switcher styles */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ebedec;
    color: #2d635c;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
  }

  header .language-switcher:hover {
    /* Language switcher hover styles */
    background-color: #d3d3d3;
    color: #224b45;
  }

  header .language-switcher:visited {
    background-color: #ebedec;
    color: #2d635c;
  }

  nav {
    /* Navigation styles */
    position: fixed;
    height: 40px;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background-color: #ebedec;
    justify-content: center;
  }

  .desktop-menu {
    /* Desktop menu styles */
    display: flex;
    justify-content: center;
  }

  .desktop-menu a {
    /* Desktop menu link styles */
    color: #2d635c;
    text-decoration: none;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 0.9em;
    box-shadow: #3a7d74 1px 0px 0px 0px;
  }

  .desktop-menu a:hover {
    /* Desktop menu link hover styles */
    background-color: #2d635c;
    color: #ecfaf8;
  }

  .desktop-menu li {
    /* List item styles */
    list-style: none;

  }

  .desktop-menu ul {
    /* Unordered list styles */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
  }

  .desktop-menu ul li {
    /* List item styles for desktop menu */
    margin: 0 10px;
  }

  .desktop-menu ul li a {
    /* Link styles for desktop menu */
    font-weight: bold;
  }

  .desktop-menu ul li a:hover {
    /* Hover styles for desktop menu links */
    text-decoration: underline;
  }

  .desktop-menu ul li a.active {
    /* Active link styles for desktop menu */
    text-decoration: none;
  }

  .desktop-menu ul li a:focus {
    /* Focus styles for desktop menu links */
    outline: 2px solid #ecfaf8;
  }
  
  main {
    /* Main content styles */
    position: fixed;
    top: 105px; /* Adjusted to avoid overlap with header and nav */
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 40px; /* Increased horizontal padding */
    overflow-y: auto; /* Allows scrolling if content overflows */
    background-color: #ebedec;
    color: #1e423d;
    font-size: 1.2em;
  }

  .hero-image img {
    max-width: 250px; /* Control hero image size if needed */
    display: block; /* Ensure the image is displayed as a block element */
    margin: 0 auto; /* Center the image */
    height: auto;
    border-radius: 10px; /* Slightly rounded corners for the image */
    box-shadow: 0 4px 15px rgba(45, 99, 92, 0.2); /* Subtle shadow */
  }

  .hero-text {
    text-align: center;
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 2.8em; /* Larger hero title */
    margin-bottom: 10px;
  }

  .hero-text p {
    font-size: 1.4em; /* Larger hero subtitle */
    margin-bottom: 20px;
  }

  /* Styles for general sections */
  section {
    display: flex;
    flex-direction: column; /* Stack about items vertically */
    justify-content: center;
    align-items: center; /* Center items in the section */
    padding: 40px; /* Padding for the section */
    background-size: 100%, auto; /* Ensure the background image covers the section */
    background-position: top left; /* Position the background image */
    background-repeat: repeat;
    margin-bottom: 20px;
  }

  section h2 {
    font-size: 2.2em; /* Larger title for about section */
    margin-bottom: 30px; /* Space below title */
    text-align: center; /* Center the title */
    text-decoration: underline; /* Underline the title */
    color: #224b45;
  }

  section p {
    font-size: 1.2em; /* Larger paragraph text */
    line-height: 1.6; /* Improved readability */
    text-align: center; /* Center the paragraph */
    color: #333;
  }

  section:hover {
    transform: translateY(-5px); /* Slight lift on hover */
  }
  
  .light-section {
    box-shadow: 0 2px 10px rgba(45, 99, 92, 0.15); /* Softer shadow on hover */
    color: #2d635c; /* Light text color for contrast */
    background-color: #d3d3d3; /* Dark background for about section */
    background-image: url('../img/balamsys25-fondo-web-gris.png');
  }

  .dark-section {
    box-shadow: 0 2px 10px rgba(45, 99, 92, 0.15); /* Softer shadow on hover */
    color: #ebedec;
    background-color: #2d635c; /* Dark background for about section */
    background-image: url('../img/balamsys25-fondo-web-verde.png');
  }

  .dark-section h2 {
    color: #3a7d74;
  }

  .dark-section p {
    color: white;
  }

  .box-item {
    display: flex;
    flex-direction: column; /* Stack title and paragraph vertically */
    margin-bottom: 20px; /* Space between items */
    padding: 15px;
    width: 60vw; /* Control width of about items */
    margin: 0 auto 20px; /* Center the about items */
    box-shadow: 0 2px 10px rgba(32, 32, 32, 0.1); /* Subtle shadow */
    background-repeat: repeat;
    background-size: 100%, auto; /* Ensure the background image covers the section */
    background-position: top left; /* Position the background image */
    color: #2d635c;
  }

  .box-item:hover {
    transform: translate(-5px, -5px) scale(1.05); /* Slight lift on hover */
    box-shadow: 0 5px 5px #2d635c; /* Subtle shadow */
  }

  .box-item dd {
     font-size: 1em; /* Paragraph size */
     line-height: 1.6; /* Improved readability */
  }

  .box-item dt {
    font-size: 1.2em; /* Title size */
    margin-bottom: 10px; /* Space below title */
    font-weight: bold;
  }

  .light-to-dark-item {
    background-color: #ebedec; /* Light background for items */
    background-image: url('../img/balamsys25-fondo-web-gris.png');
  }

  .light-to-dark-item:hover {
    background-color: #1e423d; /* Light background for items */
    background-image: url('../img/balamsys25-fondo-web-verde.png');
    color: #ebedec;
  }

  .dark-to-light-item {
    background-color: #1e423d; /* Light background for items */
    background-image: url('../img/balamsys25-fondo-web-verde.png');
    color: #ebedec;
  }

  .dark-to-light-item:hover {
    background-color: #ebedec; /* Light background for items */
    background-image: url('../img/balamsys25-fondo-web-gris.png');
    color:#2d635c;
  }
  
    footer {
    /* Footer styles */
    position: fixed;
    height: 3lv;
    width: 100%;
    min-height: 15px;
    background-color: #2d635c;
    color: #ecfaf8;
    text-align: center;
    padding: 1px;
    font-size: .6em;
    bottom: 0;
  }
}

/* Style for mobile devices */

@media (max-width: 799px) {
  body {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    background-color: white;
    min-width: 300px;
    margin: 0;
    padding: 0;
  }
  header {
    background-color: #2d635c;
    height: 30px;
    justify-content: center;
    align-items: center;
    color: #ebedec;
    text-align: center;
    background-image: url('../img/balamsys25-banner.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 100%;
  }

  header .language-switcher {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ebedec;
    color: #2d635c;
    padding: 3px 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.7em;
    text-decoration: none;
  }
  nav {
    display: none; /* Hide navigation on mobile */
  }
  

  main {
    position: relative; /* Change to relative for mobile */
    padding: 10px; /* Reduced padding for mobile */
    background-color: #ebedec;
    color: #2d635c;
    font-size: 1em; /* Adjusted font size for mobile */
  }

  .hero-image img {
    /* Hero image styles */
    /* The hero image will be responsive */
    /* The hero image will be centered */
    margin: 0 auto; /* Center the image */
    display: block; /* Ensure the image is displayed as a block element */
    max-width: 40%; /* Ensure the hero image is responsive */
    height: auto; /* Maintain aspect ratio */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  
  }
  .hero-text {
    font-size: medium; /* Adjusted font size for mobile */
    text-align: center;
    margin-bottom: 20px; /* Reduced margin for mobile */
  }

  .hero-text h1 {
    font-size: big; /* Adjusted hero title size for mobile */
    color: #1e423d; /* Darker shade for emphasis */
    margin-bottom: 10px;
  }

  section {
    padding: 20px; /* Reduced padding for mobile */
    margin-bottom: 20px; /* Reduced space between sections */
    border-radius: 5px; /* Slightly rounded corners for sections */
    box-shadow: 0 2px 10px rgba(45, 99, 92, 0.1); /* Softer shadow for sections */
    background-color: #d3d3d4; /* White background for sections */
    background-repeat: repeat;
    background-size: 100%, auto; /* Ensure the background image covers the section */
    background-position: top left; /* Position the background image */
  }
  section h2 {
    font-size: 1.5em; /* Adjusted section title size for mobile */
    color: #224b45; /* A deep teal */
    margin-bottom: 15px; /* Reduced space below title */
    text-align: center; /* Center the title */
  }

  section p {
    line-height: 1.5; /* Improved readability */
    color: #333; /* Darker gray for better contrast on white */
    font-size: 1em; /* Adjusted paragraph text size for mobile */
    text-align: center; /* Center the paragraph text */
  }

light-section {
    box-shadow: 0 2px 10px rgba(45, 99, 92, 0.15); /* Softer shadow on hover */
    color: #2d635c; /* Light text color for contrast */
    background-color: #d3d3d3; /* Dark background for about section */
    background-image: url('../img/balamsys25-fondo-web-gris.png');
  }

  .dark-section {
    box-shadow: 0 2px 10px rgba(45, 99, 92, 0.15); /* Softer shadow on hover */
    color: #ebedec;
    background-color: #2d635c; /* Dark background for about section */
    background-image: url('../img/balamsys25-fondo-web-verde.png');
  }

  .dark-section h2 {
    color: #3a7d74;
  }

  .dark-section p {
    color: white;
  }

  .box-item {
    display: flex;
    flex-direction: column; /* Stack title and paragraph vertically */
    margin-bottom: 20px; /* Space between items */
    padding: 10px;
    width: 90%; /* Control width of items */
    margin: 0 auto 20px; /* Center items */
    border: 1px solid black;
    box-shadow: 0 2px 10px rgba(32, 32, 32, 0.1); /* Subtle shadow */
    background-repeat: repeat;
    background-size: 100%, auto; /* Ensure the background image covers the section */
    background-position: top left; /* Position the background image */
    color: #2d635c;
  }

  .box-item dd {
     font-size: 1em; /* Paragraph size */
     line-height: 1.6; /* Improved readability */
  }

  .box-item dt {
    font-size: 1.2em; /* Title size */
    margin-bottom: 10px; /* Space below title */
    font-weight: bold;
  }

  .light-to-dark-item {
    background-color: #ebedec; /* Light background for items */
    background-image: url('../img/balamsys25-fondo-web-gris.png');
  }

  .dark-to-light-item {
    background-color: #1e423d; /* Light background for items */
    background-image: url('../img/balamsys25-fondo-web-verde.png');
    color: #ebedec;
  }

  footer {
    position: relative; /* Change to relative for mobile */
    background-color: #2d635c;
    color: #ecfaf8;
    text-align: center;
    padding: 10px;
    font-size: 0.8em; /* Adjusted font size for mobile */
  }
}