/* ================= RESPONSIVE MOBILE - VERSIÓN FINAL ================= */

/* Tablets (hasta 1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 25px;
    height: 75px;
  }

  .nav-logo img {
    height: 65px;
    width: 65px;
  }

  .nav-links a {
    margin: 0 10px;
    font-size: 12px;
  }

  .hero {
    padding: 40px 30px;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    min-height: auto;
  }

  .hero-big-title {
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-big-title h2 {
    font-size: 40px;
  }

  .hero-impact {
    max-width: 100%;
  }

  .container {
    padding: 0 30px;
  }
}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {
  
  /* ========== FIX 1: NAVBAR - Menú hamburguesa simple ========== */
  .navbar {
    height: 70px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    flex-shrink: 0;
  }

  .nav-logo img {
    height: 50px;
    width: 50px;
  }

  /* OCULTAR completamente los links del menú en mobile */
  .nav-links {
    display: none !important;
  }

  /* Hacer el botón "Contactanos" más visible y completo */
  .nav-cta {
    padding: 10px 16px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ========== FIX 2: HERO - Separar SOLIS 311 del texto ========== */
  .hero {
    margin-top: 70px;
    min-height: auto;
    padding: 60px 20px 70px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 50px; /* MÁS ESPACIO entre título y descripción */
  }

  /* El título grande "SOLIS 311" */
  .hero-big-title {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 30px;
  }

  .hero-big-title h2 {
    font-size: 38px;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }

  .hero-big-title .subtitle {
    font-size: 16px;
    letter-spacing: 3px;
    margin-top: 12px;
    display: block;
  }

  .hero-big-title::after {
    width: 80px;
    margin: 25px auto 0;
  }

  /* El cartel de "Cerrajería automotor" */
  .hero-impact {
    width: 100%;
    max-width: 100%;
    padding: 40px 25px 45px;
    margin: 0 auto;
  }

  .hero-impact h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .hero-impact p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin-top: 35px;
  }

  .hero-buttons a {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    height: auto;
    min-height: 54px;
    font-size: 14px;
  }

  /* CONTENEDOR GENERAL */
  .container {
    margin: 70px auto;
    padding: 0 20px;
  }

  /* SERVICIOS MOBILE */
  #servicios {
    padding: 70px 0;
  }

  .services {
    padding: 50px 20px;
    margin-top: 50px;
  }

  #servicios h1 {
    font-size: 2.1rem;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  #servicios .services-intro {
    font-size: 1.05rem;
    padding: 0 20px;
    margin-bottom: 45px;
    line-height: 1.9;
  }

  .servicios-container {
    gap: 40px;
  }

  .servicio-card {
    min-height: 320px;
    margin-bottom: 20px;
  }

  .servicio-body {
    padding: 30px 25px;
  }

  .servicio-titulo {
    font-size: 26px;
    margin-bottom: 18px;
    line-height: 1.3;
  }

  .servicio-descripcion {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
  }

  .servicio-cta {
    padding: 12px 24px;
    font-size: 13px;
    margin-top: 10px;
  }

  /* ========== FIX 3: NOSOTROS - Más espacio y aire ========== */
  .about {
    padding: 80px 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 60px; /* MÁS ESPACIO entre secciones */
  }

  /* Texto de "Sobre Nosotros" */
  .about-text {
    padding: 0 10px;
  }

  .about-text h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.3;
  }

  .about-text p {
    font-size: 16px;
    line-height: 2; /* MÁS ESPACIO entre líneas */
    margin-bottom: 25px; /* MÁS ESPACIO entre párrafos */
    padding: 0 5px;
    text-align: justify;
  }

  /* Estadísticas */
  .about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
    padding: 0 10px;
  }

  .stat-box {
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 0;
  }

  .stat-box span {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
  }

  .stat-box p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* CARRUSEL MOBILE */
  .carousel-container {
    max-width: 100%;
    margin: 60px auto 30px;
    padding: 0 10px;
  }

  .photo-box {
    width: 160px;
    height: 160px;
    margin-right: 12px;
  }

  .carousel-btn {
    padding: 10px;
    font-size: 22px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }

  /* CONTACTO MOBILE */
  .contact-section {
    padding: 80px 20px;
  }

  .contact-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .contact-intro {
    font-size: 1.05rem;
    padding: 0 15px;
    margin-bottom: 55px;
    line-height: 1.9;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 55px;
  }

  .contact-card {
    margin: 0;
    padding: 30px 25px;
  }

  .contact-card h3 {
    font-size: 1.35rem;
    margin-bottom: 25px;
  }

  .contact-link,
  .contact-text {
    font-size: 0.98rem;
    margin-bottom: 18px;
    line-height: 1.7;
  }

  .contact-link {
    padding: 10px 15px;
    display: inline-block;
  }

  .map-container {
    height: 350px;
    margin-top: 25px;
  }

  /* FOOTER */
  footer {
    padding: 28px 20px;
    font-size: 14px;
  }

  /* BOTONES FLOTANTES MOBILE */
  .floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }

  .floating-btn {
    width: 56px;
    height: 56px;
  }

  .floating-btn img {
    width: 24px;
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  
  /* NAVBAR */
  .navbar {
    height: 65px;
    padding: 0 12px;
  }

  .nav-logo img {
    height: 45px;
    width: 45px;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 11px;
  }

  /* HERO */
  .hero {
    padding: 50px 15px 60px;
    gap: 45px;
  }

  .hero-big-title h2 {
    font-size: 32px;
  }

  .hero-big-title .subtitle {
    font-size: 14px;
  }

  .hero-impact {
    padding: 35px 20px 40px;
  }

  .hero-impact h1 {
    font-size: 1.5rem;
  }

  .hero-impact p {
    font-size: 1rem;
  }

  .hero-buttons a {
    padding: 15px 20px;
    font-size: 13px;
  }

  /* SERVICIOS */
  #servicios h1 {
    font-size: 1.85rem;
  }

  .services {
    padding: 40px 15px;
  }

  .servicio-card {
    min-height: 300px;
  }

  .servicio-body {
    padding: 25px 20px;
  }

  .servicio-titulo {
    font-size: 23px;
  }

  .servicio-descripcion {
    font-size: 14px;
  }

  /* NOSOTROS */
  .about {
    padding: 70px 15px;
  }

  .about-text h2 {
    font-size: 1.9rem;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 22px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stat-box {
    padding: 25px 20px;
  }

  .stat-box span {
    font-size: 32px;
  }

  /* CARRUSEL */
  .photo-box {
    width: 140px;
    height: 140px;
  }

  /* CONTACTO */
  .contact-section {
    padding: 70px 15px;
  }

  .contact-content h2 {
    font-size: 1.9rem;
  }

  .contact-card {
    padding: 25px 20px;
  }

  .map-container {
    height: 300px;
  }

  /* FLOTANTES */
  .floating-btn {
    width: 52px;
    height: 52px;
  }

  .floating-btn img {
    width: 22px;
  }
}

