/* SW365 Servicios VTC — estilos del frontend.
   Minimalistas y neutros para integrarse con cualquier tema/Elementor. */

.sw365-form {
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
}

.sw365-form__titulo {
	margin: 0 0 1rem;
}

.sw365-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem 1rem;
}

.sw365-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.sw365-field--full {
	grid-column: 1 / -1;
}

.sw365-field > span {
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0.85;
}

.sw365-field input,
.sw365-field textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}

.sw365-field input:focus,
.sw365-field textarea:focus {
	outline: none;
	border-color: currentColor;
}

.sw365-presupuesto {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.04);
}

.sw365-presupuesto__ruta {
	font-size: 0.9rem;
	opacity: 0.8;
}

.sw365-presupuesto__precio {
	font-size: 1.6rem;
	font-weight: 700;
	margin-top: 0.25rem;
}

.sw365-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.1rem;
}

.sw365-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.3rem;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.sw365-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.sw365-btn--principal {
	background: #111;
	color: #fff;
}

.sw365-btn--secundario {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
}

.sw365-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.sw365-form__mensaje {
	margin-top: 0.8rem;
	padding: 0.65rem 0.8rem;
	border-radius: 8px;
	font-size: 0.9rem;
}

.sw365-form__mensaje:empty {
	display: none;
}

.sw365-form__mensaje.is-error {
	color: #c0392b;
	background: #fdf0ee;
}

.sw365-form__mensaje.is-ok {
	color: #1e8449;
	background: #edf8f1;
}

@media (max-width: 560px) {
	.sw365-grid {
		grid-template-columns: 1fr;
	}
}

/* Panel de gestión de reserva del cliente */
.sw365-panel {
	max-width: 640px;
	margin: 0 auto;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	padding: 1.5rem;
}

.sw365-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.sw365-panel__head h3 {
	margin: 0;
}

.sw365-badge {
	display: inline-block;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
}

.sw365-datos {
	width: 100%;
	border-collapse: collapse;
}

.sw365-datos th,
.sw365-datos td {
	text-align: left;
	padding: 0.55rem 0.3rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	vertical-align: top;
}

.sw365-datos th {
	width: 38%;
	font-weight: 600;
	opacity: 0.75;
}

.sw365-btn--peligro {
	background: #c0392b;
	color: #fff;
}

.sw365-aviso {
	max-width: 640px;
	margin: 0 auto 1rem;
	padding: 0.8rem 1rem;
	border-radius: 8px;
	font-weight: 500;
}

.sw365-aviso.is-ok {
	background: #e8f6ee;
	color: #1e8449;
}

.sw365-aviso.is-error {
	background: #fdecea;
	color: #c0392b;
}

.sw365-nota {
	font-size: 0.9rem;
	opacity: 0.75;
	margin: 0.5rem 0 0;
}

.sw365-form--acceso {
	max-width: 520px;
}

/* Panel del conductor (móvil) */
.sw365-cond {
	max-width: 560px;
	margin: 0 auto;
	padding: 0 0.5rem;
}

.sw365-cond__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.sw365-cond__head h3 {
	margin: 0;
}

.sw365-cond__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.75rem;
	border: 1px solid #d7dee5;
	border-radius: 999px;
	background: #f7f9fb;
	color: #34495e;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sw365-cond__logout:hover,
.sw365-cond__logout:focus-visible {
	border-color: #b8c4cf;
	background: #eaf0f5;
	color: #1f2d3d;
	text-decoration: none;
}

.sw365-cond__vacio {
	text-align: center;
	opacity: 0.7;
	padding: 2rem 0;
}

.sw365-trip {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	padding: 1rem;
	margin-bottom: 0.9rem;
	background: #fff;
}

.sw365-trip.is-libre {
	border-style: dashed;
	background: #fbfdff;
}

.sw365-trip__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.6rem;
}

.sw365-trip__fecha {
	font-weight: 700;
}

.sw365-trip__ruta > div {
	padding: 0.15rem 0;
}

.sw365-trip__lbl {
	display: inline-block;
	width: 1.4rem;
	height: 1.4rem;
	line-height: 1.4rem;
	text-align: center;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	margin-right: 0.4rem;
}

.sw365-trip__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
	margin: 0.7rem 0;
	font-size: 0.9rem;
}

.sw365-tag {
	background: #e7f0ff;
	color: #1a5fb4;
	border-radius: 6px;
	padding: 0.1rem 0.5rem;
	font-size: 0.78rem;
	font-weight: 600;
}

.sw365-tag--conductor {
	background: #e8f5e9;
	color: #1b7a3d;
}

.sw365-trip__tel {
	font-weight: 600;
	text-decoration: none;
}

.sw365-trip__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.sw365-trip__acciones > .sw365-btn,
.sw365-trip__acciones > form {
	flex: 1 1 auto;
}

.sw365-trip__acciones > form {
	display: flex !important;
	margin: 0;
}

.sw365-trip__acciones > .sw365-btn,
.sw365-trip__acciones > form > .sw365-btn {
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	border-width: 1px;
	border-style: solid;
	text-align: center;
	padding: 0.7rem 1rem;
}

