/* ===== VARIABLES ===== */
:root {
  --red: #cc0000;
  --red-bright: #ff1a1a;
  --red-dark: #880000;
  --red-glow: rgba(204, 0, 0, 0.3);
  --black: #000000;
  --black-soft: #0a0a0a;
  --black-card: #111111;
  --black-border: #1a1a1a;
  --gray-dark: #222222;
  --gray-mid: #444444;
  --gray-light: #888888;
  --white: #ffffff;
  --white-soft: #f0f0f0;
  --gold: #c9a84c;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --nav-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 32px rgba(204,0,0,0.25);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-red { color: var(--red-bright); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-size: 0.95rem;
  font-weight: 600; letter-spacing: 0.5px; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(204,0,0,0.45);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red-bright);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--black-border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(0,0,0,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.nav-container {
  max-width: 1300px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-img {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: 22%;
  filter: drop-shadow(0 0 8px rgba(204,0,0,0.5));
}
.logo-text {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 400;
  color: var(--white); letter-spacing: 3px;
}
.logo-accent { color: var(--red); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-size: 0.9rem;
  font-weight: 500; color: var(--gray-light); transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--red); border-radius: 2px;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(180,0,0,0.15) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 80%, rgba(100,0,0,0.1) 0%, transparent 50%);
}
.hero-particles {
  position: absolute; inset: 0; pointer-events: none;
}
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(204,0,0,0.4);
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 760px;
}
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  border: 1px solid rgba(204,0,0,0.4); background: rgba(204,0,0,0.1);
  font-size: 0.8rem; font-weight: 500; color: var(--red-bright);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px;
}
.hero-logo {
  width: 120px; height: 120px; margin: 0 auto 32px;
  border-radius: 22%;
  filter: drop-shadow(0 0 30px rgba(204,0,0,0.6));
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(204,0,0,0.5)); }
  50% { filter: drop-shadow(0 0 45px rgba(204,0,0,0.8)); }
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400; line-height: 1.05; color: var(--white);
  margin-bottom: 20px; letter-spacing: 3px;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--gray-light); line-height: 1.7;
  margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 24px 40px; border-radius: var(--radius-lg);
  border: 1px solid var(--black-border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat-number {
  display: block; font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 700; color: var(--red-bright);
}
.stat-label { font-size: 0.75rem; color: var(--gray-light); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--black-border); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--gray-mid); font-size: 0.75rem; letter-spacing: 1px;
}
.scroll-arrow {
  width: 20px; height: 20px; border-right: 2px solid var(--gray-mid);
  border-bottom: 2px solid var(--gray-mid); transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: rotate(45deg) translate(-2px,-2px); } 50% { transform: rotate(45deg) translate(2px,2px); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 5px 16px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); background: rgba(204,0,0,0.1);
  border: 1px solid rgba(204,0,0,0.2); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.1; margin-bottom: 20px; letter-spacing: 2px;
}
.section-desc { font-size: 1.05rem; color: var(--gray-light); max-width: 600px; margin: 0 auto; }

/* ===== ACERCA ===== */
.acerca { background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.feature-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--black-card);
  border: 1px solid var(--black-border);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0; transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(204,0,0,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(204,0,0,0.08); border: 1px solid rgba(204,0,0,0.15);
  border-radius: 14px; color: var(--red-bright);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 10px; letter-spacing: 1px; }
.feature-card p { color: var(--gray-light); font-size: 0.95rem; line-height: 1.7; }

