/* mobil.css - Media queries para móvil (320px — 768px) */

@media (max-width: 768px) {
  /* Estilos comunes para tablet y móvil */
  
  /* ============================================
     NAVBAR MÓVIL REDISEÑADO - MÁS FORMAL
     ============================================ */
  
  /* Ocultar slogan en móvil */
  .logo-slogan {
    display: none;
  }

  .logo-image img {
    max-height: 40px;
  }

  body, html {
    overflow-x: hidden;
  }

  /* Botón hamburguesa */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--green-primary), var(--blue-primary));
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Panel del menú */
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(165deg, var(--white-pure) 0%, var(--white-soft) 100%);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 24px 40px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1000;
    border-left: 1px solid rgba(27, 143, 108, 0.15);
  }

  .navbar.active {
    right: 0;
  }

  /* Lista de enlaces */
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-item {
    margin: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
  }

  .nav-link:hover {
    background: rgba(27, 143, 108, 0.08);
    color: var(--green-primary);
    transform: translateX(4px);
  }

  /* Línea decorativa sutil al hover (removida) */
  .nav-link::after {
    display: none;
  }

  /* Botón de contacto en móvil */
  .btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    color: var(--white-pure) !important;
    padding: 14px 20px;
    margin-top: 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(27, 143, 108, 0.25);
    transition: all 0.3s ease;
  }

  .btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 143, 108, 0.35);
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
  }

  /* Overlay (fondo oscuro al abrir menú) */
  .navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .navbar-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Hero Section */
  .hero {
    padding: 90px 0 0px;
    margin-top: 0;
  }
  
  .hero .container {
    flex-direction: column-reverse;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    overflow-x: hidden;
    text-align: center;
    margin-bottom: 30px;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 14px;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    box-sizing: border-box;
  }
  
  .hero-image {
    width: 85%;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .hero-image img {
    width: 100%;
    display: block;
    transform: none !important;
  }

  .hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, rgb(236, 239, 241) 0%, rgba(255,255,255, 0) 100%);
    pointer-events: none;
    border-radius: 0 0 8px 8px;
  }

  /* Elimina hover en móvil */
  .hero-image:hover img {
    transform: none !important;
  }

  .hero h1 {
    padding: 20px 0 0px;
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
    max-width: 100%;
    margin: 0 auto 20px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
  }

  
  /* Services Section - Versión compacta con botones */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 15px auto;
    max-width: 500px;
  }

  .service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: height 0.2s ease-out;
    height: auto;
    max-height: 1000px;
  }

  .service-card:not(.expanded) {
    max-height: auto;
    margin: 15px auto !important;
  }

  .service-card.expanded {
    max-height: 1500px;
  }

  .service-icon {
    padding: 15px 0 10px !important;
  }

  .service-icon img {
    width: 150px;
    height: 150px;
  }

  .service-card h3 {
    margin: 5px 0 8px !important;
    padding: 0 15px !important;
    font-size: 1.2rem;
  }

  .service-card p {
    margin-bottom: 10px !important;
    padding: 0 15px !important;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .service-features {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: 
      opacity 0.3s ease 0.1s,
      max-height 0.4s ease-out;
    padding: 0 15px;
  }

  .service-card.expanded .service-features {
    opacity: 1;
    max-height: 1000px;
    padding: 0 15px 15px;
  }

  .service-features.active {
    max-height: 1000px;
    opacity: 1;
    padding: 0 15px 10px !important;
    visibility: visible;
  }

  .service-card ul {
    padding: 0;
  }

  .service-card ul li {
    margin-bottom: 6px;
    font-size: 0.85rem;
    padding-left: 20px;
  }

  .service-card ul li:before {
    width: 8px;
    height: 8px;
    top: 6px;
  }

  /* Estilo para los botones de características */
  .features-toggle {
    display: block;
    width: calc(100% - 30px);
    margin: 10px 15px;
    padding: 10px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .features-toggle:hover {
    background: var(--dark-blue);
  }

  .features-toggle::after {
    content: '▼';
    margin-left: 6px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
  }

  .features-toggle.active::after {
    transform: rotate(180deg);
  }

  /* ============================================
     SECCIÓN ¿POR QUÉ ELEGIRNOS? (TRUST SECTION)
     ============================================ */

  .trust-section {
    padding: 40px 0;
  }
  
  .trust-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .trust-list li {
    padding: 18px 18px 18px 60px;
  }
  
  .trust-list li:before {
    left: 18px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  /* Projects Section */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  .swiper {
    cursor: grab;
  }

  .swiper:active {
    cursor: grabbing;
  }

  .swiper-slide {
    width: 100% !important;
  }

  /* Contact Section */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .map-container {
    order: -1;
  }
  
  .form-group label {
    white-space: normal;
  }

  .seo-content p,
  .faq-section p {
    text-align: left;
  }
  
  .reviews-cta {
    flex-direction: column;
    text-align: center;
  }
  
  .reviews-content h4 {
    text-align: center;
  }
  
  .rating {
    justify-content: center;
  }

  /* WhatsApp Button */
  .whatsapp-float span {
    display: none;
  }
}

/* Ajustes específicos solo para móvil (320px-480px) */
@media (max-width: 480px) {
  /* Navbar */
  .header .container {
    padding: 12px 15px;
  }
  
  .logo-text {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .mobile-menu-btn {
    width: 25px;
    height: 18px;
  }

  .mobile-menu-btn span {
    height: 2px;
  }

  .navbar {
    width: 260px;
    padding: 90px 20px 30px;
  }
  
  .nav-link {
    padding: 12px 14px;
    font-size: 1rem;
  }
  
  .btn-nav {
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero {
    padding: 80px 0 0px;
  }

  .hero-image {
    width: 75%;
    max-width: 300px;
  }

  .hero h1 {
    padding: 20px 0 0px;
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-primary, 
  .btn-secondary {
    padding: 10px;
    font-size: 0.9rem;
  }

  /* Services */
  .services-grid {
    gap: 3px !important;
  }

  .features-toggle {
    padding: 8px !important;
    font-size: 0.85rem;
    margin: 5px 8px 3px !important;
  }

  /* Process */
  .process {
    padding: 50px 0;
  }

  .step-number-horizontal {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .step-content-horizontal {
    padding: 15px;
  }

  .step-content-horizontal h3 {
    font-size: 1.1rem;
  }

  /* ============================================
     SECCIÓN ¿POR QUÉ ELEGIRNOS? (TRUST SECTION)
     ============================================ */

  .trust-section .container {
    width: 92%;
  }
  
  .trust-list li {
    padding: 15px 15px 15px 55px;
  }
  
  .trust-list li:before {
    left: 15px;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  /* Projects */
  .projects {
    padding: 50px 0;
  }

  .projects-swiper {
    width: 100%;
    overflow: hidden;
  }

  .project-slide {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }

  .project-slide img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
  }

  .project-info {
    padding: 10px 5px;
    width: 100%;
    box-sizing: border-box;
  }

  .project-info h3 {
    font-size: 1.2rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }

  .project-info ul {
    padding-left: 18px;
  }

  .project-info li {
    font-size: 0.85rem;
  }

  /* Contact */
  .contact {
    padding: 50px 0;
  }

  .contact-form {
    padding: 15px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    width: 93.5%;
    padding: 10px;
    font-size: 0.9rem;
  }

  .info-item {
    flex-direction: column;
  }

  .info-item svg {
    margin-bottom: 5px;
  }

  .reviews-cta {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .seo-content .container,
  .faq-section .container {
    width: 92%;
  }
  
  .faq-section h3 {
    padding-left: 10px;
  }
  
  .faq-section p {
    padding-left: 14px;
  }

  /* WhatsApp Button */
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
  }

  .whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .whatsapp-float svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
}