/*
Theme Name: Condriz Transportes
Theme URI: https://condriz.com.ec/
Author: Web Developer
Author URI: https://condriz.com.ec/
Description: Tema para la Compañía de Transporte Pesado Condoy & Ortiz C.A. CONDRIZ (Ecuador). Diseño profesional, robusto y dinámico enfocado en el sector del transporte logístico pesado. Basado en Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: condriz
Tags: logistica, transporte, corporativo, empresa, dos-columnas, responsive
*/

/* Reset & Variables Base */
:root {
	--cz-primary: #0B1D3A; /* Azul Marino (Seriedad, Confianza, Borde Logo) */
	--cz-secondary: #009DE0; /* Celeste (Dinámico, Fondo Logo) */
	--cz-accent: #87C332;  /* Verde (Ecológico, Progreso, Aro Logo) */
	--cz-accent-hover: #75AB2B;
	--cz-highlight: #FCAE15; /* Amarillo (Carretera, Acción) */
	--cz-white: #FFFFFF;
	--cz-gray-100: #F8F9FA;
	--cz-gray-300: #DEE2E6;
	--cz-gray-800: #343A40;
	--cz-gray-900: #212529;
	--font-heading: 'Roboto', sans-serif;
	--font-body: 'Inter', sans-serif;
}

body.cz-template {
	font-family: var(--font-body);
	color: var(--cz-gray-800);
	background-color: var(--cz-white);
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.6;
	font-size: 16px; /* Base estándar recomendada (1rem = 16px) */
}

body.cz-template > .wp-site-blocks,
body.cz-template > .is-root-container {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.cz-template h1, .cz-template h2, .cz-template h3, .cz-template h4, .cz-template h5, .cz-template h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	color: inherit; /* Hereda el color del contenedor (útil para fondos oscuros) */
	margin-bottom: 1rem;
	margin-top: 0;
}

/* Header Absoluto / Fijo */
.cz-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(11, 29, 58, 0.85); /* Un poco más transparente arriba */
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	margin: 0 !important;
}

.cz-header-scrolled {
	background-color: rgba(11, 29, 58, 0.98); /* Más oscuro al hacer scroll */
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cz-header-scrolled .cz-nav-container {
	height: 70px; /* Se achica un poco */
}

.cz-header-scrolled .cz-logo-main {
	padding: 2px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cz-header-scrolled .cz-logo-main img {
	width: 80px; /* Logo se achica con el scroll */
	height: 80px;
}

.cz-template .cz-header ~ main,
.cz-template main#inicio {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.cz-template .wp-site-blocks > * {
	margin-top: 0 !important;
}

.cz-nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: center; /* Centered */
	align-items: center;
	height: 90px; /* Un poco más alto para el toque corporativo */
	position: relative; 
	transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navs on left and right */
.cz-nav-left, .cz-nav-right {
	flex: 1;
	display: flex;
	align-items: center;
}

.cz-nav-left {
	justify-content: flex-end;
	padding-right: 90px; /* Incrementado para más simetría con respecto al logo */
}

.cz-nav-right {
	justify-content: flex-start;
	padding-left: 90px; /* Incrementado para más simetría con respecto al logo */
}

.cz-logo-center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%); /* Centrado perfectamente dentro del header */
	z-index: 1001;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cz-logo-main {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background-color: var(--cz-white);
	border-radius: 50%; /* perfect circle */
	padding: 5px; /* Ligeramente más padding para que el anillo blanco respire más */
	box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Sombra un poco más profunda y elegante */
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cz-logo-main:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.cz-logo-main img {
	width: 120px; /* Un poco más grande para darle mayor presencia */
	height: 120px;
	object-fit: contain;
	border-radius: 50%;
	display: block;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cz-logo-text {
	color: var(--cz-primary);
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 1.2rem;
	letter-spacing: 1px;
	text-align: center;
	line-height: 1;
	padding: 10px;
}

.cz-logo-text span {
	color: var(--cz-secondary); /* Celeste del logo */
	display: block;
	font-size: 0.8rem;
}

.cz-nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 40px; /* Aumentado de 35px a 40px para que los enlaces "respiren" más */
	align-items: center;
}

.cz-nav-menu a {
	color: rgba(255, 255, 255, 0.85); /* Blanco ligeramente translúcido */
	text-decoration: none;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: all 0.3s ease;
	position: relative;
}

.cz-nav-menu a::after {
	content: '';
	position: absolute;
	width: 0%;
	height: 2px;
	bottom: -4px;
	left: 0;
	background-color: var(--cz-highlight); /* Raya dorada al hacer hover */
	transition: width 0.3s ease;
}

.cz-nav-menu a:hover::after,
.cz-nav-link-active::after {
	width: 100%;
}

.cz-nav-menu a:hover,
.cz-nav-link-active {
	color: var(--cz-white) !important;
}

.cz-btn-quote {
	background-color: transparent !important;
	color: var(--cz-highlight) !important;
	padding: 10px 24px;
	border-radius: 4px;
	border: 2px solid var(--cz-highlight) !important;
	transition: all 0.3s ease;
	white-space: nowrap; /* Evita roturas */
}

.cz-btn-quote::after {
	display: none !important; /* No raya en el botón */
}

.cz-btn-quote:hover {
	background-color: var(--cz-highlight) !important;
	color: var(--cz-primary) !important;
}

/* Hero Section */
.cz-hero {
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: linear-gradient(135deg, rgba(11, 29, 58, 0.95) 0%, rgba(11, 29, 58, 0.8) 100%), url('assets/images/hero-bg.jpg') center/cover no-repeat;
	background-color: var(--cz-primary);
	text-align: center;
	padding-top: 90px; /* offset header */
}

.cz-hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: radial-gradient(circle at 50% 50%, rgba(0, 157, 224, 0.1) 0%, transparent 60%);
	pointer-events: none;
}