/* ===== ROLE SECTIONS ===== */
.role-section { border-top: 1px solid var(--black-border); }
.barbero-section { background: var(--black-soft); }
.cliente-section { background: var(--black); }
.dueno-section { background: var(--black-soft); }
.secretario-section { background: var(--black); }
.role-header { text-align: center; margin-bottom: 60px; }
.role-tag {
  display: inline-block; padding: 5px 20px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.barbero-tag { color: var(--red-bright); background: rgba(204,0,0,0.12); border: 1px solid rgba(204,0,0,0.25); }
.cliente-tag { color: #ff6b6b; background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.2); }
.dueno-tag { color: var(--gold); background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); }
.secretario-tag { color: #6bc8ff; background: rgba(107,200,255,0.1); border: 1px solid rgba(107,200,255,0.2); }
.role-content {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start;
}
.role-content.reverse { direction: rtl; }
.role-content.reverse > * { direction: ltr; }
.role-features { display: flex; flex-direction: column; gap: 24px; }
.role-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.02); border: 1px solid var(--black-border);
  transition: var(--transition);
}
.role-feature:hover { border-color: rgba(204,0,0,0.2); background: rgba(204,0,0,0.04); }
.rf-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(204,0,0,0.08); border-radius: 12px;
  color: var(--red-bright);
}
.rf-icon svg { width: 22px; height: 22px; }
.rf-text h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.rf-text p { font-size: 0.9rem; color: var(--gray-light); line-height: 1.6; }
.role-tutorials h3 {
  font-family: var(--font-display); font-size: 1.4rem;
  margin-bottom: 24px; color: var(--white);
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.video-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--black-card); border: 1px solid var(--black-border);
  cursor: pointer; transition: var(--transition); group;
}
.video-card:hover {
  border-color: rgba(204,0,0,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.video-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--gray-dark); overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); opacity: 0; transition: var(--transition);
}
.video-card:hover .video-play { opacity: 1; }
.play-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(204,0,0,0.6);
}
.play-icon::after {
  content: ''; display: block; width: 0; height: 0;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  border-left: 16px solid white; margin-left: 3px;
}
.thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #111 0%, #1a0000 100%); font-size: 2.5rem;
}
.video-info { padding: 14px; }
.video-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.video-info p { font-size: 0.8rem; color: var(--gray-light); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-section-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 8px;
}
.badge-barbero { background: rgba(204,0,0,0.2); color: var(--red-bright); }
.badge-cliente { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.badge-dueno { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-secretario { background: rgba(107,200,255,0.15); color: #6bc8ff; }
.loading-videos {
  grid-column: 1/-1; text-align: center; padding: 48px;
  color: var(--gray-light);
}
.loading-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--black-border); border-top-color: var(--red);
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-videos {
  grid-column: 1/-1; text-align: center; padding: 48px;
  color: var(--gray-mid);
}
.empty-videos .empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ===== TUTORIALES SECTION ===== */
.tutoriales-section { background: var(--black); border-top: 1px solid var(--black-border); }
.tutorial-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px;
}
.tab-btn {
  padding: 10px 28px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  color: var(--gray-light); border: 1.5px solid var(--black-border);
  background: transparent; transition: var(--transition);
}
.tab-btn:hover { color: var(--white); border-color: var(--gray-mid); }
.tab-btn.active {
  background: var(--red); color: var(--white); border-color: var(--red);
  box-shadow: 0 4px 16px rgba(204,0,0,0.3);
}
.tutorials-container .video-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

/* ===== CONTACTO ===== */
.contacto-section { background: var(--black-soft); border-top: 1px solid var(--black-border); }
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 24px; }
.contacto-item { display: flex; gap: 16px; align-items: flex-start; }
.contacto-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(204,0,0,0.08); border-radius: 12px;
  color: var(--red-bright);
}
.contacto-icon svg { width: 20px; height: 20px; }
.contacto-item h4 { font-size: 0.85rem; color: var(--gray-light); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; }
.contacto-item p { font-size: 1rem; color: var(--white); }
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--black-border); display: flex; align-items: center; justify-content: center;
  color: var(--gray-light); transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { border-color: var(--red); color: var(--red-bright); background: rgba(204,0,0,0.1); }
.contacto-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--gray-light); letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black-card); border: 1.5px solid var(--black-border);
  border-radius: var(--radius); padding: 12px 16px; color: var(--white);
  font-family: inherit; font-size: 0.95rem; transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
}
.form-group select option { background: var(--black-card); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; padding: 14px; border-radius: var(--radius);
  background: rgba(0, 200, 100, 0.1); border: 1px solid rgba(0,200,100,0.2);
  color: #00c864; font-size: 0.9rem; text-align: center;
}
.form-success.show { display: block; }

/* ===== FOOTER ===== */
.footer { background: var(--black); border-top: 1px solid var(--black-border); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 22%; }
.footer-name {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; letter-spacing: 3px;
}
.footer-name span { color: var(--red); }
.footer-brand p { color: var(--gray-light); font-size: 0.9rem; line-height: 1.7; max-width: 240px; }
.footer-links h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--gray-light); margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.95rem; color: var(--gray-mid); transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--black-border); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--gray-mid);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.video-modal.open { opacity: 1; pointer-events: all; }
.modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative; z-index: 1; width: 90%; max-width: 900px;
  background: var(--black-card); border-radius: var(--radius-lg);
  border: 1px solid var(--black-border); overflow: hidden;
  transform: scale(0.9); transition: var(--transition);
}
.video-modal.open .modal-content { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.6);
  color: var(--white); font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--black-border); transition: var(--transition);
}
.modal-close:hover { background: var(--red); border-color: var(--red); }
.modal-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.modal-video-wrap video,
.modal-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.modal-video-wrap iframe { display: none; }
.modal-info { padding: 20px 24px; }
.modal-info h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.modal-info p { color: var(--gray-light); font-size: 0.9rem; }

