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

:root {
    --primary-green: #a46c19;
    --secondary-green: #817d0e;
    --light-green: #dbeafe;
    --dark-green: #032c06;
    --primary-gray: #445370;
    --light-gray: #f3f4f6;
    --dark-gray: #374151;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--white);
    /* background-image: linear-gradient(135deg, rgba(31, 143, 19, 0.3), rgba(198, 221, 251, 0.3)), url('../images/Hero-background.jpg'); */
    background-color: var(--primary-gray);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

/* Header */
.header {
    background    .producto-icon img {
        width: 30px;
        height: 30px;
    }

    /* Responsive Marquee */
    .marquee-logo {
        height: 50px;
        margin: 0 1.5rem;
        width: calc(50% - 3rem); /* 2 logos visible */
    }
    
    .marquee-container h3 {
        font-size: 1.3rem;
    }
}

/* Responsive Marquee - Desktop */
@media (min-width: 1024px) {
    .marquee-logo {
        height: 60px;
        margin: 0 2rem;
        width: calc(16.66% - 4rem); /* 6 logos visible */
    }
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    height: 8%;
    top: -100px;
    z-index: 1000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: top 0.3s ease;
}

.header.show {
    top: 0;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

.logo img {
    display: flex;
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section con imagen de fondo */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    width: 100%;
    margin: 0;
    max-width: none;
    text-align: center;
    background: none; /* Eliminamos background-image directo */
}

/* Añade esta nueva capa pseudo-elemento con blur */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(52, 52, 51, 0.823), rgba(219, 234, 254, 0.3)),
                      url('../images/bckgrnd2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(5px); /* Ajusta el nivel de blur */
    transform: scale(1.05); /* evita bordes duros por el blur */
    z-index: 0;
}

/* Todo el contenido del hero queda por encima */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 3rem;
}

.hero-logo img {
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: fadeInLogo 2s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    height: 60px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInLogo 2s ease-in-out;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-green);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInLogo 2s ease-in-out;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-green);
}

.hero-image {
    display: none;
}

/* Empresa Section */
.empresa {
    padding: 80px 0;
    background-color: var(--white);
}

.empresa h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.empresa-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.empresa-text h3 {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.empresa-text p {
    margin-bottom: 1.5rem;
    color: var(--primary-gray);
    font-size: 1.1rem;
}

.valores {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

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

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

.valor span {
    font-weight: 500;
    color: var(--dark-gray);
}

.empresa-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--primary-gray);
    font-weight: 500;
}

/* Productos Section */
.productos {
    padding: 80px 0;
    background-color: #313127b6;
}

.productos h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    background: var(--primary-green);
    padding: 1.5rem;
    border-radius: 20px;
}

.productos-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: var(--primary-green);
    padding: 1rem;
    border-radius: 20px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.producto-card {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-gray));
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* box-shadow: 0 8px 25px var(--secondary-green); */
    transition: all 0.3s ease;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.producto-card:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 20px 40px var(--secondary-green);
    background: linear-gradient(135deg, var(--secondary-green), var(--dark-gray));
}

.producto-logo {
    display: block; /* Show the brand name section */
    background: none;
    color: var(--white);
    padding: 0;
    text-align: center;
    position: relative;
    margin-bottom: 1rem;
}

.producto-logo h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.producto-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.producto-card:hover .producto-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--secondary-green);
}

