/*
Theme Name: Videoporteros Terrassa Theme
Theme URI: https://videoporterosterrassa.com/
Author: Antigravity AI
Author URI: https://gemini.google.com
Description: Tema a medida premium desarrollado con soporte nativo FSE para bloques Gutenberg, optimizado para SEO local, CRO y Core Web Vitals en la web de Videoporteros Terrassa.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: videoporterosterrassa
Tags: block-theme, full-site-editing, custom-colors, dark-mode, custom-spacing, translation-ready, accessibility-ready
*/

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline: 2px solid var(--color-primary);
	outline-offset: 4px;
}

/* ==========================================================================
   Videoporteros Terrassa Design Tokens and Variables
   ========================================================================== */
:root {
	--color-background: #0F1117;
	--color-primary: #E53935;
	--color-surface: #1A1D26;
	--color-text-white: #FFFFFF;
	--color-text-muted: #8B9098;
	--color-gray-light: #EAEAEA;
	--shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.4);
	--shadow-glow: 0 0 20px rgba(229, 57, 53, 0.25);
}

/* General Layout & Background Override */
body {
	background-color: var(--color-background) !important;
	color: var(--color-text-white) !important;
	font-family: 'Manrope', sans-serif !important;
	scroll-behavior: smooth;
	margin: 0;
	padding: 0;
}

/* Container scales */
.custom-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}
.custom-container-hero {
	max-width: 1480px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Space scales */
.section-spacer {
	margin-top: 140px;
	margin-bottom: 140px;
}
@media (max-width: 1024px) {
	.section-spacer {
		margin-top: 100px;
		margin-bottom: 100px;
	}
}
@media (max-width: 768px) {
	.section-spacer {
		margin-top: 80px;
		margin-bottom: 80px;
	}
}

/* Sticky Header glassmorphism */
.sticky-header-glass {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 80px;
	background-color: rgba(15, 17, 23, 0.8) !important;
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	z-index: 9999;
}

/* Buttons styling */
.btn-primary {
	background-color: var(--color-primary) !important;
	color: var(--color-text-white) !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 12px 32px !important;
	font-weight: 600 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease !important;
	cursor: pointer;
	text-decoration: none !important;
}
.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-glow);
	background-color: #f44336 !important;
}

.btn-secondary {
	background-color: transparent !important;
	color: var(--color-text-white) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 50px !important;
	padding: 12px 32px !important;
	font-weight: 600 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 250ms ease !important;
	cursor: pointer;
	text-decoration: none !important;
}
.btn-secondary:hover {
	background-color: var(--color-text-white) !important;
	color: var(--color-background) !important;
	border-color: var(--color-text-white) !important;
}

/* Cards */
.service-card {
	background-color: var(--color-surface) !important;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 48px;
	box-shadow: var(--shadow-soft);
	transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1), border-color 350ms ease, box-shadow 350ms ease !important;
}
.service-card:hover {
	transform: scale(1.03) translateY(-4px);
	border-color: rgba(229, 57, 53, 0.3);
	box-shadow: 0 12px 40px rgba(229, 57, 53, 0.1);
}

.tech-card {
	background-color: var(--color-surface) !important;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 32px;
	transition: transform 350ms ease, box-shadow 350ms ease !important;
}
.tech-card.card-red:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(229, 57, 53, 0.2);
}
.tech-card.card-blue:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(33, 150, 243, 0.2);
}
.tech-card.card-purple:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(156, 39, 176, 0.2);
}
.tech-card.card-green:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(76, 175, 80, 0.2);
}

/* Inputs */
.form-input {
	background-color: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 8px !important;
	color: var(--color-text-white) !important;
	padding: 16px !important;
	transition: border-color 250ms ease !important;
}
.form-input:focus {
	border-color: var(--color-primary) !important;
	outline: none !important;
}
.form-input option {
	background-color: var(--color-surface) !important;
	color: var(--color-text-white) !important;
}

