/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #151515;

  /* Textura de ruido/piedra visible */
  --texture-stone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23a)' opacity='0.15'/%3E%3C/svg%3E");
  --accent-gold: #bc944b;
  --accent-gold-hover: #d2a95e;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --text-muted2: rgb(214, 212, 212) 0;

  /* Fondos Especiales */
  --header-bg: #000000;
  --header-glow: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(251, 191, 36, 0.25),
    transparent 70%
  );
  --contact-bg: #020617;
  --contact-glow: radial-gradient(
    circle 500px at 50% 100px,
    rgba(251, 191, 36, 0.4),
    transparent
  );

  --font-heading: "Oswald", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.5);

  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

/* Títulos */
h1,
h2,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  color: var(--accent-gold);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 2px;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  box-shadow: 0 0 15px rgba(188, 148, 75, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-secondary:hover {
  background-color: rgba(188, 148, 75, 0.1);
}

/* =========================================
   HEADER STICKY
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent; /* Movemos el color al pseudo-elemento */
  backdrop-filter: blur(5px);
  z-index: 1000;
  border-bottom: 1px solid rgba(188, 148, 75, 0.2);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Aquí aplicamos el color de fondo y el resplandor */
  background: var(--header-glow), var(--header-bg);
  z-index: -1;
  pointer-events: none;
}

.header-container {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
  padding: 10px 10px;
}

.logo {
  font-size: 1.8rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  max-width: 20%;
  max-height: 65px;
}

h1.logo{
    font-size:5px;
	color: #000;
	letter-spacing: 0.1px;
}

.nav {
  display: flex;
  gap: 2rem;
  max-width: 80%;
}

.nav a {
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--accent-gold);
}

.nav a:hover::after {
  width: 100%;
}

/* =========================================
   HERO / SLIDER (40vh)
========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 50vh; /* Mayor altura para destacar imagenes y acomodar el texto */
  min-height: 400px;
  margin-top: 70px; /* Compensa header */
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: flex-end; /* Mueve el panel al lateral derecho (desktop) */
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1; /* Removido oscurecimiento */
}

/* Quitamos el gradiente global para dar visibilidad total a la galeria al costado */
.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 45%; /* Panel tipo sidebar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 2rem 0 3rem;
  /* Gradiente fundido hacia el negro que no tapa el 60% derecho de la imagen */
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.85) 30%,
    var(--bg-dark) 100%
  );
}

.hero-content h2 {
  font-size: 3rem;
  color: var(--text-main);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero-content h3 {
  font-size: 1.2rem;
  color: var(--text-muted2);
  margin-bottom: 25px;
  text-transform: capitalize;
  font-weight: 300;
}

/* =========================================
   NOSOTROS
========================================= */
.about {
  background-color: var(--bg-card);
  background-image: var(--texture-stone);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 20px 0;
}

/* Marca de agua sutil del Logo en Nosotros */
.about::after {
  content: "";
  position: absolute;
  top: 2%;
  left: 2%;
  right: 2%;
  bottom: 2%;
  background: url("../img/logo-Style-Barber-completo-white.png") center/contain no-repeat;
  opacity: 0.05;
  z-index: -1; 
  pointer-events: none;
}

.about p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  color: var(--text-muted);
}

.about strong {
  color: var(--accent-gold);
}

/* =========================================
   SERVICIOS
========================================= */
.services {
  background-color: var(--bg-dark);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  background-color: var(--bg-card);
  width: calc(33.333% - 20px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-deep);
  border-color: rgba(188, 148, 75, 0.3);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(20%) contrast(110%);
  transition: var(--transition);
}

.service-card:hover img {
  filter: grayscale(0%) contrast(110%);
}

.service-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.service-info h3 {
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-align: center;
}

.service-info p.desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 5px;
  line-height: 1.4;
}

.service-info .price {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 10px;
}

.service-actions {
  padding: 0 20px 25px 20px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-direction: row;
}

.service-actions .btn {
  width: 50%;
  padding: 12px 5px;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   EQUIPO / STAFF
========================================= */
.team {
  position: relative;
  /* Fondo Parallax. Usa la URL de tu carpeta de imágenes cuando la subas */
  background-image: url("../img/bg-portada.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* El truco para el efecto Parallax */
  padding: 6rem 0;
}

/* Capa oscura superpuesta a la foto para que resalten las cards */
.team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 10, 0.85); /* 85% de opacidad del dark mode */
  z-index: 1;
}

.team .container {
  position: relative;
  z-index: 2; /* Sube todos los textos y cards por encima de la capa oscura */
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.team-member {
  background-color: var(--bg-card);
  width: calc(25% - 23px);
  max-width: 250px;
  border-radius: 8px;
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-deep);
  border-color: rgba(188, 148, 75, 0.3);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--accent-gold);
  filter: grayscale(30%);
  transition: var(--transition);
}

.team-member:hover img {
  filter: grayscale(0%);
  box-shadow: 0 5px 15px rgba(188, 148, 75, 0.4);
}

