/*
  MCP Chile - hoja de estilos del sitio
  Basada en la maquetacion y componentes de la plantilla "Tooplate 2095 Level"
  (https://www.tooplate.com/view/2095-level), adaptada a la empresa y con
  los colores expuestos como variables CSS para poder cambiarlos facilmente.
*/

:root {
	--color-primary: #0a0f54;       /* color de acento principal (botones, enlaces activos, iconos) */
	--color-primary-dark: #04083c;  /* acento en estado hover/activo */
	--color-dark: #1f3646;          /* azul oscuro del pie de pagina */
	--color-dark-2: #1a1a1a;        /* negro suave usado en textos sobre fondos claros del pie */
	--color-gray-light: #F4F4F4;    /* fondo gris claro de secciones alternas */
	--color-gray: #898989;          /* color de texto secundario / parrafos */
	--color-border: #cccccc;        /* bordes sutiles (menu, inputs) */
	--color-white: #ffffff;
	--color-text: #333333;
	--font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}

body {
	font-family: var(--font-family);
	font-size: 15px;
	font-weight: 400;
	overflow-x: hidden;
	color: var(--color-text);
}

a, button { transition: all 0.3s ease; }
a:hover,
a:focus {
	text-decoration: none;
	outline: none;
}

img { max-width: 100%; }

p {
	color: var(--color-gray);
	line-height: 1.9;
}

.tm-position-relative { position: relative; }
.tm-flex-align-center { align-items: center; }
.tm-fa-6x { font-size: 6em; }
.tm-margin-b-0 { margin-bottom: 0; }
.tm-margin-b-20 { margin-bottom: 20px; }
.tm-p-4 { padding: 2rem!important; }
.tm-color-white { color: var(--color-white); }
.tm-color-primary { color: var(--color-primary); }
.tm-bg-primary { background: var(--color-primary); }
.tm-bg-gray { background: var(--color-gray-light); }
.tm-bg-white { background: var(--color-white); }
.tm-bg-dark-blue { background: var(--color-dark); }

.tm-bg-white-shadow {
	box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
}

.tm-section-pad { padding: 80px 50px; }
.tm-section-pad-2 { padding: 30px 40px; }
.tm-article-pad { padding: 28px; }
.tm-pad { padding: 20px; }

a.tm-color-primary:hover,
a.tm-color-primary:active {
	color: var(--color-primary-dark);
}

.tm-font-light { font-weight: 300; }
.tm-font-normal { font-weight: 400; }
.tm-font-semibold { font-weight: 600; }

/* ==========================================================================
   Barra de navegacion
   ========================================================================== */
.navbar {
	width: 100%;
	padding-top: 0;
	padding-bottom: 0;
}
.navbar-brand {
	font-size: 1.4rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	color: var(--color-dark);
	height: 56px;
}
.navbar-brand img {
	height: 80px;
    margin-right: 12px;
    transform: translateY(10px);
}

.navbar a { color: var(--color-text); }

/* Barra de navegacion de las paginas de galeria (logo + boton volver) */
.tm-gallery-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	width: 100%;
}

.tm-nav-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 2px solid var(--color-primary);
	color: var(--color-primary) !important;
	text-transform: uppercase;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1px;
	white-space: nowrap;
	flex-shrink: 0;
}

.tm-nav-back:hover {
	background: var(--color-primary);
	color: var(--color-white) !important;
}

.navbar-toggler {
	border-color: var(--color-primary);
	cursor: pointer;
}

/* Icono del menu movil: 3 barras equidistantes, SVG en linea coloreado
   desde la CSS (asi sigue el color --color-primary sin regenerar un data-URI). */
.tm-navbar-toggler-svg {
	width: 26px;
	height: 26px;
	display: block;
}

.tm-navbar-toggler-svg rect {
	fill: var(--color-primary);
	transition: fill 0.3s ease;
}

.navbar-toggler:hover .tm-navbar-toggler-svg rect,
.navbar-toggler:focus .tm-navbar-toggler-svg rect {
	fill: var(--color-primary-dark);
}

.nav-item {
	background: transparent;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	padding: 0;
	transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
	color: var(--color-white) !important;
	background: var(--color-primary);
}

.tm-top-bar .navbar-expand-lg .navbar-nav .nav-link { padding: 30px 25px; }