.sw365-trip__acciones .sw365-btn--principal {
	border-color: #fdbb18;
	background: #fdbb18;
	color: #111;
}

.sw365-trip__acciones .sw365-btn--principal:hover,
.sw365-trip__acciones .sw365-btn--principal:focus-visible,
.sw365-trip__acciones .sw365-btn--principal:active {
	border-color: #2a2a2a;
	background: #2a2a2a;
	color: #fdbb18;
}

.sw365-trip__acciones .sw365-btn--secundario {
	border-color: #aeb8c2;
	background: #fff;
	color: #34495e;
}

.sw365-trip__acciones .sw365-btn--secundario:hover,
.sw365-trip__acciones .sw365-btn--secundario:focus-visible {
	border-color: #7f8c99;
	background: #f4f7f9;
	color: #1f2d3d;
	text-decoration: none;
}

.sw365-trip__acciones .sw365-btn--peligro {
	border-color: #e5aaa4;
	background: #fff;
	color: #a93226;
}

.sw365-trip__acciones .sw365-btn--peligro:hover,
.sw365-trip__acciones .sw365-btn--peligro:focus-visible {
	border-color: #c0392b;
	background: #fdecea;
	color: #922b21;
}

.sw365-cond__perfil {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

/* Icono "usar mi ubicación" dentro del campo de origen, a la derecha */
.sw365-geo-wrap {
	position: relative;
	width: 100%;
}

.sw365-geo-wrap input {
	width: 100%;
	padding-right: 2.4rem;
	box-sizing: border-box;
}

.sw365-geo-btn {
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #0077b6;
	cursor: pointer;
	opacity: 0.9;
}

.sw365-geo-btn svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex: 0 0 auto;
}

.sw365-geo-btn svg path {
	fill: currentColor;
}

.sw365-geo-btn:hover {
	opacity: 1;
	background: rgba(0, 119, 182, 0.1);
}

.sw365-geo-btn[disabled] {
	cursor: default;
}

.sw365-geo-btn.is-loading svg {
	animation: sw365-spin 0.8s linear infinite;
}

@keyframes sw365-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Botón azul océano */
.sw365-btn.sw365-btn--oceano,
a.sw365-btn.sw365-btn--oceano:link,
a.sw365-btn.sw365-btn--oceano:visited {
	background: #fdbb18;
	color: #111;
}

.sw365-btn.sw365-btn--oceano:hover,
.sw365-btn.sw365-btn--oceano:focus-visible,
.sw365-btn.sw365-btn--oceano:active {
	background: #2a2a2a;
	color: #fdbb18;
	text-decoration: none;
}

/* Pestañas y controles del panel del conductor */
.sw365-tabs {
	display: flex;
	gap: 0.4rem;
	max-width: 100%;
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	margin: 1rem 0 0.8rem;
}

.sw365-tab {
	padding: 0.5rem 0.9rem;
	text-decoration: none;
	color: inherit;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-weight: 600;
	opacity: 0.7;
}

.sw365-tab.is-active {
	opacity: 1;
	border-bottom-color: currentColor;
}

