/* ==========================================================================
   Record Boat - branding del child theme de Kadence
   Iguala tienda.recordboat.cl al sitio Django recordboat.cl
   Paleta y tipografia tomadas de styleguideline.css del proyecto Django.
   ========================================================================== */

:root {
  --rb-primario:   #F2D230; /* amarillo del logo */
  --rb-secundario: #3DA5D9; /* azul agua */
  --rb-terciario:  #10375C; /* azul navy */
  --rb-cuarto:     #307BA0;
  --rb-sexto:      #08233B;
  --rb-light:      #F0F8FF;
  --rb-dark:       #333333;
  --rb-white:      #FFFFFF;
  --rb-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Tipografia global (Montserrat) ===== */
body,
.wp-site-blocks,
button, input, select, textarea,
.woocommerce, .woocommerce-page {
  font-family: var(--rb-font);
}
h1, h2, h3, h4, h5, h6,
.entry-title, .product_title,
.woocommerce-loop-product__title,
.wp-block-heading {
  font-family: var(--rb-font);
}

/* Contenedor comun */
.rb-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.rb-topbar {
  background: var(--rb-light);
  color: var(--rb-dark);
  font-size: 14px;
  border-bottom: 1px solid rgba(16,55,92,.06);
}
.rb-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.rb-topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rb-topbar-left a { color: var(--rb-dark); text-decoration: none; }
.rb-topbar-left a:hover { color: var(--rb-secundario); }
.rb-topbar-left i { color: var(--rb-terciario); margin-right: 4px; }
.rb-flag { display: inline-block; vertical-align: middle; }
.rb-sep { color: rgba(16,55,92,.3); }
.rb-topbar-right { display: flex; align-items: center; gap: 6px; }
.rb-social {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rb-terciario); text-decoration: none; transition: .2s;
}
.rb-social:hover { background: var(--rb-primario); color: var(--rb-white); }
@media (max-width: 991px) { .rb-topbar { display: none; } }

/* ==========================================================================
   FRANJA DE DESPACHO (couriers)
   ========================================================================== */
.rb-shipping-strip {
  background: var(--rb-terciario);
  color: var(--rb-white);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
}
.rb-shipping-strip strong { color: var(--rb-primario); }
.rb-shipping-strip i { margin-right: 4px; }
@media (max-width: 600px) { .rb-shipping-strip { font-size: 12px; padding: 8px 10px; } }

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.rb-header {
  background: var(--rb-white);
  box-shadow: 0 2px 12px rgba(16,55,92,.08);
  position: relative; z-index: 50;
}
.rb-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.rb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rb-logo { height: 50px !important; width: auto !important; max-height: 50px; object-fit: contain; }
.rb-brand-text { display: flex; flex-direction: column; line-height: 1; }
.rb-brand-name { color: var(--rb-terciario); font-weight: 700; font-size: 1.35rem; letter-spacing: -.5px; }
.rb-brand-sub { color: var(--rb-secundario); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: 1px; margin-top: 3px; }

.rb-menu { display: flex; align-items: center; gap: 6px; }
.rb-menu a {
  color: var(--rb-terciario); font-weight: 700; text-transform: uppercase;
  font-size: .85rem; text-decoration: none; padding: 8px 10px; position: relative;
}
.rb-menu a:not(.rb-cta)::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
  background: var(--rb-primario); transform: scaleX(0); transform-origin: left; transition: .25s;
}
.rb-menu a:not(.rb-cta):hover::after { transform: scaleX(1); }
.rb-cta {
  background: var(--rb-primario); color: var(--rb-terciario) !important;
  border-radius: 50px; padding: 9px 20px !important; font-weight: 700;
  box-shadow: 0 4px 10px rgba(242,210,48,.4); transition: .2s; white-space: nowrap;
}
.rb-cta i { margin-right: 6px; }
.rb-cta:hover { transform: translateY(-2px); }

.rb-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.rb-toggle span { width: 26px; height: 3px; background: var(--rb-terciario); border-radius: 2px; transition: .2s; }

