/* =========================================================================
   Txoko Piperrak — estilos del tema hijo
   Colores del logo: verde oscuro #1E3105 · lima #A8B400 · oliva #71871D
   Cálidos del local: madera #C8843A · rojo de las sillas #B5361F · crema #F6F1E7
   ========================================================================= */

@font-face { font-family: "Kanit"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/kanit-500.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/kanit-600.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/kanit-700.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/jost-300.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jost-400.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jost-500.woff2") format("woff2"); }

:root {
	--tx-verde: #1E3105;
	--tx-verde-2: #2C4609;
	--tx-lima: #A8B400;
	--tx-oliva: #5E7016;
	--tx-madera: #C8843A;
	--tx-rojo: #B5361F;
	--tx-crema: #F6F1E7;
	--tx-carbon: #1A1D14;
	--tx-texto: #33372C;
	--tx-gris: #7A7D70;
	--tx-linea: #E3DCCB;
	--tx-titulo: "Kanit", "Arial Black", Arial, sans-serif;
	--tx-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
body, body .et_pb_text, body .et_pb_module, input, textarea, select, button {
	font-family: var(--tx-sans);
	font-weight: 400;
	color: var(--tx-texto);
}
body { font-size: 17px; line-height: 1.7; background: #fff; }
body .et_pb_text { font-size: 17px; line-height: 1.7; }
#page-container, #et-main-area, #main-content { background: transparent; }

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3, .et_pb_module h4 {
	font-family: var(--tx-titulo);
	font-weight: 600;
	color: var(--tx-verde);
	line-height: 1.1;
	letter-spacing: .005em;
	padding-bottom: 0;
}
h1, .et_pb_module h1 { font-size: clamp(42px, 6vw, 80px); font-weight: 700; text-transform: uppercase; }
h2, .et_pb_module h2 { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: .35em; }
h3, .et_pb_module h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: .3em; }
h4, .et_pb_module h4 { font-size: 21px; }
p { padding-bottom: 1.05em; }
a { color: var(--tx-verde-2); transition: color .2s ease, background .2s ease, border-color .2s ease; }
a:hover { color: var(--tx-rojo); }
strong, b { font-weight: 500; }
::selection { background: var(--tx-lima); color: var(--tx-carbon); }

.tx-eyebrow, .et_pb_module .tx-eyebrow {
	display: block;
	font-family: var(--tx-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--tx-oliva);
	margin-bottom: 12px;
}
.tx-sep, .txoko-sep { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--tx-lima); margin: 20px 0 26px; }
.tx-center .tx-sep, .et_pb_text_align_center .tx-sep { margin-left: auto; margin-right: auto; }
.tx-lead { font-size: 20px; line-height: 1.65; }

/* Secciones */
.tx-crema { background-color: var(--tx-crema) !important; }
.tx-oscura { background-color: var(--tx-verde) !important; }
.tx-oscura, .tx-oscura p, .tx-oscura li, .tx-oscura .et_pb_text { color: rgba(255,255,255,.86); }
.tx-oscura h1, .tx-oscura h2, .tx-oscura h3, .tx-oscura h4 { color: #fff; }
.tx-oscura .tx-eyebrow { color: var(--tx-lima); }
.tx-oscura a { color: #fff; }
.tx-oscura a:hover { color: var(--tx-lima); }

/* Cabecera de página con foto */
.tx-hero { min-height: min(86vh, 820px); display: flex; align-items: center; }
.tx-hero-sub { min-height: min(50vh, 500px); display: flex; align-items: center; }
.tx-hero > .et_pb_row, .tx-hero-sub > .et_pb_row { width: 100%; }
.tx-hero h1, .tx-hero-sub h1, .tx-hero p, .tx-hero-sub p { color: #fff !important; text-shadow: 0 2px 22px rgba(0,0,0,.3); }
.tx-hero p, .tx-hero-sub p { font-size: 21px; }
.tx-hero .tx-eyebrow, .tx-hero-sub .tx-eyebrow { color: var(--tx-lima); }

/* ---------- Botones ---------- */
a.tx-btn {
	display: inline-block;
	font-family: var(--tx-sans) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	padding: 18px 32px !important;
	border: 2px solid var(--tx-verde) !important;
	border-radius: 999px !important;
	background: var(--tx-verde) !important;
	color: #fff !important;
	text-decoration: none;
}
a.tx-btn:hover { background: var(--tx-rojo) !important; border-color: var(--tx-rojo) !important; color: #fff !important; }
a.tx-btn-claro { background: transparent !important; border-color: rgba(255,255,255,.9) !important; color: #fff !important; }
a.tx-btn-claro:hover { background: #fff !important; color: var(--tx-verde) !important; border-color: #fff !important; }
a.tx-btn-lima { background: var(--tx-lima) !important; border-color: var(--tx-lima) !important; color: var(--tx-carbon) !important; }
a.tx-btn-lima:hover { background: #fff !important; border-color: #fff !important; color: var(--tx-verde) !important; }
a.tx-btn-linea { background: transparent !important; color: var(--tx-verde) !important; }
a.tx-btn-linea:hover { background: var(--tx-verde) !important; color: #fff !important; border-color: var(--tx-verde) !important; }
.tx-botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.tx-center .tx-botones, .et_pb_text_align_center .tx-botones { justify-content: center; }

/* ---------- Cabecera (Theme Builder) ---------- */
.tx-header { box-shadow: 0 1px 0 rgba(30,49,5,.1); }
.tx-header .et_pb_menu__logo img { max-height: 64px; width: auto; }
.tx-header .et-menu > li > a,
.tx-header .et_pb_menu .et-menu-nav > ul > li > a {
	font-family: var(--tx-sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tx-carbon);
	padding-bottom: 0;
}
.tx-header .et-menu > li { padding-left: 13px; padding-right: 13px; }
.tx-header .et-menu > li.current-menu-item > a,
.tx-header .et-menu > li > a:hover { color: var(--tx-oliva); opacity: 1; }
.tx-header .et-menu > li.tx-cta > a {
	background: var(--tx-verde);
	color: #fff !important;
	padding: 13px 24px !important;
	border-radius: 999px;
	margin-left: 6px;
}
.tx-header .et-menu > li.tx-cta > a:hover { background: var(--tx-rojo); color: #fff !important; }
.tx-header .et_pb_menu .et_pb_menu__wrap { justify-content: flex-end; }
.tx-header .mobile_nav .mobile_menu_bar:before { color: var(--tx-verde); }
.tx-header .et_mobile_menu { border-top-color: var(--tx-lima); }
.tx-header .et_mobile_menu li a { font-size: 16px; color: var(--tx-carbon); }

/* ---------- Pie ---------- */
.tx-footer h4 {
	font-family: var(--tx-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--tx-lima) !important;
	margin-bottom: 16px;
}
.tx-footer p, .tx-footer li { font-size: 15px; line-height: 1.8; }
.tx-footer ul { list-style: none; padding: 0; }
.tx-legal p, .tx-legal a { font-size: 13px; color: rgba(255,255,255,.6) !important; }
.tx-legal a:hover { color: #fff !important; }
.tx-ayuda img { background: #fff; padding: 8px; border-radius: 6px; max-width: 320px; width: 100%; height: auto; }
.tx-ayuda p { font-size: 12.5px !important; line-height: 1.5 !important; color: rgba(255,255,255,.7) !important; margin-top: 8px; }

/* ---------- Menús (fichas editables) ---------- */
.txoko-menus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.txoko-menus-infantil, .txoko-menus-especial { grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; }
.txoko-menu {
	position: relative;
	background: #fff;
	border-radius: 14px;
	border-top: 6px solid var(--tx-lima);
	box-shadow: 0 10px 30px rgba(30,49,5,.08);
	padding: 40px 32px 34px;
	text-align: center;
	display: flex;
	flex-direction: column;
}
.txoko-menu h3 { font-size: 30px; text-transform: uppercase; margin: 0; }
.txoko-menu .txoko-sep { margin: 16px auto 22px; }
.txoko-curso { margin-bottom: 18px; }
.txoko-curso > span {
	display: block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--tx-oliva);
	margin-bottom: 6px;
}
.txoko-curso p { font-size: 17px; line-height: 1.45; color: var(--tx-carbon); padding: 0; margin: 0 0 4px; }
.txoko-bebida { font-size: 14.5px; color: var(--tx-gris); padding-bottom: 0; margin-top: auto; }
.txoko-precio { font-family: var(--tx-titulo); font-size: 46px; font-weight: 700; color: var(--tx-rojo); line-height: 1; margin-top: 20px; }
.txoko-precio small { display: block; font-family: var(--tx-sans); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-gris); margin-top: 8px; }
.txoko-menu-nota { font-size: 14px; color: var(--tx-gris); margin-top: 12px; padding-bottom: 0; }
.txoko-menus-titulo { text-align: center; margin-top: 70px; }
.txoko-menus-intro { text-align: center; max-width: 680px; margin: 0 auto 30px; }

/* Menú del día */
.txoko-dia {
	position: relative;
	background: var(--tx-verde);
	color: #fff;
	border-radius: 16px;
	padding: 44px 40px 40px;
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
	box-shadow: 0 14px 34px rgba(30,49,5,.18);
}
.txoko-dia h3 { color: #fff !important; text-transform: uppercase; font-size: 32px; margin-bottom: 18px; }
.txoko-dia p { color: rgba(255,255,255,.88) !important; padding-bottom: 6px; }
.txoko-dia .txoko-precio { color: var(--tx-lima); }
.txoko-dia .txoko-precio small, .txoko-dia .txoko-menu-nota { color: rgba(255,255,255,.7) !important; }

/* Carta */
.txoko-carta { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 56px; }
.txoko-carta-seccion h3 { font-size: 28px; text-transform: uppercase; border-bottom: 4px solid var(--tx-lima); padding-bottom: 10px; margin-bottom: 6px; }
.txoko-carta-nota { font-size: 14.5px; color: var(--tx-gris); padding-bottom: 6px; }
.txoko-carta ul { list-style: none; padding: 0 !important; margin: 0; }
.txoko-carta li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--tx-linea); font-size: 17px; color: var(--tx-carbon); }
.txoko-carta li strong { color: var(--tx-rojo); white-space: nowrap; }

/* Etiqueta «ejemplo» (solo en la demo) */
.txoko-ejemplo {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tx-rojo);
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: 2px 10px;
	opacity: .75;
}
.txoko-dia .txoko-ejemplo { color: var(--tx-lima); }
.txoko-carta > .txoko-ejemplo { top: -34px; right: 0; }

/* Avisos (intolerancias, personalización) */
.tx-avisos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tx-aviso { background: #fff; border-left: 5px solid var(--tx-madera); border-radius: 10px; padding: 24px 26px; }
.tx-aviso h4 { margin-bottom: 8px; }
.tx-aviso p { font-size: 15.5px; padding-bottom: 6px; }

/* Opiniones */
.tx-opiniones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tx-opinion { background: rgba(255,255,255,.07); border-radius: 14px; padding: 34px 32px; }
.tx-opinion p { font-family: var(--tx-titulo); font-weight: 500; font-size: clamp(21px, 2vw, 26px); line-height: 1.35; color: #fff !important; }
.tx-opinion span { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-lima); }

/* Cita */
.tx-cita { border-left: 5px solid var(--tx-lima); padding-left: 26px; }
.tx-cita p { font-family: var(--tx-titulo); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; color: var(--tx-verde); padding-bottom: 8px; }
.tx-cita span { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-oliva); }

/* Ventajas (iconos de texto) */
.tx-ventajas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tx-ventaja { background: #fff; border-radius: 14px; padding: 28px 24px; box-shadow: 0 8px 24px rgba(30,49,5,.06); }
.tx-ventaja b { display: block; font-family: var(--tx-titulo); font-weight: 600; font-size: 21px; color: var(--tx-verde); margin-bottom: 6px; }
.tx-ventaja p { font-size: 15.5px; padding: 0; }

/* Fotos */
.tx-foto img { width: 100%; object-fit: cover; border-radius: 14px; }
.tx-foto-alta img { aspect-ratio: 4 / 5; }
.tx-foto-ancha img { aspect-ratio: 3 / 2; }
.tx-galeria .et_pb_gallery_item { margin-bottom: 14px !important; }
.tx-galeria .et_pb_gallery_image img { border-radius: 10px; }
.tx-galeria .et_overlay { display: none; }

/* Formulario */
.txoko-form .et_pb_contact_field input, .txoko-form .et_pb_contact_field textarea, .txoko-form .et_pb_contact_field select {
	background: #fff !important;
	border: 1px solid var(--tx-linea) !important;
	border-radius: 8px !important;
	font-family: var(--tx-sans);
	font-size: 16px !important;
	color: var(--tx-carbon) !important;
	padding: 15px !important;
}
.txoko-form .et_pb_contact_field input:focus, .txoko-form .et_pb_contact_field textarea:focus { border-color: var(--tx-oliva) !important; }
.txoko-form .et_contact_bottom_container .et_pb_button {
	font-family: var(--tx-sans) !important; font-size: 14px !important; font-weight: 500 !important; letter-spacing: .14em !important; text-transform: uppercase;
	background: var(--tx-verde) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 17px 32px !important;
}
.txoko-form .et_contact_bottom_container .et_pb_button:after { display: none; }
.txoko-form .et_pb_contact_field_checkbox label a { color: var(--tx-verde-2); text-decoration: underline; }
.tx-aviso-reserva { font-size: 15px; color: var(--tx-rojo); font-weight: 500; }
.txoko-rgpd { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--tx-lima); background: rgba(246,241,231,.7); font-size: 12.5px; line-height: 1.55; color: #5f6156; }
.txoko-rgpd p { padding-bottom: 6px; }
.txoko-rgpd ul { padding: 0 0 6px 0; margin: 0; list-style: none; }
.txoko-rgpd a { color: var(--tx-verde-2); text-decoration: underline; }

/* Datos de contacto */
.tx-datos p { margin: 0; padding-bottom: 6px; }
.tx-datos .tx-grande { font-family: var(--tx-titulo); font-weight: 600; font-size: 28px; color: var(--tx-verde); }
.tx-datos .tx-grande a { color: inherit; text-decoration: none; }

/* Legales */
.tx-texto-legal { max-width: 860px; margin: 0 auto; font-size: 16px; }
.tx-texto-legal h1 { font-size: clamp(34px, 4vw, 48px) !important; }
.tx-texto-legal h2 { font-size: 26px; margin-top: 34px; }

/* ---------- DEMO: franja y marca de agua ---------- */
.txoko-franja-demo {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100001;
	background: var(--tx-rojo); color: #fff; text-align: center;
	font-family: var(--tx-sans); font-size: 13px; letter-spacing: .08em; line-height: 1.3;
	padding: 9px 12px;
}
.txoko-franja-demo strong { letter-spacing: .18em; }
body.txoko-demo { padding-top: 36px; }
body.txoko-demo.admin-bar .txoko-franja-demo { top: 32px; }
body.txoko-demo .et_pb_sticky.et_pb_section { top: 36px !important; }
.txoko-marca-agua { position: fixed; inset: 0; z-index: 100000; pointer-events: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.txoko-marca-agua span {
	font-family: var(--tx-titulo); font-weight: 700; font-size: 26vw; line-height: 1;
	color: rgba(181,54,31,.06); transform: rotate(-24deg); white-space: nowrap; user-select: none;
}

/* ---------- Barra fija en móvil ---------- */
.txoko-mbar { display: none; }
@media (max-width: 980px) {
	.txoko-mbar {
		display: grid; grid-template-columns: 1fr 1.3fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
		box-shadow: 0 -4px 18px rgba(0,0,0,.12);
	}
	.txoko-mbar a {
		display: block; text-align: center;
		padding: 16px 10px calc(16px + env(safe-area-inset-bottom));
		font-family: var(--tx-sans); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
	}
	.txoko-mbar-tel { background: #fff; color: var(--tx-verde); }
	.txoko-mbar-res { background: var(--tx-verde); color: #fff; }
	body { padding-bottom: 54px; }
	.tx-header .et-menu > li.tx-cta > a { display: none; }
	.txoko-menus, .txoko-carta, .tx-avisos, .tx-opiniones { grid-template-columns: 1fr; }
	.tx-ventajas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tx-hero { min-height: min(76vh, 680px); }
	.tx-hero-sub { min-height: min(42vh, 400px); }
	.txoko-franja-demo { font-size: 11.5px; }
}
@media (min-width: 981px) and (max-width: 1200px) {
	.txoko-menus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.tx-ventajas { grid-template-columns: 1fr; }
	.txoko-menu { padding: 36px 22px 30px; }
}

/* Portada en movimiento (ver tx_hero_fotos() en functions.php). */
.tx-hero-kb { position: relative; overflow: hidden; }
.tx-hero-kb > .et_pb_row { position: relative; z-index: 2; }
.tx-kb { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tx-kb::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,28,8,0.72) 0%, rgba(20,28,8,0.35) 100%); }
.tx-kb i { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; will-change: opacity, transform;
	animation: tx-kb var(--tx-kb-total, 35s) linear infinite; }
.tx-kb i:nth-child(even) { transform-origin: 70% 40%; }
.tx-kb i:nth-child(odd) { transform-origin: 30% 60%; }
@keyframes tx-kb {
	0% { opacity: 0; transform: scale(1); }
	4% { opacity: 1; }
	20% { opacity: 1; }
	25% { opacity: 0; transform: scale(1.14); }
	100% { opacity: 0; transform: scale(1.14); }
}


/* Redes sociales en botón, horario y preguntas frecuentes (22/10/2026). */
.tx-redes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
a.tx-red { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--tx-verde);
	border-radius: 999px; color: var(--tx-verde) !important; font-family: var(--tx-sans); font-weight: 600;
	font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: all .2s; }
a.tx-red:hover { background: var(--tx-verde); color: #fff !important; }
.tx-oscura a.tx-red, .tx-redes-pie a.tx-red { border-color: rgba(255,255,255,.55); color: #fff !important; }
.tx-oscura a.tx-red:hover, .tx-redes-pie a.tx-red:hover { background: var(--tx-lima); border-color: var(--tx-lima); color: #1A1D14 !important; }
.tx-horario { margin-top: 22px; padding: 16px 20px; border-left: 4px solid var(--tx-lima); background: #F6F1E7; }
.tx-horario p { margin: 0; padding: 0; }
.tx-horario p + p { margin-top: 4px; font-size: 15px; }
.tx-faq { display: grid; gap: 12px; }
.tx-faq-item { background: #fff; border: 1px solid rgba(30,49,5,.12); border-radius: 12px; padding: 0 22px; }
.tx-faq-item summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
	font-family: var(--tx-titulo); font-weight: 600; font-size: 19px; color: var(--tx-verde); }
.tx-faq-item summary::-webkit-details-marker { display: none; }
.tx-faq-item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--tx-lima); }
.tx-faq-item[open] summary::after { content: "–"; }
.tx-faq-item p { padding: 0 0 18px; margin: 0; }


/* Foto de cada menú (imagen destacada de la ficha, 22/10/2026). */
.txoko-menu-con-foto { padding-top: 0; overflow: hidden; }
.txoko-menu-foto { margin: 0 -32px 26px; }
.txoko-menu-foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.txoko-menu-con-foto .txoko-ejemplo { z-index: 2; }
.txoko-menu-con-foto .txoko-ejemplo { background: rgba(255,255,255,.92); opacity: 1; }

/* Redes: solo logo, botón redondo (22/10/2026). */
a.tx-red { width: 46px; height: 46px; padding: 0; justify-content: center; gap: 0; }
a.tx-red svg { width: 22px; height: 22px; }

/* Móvil: el aviso de cookies y su botón flotante por encima de la barra Llamar/Reservar (22/10/2026). */
@media (max-width: 980px) {
	.cky-consent-container { bottom: calc(58px + env(safe-area-inset-bottom)) !important; }
	.cky-btn-revisit-wrapper { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
	.txoko-mbar { z-index: 99999; }
}
