:root {
    --verde-brillante: #8cc63f;
    --verde-oscuro: #2b5314;
    --fondo-oscuro: #11180f;
    --blanco: #ffffff;
    --gris-claro: #f9f9f9;
    --texto-oscuro: #333333;
    --texto-claro: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--blanco);
    color: var(--texto-oscuro);
}

.site-header {
    background-color: var(--fondo-oscuro);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 60px;
    display: block;
}

.navigation ul {
    display: flex;
    list-style: none;
}

.navigation ul li {
    margin-left: 20px;
}

.navigation ul li a {
    color: var(--texto-claro);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.navigation ul li a:hover {
    color: var(--verde-brillante);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/motosierra.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--texto-claro);
}

.hero-subtitle {
    background-color: var(--verde-brillante);
    display: inline-block;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background-color: transparent;
    color: var(--texto-claro);
    border: 2px solid var(--texto-claro);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--verde-brillante);
    border-color: var(--verde-brillante);
}

.banner-verde {
    background-color: var(--verde-brillante);
    color: var(--texto-claro);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-weight: 600;
}

.btn-dark {
    background-color: var(--fondo-oscuro);
    color: var(--texto-claro);
    padding: 8px 20px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.btn-dark:hover {
    opacity: 0.9;
}

.servicios-section {
    padding: 60px 0;
    background-color: var(--blanco);
}

.bloque-servicio {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    gap: 50px;
}

.servicio-texto2 {
    flex: 0 0 30%;
}

.servicio-texto2 h2 {
    color: var(--verde-oscuro);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.servicio-texto2 p {
    line-height: 1.5;
    color: var(--texto-oscuro);
}

.servicio-texto2 {
    flex: 0 0 30%;
}

.servicio-texto h2 {
    color: var(--verde-oscuro);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.servicio-texto p {
    line-height: 1.7;
    color: var(--texto-oscuro);
}

.servicio-foto {
    flex: 0 0 70%;
    height: 400px;
    overflow: hidden;
}

.servicio-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.diagonal-izquierda img {
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.diagonal-derecha img {
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
}

.emergencia-banner {
    background-color: var(--verde-brillante);
    color: var(--texto-claro);
    text-align: center;
    padding: 40px 20px;
}

.emergencia-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.emergencia-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.telefono-link {
    color: var(--texto-claro);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

.btn-contacto-emergencia {
    background-color: var(--fondo-oscuro);
    color: var(--texto-claro);
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
}

.nosotros-faq-section {
    padding: 60px 0;
    background-color: var(--blanco);
}

.nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nosotros-presentacion {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.nosotros-texto-bloque {
    flex: 0 0 50%;
}

.nosotros-sub {
    color: var(--verde-brillante);
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.text-center {
    text-align: center;
}

.nosotros-texto-bloque h2 {
    color: var(--verde-oscuro);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.nosotros-texto-bloque p {
    line-height: 1.7;
    color: var(--texto-oscuro);
    margin-bottom: 15px;
}

.pilares-empresa {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.pilar {
    flex: 1;
}

.pilar span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.pilar h4 {
    color: var(--fondo-oscuro);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.pilar p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.nosotros-imagen-bloque {
    flex: 0 0 50%;
    height: 480px;
    overflow: hidden;
    background-color: transparent;
}

.nosotros-imagen-bloque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.divisor-seccion {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 60px 0;
}

.faq-bloque h2 {
    color: var(--verde-oscuro);
    font-size: 2.3rem;
    margin-bottom: 40px;
    font-weight: 800;
}

.faq-lista {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--gris-claro);
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-input {
    display: none;
}

.faq-titulo {
    display: block;
    padding: 20px;
    color: var(--fondo-oscuro);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.3s;
}

.faq-titulo:hover {
    background-color: #f1f5ef;
}

.faq-titulo::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--verde-brillante);
    font-weight: bold;
    transition: transform 0.3s;
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafdf8;
}

.faq-respuesta p {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-input:checked ~ .faq-titulo::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--verde-oscuro);
}

.faq-input:checked ~ .faq-respuesta {
    max-height: 200px;
}

.site-footer {
    background-color: var(--fondo-oscuro);
    color: var(--texto-claro);
    padding: 40px 20px 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.footer-col h3 {
    color: var(--verde-brillante);
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--texto-claro);
    text-decoration: none;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.contenedor-mapa-min {
    width: 100%;
    border: 2px solid var(--verde-oscuro);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contenedor-mapa-min iframe {
    display: block;
    filter: grayscale(0.3) contrast(1.1);
    transition: filter 0.3s;
}

.contenedor-mapa-min iframe:hover {
    filter: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.whatsapp_logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp_logo img {
    width: 35px;
    height: 35px;
}

@media (max-width: 768px) {
    .header-container, 
    .footer-container, 
    .banner-verde, 
    .emergencia-contacto, 
    .pilares-empresa {
        flex-direction: column;
        text-align: center;
    }

    .pilares-empresa {
        gap: 20px;
    }

    .navigation ul {
        margin-top: 15px;
    }

    .navigation ul li {
        margin: 0 10px;
    }

    .hero-title, 
    .nosotros-texto-bloque h2, 
    .faq-bloque h2 {
        font-size: 1.8rem;
    }

    .bloque-servicio {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .bloque-servicio.invertido {
        flex-direction:column;
    }

    .servicio-texto {
        order: 1;
        flex: auto;
        width: 100%;
        padding: 0 15px;
        text-align: center;
    }

    .servicio-texto2 {
        order: 0;
        flex: auto;
        width: 100%;
        padding: 0 15px;
        text-align: center;
    }

    .servicio-foto {
        order: 1;
        flex: 0 0 210px;
        width: 220px;
        height: 220px;
        margin: 0 auto 20px auto;
        border-radius: 50%;
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

        .servicio-foto2 {
        order: 1;
        flex: 0 0 210px;
        width: 200px;
        height: 220px;
        margin: 0 auto 20px auto;
        border-radius: 50%;
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        object-position: 60% center; /* mueve hacia la derecha */
    }

    .nosotros-presentacion {
        flex-direction: column;
        gap: 30px;
    }

    .nosotros-texto-bloque {
        order: 1;
        width: 100%;
        flex: auto;
    }

    .nosotros-imagen-bloque {
        order: 2;
        flex: 0 0 250px;
        width: 250px;
        height: 250px;
        margin: 30px auto 0 auto;
        border-radius: 50%;
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

    .diagonal-izquierda img {
        clip-path: none;
        object-position: center;
    }

    .diagonal-derecha img {
        clip-path: none;
        object-fit: cover;
        object-position: 20% center;
    }
}