/* Variables de color */
:root {
  --black: #121212; /* Fondo principal oscuro */
  --dark-black: #0a0a0a; /* Para elementos más oscuros */
  --brown: #D4AF37; /* Marrón principal */
  --light-brown: #FFD700; /* Marrón claro para acentos */
  --cream: #F5E8D0; /* Color claro para texto */
  --gray: #777777; /* Gris para texto secundario */
  --light-gray: #2a2a2a; /* Gris oscuro para fondos secundarios */
}

/* Estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--cream);
  line-height: 1.6;
  background-color: var(--black);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--cream);
}

p {
  color: var(--gray);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn--primary {
  background-color: var(--brown);
  color: var(--cream);
}

.btn--primary:hover {
  background-color: var(--light-brown);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn--outline {
  background-color: transparent;
  color: var(--brown);
  border-color: var(--brown);
}

.btn--outline:hover {
  background-color: var(--brown);
  color: var(--cream);
}

.btn--block {
  display: block;
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(111, 78, 55, 0.2);
}

.header.scrolled {
  padding: 15px 0;
  background-color: rgba(10, 10, 10, 0.95);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

.logo__text {
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 2px;
}

.logo__sub {
  font-size: 0.9rem;
  color: var(--light-brown);
  letter-spacing: 3px;
  margin-top: 5px;
}

/* Menú móvil */
.nav-toggle {
    display: none; /* Oculto en desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 24px;
}

.nav-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--cream);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle__line:nth-child(1) {
    top: 0;
}

.nav-toggle__line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle__line:nth-child(3) {
    bottom: 0;
}

/* Estado activo del menú hamburguesa */
.nav-toggle.active .nav-toggle__line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.nav-toggle.active .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle__line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
}

.nav__item {
  margin-left: 30px;
  position: relative;
}

.nav__link {
  font-weight: 600;
  color: var(--cream);
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--light-brown);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--light-brown);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(to right, var(--black) 50%, rgba(0, 0, 0, 0.7)), 
              url('https://images.unsplash.com/photo-1599351431403-64b3608dcf2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80') no-repeat right center/cover;
  flex-wrap: wrap;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero__content {
  max-width: 500px;
}

.hero__title {
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero__title span {
  color: var(--light-brown);
  font-style: italic;
}

.hero__text {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 15px;
}

.hero__image img {
  width: 200px;           /* ajusta según el tamaño que necesites */
  height: 200px;          /* mismo valor que el width */
  border-radius: 50%;     /* hace la imagen circular */
  object-fit: cover;      /* mantiene el recorte sin deformar la imagen */
  display: block;
  margin: 0 auto;         /* centra si es necesario */
}


/* Secciones comunes */
section {
  padding: 60px 0;

}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title span {
  color: var(--light-brown);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--light-brown);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

/* Servicios */
.services {
  background-color: var(--dark-black);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--black);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(111, 78, 55, 0.2);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--brown);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  background-color: rgba(111, 78, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--light-brown);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-card__icon {
  background-color: rgba(210, 180, 140, 0.2);
  color: var(--cream);
}

.service-card__title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--cream);
}

