
/* ==========================================
   BARBERÍA ÉLITE - DISEÑO PREMIUM
   Desarrollado por VEXIL
========================================== */

:root {
  --bg: #0B0B0B;
  --bg-secondary: #111111;
  --card: #191919;
  --gold: #D4AF37;
  --gold-light: #F2D77D;
  --white: #F5F5F5;
  --gray: #AAAAAA;
  --border: rgba(212, 175, 55, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

button, input, select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

/* ==========================================
   NAVBAR FLOTANTE
========================================== */

.header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  padding: 0 5%;
  z-index: 1000;
}

.navbar {
  position: relative;
  max-width: 1350px;
  margin: auto;
  padding: 16px 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  background: rgba(10, 10, 10, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(18px);

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.logo svg {
  color: var(--gold);
  width: 28px;
  height: 28px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
}

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

.nav-cta {
  padding: 11px 20px;
  background: var(--gold);
  color: #111;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.3s;
}

.nav-cta:hover {
  background: var(--gold-light);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--gold);
  border: none;
  cursor: pointer;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================
   HERO PRINCIPAL
========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 165px 8% 110px;

  display: flex;
  align-items: center;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.75) 48%,
      rgba(0, 0, 0, 0.35) 100%
    ),
    url("../img/hero-barberia.jpg")
      center / cover no-repeat;

  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(
      circle at 75% 50%,
      rgba(212, 175, 55, 0.12),
      transparent 45%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-label,
.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.hero-label {
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 82px);
  line-height: 1.12;
  margin-bottom: 25px;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-content > p {
  max-width: 600px;
  color: #D0D0D0;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 35px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  min-height: 50px;
  padding: 13px 25px;

  border: none;
  border-radius: 9px;

  font-size: 14px;
  font-weight: 700;
  cursor: pointer;

  transition:
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold)
  );
  color: #111;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 35px;
}

.hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #DDD;
  font-size: 13px;
}

.hero-features svg {
  width: 17px;
  color: var(--gold);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  animation: floating 2s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

/* ==========================================
   SECCIONES GENERALES
========================================== */

.section {
  width: 100%;
  max-width: 1450px;
  margin: auto;
  padding: 105px 7%;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 15px 0 20px;
}

.section-heading p {
  color: var(--gray);
  font-size: 16px;
}

/* ==========================================
   TARJETAS DE SERVICIOS
========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;

  background: linear-gradient(145deg, #1C1C1C, #111);
  border: 1px solid var(--border);
  border-radius: 16px;

  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 25px;

  display: grid;
  place-items: center;

  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--gold);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 23px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.service-price {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 14px;
  margin-top: auto;
}

.service-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================
   GALERÍA
========================================== */

.gallery-section {
  max-width: none;
  background: #101010;
}

.gallery-grid {
  max-width: 1250px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-radius: 15px;
  background: #222;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;
  padding: 22px;

  background: linear-gradient(
    transparent 45%,
    rgba(0, 0, 0, 0.85)
  );
}

.gallery-overlay h3 {
  font-size: 20px;
  color: white;
}

/* ==========================================
   NOSOTROS
========================================== */

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 18px 0 25px;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.about-content .btn {
  margin-top: 15px;
}

/* ==========================================
   FORMULARIO DE RESERVAS
========================================== */

.booking-section {
  max-width: none;
  background: #111;
}

.booking-container {
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.booking-form,
.booking-info {
  padding: 40px;
  background: #191919;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.booking-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;

  background: #101010;
  color: var(--white);
  border: 1px solid #383838;
  border-radius: 8px;

  color-scheme: dark;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.booking-form .btn {
  width: 100%;
}

.booking-note {
  color: var(--gray);
  font-size: 12px;
  text-align: center;
}

#booking-message {
  color: var(--gold-light);
  font-size: 13px;
  text-align: center;
}

.booking-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booking-info > svg {
  width: 60px;
  height: 60px;
  color: var(--gold);
  margin-bottom: 25px;
}

.booking-info h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.booking-info p {
  color: var(--gray);
}

.booking-benefits {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  color: var(--gold-light);
}

/* ==========================================
   CONTACTO
========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.contact-card {
  padding: 35px 25px;
  text-align: center;

  background: #191919;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-card svg {
  width: 35px;
  height: 35px;
  color: var(--gold);
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--gray);
  font-size: 14px;
}

/* ==========================================
   FOOTER PROFESIONAL
========================================== */

.footer {
  background: #070707;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1350px;
  margin: auto;
  padding: 75px 7%;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 45px;
}

.footer-brand h3 {
  font-size: 27px;
  margin-bottom: 15px;
}

.footer-brand span {
  color: var(--gold);
}

.footer-brand p,
.footer-contact p {
  color: var(--gray);
  font-size: 14px;
}

.footer h4 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links a {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 23px 6%;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 700;
}

/* ==========================================
   WHATSAPP FLOTANTE
========================================== */

.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 2000;

  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: white;
  border-radius: 50%;

  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.06);
}

/* ==========================================
   RESPONSIVE TABLET
========================================== */

@media (max-width: 1100px) {
  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    gap: 15px;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;

    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px;

    background: #151515;
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 15px;
  }

  .about-container,
  .booking-container {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 155px 7% 110px;
  }

  .section {
    padding: 80px 6%;
  }
}

/* ==========================================
   RESPONSIVE CELULAR
========================================== */

@media (max-width: 600px) {
  .header {
    top: 10px;
    padding: 0 4%;
  }

  .navbar {
    padding: 13px 16px;
  }

  .logo {
    font-size: 17px;
  }

  .logo svg {
    width: 23px;
    height: 23px;
  }

  .hero {
    min-height: 90vh;
    padding: 135px 6% 90px;
    background-position: 60% center;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-features {
    gap: 12px;
  }

  .section {
    padding: 70px 6%;
  }

  .services-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 300px;
  }

  .about-container {
    gap: 30px;
  }

  .about-image img {
    height: 320px;
  }

  .booking-form,
  .booking-info {
    padding: 25px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 55px 7%;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 55px;
    height: 55px;
  }
}

/* ==========================================
   ACCESIBILIDAD
========================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-indicator {
    animation: none;
  }

  .btn,
  .service-card,
  .gallery-item img,
  .whatsapp-float {
    transition: none;
  }
}


/* ==========================================
   ANIMACIONES SCROLL
========================================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* EFECTO DE ENTRADA DEL HERO */

.hero-content {
  animation: heroEntrada 0.9s ease both;
}

@keyframes heroEntrada {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-content {
    animation: none;
  }
}


/* ======================================
   AJUSTES FINALES RESPONSIVE - VEXIL
====================================== */

@media (max-width: 600px) {

  html {
    scroll-padding-top: 110px;
  }

  .section {
    padding-top: 95px;
    padding-bottom: 75px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2 {
    font-size: clamp(27px, 7vw, 36px);
    line-height: 1.25;
  }

  .service-card {
    padding: 28px 22px;
  }

  .gallery-grid {
    gap: 16px;
  }

  .gallery-item {
    height: 320px;
  }

  /* WhatsApp sin tapar tanto contenido */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 12px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }

  /* Espacio extra en el formulario */
  .booking-form {
    padding-bottom: 70px;
  }

  .footer-bottom {
    padding-bottom: 75px;
  }
}