.tm-top-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 0;
	z-index: 10000;
	transition: all 0.2s ease-in-out;
	height: 90px;
	background: var(--color-white);
}

.tm-top-bar.active {
	height: 70px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.tm-top-bar.active .navbar-expand-lg .navbar-nav .nav-link { padding: 20px 25px; }
.tm-top-bar-bg { height: 90px; }

/* ==========================================================================
   Secciones generales / hero
   ========================================================================== */
.tm-section { min-height: 480px; }

#tm-section-1 {
	background-image: url('../../Servicios/servicios1.png');
	background-color: var(--color-dark);
	height: 620px;
}

.tm-bg-img {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tm-hero-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(180deg, rgba(31,54,70,.75) 0%, rgba(31,54,70,.55) 100%);
}

.tm-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: var(--color-white);
	padding: 40px 15px;
}

.tm-hero-logo {
	display: block;
	max-width: 320px;
	width: 60%;
	height: auto;
	margin: 0 auto 30px;
}

.tm-hero-content h1 {
	font-size: 2.6rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.tm-hero-content h2 {
	font-size: 1.2rem;
	font-weight: 300;
	margin-bottom: 6px;
}

.tm-hero-content .tm-hero-since {
	display: inline-block;
	margin-top: 18px;
	padding: 6px 22px;
	border: 2px solid var(--color-white);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
}

.tm-section-down-arrow {
	position: absolute;
	bottom: -1px;
	width: 100%;
	height: 80px;
	transform: rotate(180deg);
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn-primary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	border-radius: 0;
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 13px 30px;
	text-transform: uppercase;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	background-color: var(--color-primary-dark) !important;
	border-color: var(--color-primary-dark) !important;
}

.tm-btn-primary {
	display: inline-block;
	text-align: center;
	font-size: 0.75rem;
}

.tm-btn-white-bordered {
	display: inline-block;
	padding: 10px 25px;
	border: 2px solid var(--color-white);
	background: transparent;
	text-transform: uppercase;
	color: var(--color-white);
}

.tm-btn-white-bordered:hover,
.tm-btn-white-bordered:focus {
	color: var(--color-primary);
	background: var(--color-white);
}

.form-control {
	border-radius: 0;
	padding: 0.6rem 0.75rem;
}

.form-control:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 0.2rem rgba(238,80,87,.25);
}

/* ==========================================================================
   Fila de caracteristicas (Tecnologia / Calidad / Seguridad)
   ========================================================================== */
.tm-article {
	padding: 40px;
	transition: all 0.3s ease;
}

.tm-article:hover {
	box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	transform: scale(1.05);
}

.tm-article-title-1 {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 20px;
}

/* ==========================================================================
   Servicios (tarjetas)
   ========================================================================== */
