/* ============================================
   AR — CSS PRINCIPAL
   Layout, componentes, animaciones
   ============================================ */

/* ---- Contenedor general ---- */
.ar-main-content {
  min-height: 60vh;
}

.ar-header-inner,
.ar-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER — transparente -> sólido al scroll
   ============================================ */
.ar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--ar-fucsia);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 14px 0;
}

.ar-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Estado "scrolled": fucsia sólido + sombra */
.ar-header.ar-scrolled {
  background: var(--ar-fucsia);
  box-shadow: 0 4px 20px rgba(230, 0, 126, 0.35);
  padding: 8px 0;
}

/* Logo */
.ar-logo-text {
  font-family: var(--ar-font-titulo);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
  background: var(--ar-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--ar-transition);
}

/* Logo de imagen (RA) */
.ar-logo img,
.ar-logo .custom-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: var(--ar-transition);
}

.ar-header.ar-scrolled .ar-logo img,
.ar-header.ar-scrolled .ar-logo .custom-logo {
  height: 40px;
}

/* Texto e iconos del header: blancos sobre la barra fucsia */
.ar-nav .ar-menu a,
.ar-header-icons .ar-icon-btn {
  color: var(--ar-blanco);
}

/* En estado scrolled, se mantienen blancos (la barra sigue fucsia) */
.ar-header.ar-scrolled .ar-nav .ar-menu a,
.ar-header.ar-scrolled .ar-header-icons .ar-icon-btn {
  color: var(--ar-blanco);
}

/* ---- Menú ---- */
.ar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.ar-menu a {
  font-family: var(--ar-font-titulo);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

/* Subrayado animado al hover (blanco sobre fucsia) */
.ar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ar-blanco);
  transition: width 0.3s ease;
}

.ar-menu a:hover::after {
  width: 100%;
}

/* ---- Iconos del header ---- */
.ar-header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ar-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
  transition: var(--ar-transition);
}

.ar-icon-btn:hover {
  transform: translateY(-2px);
  color: rgba(255, 255, 255, 0.7);
}

/* Contador del carrito */
.ar-cart-btn {
  position: relative;
}

.ar-cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--ar-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Botón móvil oculto en desktop */
.ar-mobile-toggle {
  display: none;
}

/* ---- Barra de búsqueda desplegable ---- */
.ar-search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(255, 255, 255, 0.97);
}

.ar-search-bar.ar-open {
  max-height: 120px;
  padding: 20px 0;
  box-shadow: var(--ar-shadow);
}

.ar-search-bar form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 0 24px;
}

.ar-search-bar input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--ar-gris-claro);
  border-radius: var(--ar-radius);
  font-size: 15px;
  outline: none;
  transition: var(--ar-transition);
}

.ar-search-bar input[type="search"]:focus {
  border-color: var(--ar-cyan);
}

.ar-search-bar button {
  background: var(--ar-gradient);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--ar-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--ar-transition);
}

.ar-search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 126, 0.3);
}

/* ============================================
   BOTONES (estilo de marca, aplicado a WooCommerce)
   ============================================ */
.ar-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--ar-gradient);
  color: #fff !important;
  border: none;
  padding: 14px 32px;
  border-radius: var(--ar-radius);
  font-family: var(--ar-font-titulo);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--ar-transition);
  display: inline-block;
  text-align: center;
}

.ar-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 0, 126, 0.35);
  color: #fff !important;
}

/* ============================================
   CATÁLOGO DE PRODUCTOS (WooCommerce)
   ============================================ */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border-radius: var(--ar-radius);
  overflow: hidden;
  box-shadow: var(--ar-shadow);
  transition: var(--ar-transition);
  padding-bottom: 16px;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.woocommerce ul.products li.product img {
  border-radius: var(--ar-radius) var(--ar-radius) 0 0;
  transition: var(--ar-transition);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ar-font-titulo);
  font-size: 16px;
  padding: 12px 16px 4px;
}

.woocommerce ul.products li.product .price {
  color: var(--ar-fucsia);
  font-weight: 600;
  padding: 0 16px;
}

/* Precio del producto individual */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--ar-fucsia);
  font-size: 28px;
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.ar-footer {
  background: var(--ar-negro);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
  margin-top: 80px;
}

.ar-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.ar-footer-logo {
  font-family: var(--ar-font-titulo);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 2px;
  background: var(--ar-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ar-footer-tagline {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.ar-footer-widget-title {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.ar-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ar-footer-nav li {
  margin-bottom: 10px;
}

.ar-footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.ar-footer-nav a:hover {
  color: var(--ar-cyan);
}

.ar-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  text-align: center;
}

.ar-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ANIMACIONES — aparición al hacer scroll
   ============================================ */
.ar-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ar-fade-in.ar-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .ar-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .ar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 32px 32px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .ar-nav.ar-open {
    right: 0;
  }

  .ar-nav .ar-menu {
    flex-direction: column;
    gap: 24px;
  }

  /* En móvil el texto del menú siempre es oscuro (fondo blanco del panel) */
  .ar-nav .ar-menu a {
    color: var(--ar-negro);
    font-size: 18px;
  }

  .ar-mobile-toggle {
    display: flex;
  }
}

/* ============================================
   PÁGINA DE INICIO — HERO
   ============================================ */
.ar-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.ar-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Overlay oscuro para legibilidad del texto sobre el shader */
.ar-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.ar-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
  color: #fff;
}

.ar-hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.ar-hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

.ar-hero-btn {
  font-size: 17px;
  padding: 16px 44px;
  background: #fff;
  color: var(--ar-fucsia) !important;
}

.ar-hero-btn:hover {
  background: #fff;
  color: var(--ar-cyan) !important;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.4);
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.ar-section {
  padding: 80px 0;
}

.ar-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ar-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.ar-section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
}

