/* Variables de colores - Paleta verde */
:root {
    --verde-oscuro: #2d5016;
    --verde-bosque: #4a7c59;
    --verde-natural: #6b9f7f;
    --verde-claro: #8fbc8f;
    --verde-muy-claro: #e8f5e8;
    --blanco: #ffffff;
    --gris-oscuro: #333333;
    --gris-medio: #666666;
    --gris-claro: #f5f5f5;
    --sombra: rgba(45, 80, 22, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gris-oscuro);
    background-color: var(--blanco);
}

html {
    scroll-behavior: smooth;
}

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

/* Header y navegación */
.header {
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-bosque) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--sombra);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    color: var(--blanco);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--verde-claro);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde-claro);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--blanco);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    margin-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/rocas-suesca-aerea.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    filter: brightness(0.8) contrast(1.2) saturate(1.1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(45, 80, 22, 0.7) 0%, 
        rgba(45, 80, 22, 0.5) 50%, 
        rgba(45, 80, 22, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--verde-natural);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(107, 159, 127, 0.3);
}

.btn-primary:hover {
    background-color: var(--verde-bosque);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 159, 127, 0.4);
}

/* Secciones generales */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--verde-oscuro);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--verde-natural);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--verde-muy-claro);
}

/* Sección Nosotros */
.nosotros-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.nosotros-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.nosotros-text p {
    margin-bottom: 1.5rem;
}

.nosotros-text strong {
    color: var(--verde-bosque);
}

.nosotros-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
}

.nosotros-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sección Valores */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.valor-card {
    background: var(--blanco);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--sombra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.15);
}

.valor-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--verde-natural), var(--verde-bosque));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--blanco);
    font-size: 2rem;
}

.valor-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin-bottom: 1rem;
}

.valor-card p {
    color: var(--gris-medio);
    line-height: 1.6;
}

/* Sección Servicios */
.servicio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.servicio:nth-child(even) {
    direction: rtl;
}

.servicio:nth-child(even) > * {
    direction: ltr;
}

.servicio-info h3 {
    font-size: 2rem;
    color: var(--verde-oscuro);
    margin-bottom: 1rem;
}

.servicio-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gris-medio);
}

/* Carrusel */
.carrusel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--sombra);
}

.carrusel-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carrusel-imagen.activa {
    opacity: 1;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--verde-oscuro);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carrusel-btn:hover {
    background: var(--blanco);
    transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.anterior {
    left: 15px;
}

.carrusel-btn.siguiente {
    right: 15px;
}

/* Sección Contacto */
.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--blanco);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--sombra);
    transition: transform 0.3s ease;
}

.contacto-item:hover {
    transform: translateY(-3px);
}

.contacto-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--verde-natural), var(--verde-bosque));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contacto-texto h3 {
    color: var(--verde-oscuro);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contacto-link {
    color: var(--gris-medio);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contacto-link:hover {
    color: var(--verde-bosque);
}

.contacto-mapa {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-bosque) 100%);
    color: var(--blanco);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-contacto h3 {
    color: var(--verde-claro);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--blanco);
    opacity: 0.9;
}

.footer-contacto-item i {
    color: var(--verde-claro);
    width: 20px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-contacto-item a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacto-item a:hover {
    color: var(--verde-claro);
}

.footer-contacto-item span {
    line-height: 1.4;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--verde-oscuro);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px var(--sombra);
    }
    
    .nav-menu.activo {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero::before {
        background-position: center top;
        background-size: cover;
        opacity: 0.5;
    }
    
    .hero::after {
        background: linear-gradient(to bottom, 
            rgba(45, 80, 22, 0.8) 0%, 
            rgba(45, 80, 22, 0.6) 50%, 
            rgba(45, 80, 22, 0.8) 100%);
    }
    
    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .servicio {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .servicio:nth-child(even) {
        direction: ltr;
    }
    
    .contacto-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-contacto-item {
        justify-content: center;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .valor-card {
        padding: 2rem 1.5rem;
    }
    
    .carrusel-container {
        height: 250px;
    }
}