/* PALETA DE COLORES
   --color-primary (Verde/Agricultura): #4CAF50
   --color-secondary (Azul/Transporte): #007BFF
   --color-dark: #333333
   --color-light: #f4f4f4
*/

:root {
    --color-primary: #4CAF50;
    --color-secondary: #0056b3; /* Un azul más oscuro y profesional */
    --color-dark: #2c3e50; /* Azul casi negro */
    --color-light: #ecf0f1;
    --color-text: #333;
}

/* Reset y Tipografía Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}

/* Contenedor central (para centrar el contenido y limitar el ancho) */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Estilos de Sección General */
.section-padding {
    padding: 80px 0;
    text-align: center;
}

.dark-bg {
    background: var(--color-dark);
    color: var(--color-light);
}

/* Encabezado y Navegación */
header {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary); /* Destacar el logo con el color principal */
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li a {
    color: var(--color-light);
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--color-primary);
}

/* Sección Principal (Hero) */
.hero {
    background: url('') no-repeat center center/cover;
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Overlay semi-oscuro para mejor legibilidad del texto */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Botones Generales */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: var(--color-primary);
    color: white;
}

.btn.primary:hover {
    background: #388e3c; /* Verde más oscuro al pasar el mouse */
}

.btn.secondary {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
}

.btn.secondary:hover {
    background: var(--color-light);
    color: var(--color-dark);
}

/* Sección de Servicios */
#servicios h3 {
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--color-secondary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    margin-bottom: 20px;
}

.service-card.agriculture i {
    color: var(--color-primary);
}

.service-card.transport i {
    color: var(--color-secondary);
}

.service-card h4 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    text-align: left;
    padding: 0 10px;
}

.service-card ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #ccc;
}

.service-card ul li:last-child {
    border-bottom: none;
}

/* Sección Sobre Nosotros */
#nosotros p {
    max-width: 800px;
    margin: 20px auto 30px auto;
    font-size: 1.1em;
}

/* Sección de Contacto */
.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-info i {
    color: var(--color-primary);
    margin-right: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 20px;
    background: var(--color-light);
    border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Pie de Página */
footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--color-primary);
}

/* Responsividad (Móviles) */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2em;
    }
    
    header .container {
        flex-direction: column;
    }

    header nav {
        margin-top: 10px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 5px 0;
    }
}