@media (max-width: 991px) {
  .rb-toggle { display: flex; }
  .rb-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; background: #fff;
    padding: 10px 16px; box-shadow: 0 8px 20px rgba(16,55,92,.12);
  }
  .rb-menu.open { display: flex; }
  .rb-menu a { padding: 12px 8px; }
  .rb-menu a:not(.rb-cta)::after { display: none; }
  .rb-cta { text-align: center; margin-top: 8px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.rb-footer { background: var(--rb-terciario); color: #fff; padding: 60px 0 0; margin-top: 40px; }
.rb-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.rb-foot-col h4 { color: #fff; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin: 0 0 18px; font-size: 1.1rem; }
.rb-foot-col p { color: rgba(255,255,255,.85); margin: 0 0 10px; line-height: 1.6; }
.rb-foot-col a { color: #fff; text-decoration: none; display: block; margin-bottom: 10px; transition: .2s; }
.rb-foot-col a:hover { color: var(--rb-primario); padding-left: 4px; }
.rb-foot-col i { color: var(--rb-primario); margin-right: 8px; }
.rb-foot-logo { background: #fff; border-radius: 10px; padding: 10px; width: 120px !important; height: auto !important; max-width: 120px; margin-bottom: 14px; display: block; }
.rb-foot-social { display: flex; gap: 10px; margin-top: 12px; }
.rb-foot-social a {
  width: 40px; height: 40px; margin: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rb-foot-social a:hover { background: var(--rb-primario); border-color: var(--rb-primario); padding: 0; }
.rb-foot-social i { color: #fff; margin: 0; }
.rb-foot-social a:hover i { color: var(--rb-terciario); }

.rb-copyright {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 16px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  color: rgba(255,255,255,.8); font-size: .9rem;
}
.rb-copy-links a { color: #fff; text-decoration: none; }
.rb-copy-links a:hover { color: var(--rb-primario); }

@media (max-width: 767px) {
  .rb-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .rb-copyright { justify-content: center; text-align: center; }
}

/* ==========================================================================
   WOOCOMMERCE - retoque de color (botones en estilo recordboat, pill + paleta)
   Solo afecta apariencia; no cambia la estructura del catalogo.
   ========================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button {
  background-color: var(--rb-terciario) !important;
  color: #fff !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: .2s !important;
}
.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,
.wc-block-components-button:hover {
  background-color: var(--rb-primario) !important;
  color: var(--rb-terciario) !important;
}
.woocommerce span.onsale { background: var(--rb-primario); color: var(--rb-terciario); }
.woocommerce .star-rating span,
.woocommerce p.stars a { color: var(--rb-primario); }

/* ==========================================================================
   CARTAS DE PRODUCTO (UX/UI estilo recordboat) — solo apariencia
   ========================================================================== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border: 1px solid #eaf0f4;
  border-radius: 14px;
  padding: 14px 14px 18px;
  box-shadow: 0 2px 10px rgba(16,55,92,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(16,55,92,.13);
  border-color: transparent;
}
.woocommerce ul.products li.product a img {
  border-radius: 10px;
  margin-bottom: 12px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--rb-terciario);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  padding-bottom: 6px;
}
.woocommerce ul.products li.product .price {
  color: var(--rb-terciario);
  font-weight: 700;
}
.woocommerce ul.products li.product .price del { color: #9aa7af; font-weight: 400; opacity: .85; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin-top: 8px; display: inline-block; }
.woocommerce ul.products li.product .onsale { border-radius: 50px; padding: 6px 12px; font-weight: 700; }
.woocommerce ul.products li.product .star-rating { margin: 0 auto 8px; font-size: .8em; }

/* ==========================================================================
   DETALLE DE PRODUCTO (single product) — UX/UI recordboat
   Solo apariencia; no cambia estructura ni funcionalidad del carrito.
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb { font-size: .85rem; color: #8a96a0; margin-bottom: 18px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--rb-secundario); text-decoration: none; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--rb-terciario); }

/* Galería */
.woocommerce div.product div.images img,
.woocommerce-product-gallery__image img {
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(16,55,92,.08);
}
.flex-control-thumbs li img { border-radius: 8px; transition: .2s; }
.flex-control-thumbs li img:hover,
.flex-control-thumbs li img.flex-active { opacity: 1; outline: 2px solid var(--rb-primario); }

/* Columna resumen: título, precio, rating */
.woocommerce div.product .product_title {
  color: var(--rb-terciario); font-weight: 700; font-size: 2rem; line-height: 1.2; margin-bottom: 10px;
}
.woocommerce div.product p.price,
.woocommerce div.product div.product p.price {
  color: var(--rb-terciario); font-weight: 800; font-size: 1.8rem;
}
.woocommerce div.product p.price del { color: #9aa7af; font-weight: 400; font-size: 1.1rem; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 14px; }

/* Descripción corta */
.woocommerce-product-details__short-description {
  color: #4a5560; line-height: 1.7; margin: 14px 0 18px; padding: 16px 0;
  border-top: 1px solid #eef2f5; border-bottom: 1px solid #eef2f5;
}

/* Cantidad + agregar al carrito */
.woocommerce .quantity .qty {
  border: 1px solid #dce5ea; border-radius: 10px; padding: 10px; width: 80px;
  text-align: center; font-weight: 600; color: var(--rb-terciario); background: #fff;
}
.woocommerce div.product form.cart { margin-top: 18px; }
.woocommerce div.product form.cart .button.single_add_to_cart_button {
  padding: 14px 30px !important; font-size: 1rem; box-shadow: 0 6px 16px rgba(16,55,92,.18);
}

/* Meta: SKU / categorías */
.woocommerce div.product .product_meta {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef2f5; font-size: .9rem; color: #6b7680;
}
.woocommerce div.product .product_meta a { color: var(--rb-secundario); text-decoration: none; }
.woocommerce div.product .product_meta a:hover { color: var(--rb-terciario); }

/* Tabs: descripción / info adicional / reseñas */
.woocommerce div.product .woocommerce-tabs ul.tabs { margin: 30px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #f3f7fa; border: 1px solid #e6edf1; border-radius: 10px 10px 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--rb-terciario); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs .panel {
  background: #fff; border: 1px solid #e6edf1; border-radius: 0 12px 12px 12px; padding: 24px;
}
.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3 { color: var(--rb-terciario); }

/* Relacionados / upsells */
.woocommerce .related > h2, .woocommerce .upsells > h2 {
  color: var(--rb-terciario); font-weight: 700; margin-bottom: 20px;
}

/* ==========================================================================
   HERO + FRANJA DE CONFIANZA (home/tienda) — bloque de marca interactivo
   ========================================================================== */
.rb-hero {
  position: relative;
  background: linear-gradient(120deg, #08233B 0%, #10375C 52%, #2a648c 100%);
  overflow: hidden;
}
.rb-hero::after {
  content: ""; position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  width: 330px; height: 330px; background: var(--rb-logo) center/contain no-repeat;
  opacity: .10; pointer-events: none;
}
.rb-hero-inner { position: relative; z-index: 2; padding: 58px 16px 78px; max-width: 660px; }
.rb-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--rb-primario);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; margin-bottom: 14px;
}
.rb-hero-title { color: #fff; font-size: 2.6rem; line-height: 1.15; font-weight: 700; margin: 0 0 14px; }
.rb-hero-sub { color: rgba(255,255,255,.9); font-size: 1.05rem; line-height: 1.65; margin: 0 0 26px; max-width: 540px; }
.rb-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rb-primario); color: var(--rb-terciario) !important;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 14px 30px; border-radius: 50px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(242,210,48,.38); transition: .2s;
}
.rb-hero-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(242,210,48,.5); }
.rb-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.rb-hero-wave svg { width: 100%; height: 58px; display: block; }
@media (max-width: 767px) {
  .rb-hero-title { font-size: 1.9rem; }
  .rb-hero-inner { padding: 42px 16px 62px; }
  .rb-hero::after { width: 210px; height: 210px; opacity: .08; }
}

.rb-features { background: #fff; border-bottom: 1px solid #eef2f5; }
.rb-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 24px 16px; }
.rb-feature { display: flex; align-items: center; gap: 13px; }
.rb-feature > i {
  font-size: 1.4rem; color: var(--rb-secundario); background: var(--rb-light);
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.rb-feature strong { display: block; color: var(--rb-terciario); font-size: .93rem; }
.rb-feature span { display: block; color: #7a8893; font-size: .8rem; }
@media (max-width: 991px) { .rb-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rb-features-grid { grid-template-columns: 1fr; } }

/* Encabezado del shop (debajo del hero): ocultamos el titulo "Tienda" visualmente
   pero lo dejamos accesible/SEO (sr-only) — el hero ya hace de titular. */
.woocommerce-shop .woocommerce-products-header { text-align: center; margin: 30px 0 6px; }
.woocommerce-shop .woocommerce-products-header__title.page-title {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.woocommerce-shop .woocommerce-result-count, .woocommerce-shop .term-description { color: #7a8893; }

/* Ocultar el banner de título de Kadence del shop/archivo ("Tienda de Recordboat") — lo reemplaza el rb-hero */
.product-archive-hero-section,
.entry-hero.product-archive-hero-section { display: none !important; }

/* Anclita del footer (reemplaza la flecha) */
.rb-foot-ico { font-size: .82em; }

/* ==========================================================================
   CARTAS v2 — más vivas (zoom, badge, acento, botón, conversión)
   ========================================================================== */
.woocommerce ul.products li.product { position: relative; overflow: hidden; }
.woocommerce ul.products li.product::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rb-primario); transform: scaleX(0); transform-origin: left; transition: .3s; z-index: 4;
}
.woocommerce ul.products li.product:hover::before { transform: scaleX(1); }
.woocommerce ul.products li.product a img { transition: transform .45s ease; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.06); }
.woocommerce ul.products li.product .onsale {
  position: absolute; top: 14px; left: 14px; right: auto; margin: 0; z-index: 5;
  background: var(--rb-primario); color: var(--rb-terciario); border-radius: 50px;
  padding: 5px 12px; font-weight: 700; font-size: .72rem; box-shadow: 0 4px 10px rgba(242,210,48,.4);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.woocommerce ul.products li.product .price { font-size: 1.15rem; }
.woocommerce ul.products li.product .button {
  display: block; width: 100%; box-sizing: border-box; text-align: center; white-space: normal;
  line-height: 1.3; padding: 11px 14px; margin-top: 10px; border-radius: 50px; font-size: .8rem;
}

/* ===== Banner CTA de conversión (antes del footer) ===== */
.rb-cta-banner { background: linear-gradient(120deg, var(--rb-terciario), var(--rb-cuarto)); color: #fff; }
.rb-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 16px; flex-wrap: wrap; }
.rb-cta-banner h3 { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.rb-cta-banner p { color: rgba(255,255,255,.85); margin: 0; max-width: 540px; line-height: 1.55; }
.rb-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rb-cta-wa, .rb-cta-quote {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; padding: 13px 26px; border-radius: 50px; text-decoration: none; transition: .2s; font-size: .85rem;
}
.rb-cta-wa { background: #25D366; color: #fff; }
.rb-cta-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.4); color: #fff; }
.rb-cta-quote { background: var(--rb-primario); color: var(--rb-terciario); }
.rb-cta-quote:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(242,210,48,.4); }
@media (max-width: 767px) { .rb-cta-inner { flex-direction: column; align-items: flex-start; } }

/* ===== WhatsApp flotante (conversión) ===== */
.rb-whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.5); text-decoration: none; animation: rbpulse 2.4s infinite;
}
.rb-whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@keyframes rbpulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 767px) { .rb-whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; right: 16px; bottom: 16px; } }
