/* ==========================================================================
   P29 — Cuenta: acceso / crear cuenta
   Tablero: Cuenta-Acceso.dc.html 1440×1427
   ========================================================================== */

/* Rejilla de 12 columnas — cesta.css la define para checkout; cuenta.css
   la necesita también porque no se carga en /my-account/. */
.ltf-g12 {
	display: grid;
	grid-template-columns: repeat(var(--ltf-cols, 12), minmax(0, 1fr));
	column-gap: var(--ltf-medianil, 16px);
	padding-inline: var(--ltf-margen, 24px);
}

/* Layout principal
   ========================================================================== */

.ltf-cta {
	align-items: stretch;
	min-height: calc(100vh - var(--ltf-header-h, 90px));
}

/* Foto izquierda – col 1/span 6, sangra por la izquierda */
.ltf-cta__foto {
	grid-column: 1 / span 6;
	margin: 0 0 0 calc(-1 * var(--ltf-margen, 24px));
	padding: 0;
	overflow: hidden;
}

.ltf-cta__foto-ph {
	width: 100%;
	height: 810px;
	max-height: 100%;
}

.ltf-cta__foto-ph img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	display: block;
}

/* Panel derecho – col 8/span 4 */
.ltf-cta__panel {
	grid-column: 8 / span 4;
	padding: 96px 0 0;
	display: flex;
	flex-direction: column;
}

/* Pantalla partida, como el acceso de Stripe (lo pidió la marca el 12 nov
   2026; el tablero tenía la foto dentro de la columna): la foto ocupa la
   mitad izquierda de la ventana, de la cabecera abajo y de borde a borde,
   y el formulario se centra en la otra mitad con el ancho de siempre.
   La sección sale del contenedor del padre (1120 px) hasta los bordes; el
   body ya recorta el desbordamiento horizontal, así que no hay scroll
   lateral aunque 100vw cuente la barra. Va detrás de las reglas de foto
   y panel para ganarles a igualdad de selector; el del main lleva la
   misma cadena que el de woocommerce.css del padre, más el :has. */
.woocommerce-account .sgf-site-main.sgf-page:has(.ltf-cta) {
	padding-top: 0;
}

.ltf-cta {
	margin-inline: calc(50% - 50vw);
}

@media (min-width: 901px) {

	.woocommerce-account .sgf-site-main.sgf-page:has(.ltf-cta) {
		padding-bottom: 0;
	}

	/* La cabecera es pegajosa: con la barra de arriba ya recogida, la foto
	   llena justo lo que queda; al cargar, pasa 30 px del borde inferior. */
	.ltf-cta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 0;
		padding-inline: 0;
		min-height: calc(100svh - var(--ltf-cab-alto, 61px));
	}

	.ltf-cta__foto {
		grid-column: 1;
		margin: 0;
	}

	/* La foto no empuja la fila: el alto lo pone la pantalla (o el
	   formulario, si es más largo) y ella lo llena. */
	.ltf-cta__foto-ph {
		height: 100%;
		max-height: none;
	}

	.ltf-cta__foto-ph img {
		position: absolute;
		inset: 0;
	}

	.ltf-cta__panel {
		grid-column: 2;
		justify-self: center;
		width: min(332px, calc(100% - 2 * var(--ltf-margen, 24px)));
	}
}

/* Tabs
   ========================================================================== */

.ltf-cta__tabs {
	display: flex;
	gap: 24px;
	margin: 0 0 40px;
}

.ltf-cta__tab {
	padding: 0 0 6px;
	font-size: 14px;
	font-family: inherit;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	color: #65605E;
	box-shadow: none;
	transition: color .15s, box-shadow .15s;
	line-height: 1.35;
}

.ltf-cta__tab--on {
	color: #141212;
	box-shadow: inset 0 -1px 0 #141212;
}

.ltf-cta__tab:hover {
	color: #141212;
}

/* Formularios
   ========================================================================== */

.ltf-cta__panel-form {
	flex: 1;
}

.ltf-cta__form {
	display: grid;
	gap: 24px;
}

/* Campo */
.ltf-cta__field {
	display: flex;
	flex-direction: column;
}

.ltf-cta__label {
	display: block;
	margin: 0 0 4px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #65605E;
	line-height: 1.35;
}

.ltf-cta__input {
	height: 48px;
	border: 0;
	border-bottom: 1px solid #141212;
	border-radius: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: #141212;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.ltf-cta__input:focus {
	border-bottom-color: #141212;
	outline: none;
	box-shadow: none;
}

.ltf-cta__input--err {
	border-bottom-color: #141212;
}

.ltf-cta__err {
	margin: 6px 0 0;
	font-size: 12px;
	color: #141212;
	line-height: 1.4;
}

/* Fila recordarme + olvidaste contraseña */
.ltf-cta__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ltf-cta__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #65605E;
	cursor: pointer;
	user-select: none;
}

