/* =====================================================
   BARBERÍA PREMIUM - VERSIÓN LIMPIA Y OPTIMIZADA
   Mobile-First | Logo GRANDE + Menú centrado CORREGIDO
   ===================================================== */

/* 1. VARIABLES CSS */
:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  --primary-color: var(--color-black);
  --secondary-color: var(--color-white);
  --bg-primary: var(--color-white);
  --bg-secondary: var(--color-gray-50);
  --text-primary: var(--color-gray-900);
  --text-secondary: var(--color-gray-600);

  --font-primary: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-fixed: 1030;
  --z-modal: 1050;
  --z-tooltip: 1070;

  --container-width: 1200px;
  --container-padding: 1rem;
}

/* 2. RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

button {
  font-family: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  background: transparent;
}

/* 3. UTILIDADES */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section__subtitle {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-bottom: 0.5rem;
}

.section__subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--color-black);
}

.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section__description {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border: 2px solid var(--color-black);
}

.btn-primary:hover {
  background: var(--color-gray-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* 4. PRELOADER - OPTIMIZADO */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Fondo blanco sólido para coincidir con Splash Screen */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__logo img {
  width: auto;
  height: 120px;
  max-width: 80vw;
  object-fit: contain;
  animation: logo-pulse 1.8s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* FOOTER LINKS - CORREGIDOS */
.footer-link {
    color: var(--color-white) !important;
    font-weight: 700;
    text-decoration: underline;
    position: relative;
    z-index: 20;
    padding: 5px;
    display: inline-block;
}

@media screen and (max-width: 767px) {
    .footer__bottom {
        padding-bottom: 80px; /* Evita que el botón flotante lo tape */
    }
}

/* Mantener spinner oculto por si existe en HTML */
.preloader__spinner {
  display: none;
}

.spinner-blade {
  display: none;
}

/* 5. HEADER - LOGO GRANDE + MENÚ CENTRADO (CORREGIDO) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  z-index: var(--z-fixed);
  transition: var(--transition-base);
  border-bottom: 1px solid var(--color-gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scroll-header {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--color-gray-300);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 var(--container-padding);
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-black);
  z-index: 100;
  max-width: 280px;
}

.nav__logo img {
  max-height: 75px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: var(--color-white);
  padding: 4rem 2rem 2rem;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 1000;
}

.nav__menu.show-menu { right: 0; }

.nav__menu::before {
  content: "";
  position: fixed;
  top: 0;
  left: -100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: -1;
}

.nav__menu.show-menu::before {
  left: 0;
  opacity: 1;
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.nav__link {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-black);
  transition: var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp-header {
  display: none !important;
}

.nav__toggle {
  display: flex;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-black);
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

.nav__close {
  display: flex;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-black);
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

/* 6. HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(70px + 2rem) var(--container-padding) 2rem;
  overflow: hidden;
  position: relative;
}

.hero__container {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

.hero__content { margin-bottom: 2rem; }

.hero__subtitle {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.hero__title {
  font-size: var(--fs-4xl);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--color-black);
}

.hero__title .highlight {
  position: relative;
  display: inline-block;
}

.hero__title .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--color-gray-300);
  z-index: -1;
}

.hero__description {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: var(--spacing-lg);
}

.hero__buttons .btn { width: 100%; }

.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: var(--spacing-lg);
}

.stat {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  text-align: center;
}

.stat__number {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__image {
  width: 100%;
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.hero__image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.hero__image-wrapper:hover img { transform: scale(1.05); }

.hero__image-decoration { display: none; }

/* 7. SERVICES */
.services {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--color-white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 2px solid transparent;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-black);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-black);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card--featured {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.service-card--featured::before { background: var(--color-white); }

.service-card--featured .service-card__title,
.service-card--featured .service-card__description {
  color: var(--color-white);
}

.service-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-white);
  color: var(--color-black);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  transition: var(--transition-base);
}

.service-card--featured .service-card__icon {
  background: var(--color-white);
  color: var(--color-black);
}

.service-card:hover .service-card__icon { transform: rotateY(360deg); }

.service-card__title {
  font-size: var(--fs-xl);
  margin-bottom: 0.875rem;
  color: var(--text-primary);
}

.service-card__description {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.service-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: var(--transition-base);
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.service-card--featured .service-card__btn {
  background: var(--color-white);
  color: var(--color-black);
}

.service-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.service-card__decoration {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  border: 3px solid var(--color-gray-200);
  border-radius: 50%;
  opacity: 0.3;
}

.service-card--featured .service-card__decoration {
  border-color: var(--color-white);
}

/* 8. GALLERY */
.gallery {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-primary);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.gallery__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.gallery__overlay i {
  font-size: 2rem;
  color: var(--color-white);
  transform: scale(0);
  transition: var(--transition-base);
}

.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__item:hover .gallery__overlay i { transform: scale(1); }
.gallery__item:hover img { transform: scale(1.1); }

.gallery__cta { text-align: center; }

/* 9. LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox__content {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0 10px;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  color: var(--color-black);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
  z-index: 10;
}

.lightbox__close:hover {
  transform: rotate(90deg);
  background: var(--color-black);
  color: var(--color-white);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-white);
  color: var(--color-black);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
  z-index: 10;
}

.lightbox__nav:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

.lightbox__image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2xl);
  animation: lightbox-zoom-in 0.3s ease;
}

@keyframes lightbox-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  color: var(--color-black);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* 10. TESTIMONIALS */
.testimonials {
  padding: var(--spacing-2xl) 0;
  background: var(--color-black);
  color: var(--color-white);
}

.testimonials .section__subtitle { color: var(--color-gray-400); }
.testimonials .section__subtitle::after { background: var(--color-white); }
.testimonials .section__title,
.testimonials .section__description { color: var(--color-white); }

.testimonials__slider {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-gray-900);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-800);
  transition: var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-white);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.testimonial-card__rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.testimonial-card__rating i {
  color: var(--color-white);
  font-size: var(--fs-base);
}

