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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Variables de colores */
:root {
    --primary-green: #2d5a27;
    --light-green: #4a7c59;
    --accent-green: #6ba368;
    --pale-green: #e8f5e8;
    --dark-green: #1e3d1a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(45, 90, 39, 0.3);
}

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

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

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 90, 39, 0.8), rgba(74, 124, 89, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><pattern id="car-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23car-pattern)"/></svg>');
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 163, 104, 0.3);
}

.cta-button:hover {
    background-color: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 163, 104, 0.4);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: var(--white);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-category {
    background: linear-gradient(135deg, var(--pale-green), var(--white));
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-green);
    transition: transform 0.3s ease;
}

.product-category:hover {
    transform: translateX(5px);
}

.product-category h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-category p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--pale-green), var(--light-gray));
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    font-weight: 700;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.map-container {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-link {
    text-decoration: none;
    display: block;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--pale-green), var(--white));
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    border: 2px solid var(--accent-green);
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 163, 104, 0.3);
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-placeholder h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-placeholder p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.map-button {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.map-placeholder:hover .map-button {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
}

.form-section {
    display: flex;
    flex-direction: column;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-item h3 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.contact-form button {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    padding: 0.5rem;
    background-color: var(--primary-green);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-green);
    color: var(--gray);
}

/* Animaciones y Efectos JavaScript */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(45, 90, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(45, 90, 39, 0.4);
}

.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(45, 90, 39, 0.25);
}

.product-category {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-category:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(107, 163, 104, 0.2);
}

.cta-button {
    transition: all 0.3s ease;
}

.map-container {
    transition: all 0.3s ease;
}

.hero-content {
    transition: transform 0.1s ease-out;
}

/* Animaciones de entrada escalonada */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }


/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast-info {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
}

.toast-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.toast-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Mejoras de hover adicionales */

.logo-img {
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(2deg);
}

/* Efectos de pulsación */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.service-card:active,
.product-category:active {
    animation: pulse 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container {
        margin-top: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .services h2,
    .products h2,
    .contact h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .services,
    .products,
    .contact {
        padding: 3rem 0;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}