/* Estilos para tablets */
@media screen and (max-width: 1024px) {
  /* Variables modificadas para tablets */
  :root {
    --section-padding: 60px;
  }
  
  /* Prevenir scroll horizontal */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  /* Contenedor */
  .container {
    padding: 0 30px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Tipografía */
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 30px;
    margin-bottom: 30px;
  }
  
  /* Servicios */
  .services-grid {
    margin: 0 -10px;
  }
  
  .service-card {
    flex: 0 0 calc(50% - 20px);
    margin: 0 10px 20px;
    padding: 25px;
  }
  
  /* Características */
  .feature-item {
    flex: 0 0 calc(50% - 20px);
    margin: 0 10px 20px;
  }
  
  /* Contacto */
  .contact-info,
  .contact-map {
    flex: 0 0 100%;
  }
  
  .contact-info {
    margin-bottom: 30px;
    padding-right: 0;
  }
}

/* Estilos para móviles */
@media screen and (max-width: 768px) {
  /* Variables modificadas para móviles */
  :root {
    --section-padding: 50px;
    --header-height: 70px;
  }
  
  /* Encabezado */
  .desktop-menu {
    display: none;
  }
  
  /* Héroe */
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    flex: 0 0 100%;
    padding-right: 0;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .hero-image {
    flex: 0 0 100%;
  }
  
  /* Sobre Nosotros */
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    flex: 0 0 100%;
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .about-image {
    flex: 0 0 100%;
  }
  
  /* Servicios */
  .service-card {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  
  /* Características */
  .feature-item {
    flex: 0 0 100%;
  }
  
  /* Footer */
  .footer-grid {
    flex-direction: column;
  }
  
  .footer-company,
  .footer-contact,
  .footer-links {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
}

/* Menú móvil */
.mobile-menu-container {
  display: none;
}

@media screen and (max-width: 768px) {
  .mobile-menu-container {
    display: block;
  }
  
  .menu-toggle {
    position: absolute;
    opacity: 0;
  }
  
  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .menu-icon {
    position: relative;
    width: 30px;
    height: 3px;
    background-color: var(--midnight-teal);
    transition: all 0.3s ease;
  }
  
  .menu-icon:before,
  .menu-icon:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--midnight-teal);
    transition: all 0.3s ease;
  }
  
  .menu-icon:before {
    transform: translateY(-8px);
  }
  
  .menu-icon:after {
    transform: translateY(8px);
  }
  
  .menu-toggle:checked + .menu-button .menu-icon {
    background-color: transparent;
  }
  
  .menu-toggle:checked + .menu-button .menu-icon:before {
    transform: rotate(45deg);
  }
  
  .menu-toggle:checked + .menu-button .menu-icon:after {
    transform: rotate(-45deg);
  }
  
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--white);
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 1000;
  }
  
  .menu-toggle:checked ~ .mobile-menu {
    height: 100vh;
    overflow-y: auto;
  }
  
  .mobile-menu nav {
    padding: 80px 30px 30px;
  }
  
  .mobile-menu ul {
    list-style: none;
  }
  
  .mobile-menu li {
    margin-bottom: 20px;
  }
  
  .mobile-menu a {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: var(--midnight-teal);
    text-transform: uppercase;
  }
}
