/* Variables globales */
:root {
    --primary-color: #2e7d32; /* Verde corporativo */
    --secondary-color: #1565c0; /* Azul corporativo */
    --accent-color: #f57c00; /* Naranja para acentos */
    --dark-color: #263238;
    --light-color: #f5f5f5;
    --gray-color: #eeeeee;
    --text-color: #333333;
    --text-light: #757575;
    --white: #ffffff;
    --black: #000000;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-radius: 4px;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Fuentes */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Utilidades */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-content {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #225d26; /* Versión más oscura del color primario */
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #0d47a1; /* Versión más oscura del color secundario */
    color: var(--white);
}

.gray-bg {
    background-color: var(--gray-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    padding: 10px 0;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-color);
}

#menu-toggle, #close-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Hero section */
.hero {
    height: 90vh;
    min-height: 700px;
    background-image: url('assets/img/empresa/Portada.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Highlights section */
.highlights {
    padding: 80px 0;
    background-color: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.highlight-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.highlight-card .icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.highlight-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    margin-top: 25px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text ul {
    margin-top: 10px;
    margin-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    overflow: hidden;
}

.member-photo img {
    transition: var(--transition);
    width: 100%;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.team-member h3,
.team-member p {
    padding: 0 20px;
}

.team-member h3 {
    margin-top: 20px;
    color: var(--dark-color);
}

.team-member .position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-member .bio {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Products section */
.product-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.product-info p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Sustainability section */
.sustainability-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.sustainability-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.pillar {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.pillar .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.pillar .icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.pillar h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.sustainability-reports {
    margin-top: 40px;
}

.report-links {
    margin-top: 15px;
}

.report-link {
    display: block;
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.report-link:hover {
    background-color: rgba(46, 125, 50, 0.05);
}

.report-link i {
    margin-right: 10px;
    color: var(--primary-color);
}

.sustainability-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Testimonials */
.testimonials {
    margin-top: 60px;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    position: relative;
    margin: 10px 0;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
}

.testimonial-content p::before {
    left: 0;
    top: -5px;
}

.testimonial-content p::after {
    right: 0;
    bottom: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn,
.next-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 15px;
    transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
    color: var(--primary-color);
}

.slider-dots {
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-light);
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* News section */
.news-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.news-filter-btn:hover {
    color: var(--primary-color);
}

.news-filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 20px;
    transform: translateY(50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--border-radius);
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-content {
    padding: 25px;
    padding-top: 35px;
}

.news-tag {
    display: inline-block;
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.news-content h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.news-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.read-more {
    font-weight: 500;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

.see-all-news {
    text-align: center;
    margin-top: 50px;
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-info {
    display: grid;
    gap: 20px;
}

.contact-card {
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.contact-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.contact-card .icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-card .info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.social-media {
    margin-top: 20px;
}

.social-media h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.contact-form h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin-bottom: 0;
}

.map-container {
    margin-top: 60px;
}

.map-container h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

#map {
    height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
}

.footer-info {
    margin-right: 30px;
}

.footer-logo {
    margin-bottom: 20px;
    height: 50px;
}

.footer-info p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-links h3 {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-newsletter h3 {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #225d26; /* Versión más oscura del color primario */
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #225d26; /* Versión más oscura del color primario */
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .highlights-grid,
    .product-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .sustainability-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1001;
        padding: 60px 20px;
    }
    
    #main-nav.active {
        right: 0;
    }
    
    #main-nav ul {
        flex-direction: column;
    }
    
    #main-nav ul li {
        margin: 0 0 20px 0;
    }
    
    #menu-toggle, #close-menu {
        display: block;
    }
    
    #close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .sustainability-pillars {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .highlights-grid,
    .product-grid,
    .news-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

