:root {
    --brand-primary: #6aa32e;
    --brand-secondary: #256e29;
    --brand-font: 'Montserrat', sans-serif;
}

body {
    padding-top: 76px; /* Ajustado para el navbar y logo más grande */
    font-family: var(--brand-font);
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--brand-secondary);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--brand-secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--brand-primary);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Navbar Customization */
.navbar-light .navbar-nav .nav-link {
    color: var(--brand-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--brand-primary);
}

/* Hero Section */
.hero-section {
    background-color: #222; /* Fallback */
    height: 100vh; /* Full viewport height */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/banner_portada.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    animation: zoomIn 10s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

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

/* Custom Section Spacing and Colors */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.bg-dark-custom {
    background-color: #222222 !important;
}

.hero-section h1, .hero-section h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Parallax Services Section */
.parallax-services {
    background-color: #000; /* Fallback color */
    background-image: url('../img/bg-services.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 0;
}

.parallax-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Opacidad reducida para ver la imagen */
    z-index: 1;
}

.parallax-services .container {
    position: relative;
    z-index: 2;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9); /* Ligeramente transparente para efecto visual */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15) !important;
}

.service-icon {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.service-card .card-title {
    color: var(--brand-secondary);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

/* Hover Effect for Sectors */
.hover-effect {
    transition: all 0.3s ease;
    background-color: #fff;
}

.hover-effect:hover {
    background-color: var(--brand-primary);
    color: white !important;
    border-color: var(--brand-primary) !important;
}

.hover-effect:hover i, 
.hover-effect:hover h6 {
    color: white !important;
}

/* Contact Section */
#contacto .card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background-color: var(--brand-secondary) !important;
}

footer a.text-white:hover {
    color: var(--brand-primary) !important;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
