/*
Theme Name: TaguaTagua
Theme URI: https://talleres.paginaswebpro.cl
Description: Child theme de Storefront con la identidad de marca TaguaTagua (negro / burdeo / blanco), para la venta de talleres arqueologicos y patrimoniales.
Author: TaguaTagua Consultores
Template: storefront
Version: 1.0.0
Text Domain: taguatagua
*/

:root {    --tt-black: #000000;
    --tt-maroon: #9E1B32;
    --tt-maroon-dark: #7A1526;
    --tt-white: #FFFFFF;
    --tt-cream: #F7F3EE;
    --tt-gray-text: #2b2b2b;
}

/* ---------- Base ---------- */

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--tt-gray-text);
    background-color: var(--tt-cream);
}

a {
    color: var(--tt-maroon);
    -webkit-tap-highlight-color: transparent;
}

a:hover,
a:focus {
    color: var(--tt-maroon-dark);
}

a:focus,
a:focus-visible {
    outline: none;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.woocommerce-loop-product__title,
.product_title,
.widget-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--tt-black);
}

/* ---------- Header ---------- */

.site-header {
    background-color: var(--tt-black);
    border-bottom: 4px solid var(--tt-maroon);
    padding-top: 1em;
    padding-bottom: 1em;
}

.site-header .site-branding {
    margin: 0;
}

.site-header .site-title,
.site-header .site-title a {
    color: var(--tt-white);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-header .site-title a:hover {
    color: var(--tt-maroon);
}

.site-header .site-description {
    color: #cfcfcf;
}

.site-header .site-header-cart .cart-contents,
.site-header .site-header-cart .cart-contents:hover {
    color: var(--tt-white);
}

.site-header .site-header-cart .cart-contents:hover {
    color: var(--tt-maroon);
}

.site-header-cart .widget_shopping_cart .cart_list li,
.site-header-cart .widget_shopping_cart .total {
    color: var(--tt-gray-text);
}

/* Search / handheld icons on dark header */
.site-header .site-search .search-toggle,
.handheld-navigation .off-canvas-toggle {
    color: var(--tt-white);
}

/* ---------- Main navigation ---------- */

.main-navigation {
    background-color: var(--tt-black);
    border-top: 1px solid #2a2a2a;
}

.main-navigation ul li a {
    color: var(--tt-white);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
    color: var(--tt-maroon);
}

.main-navigation ul ul {
    background-color: var(--tt-black);
    border-color: var(--tt-maroon);
}

.main-navigation ul ul li a {
    color: var(--tt-white);
    border-bottom: 1px solid #2a2a2a;
}

.main-navigation ul ul li a:hover {
    color: var(--tt-maroon);
}

/* ---------- Buttons ---------- */

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.single_add_to_cart_button,
.checkout-button,
#place_order {
    background-color: var(--tt-maroon);
    border: none;
    color: var(--tt-white) !important;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover {
    background-color: var(--tt-maroon-dark);
    color: var(--tt-white) !important;
}

.button.alt {
    background-color: var(--tt-black);
}

.button.alt:hover {
    background-color: #1a1a1a;
}

/* ---------- Product cards / catalog ---------- */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background-color: var(--tt-white);
    border: 2px solid var(--tt-black);
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    align-self: center;
    margin-top: auto;
    margin-bottom: 20px;
    width: auto;
    display: inline-flex;
    border-radius: 100px;
    padding: 12px 28px;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
    margin: 0;
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover img,
.woocommerce-page ul.products li.product:hover img {
    transform: scale(1.08);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1em;
    margin: 16px 20px 10px;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    margin: 0 20px 20px;
    display: block;
}

.woocommerce .price,
.woocommerce-page .price,
.price .amount {
    color: var(--tt-maroon);
    font-weight: 700;
}

.woocommerce span.onsale,
.woocommerce-page span.onsale {
    background-color: var(--tt-maroon);
    color: var(--tt-white);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--tt-maroon);
}

/* Category badges / archive header */
.woocommerce-products-header__title,
.page-title {
    color: var(--tt-black);
}

/* Stock / cupos text */
.woocommerce .stock {
    color: var(--tt-maroon-dark);
    font-weight: 600;
}

/* ---------- Cart / checkout tables ---------- */

.woocommerce table.shop_table th {
    background-color: var(--tt-black);
    color: var(--tt-white);
}

.woocommerce-checkout #payment,
.woocommerce-cart-form,
.cart-collaterals .cart_totals {
    background-color: var(--tt-white);
    border-radius: 6px;
}

.woocommerce-checkout #payment ul.payment_methods li,
.woocommerce-checkout-review-order-table {
    border-color: #e2ddd6;
}

