/*
  ========================================
  == REGION 4: Sección 2 - Cómo Funciona (Mapa y Servicios)
  == Aplica a la sección con id="section2"
  ========================================
*/

:root {
  --sec-2-bg-1: #141414;
  --sec-2-bg-2: #080808;
  --sec-2-gold: #d4af37;
  --sec-2-muted: #b0b0b0;
  --sec-2-sub: #b0b0b0;
}

.custom-map {
  height: 20rem;
}

/* Estilos base de la sección y su fondo decorativo */
.sec-2-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  color: #fff;
  background: radial-gradient(circle at top left, #5e4b15 0%, #000000 60%);
  overflow: hidden;
  padding: 56px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.sec-2-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(225, 183, 78, 0.04) 1px, transparent 1px),
    linear-gradient(30deg, rgba(225, 183, 78, 0.03) 1px, transparent 1px);
  background-size: 300px 300px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.sec-2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Header: Título y subtítulo */
.sec-2-header {
  padding-bottom: 18px;
}

.sec-2-title {
  margin: 0 0 3rem 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #fff;
  font-size: 5rem;
  line-height: 1.2;
}

.sec-2-title .sec-2-highlight {
  display: block;
  color: var(--sec-2-gold);
  display: block;
  color: var(--sec-2-gold);
  font-weight: 400;
}

.sec-2-subtitle {
  color: var(--sec-2-sub);
  font-size: 16px;
  margin: 6px 0 0 0;
}

/* Layout para Escritorio: Mapa a la izquierda, servicios a la derecha */
.sec-2-row {
  display: flex;
  gap: 30px;
  align-items: center;
}

.sec-2-left {
  flex: 1 1 65%;
  min-width: 320px;
}

.sec-2-right {
  flex: 0 0 35%;
  min-width: 300px;
  margin-top: 15rem;
  margin-bottom: 4rem;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.sec-2-map {
  width: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  border: 6px solid rgba(0, 0, 0, 0.25);
  height: 100%;
}

.sec-2-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tarjeta de perfil del estilista */
.sec-2-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.sec-2-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 56px;
  border: 3px solid rgba(225, 183, 78, 0.9);
}

.sec-2-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sec-2-profile-info {
  flex: 1;
}

.sec-2-profile-name {
  font-weight: 700;
  color: #fff;
  margin: 0;
  font-size: 16px;
}

.sec-2-profile-sub {
  font-size: 13px;
  color: var(--sec-2-muted);
  margin: 2px 0 0;
}

.sec-2-profile-rating {
  color: var(--sec-2-gold);
  font-weight: 700;
  margin-left: 8px;
  flex: 0 0 auto;
}

/* Lista de servicios */
.sec-2-services {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
}

.sec-2-services::-webkit-scrollbar {
  width: 6px;
}

.sec-2-services::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.sec-2-services::-webkit-scrollbar-thumb {
  background: rgba(225, 183, 78, 0.5);
  border-radius: 3px;
}

.sec-2-service {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  border: 2px solid rgba(225, 183, 78, 0.08);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: visible;
}

.sec-2-thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid rgba(225, 183, 78, 0.95);
}

.sec-2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sec-2-service-text {
  flex: 1;
  color: var(--sec-2-muted);
  font-size: 13px;
}

.sec-2-service-text .sec-2-service-title {
  color: #fff;
  font-weight: 700;
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.sec-2-service-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.sec-2-stars {
  color: var(--sec-2-gold);
  margin-top: 8px;
  font-size: 12px;
}

.sec-2-add {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  margin-left: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(225, 183, 78, 0.08) inset;
}

.sec-2-add svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Layout para Móviles */
.sec-2-mobile {
  display: none;
}

@media (max-width: 991.98px) {
  .sec-2-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sec-2-title {
    font-size: 2.8rem;
    text-align: center;
  }

  .sec-2-title .sec-2-highlight {
    color: var(--sec-2-gold);
    display: inline;
  }

  .sec-2-subtitle {
    text-align: center;
    font-size: 14px;
  }

  .sec-2-row {
    display: none;
  }

  .sec-2-mobile {
    display: block;
  }

  .sec-2-mobile-map {
    width: 100%;
    margin: 14px 0;
  }

  .sec-2-mobile-map img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border: 4px solid rgba(0, 0, 0, 0.25);
  }

  .sec-2-mobile-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .sec-2-mobile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(225, 183, 78, 0.9);
  }

  .sec-2-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .sec-2-mobile-name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
  }

  .sec-2-mobile-sub {
    font-size: 13px;
    color: var(--sec-2-muted);
  }

  .sec-2-service {
    align-items: flex-start;
    padding: 10px;
    border-radius: 12px;
  }

  .sec-2-thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 10px;
  }

  .sec-2-add {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .sec-2-services-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 20px;
    max-height: 50vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .sec-2-services-mobile::-webkit-scrollbar {
    width: 6px;
  }

  .sec-2-services-mobile::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }

  .sec-2-services-mobile::-webkit-scrollbar-thumb {
    background: rgba(225, 183, 78, 0.5);
    border-radius: 3px;
  }
}

@media (max-width: 480px) {
  .sec-2-title {
    font-size: 2.8rem;
  }

  .sec-2-thumb {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
  }

  .sec-2-add {
    width: 42px;
    height: 42px;
  }
}