/* styles.css */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Georgia', serif; /* Cambiado a una fuente más elegante */
    line-height: 1.6;
    color: #333; /* Color de texto ajustado para mejor contraste */
    background-color: #f4f4f4; /* Fondo ligeramente más claro */
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #1a4d3a; /* Cambiado a verde para mejor diseño y contraste */
    color: white; /* Texto blanco para contraste */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #8b5a2b; /* Color dorado ajustado */
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white; /* Blanco para contraste en header verde */
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif; /* Fuente sans-serif para el logo */
}
.logo img {
    height: 70px; /* Manteniendo el tamaño aumentado */
    width: auto;
    border-radius: 8px; /* Bordes redondeados para suavidad */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Sombra para profundidad y mejor calidad visual */
    transition: transform 0.3s ease; /* Transición suave para interacciones */
}
.logo img:hover {
    transform: scale(1.05); /* Efecto de zoom sutil al pasar el mouse */
}
.lang-toggle {
    margin-left: 1rem;
    background: white; /* Blanco para contraste en header verde */
    color: #1a4d3a; /* Verde para texto */
    border: 0;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Arial', sans-serif;
    transition: background 0.3s ease; /* Transición suave */
}
.lang-toggle:hover {
    background: #e8f5e8; /* Fondo claro al hover */
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}
.hamburger {
    background: transparent;
    border: 0;
    padding: 0;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: white; /* Blanco para contraste */
    transition: 0.3s;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    color: white; /* Blanco para contraste */
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
}
.nav-links a:hover {
    color: #8b5a2b; /* Color dorado ajustado */
}
.nav-menu {
    display: flex;
}
/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #1a4d3a; /* Verde para menú móvil */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links a {
        padding: 1rem;
        font-size: 1.2rem;
    }
}

/* Accesibilidad utilidades */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: #1a4d3a; /* Color más oscuro */
    color: #fff;
    border-radius: 6px;
    z-index: 1100;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero Section */
.hero {
    background: no-repeat center/cover; /* Imagen cargada por lazy loading */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
    animation: fadeIn 2s ease-in-out; /* Efecto de fade-in para la imagen */
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
    z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Arial', sans-serif; /* Fuente sans-serif para el título */
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.cta-button {
    background: #8b5a2b; /* Color dorado ajustado */
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Arial', sans-serif;
}
.cta-button:hover {
    background: #5a3d1b; /* Color más oscuro al hover */
}

/* Secciones generales */
section {
    padding: 5rem 0;
}
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a4d3a; /* Color más oscuro */
    position: relative;
    font-family: 'Arial', sans-serif;
}
h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #8b5a2b; /* Color dorado ajustado */
    margin: 1rem auto;
    border-radius: 2px;
}

/* About Us */
.about {
    background: #f9f9f9; /* Fondo gris claro para alternancia */
    text-align: center;
}
.about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Lots for Sale */
.lots {
    background: linear-gradient(to bottom, #e8f5e8, #d4edda); /* Gradiente verde claro para mejorar diseño */
}
.lots-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    table-layout: fixed; /* Para ancho fijo y evitar scroll */
}
.lots-table th,
.lots-table td {
    padding: 0.75rem; /* Reducido para ajustar */
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word; /* Romper palabras largas */
    font-size: 0.9rem; /* Tamaño de fuente reducido */
}
.lots-table th {
    background: #4a7c59;
    color: white;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem; /* Reducido para th */
}
.lots-table th:nth-child(1) { width: 8%; } /* Lote # */
.lots-table th:nth-child(2) { width: 10%; } /* Categoría */
.lots-table th:nth-child(3) { width: 8%; } /* Origen */
.lots-table th:nth-child(4) { width: 10%; } /* Puntuación */
.lots-table th:nth-child(5) { width: 25%; } /* Descripción */
.lots-table th:nth-child(6) { width: 10%; } /* Certificaciones */
.lots-table th:nth-child(7) { width: 8%; } /* Unidades */
.lots-table th:nth-child(8) { width: 8%; } /* Tamaño */
.lots-table th:nth-child(9) { width: 10%; } /* Embalaje */
.lots-table th:nth-child(10) { width: 8%; } /* ETA */
.lots-table th:nth-child(11) { width: 8%; } /* Destino */
.lots-table tr:hover {
    background: #f0f8f0;
}
.lots-table .category { font-weight: bold; color: #1a4d3a; }
.section-lead { text-align: center; font-size: 1.1rem; margin-bottom: 2rem; }
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrapper::-webkit-scrollbar { height: 10px; }
.table-wrapper::-webkit-scrollbar-thumb { background: #cbd5c0; border-radius: 8px; }
@media (max-width: 768px) {
    .lots-table {
        font-size: 0.8rem; /* Aún más pequeño en móvil */
        table-layout: auto; /* Permitir ajuste en móvil si es necesario */
    }
    .lots-table th,
    .lots-table td {
        padding: 0.5rem;
    }
}

/* Traceability */
.traceability {
    background: #f9f9f9; /* Fondo gris claro alterno */
}
.traceability-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.step-number {
    background: #8b5a2b; /* Color dorado ajustado */
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.step-content h4 {
    color: #1a4d3a; /* Color más oscuro */
    margin-bottom: 0.5rem;
}

/* Sustainability */
.sustainability {
    background: linear-gradient(to bottom, #d4edda, #c8e6c9); /* Gradiente verde suave */
    text-align: center; /* Alineado al centro */
}
.sustainability ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    text-align: center; /* Alineado al centro */
}
.sustainability li {
    display: flex; /* Usar flex para centrar el bloque */
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-left: 0; /* Quitar padding para evitar superposición */
    text-align: left; /* Texto alineado a la izquierda dentro del flex */
}
.sustainability li::before {
    content: '✓';
    color: #4a7c59; /* Verde para check */
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.5rem; /* Espacio entre viñeta y texto */
}

/* Contact */
.contact {
    background: #f9f9f9; /* Fondo gris claro */
}
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.contact-item h4 {
    color: #1a4d3a; /* Color más oscuro */
    margin-bottom: 1rem;
}
.contact-thanks { text-align: center; margin-top: 2rem; font-style: italic; }
.contact-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    padding: 1.5rem;
    transition: transform 0.3s ease; /* Transición suave */
}
.contact-item:hover {
    transform: translateY(-5px); /* Efecto de elevación al hover */
}

/* Footer */
footer {
    background: #1a4d3a; /* Verde consistente */
    color: white;
    text-align: left; /* Alineación general a la izquierda */
    padding: 2rem 0;
    font-family: 'Arial', sans-serif;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.footer-left {
    flex: 1;
    text-align: left;
}
.footer-right {
    flex: 1;
    text-align: right;
}
.footer-right ul {
    list-style: none;
    padding: 0;
}
.footer-right li {
    margin-bottom: 0.5rem;
}
.footer-right a {
    color: white;
    text-decoration: none;
}
.footer-right a:hover {
    color: #8b5a2b;
}
.footer-separator {
    border: 0;
    border-top: 1px solid #fff;
    margin: 1rem 0;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-bottom-left {
    flex: 1;
    text-align: left;
}
.footer-bottom-right {
    flex: 1;
    text-align: right;
}
.footer-bottom-right a {
    color: white;
    text-decoration: none;
}
.footer-bottom-right a:hover {
    color: #8b5a2b;
}
/* Responsive para footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-left, .footer-right {
        flex: none;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-left, .footer-bottom-right {
        flex: none;
        text-align: center;
    }
}

/* Responsive */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}