/*
Theme Name: Truetex Theme
Theme URI: https://truetex.com
Author: Diego Sanchez
Author URI: https://diegodesign.com
Description: Tema ligero, animado y funcional.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truetex
*/
/* Base Reset & Fonts */
:root {
    --primary-color: #d00202;
    --secondary-color: #6c757d;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
}

* {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #474747;
}

.raleway {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 2px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/*Top line and menu*/
.top-line {
    background-color: var(--primary-color);
    height: 60px;
}

.menu-item-1359 a {
    border: 2px solid white !important;
    color: #fff !important;
    padding: 10px 30px !important;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* Navbar Tweaks */
.navbar-brand img {
    width: 250px;
    max-width: 100%;
}

/* Logo Animation on Hover & Click */
.navbar-brand:hover,
.navbar-brand:active {
    animation: pulse 0.6s;
    /* Uses Animate.css keyframes */
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 10px 30px !important;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0);
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0) !important;
}

/* Slider Section Customization */
.slider-section .carousel-item {
    height: 85vh;
    min-height: 900px;
    background-color: #000;
    position: relative;
}

.slider-section .carousel-item img,
.slider-section .carousel-item video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Dark overlay effect for text readability */
}

/* Vertically Center Caption */
.slider-section .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: initial;
    padding-bottom: 0;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Rounded Carousel Indicators */
.slider-section .carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 6px;
    border: 0;
    opacity: 0.6;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Active indicator styling */
.slider-section .carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Section Title Styling */
.section-title {
    position: relative;
    margin-bottom: 40px !important;
    padding-bottom: 20px;
    font-size: 2.5rem;
    text-align: center;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-2 {
    position: relative;
    margin-bottom: 40px !important;
    padding-bottom: 20px;
    font-size: 2.5rem;
    color: white;
    text-align: center;
}

.section-title-2::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 3px;
    background-color: white;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Section-difference */
.bg-grey {
    height: 200px;
    width: 100%;
    background-color: #e8e7e7;
}

/* services-section */
.services-section {
    background-color: var(--primary-color);
}

/* Services Carousel Styling */
.service-card {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s;
    backdrop-filter: blur(2px);
}

.service-title {
    color: #474747;
    font-weight: 800;
    font-size: 1.8rem;
    text-align: center;
    padding: 15px;
    letter-spacing: 1px;
    position: relative;
}

.service-title::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Hover Effect: Hide overlay and title */
.service-card:hover .service-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Full Width Project Section */
.project-full-width {
    width: 100%;
    height: 40vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Black semi-transparent bg */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.project-title-box {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    border: 2px solid white;
    padding: 20px 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

/* Hover Effect: Hide overlay and text */
.project-full-width:hover .project-overlay,
.project-full-width:hover .project-title-box {
    opacity: 0;
    visibility: hidden;
}

/* Section team */
.bg-grey-2 {
    height: 400px;
    width: 100%;
    background-color: #e8e7e7;
}

.team-section img {
    width: 900px;
    max-width: 100%;
}

.team-section p {
    width: 900px;
    max-width: 100%;
}

/* Contact Section Styling */
.contact-section {
    background-image: url('includes/img/bg-contact.jpg');
    /* Placeholder - Replace with actual image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

@media (max-width: 992px) {
    .contact-section {
        background-attachment: scroll;
    }
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-logo {
    width: 250px;
    height: auto;
    /* Optional: Invert color if logo is black. Remove if logo is already white or colored */
    filter: brightness(0) invert(1);
    margin-bottom: 2rem;
}

.contact-form-wrapper {
    background-color: rgba(30, 30, 30, 0.85);
    /* Dark semi-transparent background */
    padding: 3rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.contact-form-wrapper label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .form-control {
    border-radius: 0;
    border: none;
    padding: 10px 15px;
    margin-bottom: 2rem;
}

.contact-form-wrapper .form-control:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
}

.btn-outline-custom {
    color: white;
    border: 1px solid white;
    border-radius: 0;
    padding: 10px 40px;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background-color: transparent;
}

.btn-outline-custom:hover {
    background-color: white;
    color: black;
}

/* Footer Styling */
.section-footer {
    background-color: #fff;
    color: #333;
    font-size: 0.9rem;
}

.footer-logo {
    width: 250px;
    max-width: 100%;
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link-2 {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-2:hover {
    color: var(--primary-color);
}

.footer-social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    border-radius: 50%;
    color: #333;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.footer-social-icon:hover {
    background-color: #949494;
    color: #fff;
}

.footer-contact-info {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 600;
}

.footer-link-3 {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-3:hover {
    color: var(--primary-color);
}

/* boton whats app */
.boton-flotante {
    width: 70px;
    height: 70px;
    font-size: 2.9em;
    padding: 0.02em;
    right: 25px;
    bottom: 30px;
}

.boton-whatsapp i {
    color: white;
}