@charset "utf-8";
/*
 * movil.css
 * Diseno adaptable de la web publica (01.12.2026). Se carga despues de
 * estilos-outlets.css, que sigue siendo el diseno de escritorio de siempre (ancho fijo,
 * min-width 994px, maquetado con tablas), y solo lo corrige con media queries:
 *
 *   - Siempre: las imagenes de contenido de las fichas y de su descripcion no pasan
 *     del ancho de su columna (una imagen de 1200 px tapaba el menu).
 *   - Hasta 999px (tableta y movil): ancho fluido, sin min-width; columnas apiladas
 *     (contenido, menu y columna derecha); cabecera, buscador y pie adaptados; boton
 *     de menu; letra base de 16px y zonas tactiles de 44px.
 *   - Hasta 640px (movil): las tablas de ofertas y tiendas se convierten en tarjetas
 *     apiladas (cada <tbody> es una fila de tres; ver index.tpl, ofertas.tpl y
 *     tiendas.tpl) y los formularios ocupan todo el ancho.
 *
 * A partir de 1000px no aplica nada de lo de arriba salvo el limite de las imagenes:
 * el escritorio se ve igual que antes. Como probarlo: AGENTS.md, "Diseno adaptable".
 */

/* ---------------------------------------------------------------------------------
 * Siempre (tambien en escritorio)
 * ------------------------------------------------------------------------------- */

/* Imagenes de las fichas (oferta, noticia, tienda) y las del HTML de su descripcion:
   nunca mas anchas que su columna. El width/height del HTML se mantiene (evita el CLS):
   height:auto conserva la proporcion al reducirlas. Fuera quedan los spacer.gif, que
   llevan a proposito una medida que no es la de su imagen, y la imagen principal a la
   medida de siempre (sin imagenAncho/imagenAlto: 242x202, 190x158, 242x182), que se
   sigue viendo estirada a esa medida, como antes: cabe en la columna. */
.ofer img:not([src$="spacer.gif"]):not([width="242"][height="202"]),
.note2 img:not([src$="spacer.gif"]):not([width="190"][height="158"]),
.outlet img:not([src$="spacer.gif"]):not([width="242"][height="182"]),
.imp img {
	max-width: 100%;
	height: auto;
}
.promo img, .picture img {
	max-width: 100%;
}

/* Anuncio central de AdSense (PubliCentral, scripts/utiles.php): la medida va aqui y no
   en el style del <ins>, para dar una por ancho de pantalla (468x60; 320x50 hasta 640px,
   abajo). AdSense pide el anuncio con la medida que tiene el <ins> al cargarse. */
ins.odm-publi-central {
	width: 468px;
	height: 60px;
}
/* La caja de la imagen principal se ajusta a la imagen (antes, 242x202 fijos: una
   imagen con medida mayor se salia de la caja) y no pasa del ancho de la columna */
.promo {
	width: auto;
	height: auto;
	max-width: 100%;
}
.promo > img {
	display: block;
}
.picture {
	max-width: 100%;
	box-sizing: border-box;
}

/* Boton de menu: solo en pantallas estrechas */
.boton-menu {
	display: none;
}

/* ---------------------------------------------------------------------------------
 * Tableta y movil (hasta 999px)
 * ------------------------------------------------------------------------------- */
