/*Estilos principales*/

/* Variables de colores basadas en la marca ECO SMART */
:root {
    --verde-principal: #7CB342;
    --verde-oscuro: #558B2F;
    --amarillo-eco: #FFC107;
    --naranja-acento: #FF9800;
    --gris-claro: #F5F5F5;
    --gris-medio: #9E9E9E;
    --gris-oscuro: #424242;
    --negro: #000000;
    --blanco: #FFFFFF;
}

/* Reset y configuración global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--negro);
    background-color: var(--gris-claro);
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

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

.texto-verde {
    color: var(--verde-principal);
}

.texto-amarillo {
    color: var(--amarillo-eco);
}

.texto-naranja {
    color: var(--naranja-acento);
}

/* Animaciones globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

/* Animaciones de entrada para tarjetas */
.servicio-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.servicio-card.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Botones generales */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--verde-principal), var(--verde-oscuro));
    color: var(--blanco);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--amarillo-eco), var(--naranja-acento));
    color: var(--negro);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Secciones */
.seccion {
    padding: 80px 0;
}

.seccion h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--verde-principal);
    text-align: center;
}

.seccion p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--gris-oscuro);
}

/* Cards */
.card {
    background: var(--blanco);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

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

/* Menú horizontal para desktop */
.menu-desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--negro);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

/* --- MODIFICACIÓN PARA MENÚ ESTILO AMD --- */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* Alinear todo a la izquierda */
    align-items: center;
    padding: 10px 30px;
}

.logo-nav {
    display: flex;
    align-items: center;
    margin-right: 28px; /* Pequeño espacio adicional entre logo y menú */
}

.logo-imagen {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    margin: 0;
}

.menu-horizontal {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 18px; /* Menor espacio entre opciones */
    align-items: center;
    flex: 0 1 auto;
}

/* --- AJUSTE DE LETRA Y EFECTO SUBRAYADO ANIMADO EN MENÚ --- */
.menu-horizontal a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.menu-horizontal a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background-color: var(--amarillo-eco);
    width: 0;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
    transform: none;
}

.menu-horizontal a:hover::after,
.menu-horizontal a.activo::after {
    width: 100%;
}

.menu-horizontal a:hover,
.menu-horizontal a.activo {
    color: var(--amarillo-eco);
    background-color: rgba(255, 255, 255, 0.1);
}
/* --- FIN AJUSTE LETRA Y EFECTO SUBRAYADO --- */

.btn-postulate-desktop {
    background: linear-gradient(45deg, var(--amarillo-eco), var(--naranja-acento));
    color: var(--negro);
    border: none;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    margin-left: auto; /* Empuja el botón a la derecha */
}

.btn-postulate-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    background: linear-gradient(45deg, var(--naranja-acento), var(--amarillo-eco));
}

/* Barra de navegación móvil */
.menu-movil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--negro);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.nav-movil-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-movil {
    display: flex;
    align-items: center;
}