.cz-hero-content {
	max-width: 900px;
	padding: 0 20px;
	color: var(--cz-white);
	z-index: 2;
}

.cz-hero-content h1 {
	color: var(--cz-white);
	font-size: clamp(2.5rem, 5vw, 4.5rem); /* Escalado dinámico armónico en lugar de estático */
	font-weight: 900;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
	line-height: 1.1;
	letter-spacing: -1.5px;
}

.cz-hero-content h1 span {
	color: var(--cz-secondary); /* Celeste Corporativo */
}

.cz-hero-content p {
	font-size: clamp(1.1rem, 2vw, 1.35rem); /* Escalado armónico */
	font-weight: 400;
	margin-bottom: 2.5rem;
	color: rgba(255, 255, 255, 0.85);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.cz-btn-primary {
	display: inline-block;
	background-color: var(--cz-highlight); /* Amarillo carretera */
	color: var(--cz-primary);
	padding: 16px 40px;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.05rem; /* Consistente con el secundario */
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	border: 2px solid var(--cz-highlight);
	letter-spacing: 0.5px;
}

.cz-btn-primary:hover {
	background-color: transparent;
	color: var(--cz-highlight);
}

.cz-btn-secondary {
	display: inline-block;
	background-color: transparent;
	color: var(--cz-white);
	padding: 16px 40px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	border: 2px solid rgba(255, 255, 255, 0.3);
	margin-left: 15px;
	letter-spacing: 0.5px;
}

.cz-btn-secondary:hover {
	border-color: var(--cz-white);
	background-color: rgba(255, 255, 255, 0.1);
}

/* Sections */
.cz-template .cz-section {
	padding: 100px 20px; /* Aumentado para más aire corporativo */
}

.cz-section-light { background-color: var(--cz-white); }
.cz-section-gray { background-color: var(--cz-gray-100); }
.cz-section-dark {
	background-color: var(--cz-primary);
	color: var(--cz-white);
}

.cz-section-dark h2 { color: var(--cz-white); }
.cz-section-dark p { color: rgba(255, 255, 255, 0.85); }

.cz-container {
	max-width: 1200px;
	margin: 0 auto;
}

.cz-section-title {
	text-align: center;
	margin-bottom: 70px; /* Un poco más de aire */
}

.cz-section-title h2 {
	font-size: clamp(2rem, 3.5vw, 3.2rem); /* Escalado dinámico */
	text-transform: uppercase;
	position: relative;
	display: inline-block;
	letter-spacing: -1px;
	color: var(--cz-primary);
	line-height: 1.2;
}

.cz-section-dark .cz-section-title h2 {
	color: var(--cz-white);
}

.cz-section-title h2 span {
	color: var(--cz-secondary);
}

.cz-section-title h2::after {
	content: '';
	position: absolute;
	width: 60px;
	height: 4px;
	background-color: var(--cz-accent);
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
}

/* Services Grid */
.cz-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Tarjetas un poco más amplias */
	gap: 40px; /* Más aire entre tarjetas */
}

.cz-service-card {
	background-color: var(--cz-white);
	padding: 40px 30px;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-bottom: 4px solid transparent;
}

.cz-service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
	border-bottom-color: var(--cz-highlight);
}

.cz-service-icon {
	font-size: 3.5rem; /* Icono más protagonista */
	color: var(--cz-secondary);
	margin-bottom: 25px;
}

.cz-service-card h3 {
	font-size: 1.4rem; /* Un poco más grande para jerarquía */
	font-weight: 800;
	margin-bottom: 15px;
	color: var(--cz-primary);
	letter-spacing: -0.5px;
}

.cz-service-card p {
	font-size: 1.05rem; /* Ligeramente más grande para lectura */
	color: var(--cz-gray-800);
	line-height: 1.6;
}

/* Stats Section */
.cz-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px; /* Más espaciado entre métricas */
	text-align: center;
}

.cz-stat-item {
	padding: 20px;
}

.cz-stat-number {
	font-size: clamp(3rem, 5vw, 4.5rem); /* Dinámico y grande */
	font-family: var(--font-heading);
	font-weight: 900;
	color: var(--cz-secondary);
	margin-bottom: 5px;
	line-height: 1;
}

