/*
Theme Name: Real Retail
Theme URI: https://therretail.com
Author: Real Retail
Description: Tema de therretail.com. Copia fiel de la web de Hostinger: misma cabecera, mismo pie y páginas hechas con bloques de HTML personalizado. Cada bloque se aísla como lo hacía Hostinger, así que se puede pegar código igual que antes.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
License: Privado
Text Domain: realretail
*/

/* ============================================================
   Base
   ============================================================ */

:root {
	--rrt-hh: 106px;            /* alto de la cabecera */
	--rrt-dark: rgb(26, 26, 26);
	--rrt-link: rgb(179, 177, 177);
	--rrt-link-active: #0d141a;
	--rrt-logo: rgb(166, 148, 148);
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--rrt-hh);
}

body {
	margin: 0;
	background: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ============================================================
   Cabecera
   ============================================================ */

.rrt-hdr {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	font-family: Lato, sans-serif;
	transition: background-color .25s ease, box-shadow .25s ease;
}

body.admin-bar .rrt-hdr { top: 32px; }

.rrt-hdr.is-scrolled,
.rrt-hdr.is-open {
	background: var(--rrt-dark);
	box-shadow: 0 0 12px rgba(0, 0, 0, .1);
}

.rrt-hdr__bar {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: min-content minmax(0, 1fr) min-content;
	align-items: center;
	column-gap: 32px;
	max-width: 1224px;
	min-height: 106px;
	margin: 0 auto;
	padding: 30px 16px;
}

.rrt-logo {
	font-family: 'Tenor Sans', serif;
	font-size: 39px;
	font-weight: 400;
	line-height: 46px;
	color: var(--rrt-logo);
	text-decoration: none;
	white-space: nowrap;
}

.rrt-nav__list,
.rrt-mmenu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rrt-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 32px;
}

.rrt-nav a,
.rrt-mmenu a {
	display: inline-block;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--rrt-link);
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

.rrt-nav a:hover,
.rrt-nav .current-menu-item > a,
.rrt-mmenu a:hover,
.rrt-mmenu .current-menu-item > a {
	color: var(--rrt-link-active);
	border-bottom-color: currentColor;
}

/* Sobre fondo oscuro (portada negra, o la cabecera ya oscura al bajar) la página activa y el
   enlace bajo el ratón van en blanco: en el color oscuro de arriba no se veían. */
.rrt-hdr.on-dark .rrt-nav a:hover,
.rrt-hdr.on-dark .rrt-nav .current-menu-item > a,
.rrt-hdr.is-scrolled .rrt-nav a:hover,
.rrt-hdr.is-scrolled .rrt-nav .current-menu-item > a,
.rrt-hdr.is-open .rrt-mmenu a:hover,
.rrt-hdr.is-open .rrt-mmenu .current-menu-item > a {
	color: #fff;
	border-bottom-color: currentColor;
}

.rrt-hdr.on-dark .rrt-social--hdr .rrt-social__a:hover,
.rrt-hdr.is-scrolled .rrt-social--hdr .rrt-social__a:hover { color: var(--rrt-link); }

.rrt-social {
	display: flex;
	align-items: center;
}

.rrt-social__a {
	display: inline-flex;
	color: #fff;
	transition: color .2s ease;
}

.rrt-social__a svg {
	display: block;
	width: 100%;
	height: 100%;
}

.rrt-social--hdr { gap: 16px; }
.rrt-social--hdr .rrt-social__a { width: 20px; height: 20px; }
.rrt-social--hdr .rrt-social__a:hover { color: rgb(58, 58, 58); }

.rrt-burger {
	display: none;
	position: relative;
	width: 24px;
	height: 18px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	justify-self: end;
}

