/**
 * Rockbros Footer styles — Fase 2.5 migración Elementor
 *
 * Reemplaza visualmente el footer Elementor (template 7195).
 * Valores derivados de post-7195.css computed: bg #000, accents rgba(255,255,255,.19/.21),
 * fuentes 12-14px regular + 18px headings, weights 300/500, padding sección 30-50px.
 *
 * Match width: --ast-container-width (1240px default Astra) para coherencia con header.
 */

.rb-footer {
	background: #000;
	color: var(--rb-white);
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.6;
}

.rb-footer * {
	box-sizing: border-box;
}

/* ==========================================================================
   Secciones — top (brand+menus+contacto), cats (categorías), copyright
   ========================================================================== */
.rb-footer__section--top {
	padding: 40px 20px 30px;
}

.rb-footer__section--cats {
	padding: 0 20px 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.19);
	padding-top: 30px;
}

.rb-footer__section--copyright {
	padding: 14px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.19);
}

/* Inner: container ancho + grid 4 cols */
.rb-footer__inner {
	max-width: var(--ast-container-width, 1240px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	align-items: start;
}

.rb-footer__section--copyright .rb-footer__inner {
	display: block;
	text-align: center;
}

/* ==========================================================================
   Headings de columna
   ========================================================================== */
.rb-footer__heading {
	color: var(--rb-white);
	font-size: 18px;
	font-weight: 500;
	margin: 0 0 16px;
	line-height: 1.3;
	font-family: inherit;
}

/* Heading de la sección Categorías: ocupa toda la fila del grid
   para que las 4 columnas de links queden alineadas debajo. */
.rb-footer__heading--cats {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

/* ==========================================================================
   Brand col (logo + tagline + social)
   ========================================================================== */
.rb-footer__col--brand .rb-footer__logo-link {
	display: inline-block;
	margin-bottom: 18px;
}

.rb-footer__logo {
	display: block;
	width: 180px;
	height: auto;
	max-width: 100%;
}

.rb-footer__tagline {
	margin: 0 0 22px;
	font-size: 14px;
	color: var(--rb-white);
	line-height: 1.6;
}

/* ==========================================================================
   Social icons
   ========================================================================== */
.rb-footer__social {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rb-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.21);
	border-radius: 4px;
	color: var(--rb-white);
	transition: background 0.2s ease, transform 0.2s ease;
}

.rb-footer__social a:hover,
.rb-footer__social a:focus-visible {
	background: rgba(255, 255, 255, 0.35);
	transform: translateY(-1px);
}

.rb-footer__social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* ==========================================================================
   Listas de links (menus + categorías)
   ========================================================================== */
.rb-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rb-footer__links li {
	margin: 0 0 8px;
}

.rb-footer__links li:last-child {
	margin-bottom: 0;
}

.rb-footer__links a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.5;
	transition: color 0.2s ease;
}

.rb-footer__links a:hover,
.rb-footer__links a:focus-visible {
	color: var(--rb-yellow);
	text-decoration: underline;
}

/* ==========================================================================
   Contacto col (heading + texto + imagen libro reclamaciones)
   ========================================================================== */
.rb-footer__contacto-text {
	margin-bottom: 16px;
}

.rb-footer__contacto-text p {
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
}

.rb-footer__contacto-text p:last-child {
	margin-bottom: 0;
}

.rb-footer__libro {
	display: inline-block;
	line-height: 0;
}

.rb-footer__libro img {
	display: block;
	width: 140px;
	height: auto;
	max-width: 100%;
}

/* ==========================================================================
   Copyright bar
   ========================================================================== */
.rb-footer__copyright {
	margin: 0;
	font-size: 12px;
	color: var(--rb-white);
	text-align: center;
	line-height: 1.4;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: 2 columnas */
@media (max-width: 921px) {
	.rb-footer__inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 24px;
	}

	.rb-footer__section--top {
		padding: 32px 20px 24px;
	}

	.rb-footer__section--cats {
		padding-top: 24px;
		padding-bottom: 32px;
	}
}

/* Mobile: 1 columna alineada izquierda (match Elementor mobile), tighter spacing */
@media (max-width: 544px) {
	.rb-footer__inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	/* Categorías mantiene 2 columnas en mobile para no alargarse demasiado */
	.rb-footer__section--cats .rb-footer__inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px 20px;
	}

	/* Logo más prominente en mobile (Elementor lo muestra ~70% del viewport) */
	.rb-footer__logo {
		width: 240px;
		max-width: 80%;
	}

	.rb-footer__section--top {
		padding: 24px 16px 16px;
	}

	.rb-footer__section--cats {
		padding: 16px 16px 24px;
	}

	/* Items de lista un poco más cerca en mobile */
	.rb-footer__links li {
		margin-bottom: 6px;
	}

	/* Reducir espacio entre tagline y social */
	.rb-footer__tagline {
		margin-bottom: 16px;
	}
}