/* Trust badge */
.trust-badge {
	background-color: rgba(229, 57, 53, 0.1) !important;
	color: var(--color-primary) !important;
	border-radius: 50px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Accordion */
.faq-item {
	background-color: var(--color-surface);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	margin-bottom: 16px;
	overflow: hidden;
}
.faq-header {
	padding: 24px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
}
.faq-content {
	padding: 0 24px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1), padding 300ms ease;
}
.faq-item.active .faq-content {
	padding-bottom: 24px;
}
.faq-icon {
	transition: transform 300ms ease;
}
.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

/* Marquee */
.marquee-container {
	overflow: hidden;
	white-space: nowrap;
	width: 100%;
}
.marquee-content {
	display: inline-block;
	animation: marquee 25s linear infinite;
}
.marquee-content img {
	height: 36px;
	margin: 0 40px;
	filter: grayscale(1) brightness(2);
	opacity: 0.6;
	transition: opacity 250ms ease;
}
.marquee-content img:hover {
	opacity: 1;
}
@keyframes marquee {
	0% { transform: translate3d(0, 0, 0); }
	100% { transform: translate3d(-50%, 0, 0); }
}

/* Tabs */
.tab-button {
	background: transparent;
	border: none;
	color: var(--color-text-muted);
	padding: 12px 24px;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 250ms ease;
}
.tab-button.active {
	color: var(--color-primary);
	border-bottom-color: var(--color-primary);
}
.tab-content {
	display: none;
	animation: fadeIn 350ms ease forwards;
}
.tab-content.active {
	display: grid;
}
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* WhatsApp widget */
.whatsapp-floating {
	position: fixed;
	bottom: 32px;
	right: 32px;
	background-color: #25D366;
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
	z-index: 9999;
	text-decoration: none;
	transition: transform 250ms ease;
}
.whatsapp-floating:hover {
	transform: scale(1.1);
}

/* Compare Table styles */
.compare-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 32px;
}
.compare-table th {
	background-color: var(--color-surface);
	color: #FFFFFF;
	font-weight: 700;
	text-align: left;
	padding: 16px 24px;
	border-bottom: 2px solid rgba(255,255,255,0.05);
}
.compare-table td {
	padding: 16px 24px;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	color: var(--color-text-muted);
}
.compare-table tr:hover td {
	color: #FFFFFF;
	background-color: rgba(255,255,255,0.01);
}

/* ==========================================================================
   Responsiveness & Adaptability Fixes (Mobile, Tablet)
   ========================================================================== */

/* Universal column stacking on mobile */
@media (max-width: 782px) {
	.wp-block-columns {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		gap: 24px !important;
	}
	.wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	/* Card adjustments on mobile */
	.service-card {
		padding: 32px 24px !important;
	}
	.tech-card {
		padding: 24px !important;
	}
}

/* Solutions tab adjustments (fix horizontal overflow) */
@media (max-width: 992px) {
	.tab-content {
		grid-template-columns: 1fr !important;
		gap: 32px !important;
	}
	.tab-content > div:last-child {
		height: 220px !important;
	}
}

@media (max-width: 768px) {
	.tab-buttons-container {
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		gap: 8px !important;
		margin-bottom: 32px !important;
	}
	.tab-button {
		padding: 8px 16px !important;
		font-size: 14px !important;
	}
	
	/* Header adaptations */
	.sticky-header-glass {
		height: auto !important;
		position: static !important;
		background-color: var(--color-background) !important;
	}
	.sticky-header-glass .wp-block-group.alignwide {
		flex-direction: column !important;
		gap: 16px !important;
		padding: 16px 24px !important;
	}
	
	/* Adjust spacing for body since header is no longer sticky on mobile */
	body {
		padding-top: 0 !important;
	}
	.custom-container-hero.section-spacer {
		margin-top: 40px !important;
	}
}

