/* Estilos comunes para todas las páginas */

/* Asegurar que el body tenga margen 0 y padding 0 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

/* Header Wrapper */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
}

/* Marquee Container */
.marquee-container {
    background: #0a4b2a;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1001;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.marquee-logo {
    height: 30px;
    width: auto;
    margin: 0 15px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main Header */
.main-header {
    padding: 0;
    background: #ffffff;
    position: relative;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.main-header .container {
    background: #ffffff;
    width: 100%;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    border-bottom: 1px solid #eeeeee;
}

/* Logo */
.logo {
    margin-bottom: 10px;
}

/* Navigation */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 15px 0 10px;
    background: #ffffff;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0d7a3d;  /* Enhanced contrast color */
    background-color: rgba(13, 122, 61, 0.1);  /* Enhanced contrast background */
}

.highlight {
    background: #0d7a3d;  /* Enhanced contrast color */
    color: white !important;
    padding: 8px 15px !important;
    margin-left: 5px;
}

.highlight:hover {
    background: #0d7a3d;
    color: white !important;
}

/* Header Spacer */
.header-spacer {
    height: 100px; /* Ajustado para el header + marquee + navegación */
}

/* Asegurar que el contenido principal no quede oculto */
main, .site-container {
    padding-top: 140px; /* Ajustar según la altura del header */
}

/* Ajustes para el hero section */
.hero-section, .hero, .contact-hero {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

/* Asegurar que las secciones tengan un espaciado consistente */
.section {
    padding: 80px 0;
    position: relative;
}

/* Asegurar que los contenedores tengan un ancho máximo y estén centrados */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .header-spacer {
        height: 120px; /* Ajustar para móviles */
    }
    
    main, .site-container {
        padding-top: 120px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 5px 8px;
    }
}