.service-card__desc {
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card__price {
  display: inline-block;
  padding: 10px 25px;
  background-color: rgba(111, 78, 55, 0.2);
  color: var(--light-brown);
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-card__price {
  background-color: var(--brown);
  color: var(--cream);
}

/* Barberos */
.barbers {

  background-color: var(--black);
}

.barbers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.barber-card {
  background-color: var(--dark-black);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(111, 78, 55, 0.2);
}

.barber-card:hover {
  transform: translateY(-10px);
  border-color: var(--brown);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.barber-card__image {
  height: 350px;
  overflow: hidden;
}

.barber-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.barber-card:hover .barber-card__image img {
  transform: scale(1.1);
}

.barber-card__info {
  padding: 25px;
  text-align: center;
}

.barber-card__info h3 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 1.4rem;
}

.barber-card__info p {
  color: var(--light-brown);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.barber-card__social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.barber-card__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(111, 78, 55, 0.2);
  color: var(--light-brown);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.barber-card__social a:hover {
  background-color: var(--brown);
  color: var(--cream);
  transform: translateY(-3px);
}

/* Galería */
.gallery {
  background-color: var(--dark-black);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.4);
  transition: all 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  background-color: rgba(111, 78, 55, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contacto */
.contact {
  background-color: var(--black);
  padding: 80px 20px;
  text-align: center; /* Centra los títulos y subtítulos */
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact__grid {
  display: flex;
  justify-content: center; /* Centra la tarjeta */
}

.contact__info {
  background-color: var(--dark-black);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid rgba(111, 78, 55, 0.2);
  max-width: 450px;
  width: 100%;
  text-align: left; /* Permite que el texto interno quede alineado correctamente */
}

.contact__info-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  color: var(--cream);
  text-align: center;
}

.contact__info-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--light-brown);
}

/* 🔧 Alineación precisa entre íconos y texto */
.contact__info-item {
  display: flex;
  align-items: center; /* centra ícono y texto verticalmente */
  gap: 15px;
  margin-bottom: 25px;
}

.contact__info-item i {
  font-size: 1.5rem;
  color: var(--light-brown);
  flex-shrink: 0; /* evita que el ícono se deforme o se mueva */
  width: 24px; /* ancho fijo para que todos los íconos queden alineados */
  text-align: center;
}

.contact__info-item h4 {
  color: var(--cream);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact__info-item p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact__info-item div {
  display: flex;
  flex-direction: column;
}

::placeholder {
  color: var(--gray);
  opacity: 1;
}

/* Footer */
.footer {
  background-color: var(--dark-black);
  padding: 80px 0 0;
  border-top: 1px solid rgba(111, 78, 55, 0.2);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer__col {
  margin-bottom: 30px;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  margin-bottom: 25px;
}

.footer__logo span:first-child {
  font-size: 1.6rem;
  color: var(--cream);
  letter-spacing: 2px;
}

.footer__logo span:last-child {
  font-size: 1rem;
  color: var(--light-brown);
  letter-spacing: 3px;
  margin-top: 5px;
}

.footer__text {
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer__title {
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  color: var(--cream);
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--light-brown);
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--gray);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.footer__links a:hover {
  color: var(--light-brown);
  transform: translateX(5px);
}

.footer__social {
  display: flex;
  gap: 15px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(111, 78, 55, 0.2);
  color: var(--light-brown);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer__social a:hover {
  background-color: var(--brown);
  color: var(--cream);
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid rgba(111, 78, 55, 0.2);
  padding-top: 30px;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 2rem;
  line-height: 60px;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2.4rem;
  }
  
  .hero {
    flex-direction: column-reverse; /* coloca la imagen abajo */
    text-align: center; /* centra el texto */
  }

  .hero {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), 
                url('https://images.unsplash.com/photo-1599351431403-64b3608dcf2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=880&q=80') no-repeat center center/cover;
  }
    
  .hero__content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero__grid {
    display: flex;
    flex-direction: column; /* apila verticalmente */
    align-items: center;    /* centra todos los elementos */
    text-align: center;
  }

  .hero__image {
    order: -1;           /* aparece primero */
    width: auto;         /* no ocupa todo el ancho */
    margin: 0 auto 1rem; /* centra el bloque y separa del contenido */
  }

  .hero__image img {
    width: 200px;        /* tamaño de la imagen */
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;      /* centra la imagen */
  }

  .hero__buttons {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  } 
/* Mostrar hamburguesa en móviles */
.nav-toggle {
  display: flex;
  position: fixed;
  top: 50%;
  right: 20px;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  z-index: 1001;
  transform: translateY(-50%);
}


/* Menú móvil oculto inicialmente */
.nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--dark-black);
  transition: all 0.5s ease;
  z-index: 1000;
}

/* Menú móvil activo */
.nav.active {
  left: 0;
}

/* Lista vertical en móvil */
.nav__list {
  flex-direction: column;
  text-align: center;
  margin: 0;
}

.nav__item {
  margin: 20px 0;
}
 
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 999;
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav__list {
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .nav__item {
    margin: 15px 0;
  }
  

}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .hero__title {
    font-size: 2.6rem;
  }
  
  .hero__buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero {
    padding: 130px 0 60px;
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    line-height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/*correción de seccion barberos*/

.barbers__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.barber-card {
  max-width: 400px;
  width: 100%;
}
