/*====================================================
   BARBER LANDING PAGE - DARK THEME
====================================================*/

:root {
  --primary: #cde024;
  --primary-dark: #a88619;
  --black: #111111;
  --white: #ffffff;
  --text: #eeeeee;
  --shadow: 0 10px 30px rgba(241, 224, 224, 0.5);
  --glass-bg: rgba(20, 20, 20, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --transition: 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =======================================
   FONDO GLOBAL SINCRONIZADO
======================================= */
body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: url('../images/images/logo2.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.82); 
  z-index: -1;
}

img { width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* SINCRONIZACIÓN DE TAMAÑOS EN EL BODY: 
   Estandarizamos un ancho máximo y padding uniforme para todas las secciones principales */
section {
  padding: 100px 8%;
  max-width: 1400px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: "Cinzel", serif;
  color: var(--white);
}

h2 {
  font-size: 42px;
  margin-bottom: 40px;
  text-align: center;
}

p2 { line-height: 1.8;
  text-align: justify; }

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary);
  color: white;
  border-radius: 40px;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
}

/*======================
   HEADER Y LOGO CON SECCIÓN ACTIVA
=======================*/
header {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 120px; /* Aumentamos la altura del menú (antes era 90px) */
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease; /* Transición suave por si luego quieres achicarlo al hacer scroll */
}

/* LOGO ANIMADO Y REDONDO (MÁS GRANDE) */
.logo img {
  width: 100px;  /* Aumentamos el tamaño (antes era 80px) */
  height: 100px; /* Aumentamos el tamaño (antes era 80px) */
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse-border 2s infinite;
  transition: transform 0.5s ease;
}

.logo img:hover {
  transform: rotate(360deg) scale(1.1);
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(205, 224, 36, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(205, 224, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(205, 224, 36, 0); }
}

/* Icono Hamburguesa (Oculto en Desktop) */
.menu-toggle {
  display: none;
  color: var(--primary);
  font-size: 32px; /* Ligeramente más grande para equilibrar el nuevo tamaño del header */
  cursor: pointer;
}

nav ul {
  display: flex;
  gap: 35px;
}

nav a {
  color: white;
  font-weight: 500;
  font-size: 17px; /* Letra un poco más grande para que no se pierda con el nuevo espacio */
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: ""; 
  position: absolute; 
  left: 0; 
  bottom: -8px; 
  width: 0; 
  height: 2px;
  background: var(--primary); 
  transition: 0.3s;
}

nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

/* EFECTO DE SECCIÓN ACTIVA EN EL HEADER */
nav a.active {
  color: var(--primary);
}
nav a.active::after {
  width: 100%;
}

/*======================
   HERO
=======================*/
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  max-width: 100%; /* El hero abarca toda la pantalla */
}

.hero-content {
  text-align: center;
  color: white;
  width: 90%;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 72px;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.hero-content p {
  font-size: 22px;
  margin-bottom: 40px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

/*======================
   HERO (CON ANIMACIONES PREMIUM)
=======================*/
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  max-width: 100%;
}

.hero-content {
  text-align: center;
  color: white;
  width: 90%;
  max-width: 800px;
}

/* 1. Animación del Título Principal */
.hero-content h1 {
  font-size: 72px;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.8);
  opacity: 0; /* Inicia invisible */
  animation: fadeSlideUp 1s ease-out forwards;
  animation-delay: 0.2s; /* Aparece casi de inmediato */
}

/* 2. Animación del Subtítulo */
.hero-content p {
  font-size: 22px;
  margin-bottom: 40px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.8);
  opacity: 0;
  animation: fadeSlideUp 1s ease-out forwards;
  animation-delay: 0.6s; /* Aparece medio segundo después del título */
}

