/*
Theme Name:  Tequeale Child
Theme URI:   https://tequeale.com.ar
Description: Child theme de Kadence para tequeale.com.ar
Author:      N2N
Author URI:  https://n2n.com.ar
Template:    kadence
Version:     0.4.7
Text Domain: tequeale-child
*/

/* ---------------------------------------------------------------
   Tokens del diseno aprobado (lienzo "Tequeale - Home").
   Redefinen las variables globales de Kadence: el child theme manda
   sobre el Personalizador. :root:root sube la especificidad para
   ganarle al CSS en linea que imprime Kadence.
   --------------------------------------------------------------- */
:root:root {
  --global-palette1: #FF8500; /* acento */
  --global-palette2: #E67700; /* acento hover */
  --global-palette3: #000000; /* titulos */
  --global-palette4: #000000; /* texto */
  --global-palette5: #4D4D4D; /* texto secundario */
  --global-palette6: #A6A6A6; /* texto sutil */
  --global-palette7: #E6E6E6; /* bordes */
  --global-palette8: #F5F5F5; /* fondo alternativo */
  --global-palette9: #FFFFFF; /* fondo base */

  --global-palette-btn-bg: #FF8500;
  --global-palette-btn-bg-hover: #E67700;
  --global-palette-btn: #000000;
  --global-palette-btn-hover: #000000;

  --tq-fuente: "Bricolage Grotesque", system-ui, sans-serif;
  --global-body-font-family: var(--tq-fuente);
  --global-heading-font-family: var(--tq-fuente);
  --tq-radio: 12px;
}

body {
  font-family: var(--tq-fuente);
  color: #000000;
}

/* Titulos: condensados y gruesos, como letra de cartel */
h1, h2, h3, .entry-title, .woocommerce-loop-product__title {
  font-family: var(--tq-fuente);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
}