.sw365-cond__controls {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.sw365-cond__controls .sw365-btn--oceano {
	padding: 0.3rem 0.6rem;
	border: 1px solid #fdbb18;
	border-radius: 6px;
	font-size: 0.82rem;
}

.sw365-cond__controls .sw365-btn--oceano:hover,
.sw365-cond__controls .sw365-btn--oceano:focus-visible,
.sw365-cond__controls .sw365-btn--oceano:active {
	border-color: #2a2a2a;
}

.sw365-mini {
	font-size: 0.82rem;
	padding: 0.3rem 0.6rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.sw365-cond__controls .sw365-mini,
.sw365-cond__controls .sw365-btn--oceano {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	box-sizing: border-box;
	line-height: 1;
}

.sw365-cond__controls a.sw365-mini.is-active,
.sw365-cond__controls a.sw365-mini.is-active:link,
.sw365-cond__controls a.sw365-mini.is-active:visited {
	background: #111;
	color: #fff;
	border-color: #111;
}

.sw365-cond__controls a.sw365-mini.is-active:hover,
.sw365-cond__controls a.sw365-mini.is-active:focus-visible {
	background: #333;
	color: #fff;
	border-color: #333;
	text-decoration: none;
}

@media (max-width: 480px) {
	.sw365-cond {
		width: 100%;
		padding: 0;
		box-sizing: border-box;
	}

	.sw365-tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.4rem;
		padding: 0.3rem;
		margin-bottom: 1.75rem;
		border: 0;
		border-radius: 10px;
		background: #f1f3f5;
	}

	.sw365-tab {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 0;
		min-height: 40px;
		padding: 0.45rem 0.35rem;
		border: 1px solid transparent;
		border-radius: 7px;
		margin: 0;
		font-size: 0.86rem;
		line-height: 1.2;
		text-align: center;
	}

	.sw365-tab.is-active {
		border-color: #d4d9de;
		background: #fff;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	}

	.sw365-cond__controls {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.sw365-cond__controls > span {
		display: none;
	}

	.sw365-cond__controls .sw365-mini,
	.sw365-cond__controls .sw365-btn--oceano {
		width: 100%;
		height: 40px;
		padding: 0.4rem 0.5rem;
		font-size: 0.82rem;
		white-space: nowrap;
	}

	.sw365-trip__top {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.sw365-trip__acciones {
		display: grid;
		grid-template-columns: 1fr;
	}

	.sw365-trip__acciones > .sw365-btn,
	.sw365-trip__acciones > form {
		width: 100%;
	}
}

@media (min-width: 1024px) {
	.sw365-trip__acciones {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	}

	.sw365-trip__acciones > .sw365-btn,
	.sw365-trip__acciones > form {
		min-width: 0;
		height: 100%;
	}

	.sw365-trip__acciones > .sw365-btn,
	.sw365-trip__acciones > form > .sw365-btn {
		padding-right: 0.4rem;
		padding-left: 0.4rem;
		font-size: 0.85rem;
		white-space: nowrap;
	}

	.sw365-trip__acciones > form > .sw365-btn {
		height: 100%;
	}
}

.sw365-calmes__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 0.6rem;
}

.sw365-calgrid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.sw365-calgrid th {
	font-size: 0.75rem;
	text-align: center;
	padding: 0.2rem;
	opacity: 0.6;
}

.sw365-calgrid td {
	border: 1px solid rgba(0, 0, 0, 0.08);
	height: 76px;
	vertical-align: top;
	padding: 2px 3px;
	overflow: hidden;
}

.sw365-calgrid td.is-empty {
	background: #fafafa;
}

.sw365-calgrid td.is-hoy {
	outline: 2px solid #1a5fb4;
}

.sw365-calgrid__dia {
	font-size: 0.75rem;
	font-weight: 700;
}

.sw365-calgrid__ev {
	display: block;
	font-size: 0.66rem;
	line-height: 1.25;
	background: #e7f0ff;
	color: #1a5fb4;
	border-radius: 3px;
	padding: 0 2px;
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sw365-trip__wa {
	font-weight: 600;
	text-decoration: none;
	color: #1f9d55;
}

/* Calculadora de la home: una fila en escritorio, apilada en móvil */
.sw365-form--calculadora {
	max-width: none;
}

.sw365-cal-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.6rem;
	align-items: flex-start;
}

.sw365-cal-row .sw365-field {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.sw365-cal-row .sw365-field input,
.sw365-form--calculadora .sw365-cal-row__btn {
	height: 44px;
	min-height: 44px;
	max-height: 44px;
	box-sizing: border-box;
}

.sw365-form--calculadora .sw365-cal-row__btn {
	flex: 0 0 auto;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 1.2;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.sw365-cal-row {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.sw365-cal-row .sw365-field,
	.sw365-cal-row__btn {
		width: 100%;
	}
}

/* Opciones de pago (señal / completo) */
.sw365-pago {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 1rem 0;
}

.sw365-pago__opt {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	cursor: pointer;
}

.sw365-pago__opt small {
	opacity: 0.7;
	margin-left: 0.3rem;
}
.sw365-pago__opt:has(input[type="radio"]:checked) {
    background: #fdb812;
    color: #000000;
}

.sw365-pago__opt input{
    display:none
}
/* Checkboxes legales (privacidad / condiciones) */
.sw365-legal {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 1rem 0;
	font-size: 0.9rem;
}

.sw365-acepto {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
}

.sw365-acepto input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.sw365-acepto a {
	text-decoration: underline;
}

.sw365-presupuesto__iva {
	font-size: 0.8rem;
	opacity: 0.65;
	margin-top: 0.2rem;
}

/* Selector de método de pago */
.sw365-metodos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 1rem 0;
}

.sw365-metodos__lbl {
	font-weight: 600;
	width: 100%;
}

/* Aviso de servicio no disponible (licencia) */
.sw365-aviso--bloqueado {
	padding: 1rem 1.25rem;
	border: 1px solid #e0c200;
	background: #fff8e1;
	border-radius: 6px;
	color: #7a5c00;
	text-align: center;
}

/* Bloque de solicitud de factura en la reserva */
.sw365-factura {
	margin: 1rem 0;
}

.sw365-factura__datos {
	margin-top: 0.75rem;
	padding: 0.75rem;
	border: 1px dashed #c9c9c9;
	border-radius: 8px;
}

/* Panel de control del superadmin (front) */
.sw365-panel-sa { max-width: 760px; }

.sw365-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin: 0.5rem 0 1rem;
}

.sw365-card {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	padding: 1rem;
	text-align: center;
	background: #fff;
}

.sw365-card__n { display: block; font-size: 1.6rem; font-weight: 700; }
.sw365-card__l { display: block; font-size: 0.85rem; opacity: 0.7; }

.sw365-panel-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1rem;
}

.sw365-panel-filtros select,
.sw365-panel-filtros input[type="search"] {
	padding: 0.5rem 0.6rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	font: inherit;
}

@media (min-width: 600px) {
	.sw365-cards { grid-template-columns: repeat(4, 1fr); }
}
