/* Custom CSS for Movimiento de Tierras Landing Page */

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text readability */
    z-index: 1;
}

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

.hero-section h1 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Services Section */
#servicios .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicios .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

#servicios .card-title {
    color: #007bff;
    font-weight: bold;
}

/* Why Choose Us Section */
#nosotros {
    background-color: #f8f9fa;
}

#nosotros .list-group-item {
    border: none;
    background-color: transparent;
    padding: 1rem 0;
}

#nosotros .list-group-item strong {
    color: #007bff;
}

/* Contact Section */
#contacto .form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

#contacto .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#contacto .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

#contacto .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.map-placeholder {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    color: #6c757d;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #343a40 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        background-attachment: scroll; /* Fixed backgrounds can cause issues on mobile */
    }
}

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

/* Section Padding */
section {
    padding-top: 80px; /* Account for fixed navbar */
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
}

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

/* Card Animations */
.card {
    transition: all 0.3s ease;
}

/* Color Scheme */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}


/* Additional enhancements */

/* Navbar transparency */
.navbar {
    transition: background-color 0.3s ease;
    background-color: rgba(52, 58, 64, 0.8) !important;
}

/* Hero section improvements */
.hero-section .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Service cards enhanced styling */
#servicios .card {
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#servicios .card-body {
    padding: 2rem;
}

#servicios .card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
}

#servicios .card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* Why choose us section enhancements */
#nosotros .list-group-item {
    border-left: 4px solid #007bff;
    margin-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
}

#nosotros .list-group-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

/* Contact form enhancements */
#contacto .form-control {
    padding: 12px 15px;
    font-size: 1rem;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
}

#contacto .form-control:focus {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

#contacto .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Map placeholder enhancement */
.map-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border: 2px dashed #adb5bd;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
    border-color: #6c757d;
}

/* Footer enhancement */
footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%) !important;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.btn:disabled {
    animation: pulse 1.5s infinite;
}

/* Responsive improvements */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    #servicios .card-body {
        padding: 1.5rem;
    }
    
    #nosotros .list-group-item {
        font-size: 0.9rem;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 9999;
}

/* Add subtle animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact info styling */
#contacto p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

#contacto strong {
    color: #007bff;
}

.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