.producto-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.producto-icon i {
    font-size: 1.5rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-icon i,
.producto-card:hover .producto-icon img {
    transform: scale(1.1);
}

.producto-info {
    display: none; /* Hide product info section since brand name is in producto-logo */
}

.productos-footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Logos Carousel/Marquee */
.marquee-container {
    margin: 4rem 0;
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marquee-container h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 600;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    position: relative;
    mask: linear-gradient(
        90deg,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
    -webkit-mask: linear-gradient(
        90deg,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-logo {
    display: inline-block;
    height: 60px;
    width: auto;
    margin: 0 2rem;
    object-fit: contain;
    filter: brightness(0) invert(1) grayscale(1) opacity(0.8);
    transition: all 0.3s ease;
    vertical-align: middle;
}

.marquee-logo:hover {
    filter: brightness(1) invert(0) grayscale(0) opacity(1);
    transform: scale(1.1);
}

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

.productos-footer p {
    font-size: 1.1rem;
    color: var(--primary-gray);
    margin: 0;
}

.productos-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.productos-link:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

/* Contacto Section */
.contacto {
    padding: 80px 0;
    background-color: var(--white);
}

.contacto h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contacto-info h3 {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contacto-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-top: 0.25rem;
}

.contacto-item h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.contacto-item p {
    color: var(--primary-gray);
}

.contacto-form h3 {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    margin-left: 25px;
}

.footer-logo {
    height: 200px;
    width: auto;
    max-width: 500px;
    /* margin-bottom: 1rem; */
    object-fit: contain;
    margin-left: 340px;
}

.footer-section p {
    color: var(--light-gray);
    margin-bottom: 1rem;
    margin-left: 25px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

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

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

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

.footer-section ul li a:hover {
    color: var(--white);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        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;
    }

    .hero {
        padding: 100px 20px 50px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        max-width: 90%;
    }

    .empresa-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .empresa-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .producto-card {
        width: 180px;
        height: 180px;
        padding: 1.2rem;
    }

    .producto-logo h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .producto-icon {
        width: 45px;
        height: 45px;
    }

    .producto-icon i {
        font-size: 1.3rem;
    }

    .producto-icon img {
        width: 30px;
        height: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Ajustar hero en móvil */
    .hero {
        background-attachment: scroll;
    }

    /* Responsive Marquee - Tablet */
    .marquee-logo {
        height: 55px;
        margin: 0 1.75rem;
        width: calc(25% - 3.5rem); /* 4 logos visible */
    }
}

@media (max-width: 480px) {
    .hero-content {
        max-width: 95%;
        padding: 0 10px;
    }

    .hero-logo img {
        max-width: 280px;
    }

    .hero-logo {
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .empresa-stats {
        flex-direction: column;
    }

    .stat {
        padding: 1.5rem;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .producto-card {
        width: 160px;
        height: 160px;
        padding: 1rem;
    }

    .producto-logo h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .producto-icon {
        width: 40px;
        height: 40px;
    }

    .producto-icon i {
        font-size: 1.2rem;
    }

    .producto-icon img {
        width: 28px;
        height: 28px;
    }
}

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

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.producto-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-green);
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.error {
    border-left-color: #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-green);
    flex-shrink: 0;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification-message {
    flex: 1;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-gray);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: var(--light-gray);
}

/* Form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Estilos para la página de productos */
.productos-hero {
    background: var(--primary-green);
    padding: 120px 0 80px;
    text-align: center;
    color: var(--white);
}

.productos-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.productos-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.productos-page {
    padding: 80px 0;
    background-color: var(--white);
}

.productos-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.producto-card-page {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-gray);
}

.producto-card-page:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.producto-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light-gray), #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.producto-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
}

.producto-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

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

.producto-content {
    padding: 2rem;
}

.producto-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.producto-content p {
    color: var(--primary-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.producto-categoria {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.productos-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--light-gray), #f8f9fa);
    border-radius: 16px;
    border: 1px solid var(--light-gray);
}

.productos-cta h2 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.productos-cta p {
    color: var(--primary-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.productos-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-productos {
    background: var(--primary-green);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;

}

.btn-productos:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-green);
    background: var(--white);
    color: var(--primary-green);
}

/* Responsive para página de productos */
@media (max-width: 768px) {
    .productos-hero h1 {
        font-size: 2.5rem;
    }
    
    .productos-hero p {
        font-size: 1.1rem;
    }
    
    .productos-grid-page {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .producto-content {
        padding: 1.5rem;
    }
    
    .productos-cta {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .productos-hero {
        padding: 100px 0 60px;
    }
    
    .productos-hero h1 {
        font-size: 2rem;
    }
    
    .productos-page {
        padding: 60px 0;
    }
    
    .producto-image {
        height: 160px;
        padding: 1.5rem;
    }
}
