/* Tarifas Triparking: calculadora y formulario. Usa los tokens del tema (--tp-*). */
.tp-calc, .tp-reserva { display: grid; gap: var(--tp-space-6, 32px); max-width: 760px; }
.tp-legend { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-ink, #0b2530); margin-bottom: var(--tp-space-3, 12px); padding: 0; }
.tp-calc fieldset, .tp-reserva fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tp-grid { display: grid; gap: var(--tp-space-5, 24px); }
@media (min-width: 640px) { .tp-grid--2 { grid-template-columns: 1fr 1fr; } }

.tp-field { display: grid; gap: var(--tp-space-2, 8px); align-content: start; }
.tp-field > label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-ink, #0b2530); }
.tp-field input:not([type=checkbox]):not([type=radio]), .tp-field select, .tp-field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; box-sizing: border-box;
	border: 1px solid var(--tp-border-strong, #7b878c); border-radius: var(--tp-radius-sm, 8px);
	font: 16px/22px var(--tp-font-body, sans-serif); color: var(--tp-ink, #0b2530); background: #fff;
}
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus { outline: 2px solid var(--tp-navy-500, #1d6a80); outline-offset: 1px; }
.tp-field--inline { display: flex; flex-wrap: wrap; gap: var(--tp-space-3, 12px) var(--tp-space-6, 32px); }
.tp-field--inline label { display: flex; gap: var(--tp-space-2, 8px); align-items: flex-start; font-size: 16px; line-height: 24px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tp-field--inline input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--tp-navy-900, #053343); flex: none; }
.tp-fecha { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--tp-space-2, 8px); }
.tp-hint { font-size: 14px; line-height: 22px; color: var(--tp-ink-muted, #55646b); }
.tp-opcional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--tp-ink-muted, #55646b); }

/* Tarjetas de elección: plaza, duración y modo */
.tp-plazas, .tp-duracion, .tp-modo { display: grid; gap: var(--tp-space-3, 12px); }
@media (min-width: 640px) { .tp-plazas, .tp-duracion { grid-template-columns: repeat(3, 1fr); } .tp-modo { grid-template-columns: 1fr 1fr; } }
.tp-plazas .tp-legend, .tp-duracion .tp-legend, .tp-modo .tp-legend { grid-column: 1 / -1; }
.tp-plaza, .tp-modo__op {
	position: relative; display: grid; gap: var(--tp-space-1, 4px); padding: var(--tp-space-4, 16px) var(--tp-space-5, 24px);
	border: 2px solid var(--tp-border, #e3ded3); border-radius: var(--tp-radius-md, 14px); background: #fff; cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.tp-plaza input, .tp-modo__op input { position: absolute; opacity: 0; pointer-events: none; }
.tp-plaza:has(input:checked), .tp-modo__op:has(input:checked) { border-color: var(--tp-navy-900, #053343); background: var(--tp-sky-100, #e3f2f6); }
.tp-plaza:has(input:focus-visible), .tp-modo__op:has(input:focus-visible) { outline: 2px solid var(--tp-navy-500, #1d6a80); outline-offset: 2px; }
.tp-plaza__nombre { font-weight: 700; color: var(--tp-navy-900, #053343); }
.tp-plaza__precio { font-size: 14px; line-height: 22px; color: var(--tp-ink-muted, #55646b); }
.tp-plaza.is-completo { cursor: not-allowed; opacity: .6; }
.tp-plaza.is-completo .tp-plaza__precio { color: var(--tp-error, #b3261e); font-weight: 700; }
.tp-modo__op span { display: grid; gap: 2px; color: var(--tp-ink-muted, #55646b); font-size: 14px; line-height: 22px; }
.tp-modo__op strong { font-size: 17px; line-height: 24px; color: var(--tp-navy-900, #053343); }

/* Resultado */
.tp-resultado { padding: var(--tp-space-5, 24px); border-radius: var(--tp-radius-lg, 22px); background: var(--tp-surface-alt, #f1f1f1); display: grid; gap: var(--tp-space-3, 12px); }
.tp-resultado__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--tp-space-4, 16px); color: var(--tp-navy-900, #053343); font-weight: 700; }
.tp-resultado__total strong { font-family: var(--tp-font-display, sans-serif); font-size: 34px; line-height: 40px; }
.tp-resultado__lineas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tp-space-1, 4px); font-size: 14px; line-height: 22px; color: var(--tp-ink-muted, #55646b); }
.tp-resultado__lineas li { display: flex; justify-content: space-between; gap: var(--tp-space-4, 16px); }
.tp-resultado__error { margin: 0; color: var(--tp-error, #b3261e); font-weight: 600; }
.tp-resultado .tp-btn { justify-self: start; }

/* Aviso de abono: informa, no bloquea */
.tp-upsell { padding: var(--tp-space-5, 24px); border-radius: var(--tp-radius-lg, 22px); background: var(--tp-surface-gold, #faf6ee); border: 1px solid var(--tp-gold-400, #c6ac73); display: grid; gap: var(--tp-space-4, 16px); }
.tp-upsell__texto { margin: 0; font-size: 17px; line-height: 27px; color: var(--tp-ink, #0b2530); }
.tp-upsell__botones { display: flex; flex-wrap: wrap; gap: var(--tp-space-3, 12px); }

/* Mensajes */
.tp-errores { padding: var(--tp-space-4, 16px) var(--tp-space-5, 24px); border-left: 4px solid var(--tp-error, #b3261e); background: #fdf0ef; border-radius: var(--tp-radius-sm, 8px); }
.tp-errores ul { margin: var(--tp-space-2, 8px) 0 0; padding-left: 1.2em; }
.tp-ok { padding: var(--tp-space-6, 32px); border-radius: var(--tp-radius-lg, 22px); background: var(--tp-sky-100, #e3f2f6); max-width: 760px; }
.tp-ok h2 { margin-top: 0; }
.tp-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tp-reserva__enviar { justify-self: start; min-width: 240px; }

/* Tabla de abonos [tp_tabla_abonos] */
.tp-tabla-wrap { overflow-x: auto; }
.tp-tabla { width: 100%; border-collapse: collapse; font-size: 16px; }
.tp-tabla th, .tp-tabla td { padding: var(--tp-space-3, 12px) var(--tp-space-4, 16px); border-bottom: 1px solid var(--tp-border, #e3ded3); text-align: left; }
.tp-tabla thead th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-ink-muted, #55646b); }
.tp-tabla td strong { display: block; color: var(--tp-navy-900, #053343); font-size: 18px; }
.tp-tabla td span, .tp-tabla tbody th span { display: block; font-size: 14px; font-weight: 400; color: var(--tp-ink-muted, #55646b); }
.tp-tabla tbody th { font-weight: 700; color: var(--tp-navy-900, #053343); }
.tp-tabla-wrap { background: #fff; border: 1px solid var(--tp-border, #e3ded3); border-radius: var(--tp-radius-lg, 22px); padding: var(--tp-space-2, 8px) var(--tp-space-3, 12px); }
.tp-tabla tbody tr:last-child > * { border-bottom: 0; }
.tp-tabla .tp-si { color: var(--tp-sky-600, #1f7a94); font-weight: 700; }

/* Lo oculto se queda oculto aunque la clase le dé display (sin esto, el aviso salía siempre). */
.tp-calc [hidden], .tp-reserva [hidden] { display: none !important; }

/* Separación entre bloques dentro de cada modo del formulario. */
[data-tp-solo] { display: grid; gap: var(--tp-space-5, 24px); }

/* Botones: los estilos de Kadence para <button> (azul al hacer foco) no deben colarse. */
.tp-calc .tp-btn, .tp-reserva .tp-btn { box-shadow: none; text-transform: none; letter-spacing: 0; }
.tp-calc .tp-btn--primary, .tp-reserva .tp-btn--primary,
.tp-calc .tp-btn--primary:focus, .tp-reserva .tp-btn--primary:focus { background: var(--tp-gold-400, #c6ac73); color: var(--tp-navy-900, #053343); border-color: transparent; }
.tp-calc .tp-btn--primary:hover, .tp-reserva .tp-btn--primary:hover { background: var(--tp-gold-500, #b3965a); }
.tp-calc .tp-btn--secondary, .tp-reserva .tp-btn--secondary,
.tp-calc .tp-btn--secondary:focus, .tp-reserva .tp-btn--secondary:focus { background: var(--tp-navy-900, #053343); color: #fff; border-color: transparent; }
.tp-calc .tp-btn--secondary:hover, .tp-reserva .tp-btn--secondary:hover { background: var(--tp-navy-700, #0a4a5f); }
.tp-calc .tp-btn--ghost, .tp-reserva .tp-btn--ghost,
.tp-calc .tp-btn--ghost:focus, .tp-reserva .tp-btn--ghost:focus { background: transparent; color: var(--tp-navy-900, #053343); border-color: var(--tp-navy-900, #053343); }
.tp-calc .tp-btn--ghost:hover, .tp-reserva .tp-btn--ghost:hover { background: var(--tp-sky-100, #e3f2f6); }
.tp-calc .tp-btn:focus-visible, .tp-reserva .tp-btn:focus-visible { outline: 2px solid var(--tp-navy-500, #1d6a80); outline-offset: 2px; }

/* Reseñas de Google [tp_resenas] */
.tp-resenas__cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--tp-space-5, 24px); margin-bottom: var(--tp-space-8, 48px); }
.tp-resenas__cabecera h2 { margin: 0; }
.tp-resenas__nota { display: grid; justify-items: end; gap: 2px; text-align: right; }
.tp-resenas__nota strong { font-family: var(--tp-font-display, sans-serif); font-size: 52px; line-height: 1; color: var(--tp-navy-900, #053343); }
.tp-resenas__nota > span:last-child { font-size: 14px; color: var(--tp-ink-muted, #55646b); }
.tp-estrellas { color: var(--tp-gold-400, #c6ac73); font-size: 20px; letter-spacing: 2px; line-height: 1; }
.tp-estrellas span { color: var(--tp-border, #e3ded3); }
.tp-resenas .tp-resenas__lista, .single-content .tp-resenas__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tp-space-5, 24px); }
@media (min-width: 768px) { .tp-resenas__lista { grid-template-columns: repeat(3, 1fr); } }
.tp-resena { display: flex; flex-direction: column; gap: var(--tp-space-3, 12px); padding: var(--tp-space-5, 24px); background: #fff; border: 1px solid var(--tp-border, #e3ded3); border-radius: var(--tp-radius-lg, 22px); }
.tp-resena blockquote { margin: 0; padding: 0; border: 0; font-style: normal; font-size: 16px; line-height: 26px; color: var(--tp-ink, #0b2530); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.tp-resena__pie { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.tp-resena__foto { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--tp-sky-100, #e3f2f6); color: var(--tp-navy-900, #053343); font-weight: 700; font-size: 18px; }
.tp-resenas .tp-resena__autor { margin: 0; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tp-navy-900, #053343); }
.tp-resena__autor a { color: inherit; text-decoration: none; }
.tp-resena__autor span { display: block; font-weight: 400; color: var(--tp-ink-muted, #55646b); }
.tp-resenas__acciones { justify-content: center; }
.tp-resenas .tp-btn--ghost { background: transparent; color: var(--tp-navy-900, #053343); border-color: var(--tp-navy-900, #053343); }
.tp-resenas .tp-btn--secondary { background: var(--tp-navy-900, #053343); color: #fff; }
.tp-resenas__fuente { margin: var(--tp-space-4, 16px) 0 0; text-align: center; font-size: 13px; color: var(--tp-ink-muted, #55646b); }
@media (max-width: 767px) { .tp-resenas__nota { justify-items: start; text-align: left; } }
.tp-field--vehiculo { max-width: 360px; }

/* Calculadora en dos columnas: datos a la izquierda, precio en vivo a la derecha. */
.tp-calc--panel { max-width: none; align-items: start; }
.tp-calc__datos { display: grid; gap: var(--tp-space-6, 32px); min-width: 0; }
.tp-calc__panel { display: grid; gap: var(--tp-space-4, 16px); }
.tp-calc__vacio { padding: var(--tp-space-5, 24px); border-radius: var(--tp-radius-lg, 22px); background: var(--tp-surface-alt, #f1f1f1); color: var(--tp-ink-muted, #55646b); }
.tp-calc__vacio strong { display: block; margin-bottom: var(--tp-space-2, 8px); font-family: var(--tp-font-display, sans-serif); font-size: 22px; color: var(--tp-navy-900, #053343); }
.tp-calc__vacio p { margin: 0; font-size: 15px; line-height: 24px; }
.tp-calc__panel:has(.tp-resultado:not([hidden])) .tp-calc__vacio { display: none; }
.tp-calc__panel .tp-resultado { background: var(--tp-navy-900, #053343); color: #fff; }
.tp-calc__panel .tp-resultado__total, .tp-calc__panel .tp-resultado__total strong { color: #fff; }
.tp-calc__panel .tp-resultado__lineas { color: var(--tp-sky-100, #e3f2f6); }
.tp-calc__panel .tp-resultado__error { color: #ffd9d4; }
.tp-calc__panel .tp-resultado .tp-btn { justify-self: stretch; justify-content: center; }
@media (min-width: 960px) {
	.tp-calc--panel { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--tp-space-8, 48px); }
	.tp-calc__panel { position: sticky; top: 110px; }
}
.single-content .tp-resultado__lineas { margin: 0; padding-left: 0; }

/* Pista dentro de los campos de fecha y hora vacíos (solo en pantallas táctiles: el ordenador ya la muestra). */
.tp-ph { position: relative; display: block; min-width: 0; }
.tp-ph input { width: 100%; }
@media (pointer: coarse) {
	.tp-ph::after { content: attr(data-ph); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tp-ink-muted, #55646b); pointer-events: none; font-size: 16px; }
	.tp-ph--lleno::after { display: none; }
}
