/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================
   Triart Clinic — ajustes mínimos del tema
   Todo el diseño vive en las variables y clases globales de
   Elementor (tc-*). Aquí solo integraciones con WoodMart.
   ========================================================== */

/* Bloques HTML de WoodMart a ancho completo (footer y slots) */
.wd-footer .main-footer.container,
.tc-slot .e-con-inner,
.tc-slot .elementor-shortcode { max-width: none; padding: 0; width: 100%; }
.tc-slot { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; }
.wd-footer { background: var(--tc-navy-deep, #0F1F35); padding: 0; border: 0; }

/* Contenido de página sin márgenes del tema */
.elementor-template-full-width .wd-content-layout,
.page-template-elementor_header_footer .wd-content-layout { padding-block: 0; }

/* Header: logo, menú y botón de agenda */
.whb-general-header { border-bottom: 1px solid var(--tc-line, #E4DED2); }
.whb-header .tc-header-cta .btn,
.whb-header .wd-header-btn .btn { font-family: var(--tc-font-heading, Montserrat), sans-serif; letter-spacing: .12em; font-size: 12px; font-weight: 600; }
.wd-nav-main > li > a { font-family: var(--tc-font-heading, Montserrat), sans-serif; letter-spacing: .08em; }

/* Acordeón FAQ: icono en dorado */
.tc-faq-header svg { color: var(--tc-champagne-dark, #8C6A35); fill: currentColor; flex-shrink: 0; }

/* Páginas Elementor a ancho completo: las secciones tc-section controlan su propio ancho */
.elementor-template-full-width main.wd-content-layout.container,
.elementor-template-full-width .wd-content-layout,
.tc-slot .container.wd-entry-content,
.wd-footer .container.wd-entry-content { max-width: none; width: 100%; padding-inline: 0; margin-inline: 0; }
.elementor-template-full-width .wd-page-content { padding: 0; }

/* Fondo general blanco y footer pegado al contenido */
body, .wd-page-wrapper, .website-wrapper, .main-page-wrapper { background-color: var(--tc-white, #fff); }
.wd-footer { margin-top: 0; }
.tc-footer-link a { color: inherit; text-decoration: none; }
.tc-footer-link a:hover { color: var(--tc-champagne, #C9A66B); }

/* FAQ: indicador +/– */
.tc-faq-header { list-style: none; }
.tc-faq-header::-webkit-details-marker { display: none; }
.tc-faq-header::after { content: "+"; font-family: var(--tc-font-heading, Montserrat), sans-serif; font-weight: 300; font-size: 28px; line-height: 1; color: var(--tc-champagne-dark, #8C6A35); transition: transform .25s ease; }
details[open] > .tc-faq-header::after { transform: rotate(45deg); }

:root { --wd-main-bgcolor: #FFFFFF; }
.wd-page-content.main-page-wrapper { background-color: #FFFFFF; }

/* Formulario de valoración (Contact Form 7) */
.tc-form { display: flex; flex-direction: column; gap: 14px; }
.tc-form p { margin: 0; }
.tc-form label { font-family: var(--tc-font-heading, Montserrat), sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--tc-navy, #172D4A); display: block; }
.tc-form input[type=text], .tc-form input[type=tel], .tc-form input[type=email], .tc-form select, .tc-form textarea {
  width: 100%; margin-top: 6px; border: 1px solid var(--tc-line, #E4DED2); border-radius: 6px; background: #fff;
  padding: 14px 16px; font-family: var(--tc-font-body, "Open Sans"), sans-serif; font-size: 15px; color: var(--tc-graphite, #353C40); }
.tc-form input:focus, .tc-form select:focus, .tc-form textarea:focus { border-color: var(--tc-champagne, #C9A66B); outline: none; box-shadow: 0 0 0 3px rgba(201,166,107,.18); }
.tc-form-accept { font-size: 13px; color: var(--tc-muted, #5F686E); line-height: 1.5; }
.tc-form .tc-form-submit { width: 100%; border: 0; border-radius: 999px; padding: 18px 28px; background: var(--tc-navy, #172D4A); color: #fff;
  font-family: var(--tc-font-heading, Montserrat), sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .25s; }
.tc-form .tc-form-submit:hover { background: var(--tc-navy-deep, #0F1F35); }
.wpcf7-not-valid-tip { font-size: 12px; }
.wpcf7 form .wpcf7-response-output { border-radius: 6px; font-size: 14px; }

/* Fondo blanco del contenido (WoodMart define --wd-main-bgcolor en body) */
html body { --wd-main-bgcolor: #FFFFFF; }
html body .wd-page-wrapper .wd-page-content.main-page-wrapper { background-color: #FFFFFF; }
/* Selector del formulario sin recorte */
.tc-form select { height: auto; min-height: 50px; line-height: 1.4; }

/* Footer pegado al último bloque */
.wd-footer .main-footer { padding: 0; margin: 0; }
.elementor-template-full-width .wd-content-layout { padding-bottom: 0; margin-bottom: 0; }
.wd-page-content { padding-bottom: 0; margin-bottom: 0; }

/* ===== Inicio · propuesta Canva (2-nov-2026) ===== */
/* Franja de entidades (bloque 8801, reutilizable) */
.tc-entidades { background: #fff; border-bottom: 1px solid var(--tc-line, #E4DED2); padding: 28px 24px 22px; }
.tc-entidades-in { max-width: 1180px; margin: 0 auto; text-align: center; }
.tc-entidades-tit { margin: 0 0 18px; font: 600 12px/1.4 var(--tc-font-heading, Montserrat), sans-serif; letter-spacing: .08em; color: var(--tc-navy, #172D4A); }
.tc-entidades-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tc-entidades-list li { flex: 1 1 170px; max-width: 210px; min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  border: 1px dashed rgba(201,166,107,.7); border-radius: 6px; padding: 10px 12px; }
.tc-entidades-list span { font: 600 14px/1.2 var(--tc-font-heading, Montserrat), sans-serif; color: var(--tc-navy, #172D4A); }
.tc-entidades-list small { font-size: 11px; line-height: 1.3; color: var(--tc-muted, #5F686E); }
.tc-entidades-nota { margin: 12px 0 0; font-size: 11px; color: var(--tc-muted, #5F686E); }

/* Tríada: símbolo arriba y trazos del logo en cada tarjeta (provisionales hasta tener los PNG del manual) */
.tc-triada .tc-section { background: #F5F4F2; }
.tc-triada .tc-stack.tc-center:first-child::before { content: ""; display: block; position: static !important; inset: auto !important; flex: none; align-self: stretch; height: 64px; margin: 0 0 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 64'%3E%3Cg fill='none' stroke='%23C9A66B' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M8 60 L37 6'/%3E%3Cpath d='M37 6 L66 60'/%3E%3Cpath d='M18 44 Q37 34 58 44'/%3E%3C/g%3E%3C/svg%3E") center / 74px 64px no-repeat; }
.tc-triada .tc-card { text-align: center; align-items: center !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.tc-triada .tc-card .tc-btn-link { align-self: center; }
.tc-triada .tc-card::before { content: ""; display: block; position: static !important; inset: auto !important; flex: none; width: 64px; height: 48px; margin: 0 auto 6px; background: center / contain no-repeat; }
.tc-triada .tc-card:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M6 36 Q32 18 58 36' fill='none' stroke='%23C9A66B' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tc-triada .tc-card:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M18 44 L46 4' fill='none' stroke='%23C9A66B' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tc-triada .tc-card:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M22 4 L42 44' fill='none' stroke='%23C9A66B' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tc-triada .tc-stack.tc-center:last-child { max-width: 860px; margin: 8px auto 0; }
.tc-triada .tc-stack.tc-center:last-child .tc-lead { font-size: 16px; }

/* Anclas del menú (#historias, #turismo-medico) sin ocupar espacio */
.tc-anchor-slot { scroll-margin-top: 90px; }
.tc-anchor-slot .elementor-widget-container, .tc-anchor-slot .elementor-widget-html { margin: 0; padding: 0; line-height: 0; }
/* Menú de 7 ítems en una sola línea (escritorio) */
@media (min-width: 1025px) {
  .whb-general-header .wd-nav-main { flex-wrap: nowrap; white-space: nowrap; gap: 5px 8px !important; }
  .whb-general-header .wd-nav-main > li { margin: 0 !important; }
  .whb-general-header .wd-nav-main > li > a { padding-left: 5px !important; padding-right: 5px !important; font-size: 11px !important; letter-spacing: .02em !important; }
}
@media (min-width: 1025px) and (max-width: 1360px) {
  .whb-general-header .wd-nav-main { gap: 5px 6px !important; }
  .whb-general-header .wd-nav-main > li > a { padding-left: 4px !important; padding-right: 4px !important; font-size: 10.5px !important; }
}
/* Las anclas del inicio no se marcan como página activa */
.wd-nav-main > li.menu-item-type-custom.current-menu-item > a { color: inherit; }
.wd-nav-main > li.menu-item-type-custom.current-menu-item > a .nav-link-text:after { width: 0 !important; }
.tc-header-cta, .tc-header-cta a, a.tc-header-cta { white-space: nowrap; }
@media (max-width: 640px) { .tc-entidades { padding: 22px 14px 18px; } .tc-entidades-list { gap: 10px; } .tc-entidades-list li { flex: 1 1 140px; max-width: none; min-height: 64px; padding: 8px; } .tc-entidades-list span { font-size: 13px; } }

/* Inicio SEO (21-nov-2026): el H1 lleva las 3 especialidades con aspecto de eyebrow; la pregunta de marca es h2 pero conserva el tamaño del h1 */
.elementor .tc-hero h2[data-interaction-id="7071cbf4"] { font-size: 58px; letter-spacing: -0.025em; line-height: 1.08; }
@media (max-width: 1024px) { .elementor .tc-hero h2[data-interaction-id="7071cbf4"] { font-size: 46px; } }
@media (max-width: 767px) { .elementor .tc-hero h2[data-interaction-id="7071cbf4"] { font-size: 35px; } }
/* Menú: Armonización orofacial destacada en champán */
.wd-nav-main > li.tc-menu-destacado > a, .wd-nav-mobile > li.tc-menu-destacado > a { color: var(--tc-champagne-dark, #8C6A35); }
.wd-nav-main > li.tc-menu-destacado > a .nav-link-text { font-weight: 600; }
/* Enlaces dentro de textos de tarjetas */
.tc-triada .tc-card p a, .tc-armonizacion .tc-stack a { color: var(--tc-champagne-dark, #8C6A35); text-decoration: underline; text-underline-offset: 3px; }

/* Logo (21-nov-2026): imagen en el header (bloque 8573) y versión clara en el footer (8579) */
.tc-logo { display: inline-flex; align-items: center; line-height: 0; }
.tc-logo img { display: block; height: 54px; width: auto; max-width: none; }
.whb-sticked .tc-logo img { height: 44px; }
@media (max-width: 1024px) { .tc-logo img { height: 42px; } }
.tc-logo-footer { display: inline-block; line-height: 0; }
.tc-logo-footer img { display: block; width: 220px; max-width: 100%; height: auto; }