/* Fix críticos para evitar problemas */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
}

/* Evitar que los elementos se salgan de la pantalla */
.navbar,
.hero,
.container,
.services,
.about,
.contact-section,
footer {
  max-width: 100%;
  overflow-x: hidden;
}

/* Mejor legibilidad en móvil */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  h1 { 
    font-size: 2.1rem;
    line-height: 1.3;
  }
  
  h2 { 
    font-size: 1.9rem;
    line-height: 1.3;
  }
  
  h3 { 
    font-size: 1.35rem;
    line-height: 1.4;
  }
  
  p {
    line-height: 1.8;
    margin-bottom: 18px;
  }

  /* Asegurar que los botones se vean bien */
  .btn-primary,
  .btn-secondary,
  .btn-wp,
  .servicio-cta {
    font-size: 14px !important;
    padding: 14px 24px !important;
    line-height: 1.5 !important;
  }
}

/* Fix específico para el botón de WhatsApp del hero */
@media (max-width: 768px) {
  .hero-buttons .btn-primary img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}


/* ========================================================= */
/* AGREGA ESTO AL FINAL DE TU ARCHIVO responsive.css */
/* ========================================================= */

/* ========== MENÚ HAMBURGUESA - DESKTOP (oculto) ========== */
/* ========== MENÚ HAMBURGUESA MOBILE ========== */
.hamburger {
  display: none; /* oculto por defecto en desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animación cuando está abierto */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== MENÚ MOBILE LATERAL ========== */
.mobile-menu {
  position: fixed;
  top: 70px; /* ajusta según la altura de tu navbar en mobile */
  right: -100%;
  width: 280px;
  height: calc(100vh - 70px);
  background: #1a1a1a;
  padding: 40px 25px;
  transition: right 0.3s ease;
  z-index: 999;
  box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  font-weight: 500;
}

.mobile-menu a:hover {
  color: #ffd700;
  padding-left: 15px;
}

.mobile-menu .btn-wp-mobile {
  background: #25d366;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  margin-top: 30px;
  padding: 15px 20px;
  border: none;
  font-weight: 600;
  display: block;
}

.mobile-menu .btn-wp-mobile:hover {
  background: #20ba5a;
  padding-left: 20px;
}

/* Overlay oscuro */
.menu-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mostrar hamburguesa solo en mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: block; /* asegurar que el CTA se vea */
  }

  /* Ajustar menú y overlay según navbar */
  .mobile-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  .menu-overlay {
    top: 70px;
    height: calc(100vh - 70px);
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    top: 65px;
    height: calc(100vh - 65px);
    width: 260px;
  }
  .menu-overlay {
    top: 65px;
    height: calc(100vh - 65px);
  }
  .hamburger span {
    width: 25px;
  }
}