/* ===== SCREENSHOTS / PHONE SLIDER ===== */
.screenshots-section {
  background: var(--black);
  border-top: 1px solid var(--black-border);
  overflow: hidden;
}
.phone-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.phone-mockup {
  position: relative;
  flex-shrink: 0;
  filter:
    drop-shadow(0 40px 80px rgba(0,0,0,0.9))
    drop-shadow(0 0 60px rgba(204,0,0,0.18));
  transition: transform 0.4s ease;
}
.phone-mockup:hover { animation-play-state: paused; }
.phone-outer {
  position: relative;
  width: 268px;
  background: linear-gradient(160deg, #303030 0%, #141414 45%, #1e1e1e 100%);
  border-radius: 46px;
  padding: 14px 12px 22px;
  border: 1.5px solid #2e2e2e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -2px 0 rgba(0,0,0,0.6),
    0 0 0 1px #000,
    0 0 0 2.5px #1c1c1c,
    24px 48px 80px rgba(0,0,0,0.85);
}
/* Botones laterales */
.phone-btn-vol-up,
.phone-btn-vol-down,
.phone-btn-power {
  position: absolute;
  background: linear-gradient(to right, #1a1a1a, #282828);
  border-radius: 2px 0 0 2px;
}
.phone-btn-vol-up  { left: -3px; top: 88px;  width: 3px; height: 30px; }
.phone-btn-vol-down{ left: -3px; top: 128px; width: 3px; height: 30px; }
.phone-btn-power   { right: -3px; top: 100px; width: 3px; height: 58px; border-radius: 0 2px 2px 0; }
.phone-inner {
  background: #000;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 26px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding-top: 5px;
}
.phone-camera {
  width: 10px; height: 10px;
  background: #131313;
  border-radius: 50%;
  border: 1px solid #222;
  box-shadow: inset 0 0 0 2px #0d0d0d;
}
.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #050505;
  overflow: hidden;
  position: relative;
}
.phone-slides-track {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.phone-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  flex-grow: 0;
  overflow: hidden;
  position: relative;
}
.phone-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.phone-slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 28px; text-align: center;
}
.phone-slide-placeholder .ph-icon {
  font-size: 3rem; opacity: 0.45;
}
.phone-slide-placeholder .ph-label {
  font-size: 0.78rem; font-weight: 500;
  color: rgba(255,255,255,0.35);
  line-height: 1.5; letter-spacing: 0.5px;
}
.phone-home-bar {
  width: 84px; height: 4px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
  margin: 10px auto 4px;
}
/* Flechas del slider */
.slider-arrow {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: var(--transition);
  flex-shrink: 0;
}
.slider-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 24px rgba(204,0,0,0.45);
  transform: scale(1.1);
}
.slider-arrow:disabled { opacity: 0.25; pointer-events: none; }
/* Dots */
.slider-dots {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 36px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--gray-mid);
  cursor: pointer;
  transition: all 0.35s ease;
}
.slider-dot.active {
  width: 28px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(204,0,0,0.5);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .role-content { grid-template-columns: 1fr; gap: 40px; }
  .role-content.reverse { direction: ltr; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .phone-showcase { gap: 20px; }
  .phone-outer { width: 220px; }
  .slider-arrow { width: 40px; height: 40px; }
  .slider-arrow svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .phone-showcase { gap: 12px; }
  .phone-outer { width: 190px; border-radius: 38px; }
  .phone-btn-vol-up, .phone-btn-vol-down, .phone-btn-power { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    height: calc(100vh - var(--nav-h));
    background: #000;
    flex-direction: column; align-items: stretch;
    justify-content: center;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-link {
    font-size: 1.3rem; padding: 18px 32px;
    display: block; width: 100%;
    border-bottom: 1px solid #1a1a1a;
    font-weight: 500; color: #fff;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--red-bright);
    background: rgba(204,0,0,0.08);
    padding-left: 40px;
  }
  .nav-link.active::after { display: none; }
  .section { padding: 64px 0; }
  .hero-stats { padding: 16px 24px; gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ----- Scroll-triggered variants ----- */
.anim-up    { opacity: 0; transform: translateY(60px);  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.anim-left  { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.anim-right { opacity: 0; transform: translateX(60px);  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.anim-scale { opacity: 0; transform: scale(0.75);       transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34,1.5,0.64,1); }
.anim-flip  { opacity: 0; transform: rotateX(30deg) translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.8,0.2,1); transform-origin: top center; }
.anim-visible { opacity: 1 !important; transform: none !important; }

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ----- Shimmer on tags & badges ----- */
.section-tag, .role-tag, .hero-badge {
  position: relative; overflow: hidden;
}
.section-tag::after, .role-tag::after, .hero-badge::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-15deg);
  animation: shimmer-tag 4s ease-in-out infinite;
}
@keyframes shimmer-tag {
  0%, 60% { left: -80%; }
  100%     { left: 160%; }
}

/* ----- Animated gradient on red accent text ----- */
.text-red {
  background: linear-gradient(90deg, #cc0000 0%, #ff3333 40%, #ff6666 60%, #cc0000 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-gradient 5s linear infinite;
}
@keyframes text-gradient {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ----- Button shine on hover ----- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-15deg);
}
.btn:hover::after { left: 140%; transition: left 0.55s ease; }

/* ----- Feature card: spotlight + icon bounce ----- */
.feature-card {
  background-image: radial-gradient(ellipse at var(--cx,50%) var(--cy,50%),
    rgba(204,0,0,0.07) 0%, transparent 65%);
}
.feature-icon {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), background 0.3s, box-shadow 0.3s;
}
.feature-card:hover .feature-icon {
  transform: scale(1.22) rotate(8deg);
  background: rgba(204,0,0,0.2);
  box-shadow: 0 0 22px rgba(204,0,0,0.45);
}
.feature-card h3 { transition: color 0.3s ease; }
.feature-card:hover h3 { color: var(--red-bright); }

/* ----- Role feature icon bounce ----- */
.rf-icon {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.role-feature:hover .rf-icon {
  transform: scale(1.2) rotate(-6deg);
  box-shadow: 0 0 20px rgba(204,0,0,0.4);
}
.role-feature { transition: border-color 0.3s, background 0.3s, transform 0.3s ease; }
.role-feature:hover { transform: translateX(6px); }

/* ----- Section title reveal line ----- */
.section-header { position: relative; }
.title-line {
  display: block; width: 0; height: 2px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-bright), var(--red), transparent);
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.2,0.8,0.2,1) 0.35s;
}
.section-header.anim-visible .title-line,
.role-header.anim-visible .title-line { width: 80px; }

