/*
Theme Name: Rumifay Theme
Theme URI: https://rumifay.com
Author: Rumifay
Author URI: https://rumifay.com
Description: Tema ligero para ecommerce Rumifay. Controla header, footer y estilos base. Compatible con Elementor Pro y WooCommerce.
Version: 4.10.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rumifay-theme
Tags: e-commerce, custom-logo, custom-menu, woocommerce, elementor
*/

/* ==========================================================================
   Variables & reset base
   ========================================================================== */

:root {
	--rf-primary: #0057ff;
	--rf-primary-dark: #0046d9;
	--rf-navy: #0b1b3a;
	--rf-navy-light: #1a2d4a;
	--rf-topbar: #0066ff;
	--rf-accent: #ffc400;
	--rf-text: #0b1b3a;
	--rf-text-muted: #6b7280;
	--rf-border: #e5eeff;
	--rf-bg: #ffffff;
	--rf-bg-page: #f5f9ff;
	--rf-container: 1280px;
	--rf-radius: 8px;
	--rf-radius-lg: 12px;
	--rf-logo-max-height: 56px;
	--rf-logo-max-width: 220px;
	--rf-font-scale: 1;
	--rf-font-topbar: 13px;
	--rf-font-logo: 18px;
	--rf-font-tagline: 9px;
	--rf-font-search: 15px;
	--rf-font-nav: 13px;
	--rf-font-nav-btn: 13px;
	--rf-nav-bar-height: 44px;
	--rf-nav-icon-size: 18px;
	--rf-nav-icon-box: 20px;
	--rf-nav-link-padding-y: 8px;
	--rf-nav-link-padding-x: 12px;
	--rf-nav-btn-icon-size: 16px;
	--rf-cats-icon-circle: 48px;
	--rf-cats-icon-size: 22px;
	--rf-mega-thumb-size: 72px;
	--rf-font-actions: 12px;
	--rf-font-actions-sub: 11px;
	--rf-font-footer: 14px;
	--rf-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	--rf-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--rf-transition: 0.2s ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	min-width: 320px;
	font-family: var(--rf-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--rf-text);
	background: var(--rf-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--rf-primary);
	text-decoration: none;
	transition: color var(--rf-transition);
}

a:hover {
	color: var(--rf-primary-dark);
}

/* ==========================================================================
   Layout principal (Elementor edita el contenido)
   ========================================================================== */

.rf-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.rf-main {
	flex: 1;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.rf-main .elementor {
	width: 100%;
}

/* Contenedor solo cuando el tema renderiza contenido sin Elementor */
.rf-container {
	width: 100%;
	max-width: var(--rf-container);
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

.rf-content-area {
	padding: 24px 0 48px;
}

.rf-content-area .entry-content {
	width: 100%;
	max-width: var(--rf-container);
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
	box-sizing: border-box;
}

/* WooCommerce: no forzar ancho en páginas editadas con Elementor */
body.elementor-page .rf-main,
body.elementor-default .rf-main,
body.elementor-page .rf-content-area,
body.elementor-default .rf-content-area {
	padding: 0;
}

body.elementor-page .entry-content,
body.elementor-default .entry-content {
	max-width: none;
	padding: 0;
	margin: 0;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   Header – importado en header.css vía functions.php
   ========================================================================== */

/* ==========================================================================
   Footer – ecommerce Rumifay
   ========================================================================== */

.rf-footer {
	width: 100%;
	max-width: 100%;
	background: linear-gradient(180deg, #081428 0%, #0b1b3a 100%);
	color: #cbd5e1;
	padding: 0;
	margin-top: auto;
	border-radius: 0;
	border: none;
}

.rf-footer a {
	color: #e2e8f0;
	text-decoration: none;
	transition: color 0.15s ease;
}

.rf-footer a:hover,
.rf-footer a:focus-visible {
	color: #fff;
}

.rf-footer__top {
	padding: 48px 0 32px;
}

.rf-footer__inner {
	width: 100%;
	max-width: var(--rf-container, 1280px);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.rf-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.rf-footer__col--brand {
	padding-bottom: 8px;
}

.rf-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rf-footer__tagline {
	margin: 0;
	max-width: 280px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #94a3b8;
}

/* Logo en footer oscuro */
.rf-footer .rf-logo--footer,
.rf-footer .rf-logo--footer.rf-logo {
	color: #fff;
}

.rf-footer .rf-logo--footer .rf-logo__name {
	color: #fff;
}

.rf-footer .rf-logo--footer .rf-logo__tagline,
.rf-footer .rf-logo--footer .rf-logo__letter {
	color: #e2e8f0;
}

.rf-footer .rf-logo--footer .rf-logo__icon {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.rf-footer .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.rf-footer .custom-logo {
	max-height: 44px;
	width: auto;
	filter: brightness(0) invert(1);
}

/* Acordeón móvil / columnas PC */
.rf-footer__accordion {
	border: 0;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rf-footer__accordion:first-of-type {
	border-top: none;
}

.rf-footer__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 18px 0 12px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.01em;
	cursor: pointer;
	list-style: none;
}

.rf-footer__heading::-webkit-details-marker {
	display: none;
}

.rf-footer__heading::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-left: 12px;
}

.rf-footer__accordion[open] > .rf-footer__heading::after {
	transform: rotate(-135deg);
}

.rf-footer__links {
	list-style: none;
	margin: 0;
	padding: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rf-footer__links a {
	font-size: 0.875rem;
	color: #94a3b8;
}

.rf-footer__links a:hover {
	color: #fff;
}

.rf-footer__payments {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 16px;
}

.rf-footer__pay-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
}

.rf-footer__pay-badge--visa {
	background: rgba(26, 31, 113, 0.85);
}

.rf-footer__pay-badge--mastercard {
	background: rgba(235, 87, 40, 0.2);
	border-color: rgba(235, 87, 40, 0.35);
}

.rf-footer__pay-badge--yape {
	background: rgba(114, 46, 209, 0.35);
	border-color: rgba(114, 46, 209, 0.5);
}

.rf-footer__pay-badge--mercadopago {
	background: rgba(0, 158, 227, 0.25);
	border-color: rgba(0, 158, 227, 0.45);
}

.rf-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0 24px;
	background: rgba(0, 0, 0, 0.15);
}

.rf-footer__copy {
	margin: 0;
	text-align: center;
	font-size: var(--rf-font-footer, 14px);
	color: #64748b;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.rf-footer__top {
		padding: 56px 0 40px;
	}

	.rf-footer__grid {
		grid-template-columns: 1.35fr 1fr 1fr 1fr;
		gap: 32px;
		align-items: start;
	}

	.rf-footer__accordion {
		border-top: none;
	}

	.rf-footer__accordion > :not(summary) {
		display: block !important;
	}

	.rf-footer__heading {
		padding: 0 0 16px;
		cursor: default;
		pointer-events: none;
		font-size: 1rem;
	}

	.rf-footer__heading::after {
		display: none;
	}

	.rf-footer__links {
		padding-bottom: 0;
	}

	.rf-footer__payments {
		padding-bottom: 0;
	}

	.rf-footer__col--brand {
		padding-bottom: 0;
	}
}

@media (min-width: 1024px) {
	.rf-footer__inner {
		padding: 0 24px;
	}

	.rf-footer__grid {
		gap: 40px;
	}
}

/* WooCommerce notices dentro del main */
.woocommerce-notices-wrapper {
	max-width: var(--rf-container);
	margin: 0 auto;
	padding: 0 20px;
}