/* Botones: esquinas apenas suaves, texto negro sobre naranja (8,6:1) */
.button,
button,
input[type="submit"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.kb-button {
  border-radius: var(--tq-radio);
  color: #000000;
  font-weight: 700;
}

/* ---------------------------------------------------------------
   Home v2 (mobile-first; escritorio desde 1024px)
   --------------------------------------------------------------- */
.tq-hero { gap: 0 !important; margin: 0 !important; padding: 16px 20px 44px; }
.tq-hero > .wp-block-column { margin: 0 !important; }
.tq-hero__foto { order: -1; display: flex; justify-content: center; }
.tq-hero__texto h1 { margin: 22px 0 14px; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .92; }
.tq-hero__texto p { margin: 0; font-size: 1.0625rem; line-height: 1.45; color: #4D4D4D; }
.tq-hero__texto .wp-block-buttons { margin-top: 22px; gap: 10px; }
.tq-circulo { position: relative; margin: 0; padding: 0 20px; }
.tq-circulo img { display: block; width: min(290px, 78vw); aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 50%; border: 8px solid var(--global-palette1); box-sizing: border-box; background: #fff; }
.tq-circulo::before, .tq-circulo::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--global-palette1); }
.tq-circulo::before { left: 0; } .tq-circulo::after { right: 0; }

.tq-btn-naranja .wp-block-button__link { background: var(--global-palette1) !important; color: #000 !important; }
.tq-btn-borde .wp-block-button__link { background: transparent !important; color: #000 !important; border: 2px solid #000; }
.tq-btn-negro .wp-block-button__link { background: #000 !important; color: #fff !important; }
.tq-btn-whatsapp .wp-block-button__link { background: #25D366 !important; color: #fff !important; }
.wp-block-button__link { border-radius: var(--tq-radio); padding: 14px 24px; font-weight: 700; }

.tq-negro, .tq-naranja { position: relative; margin-top: 44px; margin-bottom: 44px; }
.tq-negro::before, .tq-negro::after, .tq-naranja::before, .tq-naranja::after { content: ""; position: absolute; left: 0; right: 0; height: 44px; background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.tq-negro::before, .tq-naranja::before { top: -43px; }
.tq-negro::after, .tq-naranja::after { bottom: -43px; transform: scaleY(-1); }
.tq-negro::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0 60 V30 C 300 0, 700 0, 1000 26 C 1200 44, 1330 44, 1440 34 V60 Z' fill='%23000000'/></svg>"); }
.tq-negro::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0 60 V34 C 240 10, 620 6, 900 28 C 1140 48, 1320 42, 1440 24 V60 Z' fill='%23000000'/></svg>"); }
.tq-naranja::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0 60 V22 C 360 50, 760 50, 1080 24 C 1250 10, 1360 12, 1440 20 V60 Z' fill='%23FF8500'/></svg>"); }
.tq-naranja::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0 60 V28 C 280 48, 640 52, 960 30 C 1180 14, 1340 16, 1440 30 V60 Z' fill='%23FF8500'/></svg>"); }

.tq-pizarra { background: #000; color: #fff; padding: 20px 20px 28px; }
.tq-pizarra h2 { margin: 0 0 6px; color: #fff; font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
.tq-pizarra__bajada { margin: 0 0 18px; color: #B3B3B3; font-size: .95rem; }
.tq-pizarra__lista { list-style: none; margin: 0; padding: 0; }
.tq-pizarra__item { padding: 22px 0; border-top: 1px dashed rgba(255,255,255,.3); }
.tq-pizarra__item h3 { margin: 0 0 8px; color: #fff; font-size: clamp(1.875rem, 2.8vw, 2.5rem); }
.tq-pizarra__contenido { margin: 0; color: #D9D9D9; font-size: 1rem; line-height: 1.4; }
.tq-pizarra__frase { margin: 6px 0 0; color: #A6A6A6; font-style: italic; font-size: .95rem; }
.tq-pizarra__pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.tq-precio { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 52px; padding: 0 16px; color: var(--global-palette1); }
.tq-precio svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tq-precio .woocommerce-Price-amount { position: relative; color: #000; font-weight: 800; font-stretch: 75%; font-size: 1.75rem; }
.tq-pizarra__pedir { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border: 2px solid #fff; border-radius: var(--tq-radio); color: #fff !important; font-weight: 700; text-decoration: none; }
.tq-pizarra__pedir:hover, .tq-pizarra__pedir:focus-visible { background: #fff; color: #000 !important; }
.tq-pizarra__nota { margin: 12px 0 0; color: #A6A6A6; font-size: .875rem; }

.tq-historia, .tq-local { gap: 18px !important; margin: 0 !important; padding: 44px 20px 40px; }
.tq-historia > .wp-block-column, .tq-local > .wp-block-column { margin: 0 !important; }
.tq-historia figure, .tq-local figure { margin: 0; }
.tq-historia img { display: block; width: 100%; height: 260px; object-fit: cover; border-radius: 28px; transform: rotate(-2deg); }
.tq-historia h2, .tq-congelados h2, .tq-local h2 { margin: 14px 0 16px; font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: .95; }
.tq-historia p, .tq-local p { color: #4D4D4D; font-size: 1.0625rem; line-height: 1.5; }
.tq-local iframe { display: block; width: 100%; height: 240px; border: 0; border-radius: 24px; }
.tq-local__direccion { color: #000 !important; font-size: 1.5rem !important; font-weight: 800; font-stretch: 75%; margin: 0 0 6px; }

.tq-congelados { padding: 20px 20px 48px; }
.tq-congelados ul.products li.product { text-align: center; }
.tq-congelados ul.products li.product img { border-radius: 50%; background: #F5F5F5; aspect-ratio: 1 / 1; object-fit: cover; mix-blend-mode: multiply; }
.tq-congelados > p:last-child { text-align: center; }

.tq-naranja { background: var(--global-palette1); padding: 20px 20px 32px; }
.tq-naranja h2 { margin: 0 0 14px; color: #000; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: .95; }
.tq-naranja p { color: #000; font-size: 1.0625rem; line-height: 1.45; }

#colophon { position: relative; margin-top: 44px; background: #000; color: #B3B3B3; }
#colophon::before { content: ""; position: absolute; left: 0; right: 0; top: -43px; height: 44px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0 60 V36 C 320 6, 760 10, 1060 30 C 1230 42, 1360 38, 1440 28 V60 Z' fill='%23000000'/></svg>"); background-size: 100% 100%; background-repeat: no-repeat; }
#colophon a { color: #D9D9D9; }
#colophon .site-bottom-footer-wrap, #colophon .site-footer-row-container-inner { background: #000; }

@media (min-width: 1024px) {
  .tq-hero { padding: 40px 64px 0; align-items: center; }
  .tq-hero__foto { order: 0; position: relative; z-index: 2; margin-bottom: -200px !important; }
  .tq-hero__texto { padding-right: 48px; }
  .tq-circulo { padding: 0 34px; }
  .tq-circulo img { width: 540px; border-width: 14px; }
  .tq-circulo::before, .tq-circulo::after { width: 18px; height: 18px; margin-top: -9px; }
  .tq-pizarra { padding: 150px 64px 56px; }
  .tq-pizarra__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .tq-pizarra__pie { justify-content: flex-start; }
  .tq-historia, .tq-local { padding: 96px 64px 72px; gap: 72px !important; align-items: center; }
  .tq-historia img { height: 440px; border-radius: 36px; }
  .tq-local iframe { height: 400px; border-radius: 36px; }
  .tq-congelados { padding: 32px 64px 96px; }
  .tq-naranja { padding: 40px 64px 56px; }
}

/* 0.4.1 - Kadence anulaba el relleno lateral de los bloques de ancho completo */
.entry-content .tq-hero { padding: 16px 20px 44px !important; }
.entry-content .tq-historia, .entry-content .tq-local { padding: 44px 20px 40px !important; }
.entry-content .tq-congelados { padding: 20px 20px 48px !important; }
.entry-content .tq-naranja { padding: 20px 20px 32px !important; }
.entry-content .tq-pizarra { padding: 20px 20px 28px !important; }
.entry-content .tq-pizarra__lista { margin: 0 !important; padding: 0 !important; list-style: none !important; }
@media (min-width: 1024px) {
  .entry-content .tq-hero { padding: 40px 64px 0 !important; }
  .entry-content .tq-historia, .entry-content .tq-local { padding: 96px 64px 72px !important; }
  .entry-content .tq-congelados { padding: 32px 64px 96px !important; }
  .entry-content .tq-naranja { padding: 40px 64px 56px !important; }
  .entry-content .tq-pizarra { padding: 150px 64px 56px !important; }
}

/* Aviso del boton de arrepentimiento en carrito y checkout */
.tq-arrepentimiento { margin: 24px 0 0; font-size: .9rem; color: #4D4D4D; text-align: center; }
.tq-arrepentimiento a { color: #000; font-weight: 700; }

/* 0.4.3 - Header: logo a 64px, sin titulo duplicado, alineado con el contenido */
.site-header .custom-logo, .site-branding img { max-height: 64px !important; width: auto !important; }
.site-branding .site-title-wrap { display: none !important; }
.site-header .site-container { max-width: none !important; padding-left: 16px !important; padding-right: 16px !important; }
@media (min-width: 1024px) {
  .site-header .site-container { padding-left: 64px !important; padding-right: 64px !important; }
  .site-header .main-navigation a { font-size: 17px; font-weight: 600; color: #000; }
}

/* 0.4.4 - Circulo del hero superpuesto a la pizarra; boton de la seccion de productos */
@media (min-width: 1024px) {
  .tq-hero > .wp-block-column.tq-hero__foto { position: relative; z-index: 2; margin-bottom: -200px !important; }
}
.tq-congelados__mas { text-align: center; margin: 28px 0 0; }
.tq-boton-borde { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border: 2px solid #000; border-radius: var(--tq-radio); color: #000 !important; font-weight: 700; text-decoration: none; }

/* Mayoristas: hero sin solapamiento y catalogo cotizable */
.tq-hero.tq-hero--simple > .wp-block-column.tq-hero__foto { margin-bottom: 0 !important; }
.entry-content .tq-b2b { padding: 20px 20px 48px !important; }
.tq-b2b__encabezado { text-align: center; margin: 0 0 8px; }
.tq-b2b__titulo { margin: 32px 0 16px; font-size: 1.5rem; }
.entry-content .tq-b2b__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tq-b2b__item { margin: 0; padding: 12px; background: #FFF4E8; border-radius: var(--tq-radio); text-align: center; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.tq-b2b__item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 10px; margin: 0 0 10px; }
@media (min-width: 1024px) {
  .entry-content .tq-hero.tq-hero--simple { padding-bottom: 56px !important; }
  .entry-content .tq-b2b { padding: 32px 64px 72px !important; }
  .entry-content .tq-b2b__lista { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
}

/* Botón de WhatsApp fijo */
.tq-wa-flotante { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.tq-wa-flotante:hover, .tq-wa-flotante:focus { color: #fff; transform: scale(1.05); }
