/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #2d5a3d;
    padding: 20px 0;
}

.logo-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    max-width: 150px;
    height: auto;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(45, 90, 61, 0.85) 50%, rgba(45, 90, 61, 0.3) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alinea el contenido a la izquierda */
    position: relative; /* Añadido para que el posicionamiento absoluto de .hero-content funcione */
}

.hero-content {
    color: white;
    max-width: 600px; /* Ajustado para que sea más estrecho */
    text-align: left;
    position: absolute; /* Posicionamiento absoluto */
    left: 100px; /* Ajuste de la posición izquierda */
    top: 50%; /* Centrado verticalmente */
    transform: translateY(-50%); /* Ajuste fino para centrado vertical */
    padding-left: 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: left; /* Asegura que el título esté alineado a la izquierda */
}

.hero-text {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    text-align: left; /* Asegura que el texto esté alineado a la izquierda */
}

/* Historia Section */
.historia-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.historia-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d5a3d;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.historia-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* Valores Section */
.valores-section {
    padding: 80px 0;
    background-color: white;
}

.section-title-center {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.section-title-green {
    color: #4caf50;
}

.valores-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.valores-image {
    max-width: 100%;
    height: auto;
}

/* Nuestros Números Section */
.numeros-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.numeros-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
}

.stats-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.stats-image {
    max-width: 100%;
    height: auto;
}

.stats-bar {
    background-color: #4caf50;
    padding: 30px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 300;
}

/* Misión y Visión Section */
.mision-vision-section {
    padding: 80px 0;
    background-color: #2d5a3d;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.mv-item {
    color: white;
}

.mv-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.mv-text {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Servicios Section */
.servicios-section {
    padding: 80px 0;
    background-color: white;
}

.servicios-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.servicios-image {
    max-width: 100%;
    height: auto;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.servicio-item {
    text-align: center;
    padding: 20px;
}

.servicio-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
}

/* Compromisos Section */
.compromisos-section {
    padding: 80px 0;
    background-color: #2d5a3d;
}

.compromisos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.compromisos-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.compromisos-content {
    color: white;
}

.section-title-white {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.compromiso-item {
    margin-bottom: 25px;
}

.compromiso-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.compromiso-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Contacto Section */
.contacto-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contacto-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

.contacto-item {
    margin-bottom: 30px;
}

.contacto-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.contacto-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.contacto-image {
    position: relative;
}

.contacto-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.contacto-cta {
    margin-top: 30px;
}

.btn-contacto {
    background-color: #4caf50;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-contacto:hover {
    background-color: #45a049;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .historia-grid,
    .mv-grid,
    .compromisos-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .section-title,
    .section-title-center,
    .section-title-white,
    .contacto-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .logo {
        max-width: 200px;
    }
}
