:root {
    --eldecor-red: #e11e2b; /* Aproximacion al rojo del logo */
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.bg-red-eldecor {
    background-color: var(--eldecor-red) !important;
}

.text-red-eldecor {
    color: var(--eldecor-red) !important;
}

/* Navbar */
.navbar-brand img {
    max-height: 40px;
}

.navbar-light .navbar-nav .nav-link {
    color: #000;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* Hero Section & Slider */
.hero-section {
    height: 100vh;
    position: relative;
    background-color: #000;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Halftone/Grid Pattern Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creates a clean, light circular dot pattern instead of dense squares */
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.2) 1px, transparent 1.5px);
    background-size: 4px 4px;
    z-index: 1;
    pointer-events: none;
}

/* Darken overlay specifically on slides to ensure text readability across varying backgrounds */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
}

/* Carousel Control Customization */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure content is above overlays */
.hero-section .container {
    position: relative;
    z-index: 3;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Obras Cards */
.obra-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

.obra-card:hover {
    opacity: 0.85;
}

.obra-card .card-img-top {
    height: 250px;
    object-fit: cover;
    border-radius: 0;
}

.obra-card .card-body {
    padding-left: 0;
    padding-right: 0;
    padding-top: 1rem;
}

.obra-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

/* Empresa Section */
.empresa-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #222;
}

.empresa-logo {
    max-height: 65px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.empresa-logo:hover {
    filter: none;
    opacity: 1;
}

/* Contacto Section */
.contacto-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    text-decoration: none;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: background-color 0.3s, color 0.3s;
}

.contacto-icon-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

.form-control:focus {
    border-color: #999;
    box-shadow: none;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.05);
    background-color: #20b858;
}

.whatsapp-float i {
    margin-top: 2px;
}