.tm-service-card {
	background: var(--color-white);
	box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.tm-service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.tm-service-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.tm-service-card .tm-article-pad {
	padding: 28px;
	text-align: center;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.tm-service-card h3 {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 15px;
}

.tm-service-card .tm-btn-primary { margin-top: auto; }

/* ==========================================================================
   Nosotros / afiches (slick carousel)
   ========================================================================== */
.tm-media-container { max-width: 900px; margin: 0 auto; }

.tm-poster-slide { text-align: center; padding: 0 10px; }
.tm-poster-slide img {
	max-height: 60vh;
	width: auto;
	margin: 0 auto;
	box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.slick-dots { bottom: -35px; }
.slick-prev:before,
.slick-next:before { color: var(--color-primary); }

/* ==========================================================================
   Clientes
   ========================================================================== */
.tm-clients-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.75rem;
}

.tm-clients-grid img {
	max-height: 70px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.75;
	transition: all 0.3s ease;
}

.tm-clients-grid img:hover {
	filter: grayscale(0%);
	opacity: 1;
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.tm-section-contact { background-color: var(--color-dark); }

.contact-form .form-control {
	background-color: var(--color-gray-light);
	border: none;
	font-size: 0.85rem;
	font-weight: 300;
}

.contact-form .error {
	display: none;
	color: #ffb3b3;
	font-size: 0.8rem;
	float: right;
}

#tm-map iframe {
	width: 100%;
	height: 100%;
	min-height: 380px;
	border: 0;
	display: block;
}

.tm-contact-info { list-style: none; padding: 0; margin: 20px 0 0; }
.tm-contact-info li { margin-bottom: 8px; }
.tm-contact-info a { color: var(--color-white); }
.tm-contact-info a:hover { color: var(--color-primary); }

/* ==========================================================================
   Paginas de galeria (Estructuras / Obras / Piezas Especiales)
   ========================================================================== */
.tm-gallery-header {
	position: relative;
	color: var(--color-white);
	text-align: center;
	padding: 170px 20px 70px;
	background-color: var(--color-dark);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.tm-gallery-hero-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
}

.tm-gallery-hero-content {
	position: relative;
	z-index: 2;
	max-width: 780px;
	margin: 0 auto;
}

.tm-gallery-header h1 {
	text-transform: uppercase;
	font-weight: 700;
	font-size: 2rem;
	margin-bottom: 18px;
}

.tm-gallery-hero-content p {
	color: var(--color-white);
	opacity: 0.92;
	font-size: 1rem;
	line-height: 1.85;
	margin-bottom: 25px;
}

.tm-back-link {
	display: inline-block;
	padding: 8px 22px;
	border: 2px solid var(--color-white);
	color: var(--color-white);
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 1px;
}

.tm-back-link:hover {
	background: var(--color-white);
	color: var(--color-dark);
}

.tm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
	padding: 40px 30px;
	max-width: 1400px;
	margin: 0 auto;
}

.tm-gallery-grid figure {
	margin: 0;
	overflow: hidden;
	box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	background: var(--color-white);
}

.tm-gallery-grid img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.tm-gallery-grid img:hover { transform: scale(1.08); }

/* ==========================================================================
   Pie de pagina
   ========================================================================== */
footer.tm-site-footer {
	background: var(--color-dark-2);
	color: var(--color-white);
	font-size: 0.9rem;
	padding: 2rem 1rem;
}

footer.tm-site-footer h4 {
	font-size: 1rem;
	letter-spacing: .5px;
	margin: 0 0 .5rem;
	color: var(--color-white);
}

footer.tm-site-footer a {
	color: var(--color-white);
	text-decoration: none;
}

footer.tm-site-footer a:hover { color: var(--color-primary); }

footer.tm-site-footer address { font-style: normal; line-height: 1.5; }

.tm-footer-social a {
	display: inline-block;
	margin-right: 12px;
	font-size: 1.3rem;
}

.tm-footer-bottom {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,.1);
	text-align: center;
	font-size: .8rem;
	color: #b5b5b5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 991px) {
	.tm-top-bar.active, .tm-top-bar, .tm-top-bar-bg { height: 65px; }
	.tm-top-bar.active .navbar-expand-lg .navbar-nav .nav-link,
	.tm-top-bar .navbar-expand-lg .navbar-nav .nav-link {
		padding: 12px 15px;
	}
	#mainNav {
		width: 220px;
		position: absolute;
		top: 60px;
		right: 15px;
		box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
		background: var(--color-white);
	}
	.navbar-brand img { height: 70px;
    margin-right: 12px;
    transform: translateY(6px);}
	.navbar-brand{
		height: 44px;
	}
	.tm-hero-logo { max-width: 240px; }
}

/* Menu de las paginas de galeria: el nombre completo de la empresa no cabe
   junto al boton "Volver" en pantallas angostas, asi que se oculta y solo
   queda el isotipo + el boton. */
@media screen and (max-width: 767px) {
	.navbar-brand { margin-right: 0; }
	.tm-navbar-title { display: none; }
	.tm-nav-back { padding: 8px 14px; font-size: 0.7rem; }
}

@media screen and (max-width: 400px) {
	.tm-nav-back .tm-nav-back-text { display: none; }
	.tm-nav-back { padding: 10px; gap: 0; }
}

@media screen and (max-width: 767px) {
	#tm-section-1 { height: 520px; }
	.tm-hero-logo { max-width: 180px; width: 50%; margin-bottom: 20px; }
	.tm-hero-content h1 { font-size: 1.8rem; }
	.tm-hero-content h2 { font-size: 1rem; }
	.tm-gallery-header { padding: 130px 20px 45px; }
	.tm-gallery-hero-content p { font-size: 0.9rem; }
	.tm-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 25px 15px; }
	.tm-gallery-grid img { height: 140px; }
}

@media screen and (max-width: 480px) {
	.tm-hero-logo { max-width: 130px; width: 45%; margin-bottom: 15px; }
}
