/*
Theme Name: Rotec Theme
Description: Tema personalizado para Rotec con soporte optimizado para Elementor.
Version: 1.2.0
Author: Rotec
Text Domain: rotec-theme
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: elementor, responsive, business
*/

:root {
	--rotec-color-bg: #f6f8fb;
	--rotec-color-surface: #ffffff;
	--rotec-color-surface-alt: #f1f5f9;
	--rotec-color-text: #172033;
	--rotec-color-text-soft: #5b667a;
	--rotec-color-border: #d8e0ea;
	--rotec-color-primary: #005ea8;
	--rotec-color-primary-dark: #0b4e86;
	--rotec-color-accent: #25d366;
	--rotec-color-accent-dark: #128c7e;
	--rotec-shadow-sm: 0 10px 30px rgba(23, 32, 51, 0.06);
	--rotec-shadow-md: 0 18px 40px rgba(23, 32, 51, 0.1);
	--rotec-radius-sm: 10px;
	--rotec-radius-md: 18px;
	--rotec-radius-pill: 999px;
	--rotec-container: 1200px;
}

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	font-family: "Segoe UI", "Helvetica Neue", sans-serif;
	line-height: 1.6;
	color: var(--rotec-color-text);
	background: var(--rotec-color-bg);
}

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

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

a:hover,
a:focus {
	color: var(--rotec-color-primary-dark);
}

button,
input,
textarea,
select {
	font: inherit;
}

.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-color: #f1f1f1;
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.container {
	width: min(var(--rotec-container), calc(100% - 2rem));
	margin: 0 auto;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(216, 224, 234, 0.9);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 84px;
}

.site-branding {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.custom-logo-link img {
	max-height: 60px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: clamp(1.5rem, 2vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
}

.site-title a {
	color: var(--rotec-color-text);
}

.site-description {
	margin: 0;
	color: var(--rotec-color-text-soft);
	font-size: 0.95rem;
}

.main-navigation {
	margin-left: auto;
}

.menu-toggle {
	display: none;
	border: 1px solid var(--rotec-color-border);
	background: var(--rotec-color-surface);
	color: var(--rotec-color-text);
	padding: 0.65rem 1rem;
	border-radius: var(--rotec-radius-pill);
	cursor: pointer;
}

.main-navigation .nav-menu,
.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--rotec-color-text);
	font-weight: 600;
}

.site-main {
	flex: 1;
	padding: 3rem 0 4rem;
}

.site-main--elementor {
	padding: 0;
}

.site-main--elementor .entry-content,
.site-main--elementor .entry-content > .elementor {
	margin: 0;
}

.rotec-page-entry,
.hentry {
	background: var(--rotec-color-surface);
	border: 1px solid var(--rotec-color-border);
	border-radius: var(--rotec-radius-md);
	box-shadow: var(--rotec-shadow-sm);
	padding: 2rem;
}

.site-main--elementor .rotec-elementor-entry {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	margin: 0;
	font-size: clamp(2rem, 3vw, 2.8rem);
	line-height: 1.1;
}

.entry-meta,
.entry-footer {
	margin-top: 1rem;
	color: var(--rotec-color-text-soft);
	font-size: 0.95rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure {
	margin: 0 0 1.25rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 0 0 1rem;
	line-height: 1.2;
}

.post-thumbnail {
	margin-bottom: 1.5rem;
	overflow: hidden;
	border-radius: var(--rotec-radius-sm);
}

.page-links {
	margin-top: 1.5rem;
	font-weight: 600;
}

.welcome-message,
.no-products {
	background: var(--rotec-color-surface-alt);
	border: 1px solid var(--rotec-color-border);
	border-radius: var(--rotec-radius-md);
	padding: 1.5rem;
}

.site-footer {
	margin-top: auto;
	padding: 3rem 0 2rem;
	background: #0f1726;
	color: rgba(255, 255, 255, 0.82);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}

.footer-widgets:empty {
	display: none;
}

.footer-widget {
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--rotec-radius-md);
}

.footer-widget .widget-title,
.footer-widget h3 {
	margin: 0 0 1rem;
	color: #ffffff;
}

.footer-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-widget a {
	color: rgba(255, 255, 255, 0.82);
}

.site-info {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
}

.site-info p {
	margin: 0.35rem 0;
}

.widget {
	margin: 0;
}