/* Bank transfer (BACS) instructions block */
.woocommerce-checkout #payment .payment_box.payment_method_bacs {
    background-color: var(--tt-cream);
    border-left: 4px solid var(--tt-maroon);
}

/* ---------- Footer ---------- */

.site-footer,
.footer-widgets {
    background-color: var(--tt-black);
    color: #dcdcdc;
}

.site-footer .widget-title,
.footer-widgets .widget-title {
    color: var(--tt-white);
}

.site-footer a,
.footer-widgets a {
    color: #dcdcdc;
}

.site-footer a:hover,
.footer-widgets a:hover {
    color: var(--tt-maroon);
}

.site-footer .site-info {
    color: #9a9a9a;
    background-color: var(--tt-black);
    border-top: 1px solid #2a2a2a;
    padding-top: 1em;
    padding-bottom: 1em;
}

/* ---------- Misc ---------- */

::selection {
    background-color: var(--tt-maroon);
    color: var(--tt-white);
}

.storefront-breadcrumb {
    color: #6b6b6b;
}

.storefront-breadcrumb a {
    color: var(--tt-maroon);
}

/* ================= HOME AUTOADMINISTRABLE (bloques) ================= */
.tt-home *{box-sizing:border-box;}
.tt-home{overflow-x:hidden;max-width:100%;}
.tt-home .wp-block-group{margin:0;}

