/* ==========================================================================
   Reset & Base — Barbería El Firulete
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--ef-color-fondo);
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ef-color-fondo);
  color: var(--ef-color-texto);
  font-family: var(--ef-fuente-cuerpo);
  font-size: var(--ef-fs-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.55em;
  color: var(--ef-color-blanco);
  font-family: var(--ef-fuente-display);
  line-height: 1.18;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.ef-container {
  width: var(--ef-container);
  margin-inline: auto;
}

.ef-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Cabecera clásica de sección de barbería (/ 01, / 02...) */
.ef-section-head {
  margin-bottom: clamp(1.85rem, 3.8vw, 3rem);
}

.ef-section-index {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ef-fuente-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ef-color-dorado);
  margin-bottom: 0.6rem;
}

.ef-section-index::after {
  content: '';
  display: inline-block;
  width: 54px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ef-color-dorado), var(--ef-color-primario), transparent);
}

.ef-section-title {
  font-family: var(--ef-fuente-display);
  font-weight: 800;
  font-size: var(--ef-fs-h2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.ef-section-subtitle {
  font-family: var(--ef-fuente-script);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 400;
  color: var(--ef-color-dorado-claro);
  line-height: 1.15;
  margin-bottom: 0;
}

/* Ornamento de fileteado / barbería */
.ef-ornament-line {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ef-color-dorado);
}

.ef-ornament-line::before,
.ef-ornament-line::after {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ef-color-dorado));
}

.ef-ornament-line::after {
  background: linear-gradient(90deg, var(--ef-color-dorado), transparent);
}

/* Scroll reveal */
.ef-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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