/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://riojajardin.com/
 Description:  Child theme de GeneratePress para Rioja Jardín
 Author:       Rioja Jardín
 Author URI:   https://riojajardin.com/
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* =========================
   VARIABLES BASE
========================= */

:root {
  --rj-negro: #3a3a3a;
  --rj-naranja: #d98a2b;
  --rj-naranja-hover: #c97b1c;
  --rj-azul: #4f86c6;
  --rj-fondo: #ffffff;
  --rj-texto: #666666;
  --rj-footer: #2e2e2e;
  --rj-footer-bottom: #252525;
}

body {
  background: var(--rj-fondo);
}

body,
button,
input,
select,
textarea {
  font-family: "Poppins", sans-serif;
}

.entry-title,
.woocommerce-products-header__title,
h1, h2, h3, h4, h5, h6 {
  color: var(--rj-negro);
}

/* =========================
   BOTONES WOOCOMMERCE
========================= */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-block-button__link {
  background-color: var(--rj-naranja);
  color: #fff;
  border-radius: 6px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wp-block-button__link:hover {
  opacity: .92;
}

/* =========================
   TOP BAR GLOBAL
========================= */

.rj-topbar-global {
  background: var(--rj-naranja);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
}

.rj-topbar-global__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.rj-topbar-global__left span {
  font-weight: 600;
}

.rj-topbar-global__right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.rj-topbar-global__right a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.rj-topbar-global__right a:hover {
  opacity: 0.9;
}

/* =========================
   HEADER GLOBAL COMERCIAL
========================= */

.site-header {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.inside-header {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-branding {
  max-width: 320px;
}

/* Contenedor de navegación */
.main-navigation .inside-navigation {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  min-height: 72px !important;
}

/* Menú */
.main-navigation .main-nav {
  display: flex !important;
  align-items: center !important;
}

.main-navigation .main-nav ul {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

.main-navigation .main-nav ul li {
  display: flex !important;
  align-items: center !important;
}

.main-navigation .main-nav ul li a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  padding: 0 12px !important;
}

/* Utilidades header */
.rj-header-tools {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: 8px !important;
}

.rj-header-tools__item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 999px !important;
  background: #f3eee8 !important;
  text-decoration: none !important;
  transition: all .25s ease !important;
  overflow: hidden !important;
  line-height: 0 !important;
  padding: 0 !important;
  flex: 0 0 58px !important;
}

.rj-header-tools__item:hover {
  background: #e9dfd3 !important;
  transform: translateY(-1px) !important;
}

.rj-header-tools__item img {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  transform: scale(1.22) !important;
  transform-origin: center !important;
}

.rj-header-tools__item--wa {
  background: #25D366 !important;
}

.rj-header-tools__item--wa:hover {
  background: #1fb95a !important;
}

/* CTA cabecera */
.rj-header-cta {
  display: flex !important;
  align-items: center !important;
  margin-left: 6px !important;
}

.rj-header-cta__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 34px !important;
  border-radius: 999px !important;
  background: var(--rj-naranja) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: 0 12px 26px rgba(217,138,43,0.22) !important;
  transition: all .25s ease !important;
}

.rj-header-cta__btn:hover {
  background: var(--rj-naranja-hover) !important;
  transform: translateY(-1px) !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .rj-header-cta,
  .rj-header-tools {
    display: none !important;
  }
}

/* =========================
   WHATSAPP FLOTANTE GLOBAL
========================= */

.rj-whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rj-whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}

.rj-whatsapp-float__icon {
  font-size: 20px;
  line-height: 1;
}

/* =========================
   FOOTER GLOBAL
========================= */

.rj-footer-global {
  background: var(--rj-footer);
  color: #ffffff;
  margin-top: 0;
  padding-top: 60px;
}

.rj-footer-global__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.rj-footer-global__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.rj-footer__title {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #ffffff;
}

.rj-footer__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #cfcfcf;
}

.rj-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rj-footer__list li {
  margin-bottom: 8px;
}

.rj-footer__list a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.7;
  transition: color .25s ease;
}

.rj-footer__list a:hover {
  color: #ffffff;
}

.rj-footer__contact {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #cfcfcf;
}

.rj-footer__contact a {
  color: #ffffff;
  text-decoration: none;
}

.rj-footer__contact a:hover {
  color: var(--rj-naranja);
}

/* Redes footer */
.rj-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  align-items: center;
}

.rj-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  transition: background .25s ease, transform .25s ease;
  overflow: hidden;
  line-height: 0;
}

.rj-footer__social a:hover {
  background: var(--rj-naranja);
  transform: translateY(-1px);
}

.rj-footer__social img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  transform: scale(1.22);
  transform-origin: center;
}

/* Logos de pago */
.rj-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.rj-footer__payments img {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.96;
}

.rj-footer__bottom {
  margin-top: 40px;
  padding: 18px 20px;
  text-align: center;
  font-size: 13px;
  background: var(--rj-footer-bottom);
  color: #bdbdbd;
}

.site-info {
  display: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .rj-header-cta,
  .rj-header-tools {
    display: none;
  }
}

@media (max-width: 991px) {
  .rj-topbar-global__inner {
    flex-direction: column;
    text-align: center;
  }

  .rj-footer-global__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 575px) {
  .rj-whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 0 16px;
  }

  .rj-whatsapp-float__text {
    display: none;
  }

  .rj-footer-global {
    padding-top: 46px;
  }

  .rj-footer-global__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}