/* ----- Stats hover glow ----- */
@keyframes stat-num-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(204,0,0,0.3); }
  50%       { text-shadow: 0 0 28px rgba(204,0,0,0.8), 0 0 55px rgba(204,0,0,0.35); }
}
.stat:hover .stat-number { animation: stat-num-glow 1.5s ease-in-out infinite; }

/* ----- Video card enhanced hover ----- */
.video-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 56px rgba(0,0,0,0.7), 0 0 0 1px rgba(204,0,0,0.35);
}

/* ----- Animated background orbs in role sections ----- */
.barbero-section, .cliente-section, .dueno-section { position: relative; overflow: hidden; }
.barbero-section::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,0,0,0.07) 0%, transparent 70%);
  top: -250px; right: -250px; pointer-events: none;
  animation: orb-drift 14s ease-in-out infinite;
}
.cliente-section::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.06) 0%, transparent 70%);
  bottom: -200px; left: -200px; pointer-events: none;
  animation: orb-drift 11s ease-in-out infinite reverse;
}
.dueno-section::before {
  content: ''; position: absolute;
  width: 650px; height: 650px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  top: -200px; left: -200px; pointer-events: none;
  animation: orb-drift 13s ease-in-out infinite 2s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(40px,-30px) scale(1.08); }
  66%       { transform: translate(-25px, 35px) scale(0.93); }
}

/* ----- Hero scroll pulse ----- */
.hero-scroll { animation: hero-scroll-pulse 2.8s ease-in-out infinite; }
@keyframes hero-scroll-pulse {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9;  transform: translateX(-50%) translateY(6px); }
}

/* ----- Contacto icon bounce ----- */
.contacto-icon { transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s; }
.contacto-item:hover .contacto-icon {
  transform: scale(1.2) rotate(-8deg);
  box-shadow: 0 0 18px rgba(204,0,0,0.4);
}

/* ----- Social link spin ----- */
.social-link { transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s, color 0.3s, background 0.3s; }
.social-link:hover { transform: scale(1.15) rotate(6deg); }

/* ----- Section screenshots phone glow pulse ----- */
@keyframes phone-glow-pulse {
  0%, 100% { filter: drop-shadow(0 40px 80px rgba(0,0,0,0.9)) drop-shadow(0 0 40px rgba(204,0,0,0.12)); }
  50%       { filter: drop-shadow(0 40px 80px rgba(0,0,0,0.9)) drop-shadow(0 0 60px rgba(204,0,0,0.35)); }
}
.phone-mockup { animation: phone-float 5s ease-in-out infinite, phone-glow-pulse 4s ease-in-out infinite; }