/* 3. Animación del Botón (Entrada + Resplandor constante) */
.hero-content .btn {
  opacity: 0;
  /* popInBtn hace que entre rebotando, btnGlow lo hace brillar todo el tiempo */
  animation: popInBtn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, btnGlow 2.5s infinite alternate;
  animation-delay: 1s, 1.8s; /* Entra al segundo 1, empieza a brillar al segundo 1.8 */
}

/* =========================================
   KEYFRAMES (Las instrucciones de movimiento)
========================================= */

/* Efecto de desvanecimiento hacia arriba para los textos */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de rebote (pop-in) para el botón */
@keyframes popInBtn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Efecto de resplandor neón intermitente para llamar a la acción */
@keyframes btnGlow {
  0% {
    box-shadow: 0 0 0px rgba(205, 224, 36, 0);
  }
  100% {
    /* Usa el color amarillo/verdoso de tu variable --primary */
    box-shadow: 0 0 20px rgba(205, 224, 36, 0.6), 0 0 40px rgba(205, 224, 36, 0.3);
  }
}
/*==========================
   SERVICIOS
==========================*/
.cards {
  max-width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.4s;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

/* CORRECCIÓN DE IMÁGENES: Cambiamos object-fit de cover a contain con un fondo acorde para que no se corten */
.card img { 
  height: 250px; 
  object-fit: contain; 
  background-color: rgba(0, 0, 0, 0.4);
}

.card i { margin-top: 25px; font-size: 45px; color: var(--primary); }
.card h3 { margin: 20px 0 15px; font-size: 28px; }
.card p { padding: 0 25px 35px; color: #ccc; }

/*==========================
   ACERCA DE NOSOTROS
==========================*/
.about {
  max-width: 1200px; margin: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.about-image { border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); border: var(--glass-border); }
.about-image img { transition: 0.6s; object-fit: cover; }
.about-image:hover img { transform: scale(1.08); }
.about-content h2 { text-align: left; margin-bottom: 25px; }

/*====================================================
   EQUIPO (Perfil + Contacto con Tamaños Iguales)
====================================================*/
.single-barber {
  display: flex;
  justify-content: center;
  gap: 35px;
  max-width: 950px;
  margin: auto;
  flex-wrap: wrap;
}

.member {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  transition: 0.4s;
  
  /* TAMAÑO EXACTO IGUALADO PARA AMBAS TARJETAS */
  width: 440px;
  min-height: 620px; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

/* Imagen de la tarjeta del barbero ajustada correctamente */
.profile-card img { 
  height: 380px; 
  object-fit: cover; 
}

.member-info {
  padding: 20px;
}

.member h3 { margin-top: 15px; font-size: 28px; margin-bottom: 5px; }
.member span { display: block; color: var(--primary); margin-bottom: 15px; font-weight: 600; }
.member p { padding: 0 15px 20px; color: #ccc; }

/* TARJETA DE CONTACTO (Alineada al tamaño de la del barbero) */
.contact-card {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card .contact-desc {
  margin-bottom: 20px;
  color: #ccc;
  padding: 0 15px;
}

.contact-card ul {
  padding: 0;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.contact-card li {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: 0.3s ease;
}

.contact-link i {
  color: var(--primary);
  font-size: 24px;
  transition: 0.3s ease;
}

.contact-link span {
  font-size: 16px;
  color: var(--white);
  transition: 0.3s ease;
}

.contact-link:hover {
  transform: translateX(8px);
}

.contact-link:hover span {
  color: var(--primary);
}

.contact-card .btn {
  margin-top: auto; /* Empuja el botón hacia abajo para mantener simetría exacta */
  margin-bottom: 10px;
}

/*====================================================
   GALERÍA: IMÁGENES COMPLETAS Y LIMPIAS SIN BORDES
====================================================*/
.gallery-grid {
  max-width: 1200px; 
  margin: auto; 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 25px;
}

.gallery-grid img {
  width: 100%; 
  height: 300px;         /* Altura estándar para que todas las tarjetas mantengan orden */
  object-fit: cover;     /* Llena el espacio de la tarjeta de forma fluida */
  object-position: center; /* Centra la foto para que siempre se vea el foco principal */
  border-radius: 20px;   /* Redondeo elegante de las esquinas */
  cursor: pointer; 
  transition: 0.4s ease; 
  border: none;          /* Eliminamos cualquier borde o línea que genere efecto de marco */
  background: transparent; /* Sin colores de fondo extraños a los costados */
}

.gallery-grid img:hover { 
  transform: scale(1.03); 
  filter: brightness(1.1); 
}
/*=========================
   TESTIMONIOS
=========================*/
.testimonials {
  position: relative;
  overflow: hidden; 
  width: 100%;
  max-width: 100%;
}

.testimonials h2 {
  margin-bottom: 50px;
}

.testimonial-container {
  display: flex;
  width: max-content; 
  animation: carruselInfinito 20s linear infinite;
}

.testimonial-container:hover {
  animation-play-state: paused;
}

.testimonial {
  flex: 0 0 auto; 
  width: 80vw;
  max-width: 350px; 
  margin-right: 30px; 
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: var(--glass-border);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  transition: 0.4s;
}

.testimonial:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.stars {
  margin-bottom: 20px;
}

.stars i {
  color: gold;
  font-size: 18px;
  margin: 0 2px;
}

@keyframes carruselInfinito {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/*=========================
   UBICACIÓN & AGENDA
=========================*/
.location p { text-align: center; margin-bottom: 40px; }

.appointment form {
  max-width: 750px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 25px;
  background: var(--glass-bg); 
  padding: 40px; 
  border-radius: 15px; 
  border: var(--glass-border);
}

.appointment input {
  width: 100%; padding: 16px 20px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5); color: white; border-radius: 12px; outline: none; transition: 0.3s;
}

.appointment input:focus { border-color: var(--primary); }

.appointment button {
  grid-column: 1/3; border: none; padding: 18px; border-radius: 50px;
  background: var(--primary); color: white; font-size: 17px; font-weight: 600; cursor: pointer; transition: 0.35s;
}

.appointment button:hover { background: var(--primary-dark); transform: translateY(-3px); }

/*====================================================
   FOOTER PREMIUM
====================================================*/
.main-footer {
  background-color: rgba(0, 0, 0, 0.95); border-top: 4px solid var(--primary);
  padding: 70px 8% 20px; position: relative; color: var(--white);
  max-width: 100%;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; max-width: 1400px; margin-left: auto; margin-right: auto;}
.footer-brand img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; border: 2px solid var(--primary); padding: 4px; margin-bottom: 20px; }
.footer-brand p { color: #bbb; }
.footer-links h3, .footer-social-section h3 { font-family: "Cinzel", serif; color: var(--primary); font-size: 22px; margin-bottom: 25px; }
.footer-links ul { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: var(--white); position: relative; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.social-icons-footer { display: flex; gap: 15px; }
.social-icons-footer a {
  width: 48px; height: 48px; background: #1b1b1b; border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.35s;
}
.social-icons-footer a:hover { background: var(--primary); color: var(--white); transform: translateY(-5px); }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: #777;}

/* BOTON WHATSAPP */
.whatsapp {
  position: fixed; right: 30px; bottom: 30px; width: 65px; height: 65px;
  background: #25d366; color: white; border-radius: 50%; display: flex;
  justify-content: center; align-items: center; font-size: 32px; box-shadow: var(--shadow); z-index: 999; transition: 0.3s;
}
.whatsapp:hover { transform: scale(1.12); }

/*====================================================
   RESPONSIVE (Celulares)
====================================================*/
@media (max-width: 768px) {
  .single-barber {
    flex-direction: column !important;
    align-items: center !important;
  }

  .single-barber .member {
    max-width: 100% !important;
    width: 100% !important;
    min-height: auto;
  }
}