.testimonial-card__text {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--color-gray-300);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-white);
  flex-shrink: 0;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.testimonial-card__role {
  font-size: var(--fs-xs);
  color: var(--color-gray-400);
}

/* 11. CONTACT */
.contact {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-secondary);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact__info { padding: 1rem 0; }

.contact__description {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

.contact__detail {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.contact__detail-icon {
  width: 45px;
  height: 45px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact__detail-content h4 {
  font-size: var(--fs-base);
  margin-bottom: 0.375rem;
  color: var(--text-primary);
}

.contact__detail-content p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact__social {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: var(--transition-base);
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 300px;
  width: 100%;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
}

/* 12. FOOTER */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-gray-800);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.875rem;
}

.footer__logo i { font-size: 1.25rem; }

.footer__description {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-gray-400);
  max-width: 400px;
}

.footer__title {
  font-size: var(--fs-base);
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__list li,
.footer__list a {
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
  transition: var(--transition-base);
}

.footer__list li:hover,
.footer__list a:hover {
  color: var(--color-white);
  transform: translateX(5px);
}

.footer__list i {
  margin-right: 0.5rem;
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer__bottom p {
  font-size: var(--fs-xs);
  color: var(--color-gray-400);
}

.footer__social {
  display: flex;
  gap: 0.875rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  background: var(--color-gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.footer__social a:hover {
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-3px);
}

/* 13. FLOATING ELEMENTS */
.call-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-fixed);
  transition: var(--transition-base);
  animation: phone-ring 2s infinite;
  text-decoration: none;
}

.call-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl);
  background: var(--color-gray-900);
}

@keyframes phone-ring {
  0%, 100% {
    transform: rotate(0deg);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
  50% {
    transform: rotate(0deg);
    box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
  }
}

.scroll-top {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fixed);
  transition: var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-top.show-scroll {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-gray-800);
  transform: translateY(-5px);
}

/* 14. RESPONSIVE - MENÚ CENTRADO (LOGO A LA IZQUIERDA) */
@media screen and (max-width: 360px) {
  .nav {
    height: 65px;
  }
  .nav__logo {
    font-size: 1rem;
    max-width: 240px;
  }
  .nav__logo img { max-height: 65px; }
  .preloader__logo img { height: 80px; }
}