.rrt-burger span {
	position: absolute;
	left: 0;
	width: 24px;
	height: 2px;
	border-radius: 1px;
	background: var(--rrt-link);
	transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.rrt-burger span:nth-child(1) { top: 0; }
.rrt-burger span:nth-child(2) { top: 8px; }
.rrt-burger span:nth-child(3) { top: 16px; }

.rrt-hdr.is-open .rrt-burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.rrt-hdr.is-open .rrt-burger span:nth-child(2) { opacity: 0; }
.rrt-hdr.is-open .rrt-burger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.rrt-mmenu {
	display: none;
}

/* ============================================================
   Secciones (cada bloque HTML de una página)
   ============================================================ */

.rrt-main {
	display: block;
}

.rrt-sec {
	position: relative;
}

.rrt-sec__in {
	box-sizing: border-box;
	max-width: 1224px;
	min-height: var(--rrt-minh, 0);
	margin: 0 auto;
}

/* El primer bloque empieza debajo de la cabecera, que es transparente. */
.rrt-main > .rrt-sec:first-child {
	padding-top: var(--rrt-hh);
}

/* Páginas sin cabecera ni pie (plantilla "Landing"). */
.rrt-main--landing > .rrt-sec:first-child {
	padding-top: 0;
}

.rrt-landing {
	scroll-padding-top: 0;
}

/* Hace de "iframe": los @media del bloque miran su ancho. */
.rr-c {
	display: block;
	container-type: inline-size;
	overflow: hidden;
	color: initial;
	font: initial;
	letter-spacing: normal;
	word-spacing: normal;
	text-align: start;
	text-indent: 0;
	text-transform: none;
	text-shadow: none;
	white-space: normal;
	visibility: visible;
}

.rr-b {
	display: block;
}

/* ============================================================
   Pie
   ============================================================ */

.rrt-ftr {
	background: linear-gradient(0deg, rgb(13, 12, 12), rgb(8, 8, 8));
	color: #fff;
	font-family: Lato, sans-serif;
}

.rrt-ftr__in {
	position: relative;
	max-width: 1224px;
	height: 220px;
	margin: 0 auto;
}

.rrt-ftr__in > * {
	position: absolute;
	margin: 0;
}

.rrt-ftr a {
	color: inherit;
	text-decoration: none;
}

.rrt-ftr__title {
	top: 64px;
	left: 14px;
	width: 297px;
	font-family: Inter, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
}

.rrt-social--ftr {
	top: 144px;
	left: 13px;
	width: 152px;
	height: 24px;
	justify-content: space-between;
}

.rrt-social--ftr .rrt-social__a { width: 24px; height: 24px; }

.rrt-ftr__copy {
	top: 196px;
	left: 13px;
	width: 503px;
	font-size: 14px;
	line-height: 1.3;
}

.rrt-ftr__cookies {
	margin-left: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	opacity: .6;
	cursor: pointer;
}

.rrt-ftr__cookies:hover { opacity: 1; }

.rrt-ftr__label,
.rrt-ftr__tel,
.rrt-ftr__mail {
	left: calc(100% - 194px);
	width: 194px;
}

.rrt-ftr__label {
	top: 83px;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;
}

.rrt-ftr__tel,
.rrt-ftr__mail {
	font-size: 16px;
	line-height: 1.5;
}

.rrt-ftr__tel--1 { top: 120px; line-height: 1.33; }
.rrt-ftr__tel--2 { top: 148px; }
.rrt-ftr__mail { top: 196px; }

/* ============================================================
   Entradas del blog
   ============================================================ */

.rrt-post,
.rrt-list,
.rrt-404 {
	padding-top: var(--rrt-hh);
	font-family: Lato, sans-serif;
	color: #0d141a;
}

.rrt-post__head {
	box-sizing: border-box;
	max-width: 1014px;
	margin: 0 auto;
	padding: 45px 30px;
	text-align: center;
}

.rrt-post__title {
	margin: 0 0 8px;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.3;
}

.rrt-post__desc {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.3;
	color: #36344d;
}

.rrt-post__meta {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #36344d;
}

.rrt-post__body {
	box-sizing: border-box;
	max-width: 812px;
	min-height: 527px;
	margin: 0 auto;
	padding: 40px 0 63px;
}

.rrt-post__img {
	margin: 0;
}

.rrt-post__img img {
	display: block;
	width: 100%;
	height: 344px;
	object-fit: cover;
}

.rrt-post__text {
	margin-top: 56px;
	font-size: 16px;
	line-height: 1.5;
}

.rrt-post__text p {
	margin: 0 0 16px;
}

.rrt-list {
	max-width: 812px;
	margin: 0 auto;
	padding-bottom: 64px;
}

.rrt-list__item h2 {
	font-size: 26px;
}

.rrt-list__item a {
	color: inherit;
}

.rrt-404 {
	box-sizing: border-box;
	max-width: 640px;
	min-height: 70vh;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
	padding-bottom: 80px;
	text-align: center;
}

.rrt-404__code {
	margin: 64px 0 8px;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 3px;
	color: #9a9a9a;
}

.rrt-404__title {
	margin: 0 0 16px;
	font-family: Inter, sans-serif;
	font-size: 36px;
}

.rrt-404__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 32px;
}