.tt-chip{display:inline-flex;align-items:center;gap:8px;background:#FFFFFF;border:2px solid #000000;border-radius:100px;padding:8px 16px;font-size:13px;font-weight:700;margin:0;}
.tt-chip-hero{margin-bottom:26px;}

.tt-btn .wp-block-button__link{display:inline-flex;align-items:center;gap:10px;background:#9E1B32;color:#FFFFFF;padding:17px 32px;border-radius:100px;font-weight:700;font-size:16px;border:none;box-shadow:0 8px 20px rgba(158,27,50,.25);}
.tt-btn-alt .wp-block-button__link{background:#FFFFFF;color:#9E1B32;box-shadow:none;}

.tt-card{background:#FFFFFF;border-radius:22px;border:2px solid #000000;overflow:hidden;}

.tt-hero{display:flex;align-items:center;gap:56px;padding:64px;min-height:560px;flex-wrap:wrap;background:#F7F3EE;}
.tt-hero-content{flex:1 1 420px;max-width:600px;}
.tt-hero-h1{font-size:52px;line-height:1.1;margin:0 0 22px;}
.tt-hero-desc{font-size:19px;line-height:1.6;color:#3a3a3a;margin:0 0 34px;max-width:520px;}
.tt-hero-photo{flex:1 1 380px;max-width:520px;height:420px;border-radius:20px;overflow:hidden;margin:0;box-shadow:0 24px 50px rgba(0,0,0,.12);}
.tt-hero-photo img{width:100%;height:100%;object-fit:cover;display:block;}

.tt-trust{display:flex;align-items:center;justify-content:center;gap:20px;padding:40px 64px;flex-wrap:wrap;}

.tt-steps{background:#000000;padding:80px 64px;}
.tt-steps-h2{color:#FFFFFF;text-align:center;font-size:38px;margin:0 0 60px;}
.tt-steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:1200px;margin:0 auto;}
.tt-step{background:#1a1a1a;border-radius:22px;padding:32px;text-align:center;}
.tt-step-num{width:64px;height:64px;border-radius:50%;background:#9E1B32;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:28px;color:#fff;font-weight:700;}
.tt-step-h3{color:#FFFFFF;font-size:19px;margin:0 0 10px;}
.tt-step-p{color:#b8b8b8;font-size:14px;line-height:1.6;margin:0;}

.tt-workshops{padding:80px 64px;background:#FFFFFF;}
.tt-workshops-heading{text-align:center;margin-bottom:50px;}
.tt-workshops-h2{font-size:38px;margin:0 0 10px;}
.tt-workshops-sub{color:#6b6b6b;font-size:16px;margin:0;}
.tt-workshops .products{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;max-width:1300px;margin:0 auto;list-style:none;padding:0;}
.tt-workshops .products li.product{background:#FFFFFF;border-radius:22px;border:2px solid #000000;overflow:hidden;padding:0;margin:0;box-shadow:none;text-align:left;width:100% !important;float:none !important;transition:box-shadow .3s ease;}
.tt-workshops .products li.product:hover{box-shadow:0 16px 30px rgba(0,0,0,.12);}
.tt-workshops .products::before,
.tt-workshops .products::after{display:none !important;}
.tt-workshops .products li.product a{color:inherit;text-decoration:none;display:block;}
.tt-workshops .products li.product img{width:100%;height:190px;object-fit:cover;display:block;border-radius:20px 20px 0 0;margin:0;transition:transform .5s ease;}
.tt-workshops .products li.product:hover img{transform:scale(1.08);}
.tt-workshops .products li.product .woocommerce-loop-product__title{font-size:17px;margin:16px 20px 10px;}
.tt-workshops .products li.product .price{margin:0 20px 20px;display:block;color:#9E1B32;font-weight:800;font-size:18px;}

.tt-about{background:#F7F3EE;display:flex;align-items:center;padding:64px;gap:70px;flex-wrap:wrap;}
.tt-about-text{max-width:600px;flex:1 1 400px;}
.tt-about-text .tt-chip{margin-bottom:20px;}
.tt-about-h2{font-size:36px;margin:0 0 20px;}
.tt-about-p{font-size:17px;line-height:1.7;color:#3a3a3a;margin:0;}
.tt-about-photo{flex:0 0 460px;height:300px;border-radius:18px;overflow:hidden;margin:0;box-shadow:0 24px 50px rgba(0,0,0,.16);max-width:100%;}
.tt-about-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease;}
.tt-about-photo:hover img{transform:scale(1.05);}

.tt-testimonials{padding:80px 64px;background:#FFFFFF;}
.tt-testimonials-h2{text-align:center;font-size:34px;margin:0 0 50px;}
.tt-testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;max-width:1300px;margin:0 auto;}
.tt-testimonial-card{padding:26px;}
.tt-testimonial-text{font-size:15px;line-height:1.6;margin:0 0 18px;color:#3a3a3a;}
.tt-testimonial-author{display:flex;align-items:center;gap:12px;}
.tt-avatar{width:36px;height:36px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin:0;}
.tt-avatar-1{background:#9E1B32;}
.tt-avatar-2{background:#000000;}
.tt-avatar-3{background:#7A1526;}
.tt-testimonial-name{font-size:14px;font-weight:700;margin:0;}

.tt-cta{background:#9E1B32;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:70px 64px;}
.tt-cta-h2{color:#FFFFFF;font-size:36px;margin:0 0 24px;}

.tt-hero-photo img{transition:transform .8s cubic-bezier(.2,.8,.2,1);}
.tt-hero-photo:hover img{transform:scale(1.06);}

@media(max-width:900px){
  .tt-hero{flex-direction:column;min-height:auto;padding:40px 24px;gap:32px;}
  .tt-hero-photo{flex:1 1 auto;width:100%;max-width:100%;height:260px;order:-1;}
  .tt-hero-content{max-width:100%;}
  .tt-trust{padding:32px 24px;gap:12px;}
  .tt-steps{padding:56px 24px;}
  .tt-workshops{padding:56px 24px;}
  .tt-testimonials{padding:56px 24px;}
  .tt-cta{padding:56px 24px;}
  .tt-steps-grid,.tt-workshops .products,.tt-testimonials-grid{grid-template-columns:1fr 1fr;gap:18px;}
  .tt-about{flex-direction:column;padding:56px 24px;gap:28px;}
  .tt-about-text{max-width:100%;}
  .tt-about-photo{flex:1 1 auto;width:100%;max-width:100%;height:220px;}
}
@media(max-width:520px){
  .tt-steps-grid,.tt-workshops .products,.tt-testimonials-grid{grid-template-columns:1fr;}
  .tt-hero-h1{font-size:34px;}
  .tt-steps-h2,.tt-testimonials-h2,.tt-cta-h2{font-size:26px;}
  .tt-workshops-h2{font-size:28px;}
}

/* Fix: WordPress envuelve el contenido de cada bloque Group en un div extra;
   lo hacemos "transparente" para que el flex/grid de arriba funcione directo. */
.tt-home .wp-block-group__inner-container{display:contents;}

/* Oculta el titulo de pagina y la miga de pan que WordPress agrega por defecto
   a esta pagina (front-page.php no los mostraba). */
.page-id-78 .page-header,
.page-id-78 .storefront-breadcrumb{display:none;}

.page-id-78 .entry-header{display:none;}

/* Borde redondeado suave en la foto principal del producto (pagina individual) */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    border-radius: 18px;
    overflow: hidden;
}

/* Coherencia de precios en el catalogo completo (Tienda) */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: var(--tt-maroon) !important;
    font-weight: 700 !important;
}

/* Botones de "Cart & Checkout Blocks" (Carrito y Finalizar compra) con el burdeo de marca */
.wc-block-components-button.contained,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    background-color: var(--tt-maroon) !important;
    color: var(--tt-white) !important;
    border-radius: 4px !important;
}
.wc-block-components-button.contained:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background-color: var(--tt-maroon-dark) !important;
}

/* Acento de marca en el metodo de pago seleccionado del checkout nuevo */
.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
    background-color: var(--tt-cream) !important;
    border-left: 4px solid var(--tt-maroon) !important;
}
