/**
 * Página: Servicios
 * Metodología: BEM (Block Element Modifier)
 * 
 * Block: servicios-page
 * Elements: __hero, __hero-image, __header, __title, __description, __grid
 */

/* Prevenir scroll horizontal */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Block: Página de servicios */
.servicios-page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Element: Hero/Portada */
.servicios-page__hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 60px;
  background-color: #fff;
}

.servicios-page__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Element: Header (título y descripción) */
.servicios-page__header {
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 20px;
  text-align: center;
}

.servicios-page__title {
  color: #1a1a1a;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 30px 0;
}

/* Element: Introducción */
.servicios-page__intro {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #FF6600;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.servicios-page__intro p {
  color: #333;
  font-size: 1.125rem;
  line-height: 1.8;
  margin: 0;
}

/* Element: Grid de servicios */
.servicios-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
  align-items: start;
  box-sizing: border-box;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .servicios-page__header {
    padding: 0 30px;
  }

  .servicios-page__intro {
    padding: 25px;
    margin-bottom: 50px;
  }

  .servicios-page__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 30px 60px 30px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .servicios-page__hero {
    margin-bottom: 40px;
  }

  .servicios-page__header {
    margin-bottom: 40px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .servicios-page__title {
    margin-bottom: 25px;
  }

  .servicios-page__intro {
    padding: 20px;
    margin-bottom: 40px;
  }

  .servicios-page__intro p {
    font-size: 1rem;
  }

  .servicios-page__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px 50px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