/* Checkbox visual (oculta el nativo con screen-reader-text) */
.ltf-chk {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	box-shadow: inset 0 0 0 1px #141212;
	background: transparent;
	vertical-align: middle;
}

.ltf-chk--on {
	background: #141212;
}

.ltf-cta__olvide {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-decoration: none;
	color: #65605E;
	border-bottom: 1px solid transparent;
	transition: border-color .15s;
}

.ltf-cta__olvide:hover {
	border-bottom-color: #65605E;
}

/* Botón submit — !important necesario: woocommerce.css (.woocommerce-account
   button[type="submit"]:not(.show-password-input), especificidad 0-3-1)
   sobreescribe con height:56px. */
.ltf-cta__submit {
	height: 48px !important;
	padding: 0 20px !important;
	font-size: 12px;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: .02em;
	background: #141212;
	color: #FBFBFA;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	width: 100%;
	transition: background .15s;
}

.ltf-cta__submit:hover {
	background: #2d2a2a;
}

/* Nota al pie del formulario */
.ltf-cta__guest {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #65605E;
}

/* ==========================================================================
   Responsive — 900px
   ========================================================================== */

@media (max-width: 900px) {

	.ltf-cta__foto {
		grid-column: 1 / -1;
		margin-left: calc(-1 * var(--ltf-margen, 24px));
		margin-right: calc(-1 * var(--ltf-margen, 24px));
	}

	.ltf-cta__foto-ph {
		height: 320px;
	}

	/* La franja es apaisada: se sube el encuadre para que entre la cara. */
	.ltf-cta__foto-ph img {
		object-position: 50% 18%;
	}

	.ltf-cta__panel {
		grid-column: 1 / -1;
		padding-top: 48px;
	}

}

/* ==========================================================================
   Responsive — 390px
   ========================================================================== */

@media (max-width: 390px) {

	.ltf-cta__foto-ph {
		height: 240px;
	}

	.ltf-cta__panel {
		padding-top: 32px;
	}

	.ltf-cta__tabs {
		margin-bottom: 28px;
	}

}

/* ==========================================================================
   P30 — Cuenta: panel / dashboard
   Tablero: Cuenta-Panel.dc.html 1440×1393
   ========================================================================== */

/* Layout principal
   ========================================================================== */

/* El marco es el del padre (my-account.php): menú + contenido dentro de
   `.woocommerce`. Aquí se lleva a la rejilla de 12 del tablero —menú en las
   columnas 1–3, contenido en 5–12— para el panel y para el resto de
   apartados (pedidos, direcciones, datos). */
.woocommerce-account.logged-in .sgf-site-main.sgf-page {
	padding: 72px 0 200px;
}

.woocommerce-account.logged-in .sgf-site-main > .sgf-container {
	max-width: none;
	padding-inline: var(--ltf-margen, 24px);
}

.woocommerce-account.logged-in .sgf-entry__content > .woocommerce {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--ltf-medianil, 16px);
	align-items: start;
}