/* Línea decorativa bajo el título */
.ar-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--ar-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

.ar-section-subtitle {
  font-size: 17px;
  color: var(--ar-gris-texto);
  margin: 0;
}

.ar-categories {
  background: var(--ar-gris-claro);
}

/* ============================================
   BANNER
   ============================================ */
.ar-banner {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.ar-banner-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ar-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.ar-banner-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  color: #fff;
}

.ar-banner-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
  color: #fff;
}

.ar-banner-text {
  font-size: 18px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.9);
}

.ar-banner .ar-btn {
  background: #fff;
  color: var(--ar-fucsia) !important;
}

.ar-banner .ar-btn:hover {
  color: var(--ar-cyan) !important;
}

/* ============================================
   TIENDA / CATÁLOGO
   ============================================ */
.ar-shop-wrapper {
  padding: 120px 0 80px;
}

.ar-shop-header {
  text-align: center;
  margin-bottom: 24px;
}

.ar-shop-title {
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 8px;
}

.ar-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.woocommerce .ar-shop-toolbar .woocommerce-result-count {
  margin: 0;
  color: var(--ar-gris-texto);
  font-size: 14px;
}

.woocommerce .ar-shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.woocommerce .ar-shop-toolbar select {
  padding: 8px 14px;
  border-radius: var(--ar-radius);
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  font-size: 14px;
}

/* Badge "oferta" con estilo de marca */
.woocommerce span.onsale {
  background: var(--ar-gradient);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 600;
  min-height: auto;
  min-width: auto;
  line-height: 1.4;
}

/* ============================================
   FICHA DE PRODUCTO INDIVIDUAL
   ============================================ */
.single-product .ar-main-content {
  padding-top: 120px;
}

.woocommerce div.product {
  margin-bottom: 60px;
}

.woocommerce div.product .product_title {
  font-family: var(--ar-font-titulo);
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 12px;
}

.woocommerce div.product .woocommerce-product-rating {
  margin-bottom: 18px;
}

.woocommerce #reviews #comments h2 {
  font-family: var(--ar-font-titulo);
}

/* Pestañas de descripción */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--ar-gris-claro);
  border-bottom-color: var(--ar-gris-claro);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--ar-fucsia);
}

/* Cantidad */
.woocommerce .quantity .qty {
  border-radius: var(--ar-radius);
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  padding: 10px;
}

/* ============================================
   BLOG / POSTS
   ============================================ */
.ar-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  padding-top: 60px;
}

.ar-post-card {
  background: #fff;
  border-radius: var(--ar-radius);
  overflow: hidden;
  box-shadow: var(--ar-shadow);
  transition: var(--ar-transition);
}

.ar-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.ar-post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ar-post-body {
  padding: 24px;
}

.ar-post-title {
  font-size: 20px;
  margin: 0 0 12px;
}

.ar-post-excerpt {
  color: var(--ar-gris-texto);
  margin-bottom: 20px;
  font-size: 15px;
}

/* ============================================
   PÁGINAS ESTÁTICAS
   ============================================ */
.ar-page-narrow {
  max-width: 800px;
}

.single .ar-main-content,
.page .ar-main-content {
  padding-top: 120px;
}

.ar-page-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ar-gris-texto);
}

.ar-page-content h2,
.ar-page-content h3 {
  color: var(--ar-negro);
  margin: 32px 0 16px;
}

.ar-page-thumb {
  margin-bottom: 32px;
  border-radius: var(--ar-radius);
  overflow: hidden;
}

/* ============================================
   PAGINACIÓN
   ============================================ */
.ar-pagination,
.woocommerce nav.woocommerce-pagination {
  margin-top: 50px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
  border-radius: 8px;
  padding: 8px 14px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--ar-gradient);
  color: #fff;
  border: none;
}

/* ============================================
   404
   ============================================ */
.ar-404 {
  padding-top: 160px;
}

.ar-404-code {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 700;
  margin: 0;
  background: var(--ar-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.ar-no-content {
  text-align: center;
  padding: 80px 0;
}

/* ============================================
   ANCHO DE CONTENIDO WOOCOMMERCE
   ============================================ */
.woocommerce .ar-section-inner,
.woocommerce-page .ar-section-inner {
  max-width: 1280px;
}