.logo-imagen-movil {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Botón hamburguesa */
.menu-toggle {
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.menu-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: var(--amarillo-eco);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background-color: var(--naranja-acento);
}

/* Animación del botón cuando el menú está abierto */
.menu-toggle.activo span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.menu-toggle.activo span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.activo span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menú lateral */
.menu-lateral {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: var(--negro);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.menu-lateral.abierto {
    left: 0;
}

.menu-contenido {
    padding: 60px 30px 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Logo en el menú lateral */
.logo-menu {
    margin-bottom: 40px;
    text-align: center;
}

.logo-imagen-lateral {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Lista del menú */
.menu-lista {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 7px;
}

.menu-lista li {
    margin-bottom: 10px;
}

.menu-lista a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 20px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-lista a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-lista a:hover::before {
    left: 100%;
}

.menu-lista a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    color: var(--amarillo-eco);
}

/* Estilos para el enlace activo en menú móvil */
.menu-lista a.activo {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--amarillo-eco);
    transform: translateX(10px);
}

/* Botón Postúlate */
.btn-postulate {
    background: linear-gradient(45deg, var(--amarillo-eco), var(--naranja-acento));
    color: var(--negro);
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    margin-top: auto;
}

.btn-postulate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    background: linear-gradient(45deg, var(--naranja-acento), var(--amarillo-eco));
}

.btn-postulate:active {
    transform: translateY(0);
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* Responsive - Unificado */
@media (max-width: 768px) {
    /* Estilos generales para móvil */
    .seccion {
        padding: 60px 0;
    }
    
    .seccion h2 {
        font-size: 28px;
    }
    
    .seccion p {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Menú específico para móvil */
    .menu-desktop {
        display: none;
    }
    
    .menu-movil {
        display: block;
    }
    
    .menu-lateral {
        width: 280px;
        left: -280px;
        height: 100%;
    }
    
    .menu-contenido {
        padding: 60px 20px 15px;
        height: calc(100% - 20px);
    }
    
    .menu-lista {
        margin-bottom: 15px;
        flex-grow: 0;
    }
    
    .menu-lista li {
        margin-bottom: 8px;
    }
    
    .menu-lista a {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .btn-postulate {
        padding: 12px 20px;
        font-size: 16px;
        margin-bottom: 20px;
        position: relative;
        z-index: 2;
    }
    
    /* Logo más pequeño en móviles para dar más espacio */
    .logo-imagen-lateral {
        height: 80px;
        max-width: 200px;
    }
    
    .logo-menu {
        margin-bottom: 30px;
    }
}

@media (min-width: 769px) {
    /* Ocultar menú lateral en desktop */
    .menu-lateral,
    .menu-overlay {
        display: none !important;
    }
}

/* Estilos mejorados para pantallas grandes */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 1600px;
        padding: 12px 40px;
    }
    
    .logo-imagen {
        height: 60px;
        max-width: 320px;
    }
    
    .menu-horizontal {
        gap: 22px;
    }
    
    .menu-horizontal a {
        font-size: 18px;
        padding: 12px 12px;
    }
    
    .btn-postulate-desktop {
        padding: 16px 35px;
        font-size: 16px;
        margin-left: auto;
    }
}
/* --- FIN MODIFICACIÓN MENÚ ESTILO AMD --- */

/* --- LOGO MÁS A LA IZQUIERDA --- */
.logo-nav {
    margin-left: 0;
}
.menu-desktop .nav-container {
    padding-left: 10px;
}
/* --- FIN LOGO MÁS A LA IZQUIERDA --- */

/* --- BOTÓN WHATSAPP SOLO ÍCONO VERDE SIN FONDO --- */
.btn-whatsapp-desktop {
    display: flex;
    align-items: center;
    background: transparent;
    color: #25D366;
    border: none;
    padding: 0;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    margin-left: auto;
}
.btn-whatsapp-desktop i {
    font-size: 24px;
    color: #25D366;
}
.btn-whatsapp-desktop:hover {
    background: transparent;
    color: #25D366;
}
.btn-whatsapp-desktop:active {
    background: transparent;
    color: #25D366;
}
.btn-whatsapp-desktop:hover i, .btn-whatsapp-desktop:active i {
    color: #25D366;
}

.btn-whatsapp-movil {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #25D366;
    border: none;
    padding: 0;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    margin-top: auto;
    margin-bottom: 20px;
    width: auto;
}
.btn-whatsapp-movil i {
    font-size: 24px;
    color: #25D366;
}
.btn-whatsapp-movil:hover {
    background: transparent;
    color: #25D366;
}
.btn-whatsapp-movil:active {
    background: transparent;
    color: #25D366;
}
.btn-whatsapp-movil:hover i, .btn-whatsapp-movil:active i {
    color: #25D366;
}
/* --- FIN BOTÓN WHATSAPP AMARILLO --- */

/* --- MENÚ FONDO NEGRO PURO --- */
.menu-desktop {
    background: var(--negro) !important;
}
.menu-movil {
    background: var(--negro) !important;
}
.menu-lateral {
    background: var(--negro) !important;
}
/* --- FIN MENÚ FONDO NEGRO --- */