.widget-title {
	margin: 0 0 1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.35rem;
	background: var(--rotec-color-primary);
	color: #ffffff;
	border: 0;
	border-radius: var(--rotec-radius-pill);
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus {
	color: #ffffff;
	background: var(--rotec-color-primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--rotec-shadow-sm);
}

.btn-secondary {
	background: #1f7a52;
}

.btn-secondary:hover,
.btn-secondary:focus {
	background: #155a3b;
}

.products-widget {
	--rotec-grid-columns: 3;
}

.products-filter {
	margin-bottom: 1.5rem;
}

.products-filter select {
	min-width: min(100%, 280px);
	padding: 0.8rem 1rem;
	border: 1px solid var(--rotec-color-border);
	border-radius: var(--rotec-radius-pill);
	background: var(--rotec-color-surface);
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(var(--rotec-grid-columns), minmax(0, 1fr));
	gap: 1.5rem;
}

.product-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--rotec-color-surface);
	border: 1px solid var(--rotec-color-border);
	border-radius: var(--rotec-radius-md);
	overflow: hidden;
	box-shadow: var(--rotec-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rotec-shadow-md);
}

.product-image,
.product-image-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.product-image-placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #dce7f4, #eef3f9);
	color: var(--rotec-color-text-soft);
}

.product-card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
}

.product-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
}

.product-price {
	margin-bottom: 1rem;
	color: var(--rotec-color-primary);
	font-size: 1.15rem;
	font-weight: 700;
}

.product-excerpt {
	color: var(--rotec-color-text-soft);
}

.product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1.25rem;
}

.contact-form {
	padding: 1.75rem;
	background: var(--rotec-color-surface-alt);
	border: 1px solid var(--rotec-color-border);
	border-radius: var(--rotec-radius-md);
}

.contact-form .form-group {
	margin-bottom: 1rem;
}

.contact-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--rotec-color-surface);
	border: 1px solid var(--rotec-color-border);
	border-radius: var(--rotec-radius-sm);
	color: var(--rotec-color-text);
}

.contact-form textarea {
	min-height: 130px;
	resize: vertical;
}

.contact-form .error {
	border-color: #cf4d4d;
}

.contact-form-response {
	margin-bottom: 1rem;
	padding: 1rem 1.25rem;
	border-radius: var(--rotec-radius-sm);
}

.contact-form-response[hidden] {
	display: none !important;
}

.contact-form-response.success {
	color: #14532d;
	background: #dcfce7;
	border: 1px solid #86efac;
}

.contact-form-response.error {
	color: #7f1d1d;
	background: #fee2e2;
	border: 1px solid #fca5a5;
}

.whatsapp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.35rem;
	background: var(--rotec-color-accent);
	color: #ffffff;
	border-radius: var(--rotec-radius-pill);
	font-weight: 600;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
	color: #ffffff;
	background: var(--rotec-color-accent-dark);
	transform: translateY(-1px);
	box-shadow: var(--rotec-shadow-sm);
}

.whatsapp-button-widget .whatsapp-btn.size-small {
	font-size: 0.9rem;
	padding: 0.65rem 1rem;
}

.whatsapp-button-widget .whatsapp-btn.size-medium {
	font-size: 1rem;
}

.whatsapp-button-widget .whatsapp-btn.size-large {
	font-size: 1.1rem;
	padding: 1rem 1.75rem;
}

.whatsapp-button-widget .whatsapp-btn svg {
	flex: none;
}

.store-locator-container {
	position: relative;
	width: 100%;
	min-height: 600px;
	background: var(--rotec-color-surface);
	border: 1px solid var(--rotec-color-border);
	border-radius: var(--rotec-radius-md);
	overflow: hidden;
	box-shadow: var(--rotec-shadow-sm);
}

.store-locator-container .asl-map,
.store-locator-container .asl-map-canv,
.store-locator-container iframe {
	min-height: 100%;
}

.rotec-starter-shell {
	width: min(var(--rotec-container), calc(100% - 2rem));
	margin: 0 auto;
}