@media (max-width: 999px) {
	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}
	body {
		font-size: 16px;
		line-height: 1.45;
	}
	.small, .tags, .date, .info-c, .info-d, .path, .common label, .legal p, .msj {
		font-size: 14px;
	}
	.wrapper, .header, .container, .footer {
		width: auto;
		min-width: 0;
	}
	img {
		max-width: 100%;
	}
	/* Publicidad flotante de la cabecera (fpi.js): tapa el contenido en el movil */
	#divTopLeft {
		display: none !important;
	}

	/* Cabecera */
	.header {
		height: auto;
		padding: 0 12px;
	}
	.logo {
		float: none;
		width: auto;
		padding: 12px 0 4px;
		text-align: center;
	}
	.logo a {
		display: inline-flex;
		flex-direction: column-reverse;
		align-items: center;
	}
	.logo img {
		width: 360px;
		height: auto;
	}
	.logo span {
		position: static;
		width: auto;
		margin: 0;
		font-size: 18px;
		text-align: center;
	}
	.banregistro {
		float: none;
		width: auto;
		height: auto;
		margin: 4px auto 8px;
		text-align: center;
	}
	.banregistro > table {
		margin: 0 auto;
	}
	.banregistro > a > img {
		height: auto;
	}
	.headermenu {
		height: auto;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}
	.boton-menu {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		min-width: 44px;
		padding: 0 14px;
		box-sizing: border-box;
		background: #CA2F42;
		color: #FFFFFF;
		font-weight: bold;
		font-size: 16px;
		text-transform: uppercase;
		border-radius: 4px;
	}
	.boton-menu:hover, .boton-menu:focus {
		color: #FFFFFF;
		background: #A82535;
	}
	.boton-menu::before {
		content: "";
		width: 18px;
		height: 12px;
		margin-right: 8px;
		border-top: 2px solid #FFFFFF;
		border-bottom: 2px solid #FFFFFF;
		background: linear-gradient(#FFFFFF, #FFFFFF) no-repeat 0 50% / 100% 2px;
	}
	.menu-top {
		margin: 0;
		float: none;
		display: flex;
	}
	.menu-top li {
		padding: 0;
		width: 44px;
		height: 44px;
		margin: 0 4px 0 0;
	}
	.menu-top a {
		width: 44px;
		height: 44px;
		background-color: transparent;
		box-sizing: border-box;
		border: 10px solid #EEEEEE;
	}
	.search {
		float: none;
		height: auto;
		flex: 1 1 180px;
		display: flex;
		align-items: center;
	}
	.search form.buscador {
		display: flex;
		width: 100%;
	}
	#searchword {
		float: none;
		flex: 1;
		width: auto;
		min-width: 0;
		min-height: 44px;
		margin: 0;
		padding: 4px 8px;
		box-sizing: border-box;
		font-size: 16px;
	}
	.search input[type="image"] {
		width: 44px;
		height: 44px;
		margin: 0;
		flex: none;
	}
	.search + .search {
		flex-basis: 100%;
		background: none;
	}
	.search + .search:empty, .search + .search span:empty {
		display: none;
	}

	/* Columnas: contenido, menu izquierdo y columna derecha, una debajo de otra. El boton
	   de menu (scripts/movil.js) sube el menu izquierdo encima del contenido. */
	.maincontent1, .maincontent {
		float: none;
		width: auto;
		background: #EEEEEE;
	}
	.maincontent {
		display: flex;
		flex-direction: column;
	}
	.main {
		order: 1;
		float: none;
		width: auto;
		min-height: 0;
		margin: 0;
		padding: 0 0 24px;
		background: #E1E1E1;
	}
	.colleft {
		order: 2;
		float: none;
		width: auto;
		overflow: visible;
		padding: 16px 0 8px;
	}
	.colright {
		order: 3;
		float: none;
		width: auto;
		overflow: visible;
		padding: 16px 0 8px;
	}
	body.menu-abierto .colleft {
		order: 0;
		border-bottom: 4px solid #CA2F42;
	}
	.colleft .tits, .colright .tits {
		float: none;
		width: auto;
		min-width: 0;
		height: auto;
		margin: 16px 12px 0;
		background: none;
		text-align: left;
	}
	.colleft .modulo, .colright .modulo {
		float: none;
		width: auto;
		margin: 0;
		padding: 8px 16px 16px;
		box-sizing: border-box;
	}
	.colright .modulo {
		text-align: left;
	}
	.colright #publi-right {
		text-align: center;
	}

	/* Menu de secciones: entradas de 44px y categorias en fichas que se reparten el ancho */
	.menuleft {
		width: auto;
		margin: 0 12px 8px;
	}
	.menuleft ul {
		padding-left: 0;
	}
	.parent a, .parent .current {
		padding: 12px 10px;
		min-height: 44px;
		box-sizing: border-box;
		border-right: none;
	}
	.menuleft ul ul {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		padding: 4px 0 8px;
		background: #EEEEEE;
	}
	.menuleft li.item {
		flex: 1 1 140px;
	}
	li.item a, .item .current {
		padding: 12px 10px;
		min-height: 44px;
		box-sizing: border-box;
		border: 1px solid #DDDDDD;
		border-right: 1px solid #DDDDDD;
	}
	/* Caja de usuario */
	.log input[type="text"], .log input[type="password"] {
		width: 100%;
		min-height: 44px;
		box-sizing: border-box;
		font-size: 16px;
	}
	.log .links li a, .colright li a, .footer li a {
		display: inline-block;
		padding: 10px 0;
	}
	.colright li {
		margin: 0;
		background-position: 0 50%;
	}
	.bot-m {
		min-height: 44px;
		width: auto;
		min-width: 160px;
		padding: 0 16px;
		border-radius: 22px;
		background: #CA2F42;
	}
	.bot-m:hover, .bot-m:focus {
		background: #A82535;
	}
	a.bot-m {
		display: inline-block;
		line-height: 44px;
	}
	.clouds li {
		line-height: 2.4;
	}

	/* Contenido */
	.main .titulo {
		margin-left: 0;
	}
	.titulo {
		height: auto;
		background: none;
	}
	.path {
		margin: 0;
		padding: 10px 12px;
	}
	.path a {
		display: inline-block;
		padding: 6px 0;
	}
	.pad {
		overflow: hidden;
	}
	/* La etiqueta del descuento, sobre la esquina de la foto, que va centrada en su celda
	   (190px; 123px en las cajas pequenas). En escritorio la celda mide lo que la foto. */
	table.ppal td.tdbox {
		position: relative;
	}
	table.ppal a.descuento {
		margin-left: calc(50% - 98px);
	}
	.mod1 table.ppal a.descuento, .mod3 table.ppal a.descuento {
		margin-left: calc(50% - 64px);
	}
	.alerts {
		margin: 0;
	}
	.main td[nowrap] {
		white-space: normal;
	}
	.p468, .p160, .banner {
		max-width: 100%;
		overflow: hidden;
		box-sizing: border-box;
		padding-left: 8px;
		padding-right: 8px;
	}
	.p468 .tac_activate, .p468 .tac_float {
		white-space: normal;
		max-width: 100%;
	}
	.fullbox {
		float: none;
		width: auto;
		margin: 0;
	}
	.mod1, .mod2, .mod3 {
		float: none;
		width: auto;
		margin: 0;
	}
	.box2 {
		width: auto;
		margin: 0 8px 8px;
	}
	.info-c {
		height: auto;
	}
	.ofer {
		width: auto;
		padding: 16px 12px 0;
	}
	.note, .note2, .list, .forms {
		padding: 16px 12px;
	}
	.outlet {
		width: auto;
		margin: 12px;
		padding: 12px;
	}
	.details {
		width: auto;
	}
	.vote {
		overflow: hidden;
	}
	.star {
		width: 32px;
		height: 32px;
	}
	.star img {
		width: 24px;
		height: 24px;
		margin: 4px;
	}
	a.email {
		width: 44px;
		height: 44px;
	}
	.registration {
		width: auto;
		height: auto;
		margin: 16px 12px;
		overflow: hidden;
	}
	.sharenote {
		overflow: hidden;
	}
	.plus ul {
		padding-left: 12px;
		padding-right: 12px;
	}
	.plus li a {
		display: block;
		padding: 6px 0;
	}
	ul.enlaces {
		padding: 0 16px;
	}
	.ulmarcas li a {
		display: inline-block;
		padding: 8px 0;
	}

	/* Botones de imagen pequenos: la zona tactil crece, el dibujo sigue centrado */
	.bot a.masinfo-g, .box a.masinfo-g {
		width: auto;
		height: 44px;
		line-height: 44px;
	}
	.bot a.masinfo-g img, a.masinfo-c img {
		vertical-align: middle;
	}
	a.masinfo-c {
		width: auto;
		height: 44px;
	}
	a.masinfo-bt {
		width: 44px;
		height: 44px;
		margin: 0;
	}
	.acceder {
		height: 44px;
		line-height: 44px;
		max-width: 100%;
	}

	/* Paginacion: numeros de 44px que bajan de linea si no caben */
	table.paginacion {
		width: 100% !important;
	}
	table.paginacion table, table.paginacion table tbody {
		display: block;
	}
	table.paginacion table tr {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	table.paginacion table td {
		display: block;
		width: auto;
		height: auto;
	}
	.nros a, .nros span, .pags a {
		min-width: 44px;
		min-height: 44px;
		line-height: 34px;
		box-sizing: border-box;
		margin: 0 2px;
	}
	td.pags {
		background-size: 30px 30px;
	}

	/* Formularios (login, registro, datos, baja, contacto, buscador, recomendar) */
	.forms form {
		width: auto;
		margin: 12px 0;
	}
	input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
	input[type="number"], input[type="date"], select, textarea {
		font-size: 16px;
		max-width: 100%;
		box-sizing: border-box;
	}
	input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
	input[type="number"], input[type="date"], select {
		min-height: 44px;
	}
	input[type="checkbox"], input[type="radio"] {
		width: 22px;
		height: 22px;
		vertical-align: middle;
	}
	input[type="submit"], input[type="button"], button {
		min-height: 44px;
	}
	.common input[type="text"].inputbox {
		width: 100%;
	}

	/* Caja de "inicia sesion" de las fichas */
	.form-login fieldset, .form-login .left, .form-login .right {
		float: none;
		width: auto !important;
		height: auto !important;
		border: none;
		padding: 4px 0;
	}
	.form-login input[type="text"], .form-login input[type="password"] {
		width: 100%;
		margin: 4px 0;
	}
	.bt-sesion, .bt-registrate {
		height: 44px;
	}

	/* Pie */
	.footer {
		margin: 0 0 24px;
		padding: 0 12px;
	}
	.copy, .menu-footer {
		float: none;
		width: auto;
		text-align: center;
		margin: 16px 0 8px;
		padding: 0;
	}
	.copy img {
		display: block;
		margin: 0 auto 8px !important;
	}
	.footer li {
		display: inline-block;
		padding: 0 6px;
		margin: 0;
	}
	.legal p {
		padding: 0;
	}

	/* Banner de cookies (tarteaucitron, "popup"): una franja abajo, a todo el ancho y baja,
	   en lugar de la caja de 250px que tapaba media pantalla. Los selectores tienen que ganar
	   a los de tarteaucitron 1.37, que llevan la clase del modo y !important
	   ("body #tarteaucitronRoot.tarteaucitronSize-popup div#tarteaucitronAlertBig"): por eso
	   "html" y la misma clase (01.12.2026: sin ella la caja seguia saliendo, visto en la
	   auditoria SEO). */
	html body #tarteaucitronRoot.tarteaucitronSize-popup div#tarteaucitronAlertBig {
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: auto !important;
		width: 100% !important;
		max-width: none !important;
		max-height: 40vh;
		overflow-y: auto;
		padding: 8px 12px !important;
		box-sizing: border-box !important;
		transform: none !important;
		margin: 0 !important;
		border-radius: 0 !important;
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2) !important;
	}
	html body #tarteaucitronRoot.tarteaucitronSize-popup div#tarteaucitronAlertBig:before {
		display: none;
	}
	html body #tarteaucitronRoot.tarteaucitronSize-popup span#tarteaucitronDisclaimerAlert {
		margin: 0 0 6px !important;
		padding: 0 !important;
		font-size: 14px !important;
	}
	html body #tarteaucitronRoot.tarteaucitronSize-popup div#tarteaucitronAlertBig button:not(#tarteaucitronCloseCross) {
		display: inline-block !important;
		width: auto !important;
		min-height: 44px;
		margin: 2px 4px !important;
		padding: 0.65em 1.2em !important;
	}
}

