 /* Estilos generales */
 :root {
  --primary: #05a2ce;
  --dark: #005f73;
  --light: #ffffff;
  --text: #333;
  --text-light: #f1f1f1;
}
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(90deg, #e3ffe7 0%, #d9e7ff 100%);
    color: var(--text);
  }
  body.dark-mode {
    background-color: var(--dark);
    color: var(--text-light);
  }
  header {
    background-color: #005f73;
    background-color: var(--primary);
    color: #fff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  body.dark-mode header {
    background-color: #005f73;
  }
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary);
  }
  body.dark-mode nav {
    background-color: #005f73;
  }
  /* Estilo del botón de tema */
#themeToggle {
  position: fixed;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  color: inherit;
  cursor: pointer;
  z-index: 1000;
}
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  /* Menú de navegación */
  .nav-menu {
    list-style: none;
    display: flex;
  }
  body.dark-mode .nav-menu {
    background-color: #005f73;
  }
  .nav-menu li {
    margin-left: 20px;
  }
  .nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
  }
  .nav-menu li a:hover {
    color: #f0f0f0;
  }
  /* Botón de hamburguesa */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  .hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin-bottom: 4px;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  /* Secciones de la página */
  section {
    padding: 60px 20px;
  }
  body.dark-mode section {
    background-color: #005f73;
  }

  section:nth-of-type(odd) {
    background: #f4f4f4;
  }
  section:nth-of-type(even) {
    background: #fff;
  }
  body.dark-mode h1 {
    color:#fff;
  }
  body.dark-mode h2 {
    color:#fff;
  }
  body.dark-mode h3{
    color:#fff;
  }
  body.dark-mode p {
    color:#fff;
  }
  h1, h2 {
    margin-bottom: 15px;
    color: #333;
  }
  p {
    color: #666;
  }
  /* Media Query para dispositivos móviles */
  @media (max-width: 768px) {
    .nav-menu {
      position: absolute;
      top: 60px;
      right: 0;
      background: #05a2ce;
      flex-direction: column;
      width: 200px;
      text-align: center;
      display: none;
    }
    .nav-menu.active {
      display: flex;
    }
    .nav-menu li {
      margin: 15px 0;
    }
    .hamburger {
      display: flex;
    }
  }
  /* ===== Slider en la sección de Inicio ===== */
  .slider-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
  }
  .slider {
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .slide {
    min-width: 100%;
    position: relative;
    display: none;
  }
  .slide.active {
    display: block;
  }
  .slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.6);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  /* Controles del slider */
  .slider-controls .prev,
  .slider-controls .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    padding: 5px 10px;
    cursor: pointer;
    background:#05a2ce;
    border-radius: 50%;
    user-select: none;
  }
  .slider-controls .prev {
    left: 10px;
  }
  .slider-controls .next {
    right: 10px;
  }
  /* Indicadores del slider */
  .slider-indicators {
    text-align: center;
    margin-top: 10px;
  }
  .slider-indicators .indicator {
    display: inline-block;
    height: 10px;
    width: 10px;
    background: #fff;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
  }
  .slider-indicators .indicator.active {
    background: #05a2ce;
  }
  /* Estilos para artículos en la sección Nosotros */
  .nosotros-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 20px;
  }
  article {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  body.dark-mode article {
    background-color: #005f73;
    color: #eee;
    box-shadow: 0 2px 5px rgba(255,255,255,0.05);
  }
  .nosotros-articles article:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  /* ===== Sección Servicios con artículos ===== */
  .servicios-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 20px;
  }
  .servicios-articles article {
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .servicios-articles article img {
    width: 100%;
    height: auto;
    display: block;
  }
  .servicios-articles article .contenido-articulo {
    padding: 15px;
  }
  .servicios-articles article a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #05a2ce;
    font-weight: bold;
    transition: color 0.3s;
  }
  .servicios-articles article a:hover {
    color: #05a2ce;
  }
  .servicios-articles article:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  /* ===== Sección Contacto ===== */
  .contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .contacto-mapa iframe {
    width: 100%;
    height: 300px;
    border: none;
  }
  .contacto-info, .contacto-form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .contacto-info ul {
    list-style: none;
    margin-bottom: 15px;
  }
  .contacto-info li {
    margin-bottom: 10px;
    color: #666;
  }
  .redes-sociales {
    margin-top: 15px;
  }
  .redes-sociales a {
    margin-right: 10px;
    text-decoration: none;
    color: #05a2ce;
    font-size: 1.2rem;
    transition: color 0.3s;
  }
  .redes-sociales a:hover {
    color: #0056b3;
  }
  .contacto-form form {
    display: flex;
    flex-direction: column;
  }
  .contacto-form input,
  .contacto-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
  }
  .contacto-form button {
    padding: 10px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: #05a2ce;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .contacto-form button:hover {
    background-color: #005f73;
  }
  .mensaje {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: red;
  }
   /* ===== Sección footer ===== */
  .footer {
    background-color: #05a2ce;
    color: #000000;
    text-align: center;
    padding: 20px;
    position: relative;
  }
  body.dark-mode footer {
    background-color: #005f73;
    color: #fff;
  }
  #btnSubir {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
  }

  #btnSubir:hover {
    background-color: #005f73;
  }