@media (max-width: 1151px) {
  .header {
    width: 100%;
    max-width: 100vw;
    padding: 6px 0;
  }

  .header-container {
    width: 100%;
    max-width: 100vw;
    padding: 0 18px;
  }

  .navbar {
    width: 100%;
    max-width: 100vw;
    height: 60px;
    position: relative;
  }

  .logo img {
    width: 170px;
    height: auto;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: block;
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;

    padding: 10px;

    background: rgba(9, 15, 35, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    z-index: 1000;
  }

  .nav.active .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin: 0;
    padding: 0;

    list-style: none;
  }

  .nav.active .nav-menu a {
    display: block;

    padding: 12px 14px;

    color: #ffffff;
    text-decoration: none;

    border-radius: 10px;

    font-size: 15px;
  }

  .nav.active .nav-menu a:hover {
    background: rgba(37, 99, 235, 0.15);
  }

  .menu-toggle {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.04);

    color: #ffffff;

    font-size: 21px;

    cursor: pointer;
  }

  .navbar .btn-whatsapp {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    margin-top: 72px;
    padding-top: 48px;
  }

  .hero-content {
    margin-left: -10px;
    width: calc(100% + 10px);
    transform: translateY(-65px);
  }

  .hero-content h1 {
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -1.1px;
    margin-top: 0px;
    margin-bottom: 22px;
  }

  .hero-content p {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .highlight-card {
    min-width: 0;
    box-sizing: border-box;
    height: 78px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .highlight-card i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 21px;
  }

  .highlight-card strong {
    display: block;
    font-size: 14px;
    line-height: 1.05;
  }

  .highlight-card span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.1;
  }

  .highlight-card:nth-child(1),
  .highlight-card:nth-child(2) {
    flex: 1 1 calc(50% - 5px);
  }

  .highlight-card:nth-child(3) {
    flex: 1 1 100%;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .hero-buttons a {
    flex: none;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 14px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
  }

  .hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 2px;
  }

  .hero-features > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
  }

  .hero-features i {
    flex-shrink: 0;

    width: 20px;
    height: 20px;
    min-width: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #22c55e;
    color: #ffffff;

    font-size: 13px;
    line-height: 1;
  }

  .hero-features > div:nth-child(2) {
    position: relative;
    left: 6px;
  }

  .hero-features > div:nth-child(3) {
    position: relative;
    right: 14px;
  }

  .hero-features > div:nth-child(3) span {
    display: block;
    white-space: nowrap;
  }

  /* ================================
   SERVICIOS - MOBILE
================================ */

  .services {
    padding: 20px 0 30px;
  }

  .services h2 {
    width: 340px;
    max-width: 100%;

    margin: 0 auto 8px;

    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    text-align: center;
  }

  .services .section-header p {
    width: 340px;
    max-width: 100%;

    margin: 0 auto 0;

    font-size: 17px;
    line-height: 1.5;
    text-align: center;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    width: 340px;
    max-width: 100%;

    margin: 0 auto;

    align-items: stretch;
  }

  /* Tarjetas */

  .service-card {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
  }

  /* Imagen */

  .service-image {
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    box-sizing: border-box;
  }

  .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Contenido */

  .service-content {
    padding: 10px 10px 12px;
  }

  .service-content h3 {
    font-size: 16px;
    line-height: 1.05;
    margin-bottom: 2px;
  }

  .service-content p {
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .service-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    line-height: 1.2;
  }

  .services .container {
    width: 100%;
    max-width: none;
    padding: 0 25px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* ================================
   ORDEN MOBILE
================================ */

  /* Hosting Web */
  .service-card:nth-child(1) {
    order: 1;
    grid-column: span 1;
  }

  /* Dominios */
  .service-card:nth-child(2) {
    order: 2;
    grid-column: span 1;
  }

  /* Nube Privada */
  .service-card:nth-child(4) {
    order: 3;
    grid-column: span 1;
  }

  /* Correo Empresarial */
  .service-card:nth-child(5) {
    order: 4;
    grid-column: span 1;
  }

  /* Diseño Web */
  .service-card:nth-child(3) {
    order: 5;
    grid-column: 1 / -1;
  }

  /* ================================
     PLANES - MOBILE
  ================================ */

  .plans {
    margin-top: 0px;
    padding: 36px 0 50px;
  }

  #plans {
    scroll-margin-top: 75px;
  }

  .plans .container {
    width: 100%;
    max-width: none;
    padding: 0 25px;
    box-sizing: border-box;

    gap: 28px;
  }

  .plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;

    width: 100%;
    margin: 0 auto;

    align-items: stretch;
  }

  .plan-card {
    width: 88%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 30px;
    border-radius: 20px;
  }

  .featured {
    transform: none;
  }

  .featured:hover {
    transform: translateY(-5px);
  }

  .plan-badge {
    top: -15px;

    padding: 7px 18px;

    font-size: 0.8rem;
  }

  .plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 18px;
  }

  .plan-price strong {
    font-size: 2.5rem;
  }

  .plan-card li {
    gap: 12px;
    padding: 8px 0;
  }

  .btn-plan {
    margin-top: 24px;
    padding: 14px;
    background: var(--primary);
    color: #ffffff;

    border: 2px solid var(--primary);
  }

  /* ================================
     BENEFICIOS - MOBILE
  ================================ */

  .benefits {
    padding: 0 0 70px;
  }

  .benefits .container {
    width: 90%;
    max-width: none;
    padding: 0 25px;
    box-sizing: border-box;
  }

  .benefits-grid {
    grid-template-columns: 1fr;

    width: 100%;
    box-sizing: border-box;

    gap: 20px;

    padding: 24px;
    border-radius: 20px;
  }

  .benefit-item {
    gap: 12px;
  }

  /* ================================
   FAQ - MOBILE
================================ */

  .faq {
    padding: 25px 0 30px;
  }

  .faq .container {
    padding: 0 5px;
    box-sizing: border-box;
  }

  .faq-list {
    width: 100%;
    max-width: none;
    margin: 25px auto 0;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.9rem;
  }

  .faq-question i {
    width: 34px;
    height: 34px;
    font-size: 0.5rem;
  }

  .faq-answer p {
    padding: 0 20px 20px;
    line-height: 1.6;
    font-size: 0.7rem;
  }
}

@media (min-width: 769px) and (max-width: 849px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans-grid > :last-child {
    grid-column: 1 / -1;
    width: calc((100% - 32px) / 2);
    justify-self: center;
  }
}