/* ---------------------------------------------------------------------------------
 * Movil (hasta 640px)
 * ------------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.logo img {
		width: 280px;
	}
	.logo span {
		font-size: 16px;
	}
	/* Cuadro de registro de la cabecera: solo el texto y el boton */
	.banregistro > table, .banregistro > table > tbody, .banregistro > table > tbody > tr {
		display: block;
		width: auto !important;
	}
	.banregistro > table > tbody > tr:first-child,
	.banregistro > table > tbody > tr > td:not(.fdo) {
		display: none;
	}
	.banregistro td.fdo {
		display: block;
		border-radius: 8px;
		padding: 4px 8px;
		background-size: auto 100%;
	}
	.banregistro td.fdo td:first-child {
		display: none;
	}
	.banregistro td.fdo table td {
		width: auto;
	}
	.banregistro .botong {
		float: none;
		display: inline-block;
		min-height: 36px;
	}
	.banregistro td.fdo p a {
		display: inline-block;
		padding: 8px 0;
	}
	.menu-top {
		display: none;
	}
	/* Anuncio central (PubliCentral): 468 no cabe; 320x50, el banner movil de AdSense */
	ins.odm-publi-central {
		width: 320px;
		height: 50px;
	}

	/* Tablas de ofertas y tiendas (table.ppal): cada fila de tres es un <tbody>, y sus
	   celdas, que van por filas (fotos, marcas, tiendas, textos, botones), se reordenan
	   por columna con "order": salen las tres tarjetas una debajo de otra. Se cuenta con
	   nth-of-type porque hay <input type="hidden"> entre las celdas. */
	table.ppal {
		display: block;
		width: auto !important;
		margin: 0 8px;
		background: none;
	}
	table.ppal > tbody {
		display: flex;
		flex-direction: column;
	}
	table.ppal > tbody > tr {
		display: contents;
	}
	table.ppal td {
		display: block;
		width: auto !important;
		max-width: none;
		height: auto;
		box-sizing: border-box;
	}
	table.ppal td.tdm, table.ppal td.line, table.ppal td.vacio {
		display: none;
	}
	table.ppal > tbody > tr > td:nth-of-type(1) { order: 1; }
	table.ppal > tbody > tr > td:nth-of-type(3) { order: 2; }
	table.ppal > tbody > tr > td:nth-of-type(5) { order: 3; }
	table.ppal > tbody > tr > td:nth-of-type(7) { order: 4; }
	table.ppal > tbody > tr > td[colspan] { order: 9; }
	table.ppal td[colspan]:not(.p468) {
		display: none;
	}
	/* Primera celda de cada tarjeta (la foto) y ultima (el boton) */
	table.ppal a.foto, table.ppal a.f-out {
		padding-top: 8px;
	}
	table.ppal td.bot {
		margin-bottom: 12px;
		border-bottom: 1px solid #D8D8D8;
	}
	table.ppal td.boxtitle, table.ppal td.boxtitle2, table.ppal td.tdout {
		border-top: 1px solid #EEEEEE;
	}
	td.boxtitle {
		max-width: none;
	}
	td.boxtitle2 {
		height: auto;
	}
	table.ppal td.info p, table.ppal td.info-g p {
		margin: 8px 4px;
	}
	.vacio {
		width: auto;
	}

	/* Fichas: la imagen principal arriba y centrada */
	.promo, .picture, .outlet .picture {
		float: none;
		margin: 0 auto 12px;
	}
	.picture, .promo {
		display: table;
	}
	.outlet {
		margin: 8px;
		padding: 12px 8px;
	}
	h1, h1.head, h2.head {
		font-size: 22px;
	}

	/* Formularios a todo el ancho: las tablas de maquetacion pasan a bloque */
	.forms table, .forms tbody, .forms tr, .forms td,
	.common, .common tbody, .common tr, .common td {
		display: block;
		width: auto !important;
	}
	.common td {
		padding: 4px 0;
		text-align: left;
	}
	.forms .inputbox {
		width: 100% !important;
	}
}
