/* Bootstrap Reboot */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css');

/* Variables globales */
:root {
    --primary-color: #378A41;
    --secondary-color: #8DC63F;
    --accent-color: #2E7D32;
}

/* Estilos base */
body { 
    background-color: #f4f4f4; 
    color: #333; 
    font-family: 'Roboto', sans-serif;
}

/* Masthead / Hero */
.masthead {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../assets/img/hero.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 175, 80, 0.3);
    pointer-events: none;
    z-index: 1;
}

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

.masthead .lead {
       font-size: 2rem;
    max-width: 510px;
    font-weight: 200 !important;
}

/* Servicios */
.service-card {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon-feature {
    color: var(--primary-color);
    font-size: 3rem;
}

#logo_main{
	max-width:255px;
	margin-bottom:40px;
	
}

.section-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid fixes */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-4 {
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Slider de Logos */
.logos {
    overflow: hidden;
    padding: 60px 0;
    background: white;
    white-space: nowrap;
    position: relative;
}

.logos:before,
.logos:after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.logos:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logos:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logos-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.logos-slide img {
    height: 51px;
    margin: 0 50px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.logos-slide img:hover {
    opacity: 1;
}

/* Sección de Contacto */
.contact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('../assets/img/fondo_contacto.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-email-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-email-wrapper i {
    font-size: 2rem !important;
    color: var(--primary-color) !important;
}

/* Botón flotante de contacto */
.floating-contact-button {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--primary-color) !important;
    color: white;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-contact-button i {
    font-size: 3rem;
}

.floating-contact-button:hover {
    transform: scale(1.1);
    color: white;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white;
    border-radius: 30px !important;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Sección Features */
#features {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#features h2 {
    margin-bottom: 1rem;
}

#features .service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #111;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .masthead {
        padding: 80px 0;
        text-align: center;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .floating-contact-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-contact-button i {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1.2rem !important;
        margin: 0 auto;
    }
}

/* Utilities */
.font-alt {
    font-family: "Oswald", sans-serif !important;
}

.text-gradient {
    background: -webkit-linear-gradient(var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #444;
}

/* Animations */
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}