.rotec-starter-hero {
	position: relative;
	display: grid;
	gap: 1.25rem;
	padding: clamp(2rem, 4vw, 3.5rem);
	background:
		radial-gradient(circle at top right, rgba(37, 211, 102, 0.18), transparent 26%),
		linear-gradient(135deg, #0f1726 0%, #16324f 100%);
	border-radius: 28px;
	color: #ffffff;
	overflow: hidden;
}

.rotec-starter-hero-compact {
	padding-block: clamp(2rem, 3vw, 2.75rem);
}

.rotec-starter-hero::after {
	content: "";
	position: absolute;
	inset: auto -8% -35% auto;
	width: min(380px, 42vw);
	aspect-ratio: 1;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	filter: blur(2px);
}

.rotec-starter-hero > * {
	position: relative;
	z-index: 1;
}

.rotec-starter-eyebrow,
.rotec-starter-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rotec-starter-eyebrow {
	color: rgba(255, 255, 255, 0.75);
}

.rotec-starter-kicker {
	color: var(--rotec-color-primary);
}

.rotec-starter-hero h1,
.rotec-starter-panel h2,
.rotec-starter-section-head h2 {
	margin: 0;
	line-height: 1.05;
}

.rotec-starter-hero h1 {
	max-width: 12ch;
	font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.rotec-starter-hero p,
.rotec-starter-panel p,
.rotec-starter-section-head p,
.rotec-starter-card p,
.rotec-starter-contact-card p,
.rotec-starter-inline-note p {
	margin: 0;
	font-size: 1.02rem;
	color: var(--rotec-color-text-soft);
}

.rotec-starter-hero p {
	max-width: 60ch;
	color: rgba(255, 255, 255, 0.82);
}

.rotec-starter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.rotec-starter-actions .btn-secondary {
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(10px);
}

.rotec-starter-actions .btn-secondary:hover,
.rotec-starter-actions .btn-secondary:focus {
	background: rgba(255, 255, 255, 0.2);
}

.rotec-starter-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.85rem;
}

.rotec-starter-metrics div {
	padding: 1rem 1.1rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
}

.rotec-starter-metrics strong {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 1.15rem;
}

.rotec-starter-metrics span {
	display: block;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.78);
}

.rotec-starter-section-head,
.rotec-starter-panel {
	display: grid;
	gap: 0.85rem;
	padding: clamp(1.5rem, 3vw, 2.1rem);
	background: var(--rotec-color-surface);
	border: 1px solid var(--rotec-color-border);
	border-radius: 24px;
	box-shadow: var(--rotec-shadow-sm);
}

.rotec-starter-panel-dark {
	background: linear-gradient(135deg, #102033 0%, #153a59 100%);
	border-color: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.rotec-starter-panel-dark .rotec-starter-kicker {
	color: rgba(255, 255, 255, 0.72);
}

.rotec-starter-panel-dark p {
	color: rgba(255, 255, 255, 0.82);
}

.rotec-starter-card-grid,
.rotec-starter-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.rotec-starter-card,
.rotec-starter-contact-card {
	padding: 1.35rem;
	background: var(--rotec-color-surface);
	border: 1px solid var(--rotec-color-border);
	border-radius: 20px;
	box-shadow: var(--rotec-shadow-sm);
}

.rotec-starter-card h3,
.rotec-starter-contact-card h3 {
	margin: 0 0 0.6rem;
	font-size: 1.15rem;
}

.rotec-starter-card a {
	display: inline-flex;
	margin-top: 1rem;
	font-weight: 700;
}

.rotec-starter-inline-note {
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	background: rgba(0, 94, 168, 0.07);
	border: 1px solid rgba(0, 94, 168, 0.14);
	border-radius: 16px;
}

.notification {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 9999;
	min-width: 260px;
	padding: 1rem 1.25rem;
	border-radius: var(--rotec-radius-sm);
	box-shadow: var(--rotec-shadow-md);
}

.notification-success {
	background: #dcfce7;
	color: #14532d;
}

.notification-error {
	background: #fee2e2;
	color: #7f1d1d;
}

.elementor-editor-active .site-header,
.elementor-editor-active .site-footer {
	position: relative;
}

@media (max-width: 900px) {
	.products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rotec-starter-card-grid,
	.rotec-starter-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.site-header .container {
		flex-wrap: wrap;
		padding: 1rem 0;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		width: 100%;
	}

	.main-navigation .nav-menu,
	.main-navigation ul {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
		margin-top: 1rem;
		padding: 1rem;
		background: var(--rotec-color-surface);
		border: 1px solid var(--rotec-color-border);
		border-radius: var(--rotec-radius-md);
	}

	.main-navigation.toggled .nav-menu,
	.main-navigation.toggled ul {
		display: flex;
	}
}

@media (max-width: 680px) {
	.site-main {
		padding: 2rem 0 3rem;
	}

	.rotec-page-entry,
	.hentry {
		padding: 1.25rem;
	}

	.products-grid {
		grid-template-columns: 1fr;
	}

	.rotec-starter-hero h1 {
		max-width: none;
	}

	.rotec-starter-card-grid,
	.rotec-starter-contact-grid {
		grid-template-columns: 1fr;
	}

	.contact-form {
		padding: 1.25rem;
	}

	.product-actions {
		flex-direction: column;
	}
}
