/*
Theme Name: HAGAR BARBER SHOP
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.5.1.1792096409
Updated: 2026-10-15 21:33:29

*/

/* === Hagar Barber Shop · CSS mínimo (el resto es nativo de Elementor) === */

/* Enlaces: paleta del proyecto (Hello pinta los enlaces en rosa por defecto) */
a { color: inherit; }
.hb-link a { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: marco fino decorativo (aria-hidden por ser pseudo-elemento) */
.hb-hero { position: relative; }
.hb-hero::after {
  content: ""; position: absolute; inset: 24px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--e-global-color-a1b2c01) 40%, transparent);
}

/* Galería: grid 4 col (2 en tablet/móvil) con casillas altas 1 y 4; B/N → color al hover/foco */
.hb-gallery .gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  grid-auto-rows: clamp(150px, 19vw, 280px);
}
.hb-gallery .gallery-item { max-width: none !important; width: auto !important; margin: 0; overflow: hidden; } /* anula max-width por columnas de Elementor */
.hb-gallery .gallery-item:nth-child(1),
.hb-gallery .gallery-item:nth-child(4) { grid-row: span 2; }
.hb-gallery .gallery-icon { height: 100%; overflow: hidden; }
.hb-gallery .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); transition: filter .45s ease;
}
@media (hover: hover) { .hb-gallery .gallery-item:hover img { filter: grayscale(0); } }
.hb-gallery .gallery-item:focus-within img { filter: grayscale(0); }
@media (max-width: 1024px) {
  .hb-gallery .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 34vw, 300px); }
}
@media (max-width: 767px) { .hb-gallery .gallery { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .hb-gallery .gallery-item img { transition: none; } }

/* Foco de teclado visible (WCAG 2.4.7) */
:where(a, button, [role="button"]):focus-visible {
  outline: 2px solid var(--e-global-color-a1b2c02);
  outline-offset: 3px;
}

/* Reseñas (Trustindex): usa la tipografía de cuerpo del kit (P1) en lugar de la del widget */
.ti-widget, .ti-widget * { font-family: var(--e-global-typography-b2c3d09-font-family), sans-serif !important; }

/* Tijera que corta la línea del margen izquierdo (decorativa; ver assets/cut-line.js) */
.hb-cut { position: absolute; left: 0; z-index: 3; pointer-events: none; overflow: visible; }
@media (max-width: 1024px) { .hb-cut { display: none; } }

/* Página Gallery: misma galería B/N → color que la Home, con cuadrícula uniforme para cualquier nº de fotos */
.hb-gallery--full .gallery { grid-auto-rows: auto; }
.hb-gallery--full .gallery-item:nth-child(n) { grid-row: auto; }
.hb-gallery--full .gallery-icon { aspect-ratio: 4 / 5; height: auto; }
@media (max-width: 1024px) { .hb-gallery--full .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .hb-gallery--full .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
