/* ==========================================================================
   IMPERIO BARBER CLUB - Estilos Corporativos Barbería & Spa de Caballeros
   Cortes de Autor, Perfilado de Barba, Faciales & Marroquinería
   ========================================================================== */

:root {
  --bg-dark: #0d0b0a;
  --bg-card: #1a1614;
  --bg-card-hover: #26201c;
  --bg-glass: rgba(26, 22, 20, 0.88);
  --bg-surface: #14100e;
  
  --color-gold: #d97706;          /* Oro Vintage */
  --color-red: #b91c1c;           /* Rojo Barbería */
  --color-green: #15803d;         /* Verde Confort */
  
  --text-main: #fef3c7;
  --text-muted: #d6d3d1;
  --text-gold: #d97706;
  
  --border-glass: rgba(217, 119, 6, 0.18);
  --border-active: rgba(217, 119, 6, 0.45);
  
  --grad-barber: linear-gradient(135deg, #d97706 0%, #b91c1c 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-text: linear-gradient(135deg, #fef3c7 0%, #d97706 100%);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 25px rgba(217, 119, 6, 0.3);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --container-width: 1240px;
  --header-height: 85px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img, svg { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
.section-dark { background-color: rgba(26, 22, 20, 0.5); border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); }

h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 700; color: var(--text-main); line-height: 1.25; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

.gold-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem auto; }
.section-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1.1rem; border-radius: var(--radius-full); background: rgba(217, 119, 6, 0.1); border: 1px solid var(--border-active); color: var(--color-gold); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.875rem 2rem; border-radius: var(--radius-md); font-weight: 700; font-size: 1rem; transition: var(--transition-normal); white-space: nowrap; }
.btn-gold { background: var(--grad-gold); color: #0d0b0a; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(217, 119, 6, 0.5); }
.btn-outline { border: 1px solid var(--color-gold); color: var(--color-gold); }
.btn-outline:hover { background: rgba(217, 119, 6, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

.card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--transition-normal); position: relative; }
.card:hover { border-color: var(--border-active); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.barber-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.barber-img-box { width: 100%; height: 220px; border-radius: var(--radius-md); background: var(--bg-surface); display: flex; align-items: center; justify-content: center; font-size: 4.5rem; margin-bottom: 1.25rem; border: 1px solid var(--border-glass); }

.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000; transition: var(--transition-normal); }
.header.scrolled { background: rgba(13, 11, 10, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-glass); box-shadow: var(--shadow-sm); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--text-main); }
.logo-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--grad-barber); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; box-shadow: var(--shadow-gold); }

.nav-menu { display: flex; align-items: center; gap: 2.25rem; }
.nav-link { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); padding: 0.4rem 0; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--color-gold); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-gold); transition: var(--transition-fast); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.cart-trigger { position: relative; background: rgba(217, 119, 6, 0.1); border: 1px solid var(--border-active); padding: 0.6rem 1.1rem; border-radius: var(--radius-md); color: var(--text-main); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.cart-trigger:hover { background: var(--grad-gold); color: #0d0b0a; }
.cart-badge { background: var(--color-red); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text-main); }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 85%; max-width: 360px; height: 100vh; background: var(--bg-card); border-left: 1px solid var(--border-glass); padding: 2.5rem 2rem; z-index: 1001; display: flex; flex-direction: column; justify-content: space-between; transition: right 0.4s ease; }
.mobile-menu.active { right: 0; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition-fast); }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer { position: fixed; top: 0; right: -100%; width: 90%; max-width: 420px; height: 100vh; background: var(--bg-card); border-left: 1px solid var(--border-active); box-shadow: var(--shadow-md); z-index: 2000; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; transition: right 0.4s ease; }
.cart-drawer.active { right: 0; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-glass); padding-bottom: 1rem; }
.cart-items-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; overflow-y: auto; flex: 1; }
.cart-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; background: var(--bg-surface); border-radius: var(--radius-md); border: 1px solid var(--border-glass); }

.hero { padding-top: calc(var(--header-height) + 4rem); padding-bottom: 6rem; background: radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.15) 0%, rgba(13, 11, 10, 0) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); margin: 1.5rem 0 2.5rem 0; }

.hero-visual-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md); }
.hero-visual-box { height: 380px; border-radius: var(--radius-md); background: linear-gradient(135deg, #1a1614 0%, #0d0b0a 100%); border: 1px solid var(--border-glass); display: flex; flex-direction: column; align-items: center; justify-content: center; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-item { text-align: center; padding: 2rem; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); }
.stat-number { font-family: var(--font-serif); font-size: 2.75rem; font-weight: 700; color: var(--color-gold); margin-bottom: 0.25rem; }

.catalog-filter { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn { padding: 0.6rem 1.4rem; border-radius: var(--radius-full); border: 1px solid var(--border-glass); color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.filter-btn.active, .filter-btn:hover { background: var(--color-gold); color: #0d0b0a; border-color: var(--color-gold); font-weight: 700; }
.barber-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.faq-container { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; padding: 1.35rem 1.5rem; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--text-main); text-align: left; }
.faq-icon { width: 20px; height: 20px; color: var(--color-gold); transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 1.5rem; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 250px; padding-bottom: 1.35rem; }

.toast-container { position: fixed; top: 2rem; right: 2rem; z-index: 2100; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { background: var(--bg-card); border: 1px solid var(--color-gold); color: var(--text-main); padding: 1rem 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.75rem; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-main); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.8rem 1.1rem; background: rgba(13, 11, 10, 0.7); border: 1px solid var(--border-glass); border-radius: var(--radius-md); color: var(--text-main); font-size: 0.95rem; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }

.footer { background: #060504; border-top: 1px solid var(--border-glass); padding: 4rem 0 2rem 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; color: var(--text-muted); font-size: 0.875rem; }

.floating-widgets { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; display: flex; flex-direction: column; gap: 0.75rem; }
.btn-whatsapp { width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.btn-back-to-top { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-glass); color: var(--text-main); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition-normal); }
.btn-back-to-top.visible { opacity: 1; visibility: visible; }

@media (max-width: 992px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .barber-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .nav-menu { display: none; } .mobile-toggle { display: flex; } .barber-grid, .stats-grid { grid-template-columns: 1fr; } }
