
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}


/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Animations */
.animate-fade-in {
    animation: fadeIn 1.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 1.5s ease-out 0.5s backwards;
}

.animate-bounce-in {
    animation: bounceIn 1.5s ease-out 1s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #8B4513, #654321);
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

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

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Wood Type Cards */
.wood-type-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.wood-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.wood-info {
    padding: 1.5rem;
}

.wood-type-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wood-type-card:hover img {
    transform: scale(1.05);
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-card img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(70%);
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Gallery */
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

/* Contact Form */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #228B22;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #228B22, #006400);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #006400, #004d00);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #228B22;
    transform: translateY(-3px);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container fixes */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

section {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .project-overlay {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .gallery-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        height: 60vh;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .stat-item i {
        font-size: 2rem !important;
    }
    
    .service-icon i {
        font-size: 2rem !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #654321;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loaded {
    opacity: 1;
}

#whatsappApi{
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 65px;
    height: 65px;
    background-image: url(./img/whatsappApiBussines.png);
    background-size: 82%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    background-color: white;
    border: 2px solid var(--ColorVerdeFCaprecan);
    z-index: 1;
}

.colormarron{
    color: #71441d !important;
}
.colorverde{
        color: #096f09 !important;
}



/* Estilos adicionales para mejor apariencia */
.navbar {
    padding: 0.5rem 0;
    width: 100%;
    max-width: 100vw;
}

.navbar .container-fluid {
    max-width: 100%;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    max-width: 100px;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

@media (min-width: 576px) {
    .navbar-brand img {
        max-width: 124px;
    }
}

.nav-link {
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #28a745;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Espaciado para contenido debajo del navbar fixed */
body {
    padding-top: 70px;
}

@media (min-width: 576px) {
    body {
        padding-top: 80px;
    }
}

@media (min-width: 768px) {
    body {
        padding-top: 90px;
    }
}

@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
}