/* General body styles */
body {
    font-family: 'Roboto', sans-serif; /* Modern font */
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* Changed to white background */
    color: #212529; /* Dark text */
    line-height: 1.6; /* Improved readability */
    box-sizing: border-box; /* Mejor manejo de dimensiones */
}

/* Make all elements inherit box-sizing */
*, *:before, *:after {
    box-sizing: inherit;
}

/* Header styles */
header {
    background-color: #ffffff; /* White header */
    color: #212529;
    padding: 20px 5%; /* Padding horizontal relativo */
    text-align: left; /* Align text to the left */
    width: 100%;
    position: relative; /* For proper menu positioning */
}

/* Navigation styles */
nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center; /* Center the navigation items */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    display: inline;
    margin: 0 20px;
}

nav a {
    color: #212529; /* Dark links */
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    display: block; /* Mejor área clickeable */
}

nav a:hover {
    background-color: #e9ecef; /* Light gray on hover */
    color: #000; /* Black text on hover */
}

/* Main content styles */
main {
    padding: 40px 5%; /* Padding horizontal relativo */
    max-width: 1200px; /* Ancho máximo para pantallas grandes */
    margin: 0 auto; /* Centrado */
}

/* Section styles */
section {
    margin-bottom: 40px;
    width: 100%;
    /* Removed background-color, padding and border-radius to create flat design */
}

/* Heading styles */
h1, h2 {
    color: #343a40; /* Darker heading color */
    font-weight: bold; /* Bold headings */
    margin-bottom: 20px;
}

/* Button styles */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2b2b2b; /* Blue background */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #000000; /* Darker on hover */
}

.button-reset {
    background-color: #6c757d; /* Gray background for reset button */
}

.button-reset:hover {
    background-color: #5a6268; /* Darker gray on hover */
}

/* Services grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ROI Calculator Styles */
.calculator-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Footer styles */
footer {
    text-align: center;
    padding: 30px 5%; /* Padding horizontal relativo */
    background-color: #212121; /* Dark background for footer */
    color: #ffffff;
    width: 100%;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

footer nav li {
    margin: 0 15px;
    padding: 5px 0;
}

footer nav a {
    color: #ffffff;
    text-decoration: none;
}

footer nav a:hover {
    text-decoration: underline;
}

/* Footer fallback styles */
.footer-fallback {
    background-color: #343a40;
    color: #ffffff;
    padding: 30px;
    text-align: center;
}

.footer-fallback p {
    margin: 10px 0;
}

/* Contact Form Styles */
#contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px; /* Ancho máximo para el formulario */
    margin: 0 auto; /* Centrado */
}

#contact-form label {
    margin-top: 10px;
    color: #555; /* Slightly lighter label color */
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 4px;
    font-size: 1em; /* Slightly larger font size */
    width: 100%; /* Ancho completo */
}

#contact-form button {
    padding: 14px 28px;
    background-color: #007bff; /* Blue background */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#contact-form button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space */
}

/* Blog post styles */
.blog-post {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

/* Media Queries for Responsive Design */
/* For tablets */
@media (max-width: 768px) {
    header {
        text-align: center;
        padding: 15px;
    }
    
    main {
        padding: 30px 20px;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .button {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    .typing-text {
        font-size: 2.5rem !important;
    }
}

/* For mobile phones */
@media (max-width: 480px) {
    header {
        padding: 10px;
    }
    
    main {
        padding: 20px 15px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin: 5px 0;
        display: block;
    }
    
    .button {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    footer nav ul {
        flex-direction: column;
    }
    
    footer nav li {
        margin: 5px 0;
    }
    
    .typing-text {
        font-size: 2rem !important;
    }
}