@media screen and (min-width: 480px) {
  :root { --container-padding: 1.25rem; }
  .nav {
    height: 75px;
  }
  .nav__logo {
    font-size: 1.25rem;
    max-width: 300px;
  }
  .nav__logo img { max-height: 80px; }
  .hero__title { font-size: var(--fs-5xl); }
  .hero__image-wrapper img { max-height: 350px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 1.25rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .preloader__logo img { height: 110px; }
}

@media screen and (min-width: 768px) {
  :root {
    --container-padding: 1.5rem;
    --spacing-3xl: 4rem;
  }
  html { scroll-padding-top: 100px; }
  .section__title { font-size: var(--fs-4xl); }
  .section__header { margin-bottom: var(--spacing-3xl); }

  /* ✅ NAVBAR CORREGIDO - LOGO A LA IZQUIERDA, MENÚ CENTRADO */
  .nav {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .nav__logo {
    position: absolute;
    left: 1.5rem;
    font-size: 1.5rem;
    max-width: 380px;
    z-index: 2;
  }

  .nav__logo img {
    max-height: 85px;
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    z-index: 1;
  }

  .nav__menu::before { display: none; }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .nav__toggle,
  .nav__close { display: none !important; }

  .hero { padding: calc(90px + 3rem) 0 3rem; }
  .hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .hero__content { margin-bottom: 0; }
  .hero__title { font-size: var(--fs-6xl); }
  .hero__description { font-size: var(--fs-lg); }
  .hero__buttons {
    flex-direction: row;
    margin-bottom: var(--spacing-2xl);
  }
  .hero__buttons .btn { width: auto; }
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-gray-200);
  }
  .stat {
    padding: 0;
    background: transparent;
  }
  .stat__number { font-size: var(--fs-3xl); }
  .stat__label { font-size: var(--fs-sm); }
  .hero__image-wrapper { border-radius: var(--radius-2xl); }
  .hero__image-wrapper img {
    max-height: 500px;
    height: 500px;
  }
  .hero__image-decoration {
    display: block;
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border: 3px solid var(--color-black);
    border-radius: var(--radius-2xl);
    z-index: -1;
  }

  .services { padding: var(--spacing-3xl) 0; }
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  .service-card { padding: 2.5rem 2rem; }
  .service-card__icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  .service-card__title { font-size: var(--fs-2xl); }
  .service-card__description { font-size: var(--fs-base); }

  .gallery { padding: var(--spacing-3xl) 0; }
  .gallery__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .testimonials { padding: var(--spacing-3xl) 0; }
  .testimonials__slider {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
  .testimonial-card { padding: 2.5rem; }
  .testimonial-card__text { font-size: var(--fs-base); }
  .testimonial-card__avatar {
    width: 60px;
    height: 60px;
  }

  .contact { padding: var(--spacing-3xl) 0; }
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .contact__info { padding: 2rem 0; }
  .contact__description { font-size: var(--fs-lg); }
  .contact__detail { gap: 1.5rem; }
  .contact__detail-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  .contact__detail-content h4 { font-size: var(--fs-lg); }
  .contact__detail-content p { font-size: var(--fs-base); }
  .contact__map { height: 500px; }

  .footer { padding: var(--spacing-3xl) 0 var(--spacing-xl); }
  .footer__content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .lightbox__content {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
  }
  .lightbox__close {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .lightbox__nav {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__image { max-height: 85vh; }
  .lightbox__counter {
    bottom: 20px;
    font-size: var(--fs-sm);
    padding: 0.75rem 1.5rem;
  }

  .call-float {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  .scroll-top {
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .preloader__logo img { height: 130px; }
}

@media screen and (min-width: 1024px) {
  .nav {
    height: 95px;
  }
  .nav__logo {
    font-size: 1.75rem;
    max-width: 420px;
  }
  .nav__logo img { max-height: 90px; }
  .nav__list {
    gap: 2.5rem;
  }
  .hero__container { gap: 4rem; }
  .hero__image-wrapper img {
    height: 600px;
    max-height: 600px;
  }
  .hero__image-decoration {
    width: 200px;
    height: 200px;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
    z-index: -1;
  }

  .preloader__logo img { height: 140px; }
}

@media screen and (min-width: 1280px) {
  .nav {
    height: 100px;
  }
  .nav__logo {
    max-width: 450px;
  }
  .nav__logo img { max-height: 95px; }
  .nav__list {
    gap: 3rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn,
  .service-card__btn,
  .social-icon {
    min-width: 44px;
    min-height: 44px;
  }
}

@media print {
  .preloader,
  .nav__toggle,
  .nav__close,
  .call-float,
  .scroll-top,
  .lightbox { display: none !important; }
  .header { position: relative; }
}

/* Botones barbero - columna con separación */
.service-card__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.service-card__btn--outline {
    background: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.service-card__btn--outline:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-card--featured .service-card__btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.service-card--featured .service-card__btn--outline:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* Tarjetas al mismo nivel */
.services__grid {
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card__description {
    flex-grow: 1;
}

/* ===== BOTÓN FLOTANTE INTELIGENTE ===== */
.float-btn-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    z-index: var(--z-fixed);
}

.float-main-btn {
    width: 58px;
    height: 58px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
    position: relative;
    z-index: 2;
}

.float-main-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

/* Sub-botones */
.float-sub-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.float-sub-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.float-sub-btn:hover {
    background: var(--color-gray-800);
    transform: translateY(-2px);
}

/* Escritorio: solo icono teléfono, sin sub-botones */
.float-icon-mobile { display: none; }
.float-icon-desktop { display: block; }

@media screen and (max-width: 767px) {
    .float-icon-mobile { display: block; }
    .float-icon-desktop { display: none; }
}

/* En escritorio desactivar submenú */
@media screen and (min-width: 768px) {
    .float-main-btn {
        cursor: pointer !important;
    }
    .float-main-btn::after {
        content: "613 970 480";
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--color-black);
        color: var(--color-white);
        padding: 0.4rem 0.875rem;
        border-radius: var(--radius-full);
        font-size: var(--fs-sm);
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .float-main-btn:hover::after {
        opacity: 1;
    }
}


/* ===== ONDA ESCRITORIO (teléfono) ===== */
@keyframes phone-ring-wave {
    0%   { box-shadow: 0 0 0 0 rgba(0,0,0,0.4), 0 0 0 0 rgba(0,0,0,0.2); }
    50%  { box-shadow: 0 0 0 12px rgba(0,0,0,0), 0 0 0 22px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(0,0,0,0); }
}

@keyframes phone-vibrate {
    0%, 100% { transform: rotate(0deg); }
    10%       { transform: rotate(-15deg); }
    20%       { transform: rotate(15deg); }
    30%       { transform: rotate(-10deg); }
    40%       { transform: rotate(10deg); }
    50%       { transform: rotate(0deg); }
}

@media screen and (min-width: 768px) {
    .float-main-btn {
        animation: phone-ring-wave 2s ease-in-out infinite;
    }
    .float-icon-desktop {
        animation: phone-vibrate 2.5s ease-in-out infinite;
        display: inline-block;
    }
    .float-icon-mobile {
        display: none !important;
    }
}

/* ===== PULSO MÓVIL (solo calendario, sin teléfono) ===== */
@keyframes float-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,0,0,0.5); }
    50%  { box-shadow: 0 0 0 14px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

@keyframes calendar-bounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-5px); }
    60%       { transform: translateY(-3px); }
}

@media screen and (max-width: 767px) {
    .float-main-btn {
        animation: float-pulse 2s ease-in-out infinite;
    }
    .float-icon-mobile {
        animation: calendar-bounce 2s ease-in-out infinite;
        display: inline-block !important;
    }
    .float-icon-desktop {
        display: none !important;
    }
}

/* ===== SHIMMER SUB-BOTONES ===== */
@keyframes shimmer-in {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.float-sub-btn.visible {
    background: linear-gradient(90deg, var(--color-black) 0%, var(--color-gray-700) 50%, var(--color-black) 100%);
    background-size: 200% auto;
    animation: shimmer-in 1.5s linear infinite;
}

.float-sub-btn.visible:hover {
    animation: none;
    background: var(--color-gray-800);
}
@media screen and (max-width: 767px) {
    .scroll-top {
        display: none !important;
    }
}

/* Botón valorar experiencia - Testimonios */
.testimonials__cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
/* Asegurar que los enlaces del footer sean cliqueables */
.footer-link {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: underline;
    position: relative;
    z-index: 20; /* Por encima de capas del footer */
    padding: 2px 5px; /* Aumenta el área de clic */
    transition: var(--transition-base);
}

.footer-link:hover {
    color: var(--color-gray-400);
    text-decoration: none;
}

/* Evitar que el contenedor de botones flotantes tape el footer en móvil */
@media screen and (max-width: 767px) {
    .footer__bottom {
        padding-bottom: 100px; /* Espacio extra para que los botones no tapen el texto */
    }
}