.cz-stat-label {
	font-size: 1.15rem; /* Subtítulo con más peso */
	font-weight: 700;
	color: var(--cz-gray-800);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Footer */
.cz-footer {
	background-color: var(--cz-gray-900);
	color: var(--cz-gray-300);
	padding: 60px 20px 20px;
	border-top: 4px solid var(--cz-highlight);
}

.cz-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.cz-footer h4 {
	color: var(--cz-white);
	text-transform: uppercase;
	margin-bottom: 25px; /* Más aire para los títulos de footer */
	position: relative;
	padding-bottom: 12px;
	font-size: 1.35rem; /* Título un poco más grande */
	font-weight: 800;
	letter-spacing: 0.5px;
}

.cz-footer h4::after {
	content: '';
	position: absolute;
	width: 50px;
	height: 3px;
	background-color: var(--cz-accent);
	bottom: 0;
	left: 0;
}

.cz-footer p, .cz-footer li a {
	font-size: 1.05rem; /* Textos de footer ligeramente más legibles */
	color: rgba(255, 255, 255, 0.7); /* Opacidad cuidada */
	line-height: 1.8;
	text-decoration: none;
	transition: color 0.3s ease;
}

.cz-footer-bottom {
	text-align: center;
	padding-top: 25px;
	margin-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.05); /* División finísima y elegante */
	font-size: 0.95rem; /* Un pelo más legible */
	color: rgba(255, 255, 255, 0.5);
}

.cz-footer a:hover {
	color: var(--cz-secondary);
}

/* Animaciones de Reveal */
.cz-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cz-reveal.cz-active {
	opacity: 1;
	transform: translateY(0);
}

.cz-reveal-delay-1 { transition-delay: 0.1s; }
.cz-reveal-delay-2 { transition-delay: 0.2s; }
.cz-reveal-delay-3 { transition-delay: 0.3s; }
.cz-reveal-delay-4 { transition-delay: 0.4s; }

/* Animaciones del Hero inicial */
@keyframes heroFadeInUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

.cz-hero-content h1 {
	animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cz-hero-content p {
	opacity: 0;
	animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.cz-hero-content div {
	opacity: 0;
	animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

/* Hamburger */
.cz-mobile-menu-btn {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 32px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1005; /* Must be above overlay */
}

.cz-hamburger-line {
	width: 100%;
	height: 3px;
	background: var(--cz-white);
	border-radius: 10px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	transform-origin: 1px;
}

/* Hamburger animation to X */
.cz-mobile-menu-btn.cz-open .cz-hamburger-line:first-child {
	transform: rotate(45deg);
	background: var(--cz-highlight);
}

.cz-mobile-menu-btn.cz-open .cz-hamburger-line:nth-child(2) {
	opacity: 0;
	transform: translateX(-20px);
}

.cz-mobile-menu-btn.cz-open .cz-hamburger-line:nth-child(3) {
	transform: rotate(-45deg);
	background: var(--cz-highlight);
}

/* Mobile overlay */
.cz-mobile-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(11, 29, 58, 0.98);
	backdrop-filter: blur(15px);
	z-index: 1002;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cz-mobile-overlay.cz-open {
	opacity: 1;
	visibility: visible;
}

.cz-mobile-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 35px;
}

.cz-mobile-nav-item {
	transform: translateY(30px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cz-mobile-overlay.cz-open .cz-mobile-nav-item {
	transform: translateY(0);
	opacity: 1;
}

/* Stagger animation for mobile links */
.cz-mobile-overlay.cz-open .cz-mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.cz-mobile-overlay.cz-open .cz-mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
.cz-mobile-overlay.cz-open .cz-mobile-nav-item:nth-child(3) { transition-delay: 0.2s; }
.cz-mobile-overlay.cz-open .cz-mobile-nav-item:nth-child(4) { transition-delay: 0.25s; }
.cz-mobile-overlay.cz-open .cz-mobile-nav-item:nth-child(5) { transition-delay: 0.3s; }
.cz-mobile-overlay.cz-open .cz-mobile-nav-item:nth-child(6) { transition-delay: 0.35s; }

.cz-mobile-nav ul a {
	color: var(--cz-white);
	text-decoration: none;
	font-family: var(--font-heading);
	font-size: 1.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: color 0.3s ease;
}

.cz-mobile-nav ul a:hover {
	color: var(--cz-highlight);
}

.cz-desktop-only {
	display: flex;
}

/* Responsive */
@media (max-width: 900px) {
	.cz-desktop-only {
		display: none !important;
	}

	.cz-mobile-menu-btn {
		display: flex;
		position: absolute;
		left: 20px;
		top: 50%;
		transform: translateY(-50%);
	}

	.cz-logo-center {
		transform: translate(-50%, -50%); /* Forzar centrado exacto sin romper header en movil */
	}

	.cz-logo-main img {
		width: 75px;
		height: 75px;
	}

	.cz-hero-content h1 {
		font-size: clamp(2.2rem, 8vw, 3.5rem);
	}
}