.woocommerce-account.logged-in .woocommerce > .sgf-account-nav {
	grid-column: 1 / span 3;
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-account.logged-in .sgf-account-nav ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account.logged-in .sgf-account-nav li {
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-account.logged-in .sgf-account-nav li a {
	display: block;
	padding: 12px 0;
	border: 0;
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
	font-size: 14px;
	line-height: 17px;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	color: #65605E;
	background: none;
	transition: color .15s;
}

.woocommerce-account.logged-in .sgf-account-nav li a:hover,
.woocommerce-account.logged-in .sgf-account-nav li a[aria-current="page"] {
	color: #141212;
}

.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content {
	grid-column: 5 / span 8;
	min-width: 0;
}

/* Rótulos del panel: versalita a 12, también los h2 (el padre los sube a 20). */
.ltf-cu :is(h2, p).ltf-d {
	font-size: 12px;
	line-height: 16px;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ltf-cu .ltf-cu__sub,
.ltf-cu .ltf-cu__card-nombre {
	font-size: 14px;
	line-height: 17px;
	max-width: none;
}

.ltf-cu .ltf-cu__card-nombre {
	margin: 8px 0 0;
}

.ltf-cu .ltf-cu__addr {
	font-size: 14px;
	line-height: 1.55;
}

.ltf-cu :is(.ltf-cu__sub, .ltf-cu__addr) {
	color: #65605E;
}

.ltf-cu h2.ltf-cu__sec-h {
	margin: 0 0 12px;
}

/* Anchos de columna del tablero: pedido, fecha, estado, total y el enlace. */
.ltf-cu .ltf-cu__tabla { table-layout: fixed; }
.ltf-cu .ltf-cu__tabla th:nth-child(1) { width: 20.4%; }
.ltf-cu .ltf-cu__tabla th:nth-child(2) { width: 20%; }
.ltf-cu .ltf-cu__tabla th:nth-child(3) { width: 30.4%; }
.ltf-cu .ltf-cu__tabla th:nth-child(4) { width: 18%; }

.ltf-cu .ltf-cu__tabla :is(th, td) {
	border: 0;
	background: none;
}

.ltf-cu .ltf-cu__tabla th {
	padding: 0 0 10px;
	font-size: 12px;
	line-height: 16px;
	color: #65605E;
}

.ltf-cu .ltf-cu__tabla td {
	padding: 14px 0;
	font-size: 14px;
	line-height: 17px;
}

.ltf-cu .ltf-cu__tabla .ltf-cu__tabla-row {
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
}

/* Encabezado */
.ltf-cu__h1 {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -.01em;
}

.ltf-cu__sub {
	margin: 8px 0 0;
	font-size: 14px;
}

/* Sección título */
.ltf-cu__sec-h {
	margin: 0 0 12px;
	font-weight: 400;
}

/* Enlace sutil reutilizable */
.ltf-lnk {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-decoration: none;
	color: inherit;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	padding-bottom: 2px;
	transition: background-size .6s cubic-bezier(.16, 1, .3, 1);
}

.ltf-lnk:hover {
	background-size: 0 1px;
	background-position: 100% 100%;
}

/* Card pedido en curso
   ========================================================================== */

.ltf-cu__card {
	margin-top: 48px;
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	padding: 16px;
	background: #E8E8E6;
}

.ltf-cu__card-ph {
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.ltf-cu__card-ph img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ltf-cu__card-info {
	min-width: 0;
}

.ltf-cu__card-nombre {
	margin: 8px 0 0;
	font-size: 14px;
}

.ltf-cu__card-prog {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin-top: 20px;
}

.ltf-cu__card-prog span {
	height: 2px;
	background: #DFDEDE;
}

.ltf-cu__card-prog span.ltf-cu__card-prog-on {
	background: #141212;
}

.ltf-cu__card-estado {
	margin: 10px 0 0;
	display: flex;
	justify-content: space-between;
}

.ltf-cu__card-det {
	align-self: start;
}

/* Tabla de pedidos
   ========================================================================== */

.ltf-cu__pedidos {
	margin-top: 64px;
}

.ltf-cu__tabla {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.ltf-cu__tabla-th {
	font-weight: 400;
	padding-bottom: 10px;
	text-align: left;
}

.ltf-cu__tabla-th--r {
	text-align: right;
}

.ltf-cu__tabla-row {
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
}

.ltf-cu__tabla-td {
	padding: 14px 0;
}

.ltf-cu__tabla-td--r {
	text-align: right;
}

/* Estado vacío */
.ltf-cu__empty {
	margin: 0 0 24px;
	font-size: 14px;
}

.ltf-cu__btn-tienda {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 20px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-decoration: none;
	background: transparent;
	color: #141212;
	box-shadow: inset 0 0 0 1px #141212;
	transition: background .15s, color .15s;
}

.ltf-cu__btn-tienda:hover {
	background: #141212;
	color: #FBFBFA;
}

/* Sección detalles (dirección + talla)
   ========================================================================== */

.ltf-cu__detalles {
	margin-top: 64px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ltf-cu__addr {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

.ltf-cu__enlace {
	display: inline-block;
	margin-top: 14px;
}

/* ==========================================================================
   Responsive P30 — 900px
   ========================================================================== */

@media (max-width: 900px) {

	.woocommerce-account.logged-in .sgf-site-main.sgf-page {
		padding: 40px 0 96px;
	}

	.woocommerce-account.logged-in .sgf-entry__content > .woocommerce {
		display: block;
	}

	/* El menú pasa a una fila que se desliza, sin partir palabras. */
	.woocommerce-account.logged-in .sgf-account-nav ul {
		display: flex;
		gap: 24px;
		overflow-x: auto;
		border-bottom: 1px dotted var(--ltf-punteado, #e9e7e6);
		margin-bottom: 32px;
		scrollbar-width: none;
	}

	.woocommerce-account.logged-in .sgf-account-nav li a {
		border-top: 0;
		white-space: nowrap;
	}

	.ltf-cu__card {
		grid-template-columns: 96px minmax(0, 1fr);
		grid-template-rows: auto auto;
	}

	.ltf-cu__card-det {
		grid-column: 2;
	}

}

/* ==========================================================================
   Responsive P30 — 390px
   ========================================================================== */

@media (max-width: 600px) {

	.ltf-cu .ltf-cu__detalles {
		grid-template-columns: 1fr;
		row-gap: 40px;
	}

	.ltf-cu .ltf-cu__tabla th:nth-child(1) { width: 18%; }
	.ltf-cu .ltf-cu__tabla th:nth-child(2) { width: 28%; }
	.ltf-cu .ltf-cu__tabla th:nth-child(3) { width: 26%; }
	.ltf-cu .ltf-cu__tabla th:nth-child(4) { width: 16%; }

}

@media (max-width: 390px) {

	.ltf-cu__card {
		grid-template-columns: 80px minmax(0, 1fr);
		gap: 16px;
		padding: 12px;
	}

	.ltf-cu__detalles {
		grid-template-columns: 1fr;
	}

}
