/* Custom Styles for Professional Landing Page - Construction Theme */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Color Palette
   Primary (Yellow): #FFB400
   Secondary (Dark): #212529
   Accent (Blue-Grey): #34495e
   Text: #333333
   Light: #F8F9FA
*/

/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    /* Fixed background for the whole page to give depth */
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), 
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
    background-size: cover;
}

/* Navbar Customization */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,.4);
    transition: all 0.3s ease-in-out;
    background-color: rgba(33, 37, 41, 0.98) !important; /* Charcoal Black with slight transparency */
    backdrop-filter: blur(5px);
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.text-primary {
    color: #FFB400 !important; /* Construction Yellow */
}
.nav-link {
    transition: color 0.3s ease-in-out;
}
.nav-link:hover {
    color: #FFB400 !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}
.hero-section > .container {
    position: relative;
    z-index: 2;
}
.hero-section h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
}
.hero-section p {
    font-size: 1.6rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections General Styling */
section {
    padding: 100px 0;
    position: relative;
}

/* Titles */
h2 {
    color: #212529;
    position: relative;
    padding-bottom: 15px;
    font-weight: bold;
}
h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #FFB400; /* Yellow accent line */
}

/* Feature Boxes */
.feature-box {
    background-color: rgba(255, 255, 255, 0.95);
    border: none !important;
    border-top: 5px solid #FFB400 !important; /* Yellow top border */
    border-radius: 0.5rem !important;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.feature-box img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #FFB400;
    padding: 5px;
    margin-bottom: 20px;
}
.feature-box h3 {
    font-weight: bold;
    color: #212529;
}

/* About Us Section with Translucent Background */
#empresa {
    background-color: rgba(248, 249, 250, 0.7); /* Translucent light background */
    backdrop-filter: blur(2px);
}

/* Services Cards */
.card {
    border: none;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.card-img-top {
    height: 250px;
    border-bottom: 4px solid #FFB400;
    object-fit: cover;
}
.card-title {
    color: #212529;
}

/* Buttons */
.btn {
    border-radius: 0; /* Square industrial look */
    padding: 12px 35px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: #FFB400;
    border-color: #FFB400;
    color: #212529;
}
.btn-primary:hover {
    background-color: #e6a600;
    border-color: #e6a600;
    color: #000;
    transform: translateY(-2px);
}
.btn-outline-primary {
    color: #212529;
    border-color: #FFB400;
}
.btn-outline-primary:hover {
    background-color: #FFB400;
    border-color: #FFB400;
    color: #212529;
}
.btn-light {
    background-color: #fff;
    border-color: #fff;
    color: #212529;
}

/* Call to Action Section */
.cta-section {
    background-color: #212529;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    color: white;
}
.cta-section h2::after {
    background-color: #FFB400;
}

/* Footer */
footer {
    background-color: #1a1d20 !important;
}
.border-primary {
    border-color: #FFB400 !important;
}

/* WhatsApp Floating Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-float {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1DA851;
    transform: scale(1.1);
    color: white;
}

/* WhatsApp Pop-up Bubble */
.whatsapp-popup {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 280px;
    background-color: #fff;
    color: #333;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(15px);
    border-left: 5px solid #25D366;
}

.whatsapp-popup p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: none; /* Reset hero text shadow */
}

/* Chat bubble arrow */
.whatsapp-popup::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 22px;
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* Show popup on hover or via JS class */
.whatsapp-button:hover .whatsapp-popup,
.whatsapp-button.whatsapp-popup-visible .whatsapp-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-section .container {
    animation: fadeIn 1.2s ease-out;
}