.team-member h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.team-member .role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.team-member .rating {
  background-color: rgba(188, 148, 75, 0.1);
  color: var(--accent-gold);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

/* =========================================
   VISÍTANOS / MAPA
========================================= */
.visit-us {
  /* Franja que diferencia la sección */
  background-color: #111111;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.visit-wrapper {
  position: relative;
  display: flex;
  align-items: center; /* Centrar verticalmente los solapados */
  width: 100%;
  margin: 0 auto;
}

.visit-info {
  background-color: rgba(
    21,
    21,
    21,
    0.85
  ); /* rgba basado en --bg-card con opacidad */
  backdrop-filter: blur(5px); /* Efecto cristal para resaltar el mapa detrás */
  padding: 3rem;
  width: 40%;
  position: relative;
  z-index: 10;
  font-style: normal; /* Sobrescribir default de address */
  box-shadow: 20px 0 30px rgba(0, 0, 0, 0.6); /* Sombra hacia la derecha sobre el mapa */
  border: 1px solid rgba(188, 148, 75, 0.2);
  border-radius: 8px;
  /* Cambia el orden en flex a la derecha */
  order: 2;
  margin-left: -5%; /* Overlap hacia la izquierda tapando el mapa */
  box-shadow: -20px 0 30px rgba(0, 0, 0, 0.6); /* Sombra hacia la izquierda */
}

.visit-info h3 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.visit-info .rating {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
}

.visit-info .rating span {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.visit-info .info-block {
  margin-bottom: 1.5rem;
}

.visit-info .info-block h4 {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.visit-info .info-block p {
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.visit-map {
  width: 65%; /* 60% + el solapamiento */
  margin-left: 0;
  height: 450px;
  position: relative;
  z-index: 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  order: 1; /* El mapa va primero (izquierda) */
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(85%); /* Google maps dark mode CSS trick */
}

/* =========================================
   CONTACTO & RESPONSE
========================================= */
.contact {
  background-color: transparent;
  position: relative;
  padding: 4rem 0;
  z-index: 1; /* Crear contexto de apilamiento */
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--contact-bg);
  background-image: var(--contact-glow);
  z-index: -1;
  pointer-events: none;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-dark);
  border: 1px solid rgba(188, 148, 75, 0.3);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(188, 148, 75, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Response Page */
.msg-container {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 2rem; /* Compensar header */
}

.msg-container h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.msg-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.msg-container .error {
  color: #e74c3c;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background-color: #050505;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(188, 148, 75, 0.2);
}

.footer h3 {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================
   BOTONERA LATERAL (REEMPLAZA WHATSAPP)
========================================= */
.floating-sidebar {
  position: fixed;
  bottom: 30vh;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.sidebar-btn {
  width: 60px;
  height: 60px;
  background-color: rgba(188, 148, 75, 0.8); /* Dorado al 80% transparecia */
  backdrop-filter: blur(5px);
  color: #000; /* Botones negros adentro */
  border: 2px solid var(--accent-gold); /* Borde dorado */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  text-decoration: none;
  font-size: 35px;
}

.sidebar-whatsapp{
	font-size: 40px;
}

.sidebar-btn:hover {
  transform: scale(1.1);
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
  .service-card {
    width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {

  /* Modificamos el contenedor del header para dejar espacio abajo del logo */
  .header-container {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 15px 0;
  }

  .logo {
    text-align: center;
    margin-bottom: 10px;
    max-width: 40%;
    max-height: 50px;
  }

  .floating-sidebar {
    position: fixed;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    flex-direction: row;
    gap: 15px;
    background-color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(188, 148, 75, 0.3);
  }

  .sidebar-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
    max-width: 100%;
  }

  .nav a {
    font-size: 0.9rem; /* Achicamos un poquito la fuente para que entren mejor */
  }


  .hero {
    align-items: flex-end; /* En mobile ajustamos contenido a la base */
  }

  .hero-content {
    width: 100%;
    height: auto;
    padding: 4rem 1.5rem 2rem;
    align-items: center;
    text-align: center;
    background: linear-gradient(
      to top,
      var(--bg-dark) 50%,
      rgba(10, 10, 10, 0.8) 80%,
      rgba(10, 10, 10, 0) 100%
    );
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .service-card {
    width: 100%;
    max-width: 450px;
  }

  .team-member {
    width: calc(50% - 15px);
  }

  /* Responsive Visítanos */
  .visit-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .visit-info {
    width: 100%;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Sombra hacia abajo para solapar sobre el mapa en móviles */
    z-index: 10;
    order: 1; /* Retornamos al flujo visual */
    margin-left: 0;
  }

  /* Usamos Flexbox para distribuir columnas de info */
  .info-blocks-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .info-blocks-group .info-block {
    width: 48%; /* Aprox 50% para Dirección y Horarios */
    margin-bottom: 0;
  }

  .contact-block {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .visit-map {
    width: 100%;
    margin-left: 0;
    margin-top: -30px; /* Superposición vertical */
    height: 350px;
    z-index: 5;
    order: 2; /* Pasa abajo */
  }

  .sidebar-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}