.rrt-404__links a {
	padding: 14px 28px;
	border: 1px solid #1a1a1a;
	border-radius: 4px;
	color: #1a1a1a;
	text-decoration: none;
}

.rrt-404__links a:last-child {
	background: #1a1a1a;
	color: #fff;
}

/* ============================================================
   Aviso de cookies
   ============================================================ */

.rrt-cookies {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2000;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 16px 24px;
	max-width: 760px;
	margin: 0 auto;
	padding: 16px 20px;
	border-radius: 8px;
	background: var(--rrt-dark);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	color: #f1f1f1;
	font-family: Lato, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

.rrt-cookies[hidden] { display: none; }

.rrt-cookies__txt { margin: 0; flex: 1; }
.rrt-cookies__txt a { color: inherit; }

.rrt-cookies__btns {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.rrt-cookies__btn {
	padding: 10px 18px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

.rrt-cookies__btn--yes {
	background: rgb(241, 241, 241);
	border-color: rgb(241, 241, 241);
	color: var(--rrt-dark);
}

.rrt-cookies__btn:hover { opacity: .85; }

/* ============================================================
   Móvil (Hostinger cambiaba a móvil por debajo de 920 px)
   ============================================================ */

@media (max-width: 919px) {
	:root { --rrt-hh: 76px; }

	.rrt-hdr__bar {
		grid-template-columns: 1fr auto;
		min-height: 76px;
		padding: 24px 16px;
	}

	.rrt-logo { font-size: 24px; line-height: 28px; }

	.rrt-nav,
	.rrt-social--hdr { display: none; }

	.rrt-burger { display: block; }

	.rrt-hdr.is-open .rrt-mmenu {
		display: block;
		padding: 24px 16px 21px;
		text-align: right;
	}

	.rrt-mmenu__list {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 20px;
	}

	.rrt-social--mmenu {
		justify-content: flex-end;
		gap: 16px;
		margin-top: 30px;
	}

	.rrt-social--mmenu .rrt-social__a { width: 24px; height: 24px; }

	.rrt-sec__in {
		min-height: var(--rrt-mminh, 0);
		padding: 0 16px;
	}

	.rrt-ftr__in {
		height: 324px;
		margin: 0 16px;
	}

	.rrt-ftr__title { top: 40px; left: 0; width: 100%; font-size: 20px; }
	.rrt-social--ftr { top: 106px; left: 0; width: 158px; }
	.rrt-ftr__label { top: 162px; left: 0; width: 100%; }
	.rrt-ftr__mail { top: 195px; left: 0; width: 100%; font-size: 12px; }
	.rrt-ftr__tel--1 { top: 222px; left: 0; width: 100%; font-size: 12px; }
	.rrt-ftr__tel--2 { top: 246px; left: 0; width: 100%; font-size: 12px; }
	.rrt-ftr__copy { top: 282px; left: 0; width: 100%; font-size: 12px; }

	.rrt-post__head { padding: 16px; }
	.rrt-post__title { font-size: 32px; }
	.rrt-post__body { min-height: 0; padding: 40px 16px 56px; }
	.rrt-post__img img { height: 320px; }
	.rrt-post__text { margin-top: 64px; font-size: 12px; }

	.rrt-cookies { flex-direction: column; align-items: stretch; }
	.rrt-cookies__btns { justify-content: flex-end; }
}

@media (max-width: 782px) {
	body.admin-bar .rrt-hdr { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.rrt-hdr,
	.rrt-burger span { transition: none; }
}
