/*
Theme Name: Hello Castillo
Theme URI: https://castillodejijona.com/
Description: Tema hijo de Hello Elementor para Castillo de Jijona. Sustituye a Bridge Child (migración del 21/11/2026).
Author: Castillo de Jijona
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-castillo
*/

/* ==== 1. Base que antes ponía Bridge (style_dynamic.css) ==== */
/* Reset que aplicaba Bridge (Meyer reset): margen, relleno y borde a 0. Sin él, Hello añade márgenes a párrafos y títulos
   y las columnas con estilo de borde pero sin grosor muestran 3px. Son selectores de elemento: cualquier regla con clase (Elementor, WooCommerce) gana. */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,caption,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video { margin: 0; padding: 0; border: 0; }
/* Bridge recortaba el desbordamiento horizontal (imágenes más anchas que la pantalla) */
body { overflow-x: clip; }
body { font-family: 'Work Sans', sans-serif; color: #878787; font-size: 15px; font-weight: 400; background-color: #f1edeb; }
p { color: #878787; font-family: 'Work Sans', sans-serif; font-size: 15px; line-height: 25px; font-weight: 400; }
h1 { color: #1f1a15; font-size: 50px; line-height: 50px; font-style: normal; font-weight: 700; letter-spacing: -3px; text-transform: none; }
p { letter-spacing: -0.5px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Work Sans', sans-serif; }
h2, h2 a { color: #1f1a15; font-size: 37px; line-height: 33px; font-weight: 700; letter-spacing: -1.8px; text-transform: none; }
h3, h3 a { color: #1f1a15; font-size: 24px; line-height: 27px; font-weight: 600; letter-spacing: -0.8px; text-transform: none; }
h4, h4 a { color: #1f1a15; font-size: 20px; line-height: 38px; font-weight: 600; letter-spacing: -0.7px; text-transform: none; }
h5, h5 a { color: #4d4d4d; font-size: 25px; line-height: 28px; font-weight: 600; letter-spacing: -0.5px; text-transform: none; }
h6, h6 a { color: #878787; font-size: 12px; line-height: 21px; font-weight: 500; letter-spacing: -0.3px; text-transform: uppercase; }
a, p a { color: #303030; text-decoration: none; }
a:hover, p a:hover { color: #1abc9c; text-decoration: none; }
ul { list-style-position: inside; }
img { max-width: 100%; height: auto; }
body { line-height: 26px; -webkit-font-smoothing: antialiased; }
::selection { background: #f8ad79; }
::-moz-selection { background: #f8ad79; }

/* ==== 2. Estilos propios (antes en bridge-child/style.css) ==== */
body.page-id-4609 .wpml-ls-legacy-list-horizontal a,
body.page-id-4596 .wpml-ls-legacy-list-horizontal a { color: #fff !important; }
.contenido-oculto,
.contenido-oculto-movil { display: none; }
.contenido-oculto p,
.contenido-oculto-movil p,
.bloque-logos p { font-family: 'Work Sans' !important; font-size: 18px !important; font-weight: 500 !important; }
.bloque-turron p { text-align: center; }
.texto-orgullosos p,
.bloque-turron p { color: #ffffff; font-family: 'Work Sans'; font-size: 20px; font-weight: 500; }
.titulo-categorias h1 { display: inline-block; position: relative; }
.titulo-categorias h1:before,
.titulo-categorias h1:after { content: ''; position: absolute; width: 1000px; height: 2px; background-color: currentColor; top: 50%; }
.titulo-categorias h1:before { left: -1030px; right: -160px; }
.titulo-categorias h1:after { left: 320px; }
.categoria-descripcion p { font-family: 'Allura'; font-size: 50px; color: #af8879; }
.productos-descripcion p { font-family: 'Allura'; font-size: 65px; color: #af8879; }
.qodef-shortcode h5 a { font-family: 'Work Sans'; font-weight: 800; }
.qodef-addons-blog-list .qodef-blog-item .qodef-e-info.qodef-info--top,
.qodef-qi-button.qodef-layout--filled { display: none; }
.single-post .entry_title,
.single-post .post_info { display: none !important; }
.texto-noticia p { font-size: 18px !important; font-family: 'Work Sans' !important; }
#menu-menu-pie { display: inline-flex; }
#nav_menu-4 { margin-top: 30px; }
.texto-pie p,
.texto-pie p a { font-size: 18px !important; color: #f8ad79; }
.contacto-pie input.wpcf7-form-control.wpcf7-text,
.contacto-pie textarea.wpcf7-form-control.wpcf7-textarea { background: transparent; color: #f8ad79; border: 2px solid #f8ad79; border-radius: 10px; font-size: 18px; margin-bottom: 15px; }
::-webkit-input-placeholder { color: #f8ad79 !important; opacity: 1; }
:-moz-placeholder { color: #f8ad79 !important; opacity: 1; }
::-moz-placeholder { color: #f8ad79 !important; opacity: 1; }
:-ms-input-placeholder { color: #f8ad79; !important; opacity: 1; }
.aceptacion { font-family: 'Work Sans'; color: #f8ad79 !important; font-size: 18px; }
.contacto-pie input.wpcf7-form-control.wpcf7-submit { background:#f8ad79; color: #000000 !important; border-radius: 10px; border: 2px solid #f8ad79 !important; font-family: 'Work Sans'; font-size: 18px; line-height: 0px; height: 37px; padding: 0 20px; display: inline-block; margin: 10px 0 0 0; }
.contacto-pie input.wpcf7-form-control.wpcf7-submit:hover { background: #000000; color:#f8ad79 !important; }
.contacto-pie > div { flex-flow: wrap; }
.contacto-pie > div > div { width: 100%; }
.related.products { display: none !important; }
.related.products .price,
.related.products .add-to-cart-button-outer,
.up-sells.products .price,
.up-sells.products .add-to-cart-button-outer { display: none !important; }
body.single-product header { position: relative !important; }
.woocommerce .product h1.product_title { font-size: 25px; line-height: 20px; margin-bottom: 35px; }
.woocommerce .product .cart,
.woocommerce .product .price { display: none; }
.woocommerce .product .woocommerce-product-details__short-description h2 { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.woocommerce .product .q_accordion_holder ul li,
.woocommerce .product .q_accordion_holder p,
.woocommerce .product .woocommerce-product-details__short-description p { color: #000; }
.woocommerce .product .q_accordion_holder ul:not(:last-child),
.woocommerce .product .q_accordion_holder p:not(:last-child),
.woocommerce .product .woocommerce-product-details__short-description p:not(:last-child) { margin-bottom: 25px; }
.woocommerce .product .woocommerce-product-details__short-description p:last-child a { color: #ffffff; font-size: 16px; line-height: 57px; height: 57px; font-weight: 600; background-color: #1f1a15; letter-spacing: -0.5px; text-transform: none; border-width: 0px; padding-left: 45px; padding-right: 45px; font-family: Raleway,sans-serif; display: inline-block; }
.woocommerce .product .woocommerce-product-details__short-description p:last-child a:hover { background-color: #2b2622; }
.woocommerce .product .q_accordion_holder p,
.woocommerce .product .q_accordion_holder h3 { font-family: 'Work Sans', sans-serif; }
.woocommerce .product .q_accordion_holder h3 { font-size: 20px; }
.woocommerce .product .q_accordion_holder .accordion_content { padding: 0; }
@media (min-width: 1636px) {
  .bloque-orgullosos-desktop { display: block; }
  .bloque-orgullosos-movil,
  .bloque-orgullosos-movil-texto { display: none; }
}
@media (max-width: 1636px) {
  .bloque-orgullosos-desktop { display: none; }
  .bloque-orgullosos-movil,
  .bloque-orgullosos-movil-texto { display: block; }
}
@media (max-width: 1650px) {
  .bloque-logos { padding-bottom: 100px !important; padding-top: 100px !important; }
  .titulo-categorias > .elementor-container > .elementor-column > .elementor-widget-wrap,
  .fila-cat > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0 2% !important; }
  .fila-cat { margin-bottom: 45px; margin-left: 10px; margin-right: 10px; }
  .titulo-categorias { margin-bottom: 20px; }
}
@media (min-width: 1000px) {
  .wpml-ls-menu-item { display: none !important; }
}
@media (min-width: 769px) {
  body.single-product { display: table; overflow: auto; }
  body.single-product { width: 100%; }
}
@media (min-width: 767px) {
  .contenido-oculto-movil { display: none !important; }
}
@media (max-width: 767px) {
  .contenido-oculto { display: none !important; }
  .fila-cat { margin-bottom: 20px; }
}

/* ==== 3. Antes en «CSS adicional» del personalizador ==== */
@media (max-width: 768px) {
  .product_title.entry-title { margin-top: 40px; }
}
.woocommerce-product-details__short-description { text-align: justify; }
.product-info h6 { font-size: 20px; */ font-weight: bold; }
.product-info .woocommerce-Price-amount { display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { display: inline-block; vertical-align: top; margin: 0 10px 30px; border: 1px solid #ccc; padding: 15px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); border-radius: 5px; width: calc(25% - 20px); box-sizing: border-box; }
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img { width: 100%; height: auto; object-fit: cover; }
.woocommerce ul.products li.product h2,
.woocommerce-page ul.products li.product h2 { font-size: 18px; margin-top: 15px; }
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button { display: block; text-align: center; margin-top: 10px; background-color: #000; color: #fff; border-radius: 4px; padding: 10px 0; }
.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover { background-color: #444; }

/* ==== 4. Noticias / News: listado como en Bridge (template-parts/archive.php) ==== */
.cj-blog, body:not([class*="elementor-page-"]) .site-main.cj-blog { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 0 60px; }
.cj-post { display: flex; align-items: stretch; margin: 0 0 32px; }
.cj-post-image, .cj-post-text { width: 50%; }
.cj-post-image img, .post .cj-post-image .wp-post-image { display: block; width: 100%; height: auto; max-height: none; object-fit: initial; }
.cj-post-text-inner { background: #fff; padding: 23px; height: 100%; box-sizing: border-box; }
.cj-post-title { font-family: 'Work Sans', sans-serif; font-size: 37px; font-weight: 700; line-height: 33px; letter-spacing: -1.8px; color: #1f1a15; margin: 0; }
.cj-post-title a, .cj-post-title a:hover { color: #1f1a15; }
.cj-post-info { font-size: 15px; font-weight: 500; line-height: 26px; color: #bebebe; margin: 0 0 18px; }
.cj-post-info a, .cj-post-info a:hover { color: #bebebe; }
.cj-post-excerpt { letter-spacing: -0.5px; margin: 0; }
.cj-read-more, .cj-read-more:hover { display: inline-block; margin-top: 30px; background: #1f1a15; color: #fff; font-size: 12px; font-weight: 600; line-height: 30px; letter-spacing: -0.5px; padding: 0 17px; }
.cj-pagination { display: flex; justify-content: space-between; margin-top: 20px; }
@media (max-width: 1000px) { .cj-blog, body:not([class*="elementor-page-"]) .site-main.cj-blog { padding: 0 45px 60px; } }
@media (max-width: 768px) {
  .cj-post { flex-direction: column; }
  .cj-post-image, .cj-post-text { width: 100%; }
}

/* ==== 5. Entradas: cabecera con imagen y título (template-parts/single.php) ==== */
.cj-post-hero { position: relative; margin-bottom: 100px; overflow: hidden; }
.cj-post-hero img { display: block; width: 100%; height: min(62.5vw, 900px); object-fit: cover; }
.cj-post-hero-title { position: absolute; inset: 0; padding: clamp(40px, 9.2vw, 133px) 120px 0; text-align: center; }
.cj-post-hero-title h1 { font-family: 'Work Sans', sans-serif; font-size: 50px; font-weight: 700; line-height: 1.385; letter-spacing: -3px; margin: 0; }
@media (max-width: 768px) {
  .cj-post-hero img { min-height: 320px; object-fit: cover; }
  .cj-post-hero-title { padding: 40px 24px 0; }
  .cj-post-hero-title h1 { font-size: 30px; letter-spacing: -1.5px; }
}

/* ==== 6. Formularios de Elementor: el reset de Hello pisa el relleno de los campos (en Bridge medían 40px) ==== */
.elementor-form .elementor-field-group .elementor-field-textual.elementor-size-xs { padding: 4px 12px; }
.elementor-form .elementor-field-group .elementor-field-textual.elementor-size-sm { padding: 5px 14px; }
.elementor-form .elementor-field-group .elementor-field-textual.elementor-size-md { padding: 6px 16px; }
.elementor-form .elementor-field-group .elementor-field-textual.elementor-size-lg { padding: 7px 20px; }
.elementor-form .elementor-field-group .elementor-field-textual.elementor-size-xl { padding: 8px 24px; }

/* ==== 7. WooCommerce: carrito vacío como en Bridge ==== */
body .woocommerce .wc-empty-cart-message, body .woocommerce .return-to-shop { max-width: 1140px; margin-left: auto; margin-right: auto; text-align: center; }
body .woocommerce .woocommerce-info.cart-empty { background: #fff; color: #303030; font-family: 'Raleway', sans-serif; font-size: 17px; font-weight: 700; line-height: 38px; letter-spacing: 1px; text-transform: uppercase; padding: 28px 21px; margin: 0 0 25px; border: 0; text-align: center; }
body .woocommerce .woocommerce-info.cart-empty::before { display: none; }
body .woocommerce .return-to-shop { margin-bottom: 15px; }
body .woocommerce .return-to-shop a.button, body .woocommerce .return-to-shop a.button:hover { display: inline-block; background: #1f1a15; color: #fff; font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 600; line-height: 57px; height: 57px; letter-spacing: -0.5px; padding: 0 45px; border-radius: 0; }
@media (max-width: 1000px) { body .woocommerce .wc-empty-cart-message, body .woocommerce .return-to-shop { margin-left: 45px; margin-right: 45px; } }
