/* ===== CUSTOM RESPONSIVE STYLES ===== */
/* Este archivo sobrescribe los estilos para mejorar la responsividad */

/* ===== SMALL MOBILE (320px - 480px) ===== */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }

  header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: auto;
    min-height: 60px;
  }

  body {
    padding-top: 0;
  }

  main {
    padding-top: 0;
  }

  .header-container {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    flex-direction: column;
  }

  .logo {
    font-size: 1.2rem;
    min-width: 150px;
  }

  .logo img {
    height: 40px;
  }

  nav {
    display: none !important;
  }

  nav ul {
    gap: 0.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  nav a {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .hero {
    padding: 2rem 1rem;
    min-height: 250px;
    margin-top: 0;
  }

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

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

  main {
    padding: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 1.5rem 0;
  }

  .services-grid,
  .blog-grid,
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card,
  .blog-card,
  .location-card {
    padding: 1rem;
  }

  .blog-card-image {
    height: 150px;
  }

  .testimonial {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }

  footer {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-section h3 {
    font-size: 0.9rem;
  }

  .footer-section ul li {
    font-size: 0.8rem;
  }
}

/* ===== TABLET RESPONSIVE (481px - 1024px) ===== */
@media (min-width: 481px) and (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  main {
    padding-top: 1rem;
  }

  .header-container {
    padding: 1rem 1.5rem;
    flex-wrap: nowrap;
  }

  nav {
    display: flex !important;
    width: auto;
  }

  nav ul {
    gap: 1rem;
    justify-content: flex-end;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
  }

  .hero {
    padding: 3rem 1.5rem;
    min-height: 350px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  main {
    padding: 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .services-grid,
  .blog-grid,
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .service-card,
  .blog-card,
  .location-card {
    padding: 1.5rem;
  }

  .blog-card-image {
    height: 200px;
  }

  .testimonial {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ===== DESKTOP RESPONSIVE (1025px+) ===== */
@media (min-width: 1025px) {
  html {
    font-size: 16px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }

  .header-container {
    padding: 1rem 2rem;
  }

  nav ul {
    gap: 2rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .hero {
    padding: 6rem 2rem;
    min-height: 500px;
  }

  .hero h1 {
    font-size: 3rem;
  }

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

  main {
    padding: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .services-grid,
  .blog-grid,
  .locations-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .service-card,
  .blog-card,
  .location-card {
    padding: 2rem;
  }

  .blog-card-image {
    height: 250px;
  }

  .testimonial {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  footer {
    padding: 3rem 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
}

/* ===== MEJORAS GENERALES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  overflow-x: hidden;
}

/* Submenu mejorado */
nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 101;
}

nav li:hover > ul {
  display: flex;
}

nav ul ul li {
  width: 100%;
}

nav ul ul a {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: none;
}

/* ===== BLOG TITLE BORDER STYLES ===== */
.blog-title-border {
  border: 2px solid #7BC13B !important;
  padding: 0.75rem 1rem !important;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 480px) {
  .blog-title-border {
    border: 1.5px solid #7BC13B !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem !important;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 1024px) {
  .blog-title-border {
    border: 2px solid #7BC13B !important;
    padding: 0.75rem 1rem !important;
    font-size: 1.1rem !important;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .blog-title-border {
    border: 2px solid #7BC13B !important;
    padding: 1rem 1.25rem !important;
    font-size: 1.3rem !important;
  }
}
