/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    line-height: 1.6;
    background-color: #fff;
    color: #333;
    font-family: Verdana, Geneva, sans-serif;  /* Changed from Lucida Sans */
  }
  .logo{
    width: auto; /* Esta unidad está incompleta y no es válida */
    height: auto;
  }
  
  nav {
    background: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
    font-family: Verdana, Geneva, sans-serif;  /* Changed from Lucida Sans */
    font-weight: bold;
    font-size: 1rem;
  }
  
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  
  .menu-toggle span {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
  }
  
  .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
  .hero .overlay img {
    width: 450px;  /* Increased from default size */
    height: auto;  /* Maintain aspect ratio */
    margin-bottom: 20px;
  }
  
  @media (max-width: 768px) {
    .hero .overlay img {
        width: 300px;  /* Smaller size for mobile devices */
        height: auto;
    }
  }
  
  .social-icons {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
  }
  
  .social-icons img {
    width: 90px;    /* Doubled from 45px */
    height: 90px;   /* Doubled from 45px */
    transition: transform 0.3s ease;
  }
  .social-icons-contact img{
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        position: static;
  flex-direction: row;
  justify-content: center;
  margin-top: 20px;
    }

  .social-icons img:hover {
    transform: scale(1.2);
  }
  
  section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    position: relative;
  }
  
  section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #f47c20;
    font-size: 1.8rem;
  }
  #servicios-destacados {
    padding: 40px 20px;
    background-color: #f9f9f9;
  }
  
  .servicio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .servicio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.servicio-box img {
    display: block;
    margin: 0 auto 10px auto;
    width: 50px;
    height: 50px;
  }
  
  .servicio-box h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #f27329;
  }
  
  .servicio-box ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
  }
  
  .servicio-box ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
  }
  
  .servicio-box ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: #f27329;
    border-radius: 50%;
  }
  
  
  .animated-title {
    animation: fadeInUp 1s ease-out both;
  }
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  section ul {
    list-style: none;
    padding-left: 0;
  }
  
  /* WhatsApp button styles for desktop */
  .whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none; /* Hidden by default */
  }
  
  .whatsapp img {
    width: 65px;
    height: 65px;
    transition: transform 0.3s ease;
  }
  
  .whatsapp img:hover {
    transform: scale(1.1);
  }
  
  /* Show WhatsApp only on mobile */
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex;
    }
    .social-icons {
        display: none;  /* Hide sidebar icons on mobile */
    }
  
    nav ul {
      display: none;
      flex-direction: column;
      gap: 10px;
      background-color: #444;
      padding: 10px;
      border-radius: 5px;
      position: absolute;
      top: 60px;
      right: 20px;
      width: 150px;
    }
  
    nav ul.active {
      display: flex;
    }
  
    .hero .overlay img {
        width: 300px;  /* Smaller size for mobile devices */
        height: auto;
    }
  
    section h2 {
      font-size: 1.5rem;
    }
  
    section p, section li {
      font-size: 1rem;
    }
  
    .social-icons {
      top: auto;
      bottom: 80px;
      right: 30px;
    }
  
    .social-icons img {
      width: 80px;  /* Doubled from 40px */
      height: 80px;
    }
  
    .redes-contacto {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 15px;
        margin: 20px auto;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0 10px;
    }
  
    .redes-contacto img {
        width: 40px;    /* Reduced from 80px */
        height: 40px;   /* Reduced from 80px */
    }
  
    .dato-contacto img {
        width: 60px;    /* Adjusted contact icons size */
        height: 60px;
    }
  
    #contacto {
        padding: 20px 10px;
    }
  
    .whatsapp {
        display: block !important;
    }
  
    .whatsapp img {
      width: 55px;  /* Slightly smaller on mobile */
      height: 55px;
    }
  }
  
  @media (max-width: 454px) {
    .redes-contacto {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 10px;  /* Reduced gap for better fit */
        margin: 20px auto;
        flex-wrap: nowrap;  /* Prevent wrapping */
        width: 100%;
        padding: 0 5px;
    }

    .redes-contacto img {
        width: 35px;    /* Smaller icons */
        height: 35px;   /* Smaller icons */
    }

    .dato-contacto img {
        width: 50px;    /* Smaller contact icons */
        height: 50px;
    }

    .hero .overlay img {
        width: 250px;   /* Smaller logo for very small screens */
    }
  }
  
  .parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
  }
  
  .parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* oscurecer para que se lea el texto */
  }
  
  .parallax-content {
    position: relative;
    z-index: 1;
    padding: 20px;
  }
  
  .parallax-content h2 {
    font-size: 1.5rem;
    color: #fff;
    max-width: 90%;
  }
  .servicio-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* sombra sutil */
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .servicio-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* más sombra al pasar el mouse */
  }
  #contacto {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  .contacto-contenedor {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .redes-contacto {
    display: none;
  }
  
  @media (max-width: 768px) {
    .redes-contacto {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 15px;
        margin: 20px auto;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0 10px;
    }

    .redes-contacto img {
        width: 40px;
        height: 40px;
    }
  }
  
  @media (max-width: 454px) {
    .redes-contacto {
        gap: 10px;
    }

    .redes-contacto img {
        width: 35px;
        height: 35px;
    }
  }
  
  .redes-contacto img {
    width: 80px;
    height: 80px;
    transition: transform 0.2s;
  }
  
  .redes-contacto img:hover {
    transform: scale(1.1);
  }
  
  .dato-contacto img {
    width: 100px;   /* Doubled from 50px */
    height: 100px;
  }

footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: #f47c20;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f27329;
    text-decoration: underline;
}