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

/* Performance optimizations */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Header */
header {
    background: white;
    color: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

nav ul li {
    margin: 0;
}

nav a.nav-link {
    color: #1b5e20;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    font-size: 1rem;
    background-color: transparent;
    border-bottom: none;
}

nav a.nav-link:hover {
    color: #1b5e20;
    background-color: hsl(140, 27%, 96%);
    border-bottom: 2px solid #1b5e20;
}

nav a.nav-link.active {
    color: #1b5e20;
    background-color: transparent;
    font-weight: 500;
}

/* Botón hamburguesa - solo visible en móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
}


.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #1b5e20;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) {
    top: 10px;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 10px;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.menu-toggle:hover span {
    background-color: #2e7d32;
}

/* Animación cuando el menú está abierto - se convierte en X */
.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* Menú móvil desplegable */
.mobile-menu-overlay {
    position: fixed;
    top: 73px;
    right: 0;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: white;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}


.mobile-menu-list {
    list-style: none;
    padding: 2rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.mobile-menu-list li {
    width: 100%;
    text-align: center;
}

.mobile-nav-link {
    display: block;
    color: #1b5e20;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: transparent;
    border-bottom: none;
}

.mobile-nav-link:hover {
    background-color: #c8e6c9;
    border-bottom: 2px solid #1b5e20;
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.hero-content {
    max-width: 600px;
    text-align: left;
    color: white;
    padding: 3rem 2.5rem;
}

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

.hero h2 {
    font-size: 1.25rem;
    color: #ecf0f1;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: normal;
    line-height: 1.6;
}

.hero p {
    font-size: 1.08rem;
    color: #ecf0f1;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: normal;
    line-height: 1.6;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #20c55a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Products section */
.products {
    padding: 2rem 0 4rem 0;
    background: white;
}

.products-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
    margin-top: 0;
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ecf0f1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Product Intro */
.product-intro {
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Product Specs List */
.product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.product-specs li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    padding-left: 0;
    position: relative;
}

.product-specs li strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline;
    margin-right: 0.3rem;
}

.product-specs li:last-child {
    margin-bottom: 0;
}

/* Product Images */
.product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* CTA Button in Product Cards */
.product-card .cta-button {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    justify-content: center;
}

/* Applications section */
.applications {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.applications h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

.application-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.application-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.application-image:hover {
    transform: translateY(-5px);
}

.application-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.application-text {
    padding: 2rem;
}

.application-text h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.application-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    text-align: justify;
}

.application-text p + ul.product-specs {
    margin-top: -1.5rem;
}

.application-text .cta-button {
    margin-top: 0;
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
}

/* Hamburguesas section specific styles */
#hamburguesas .application-image {
    overflow: hidden;
}

#hamburguesas .application-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Contact section */
.contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #009f46, #014e27);
    color: white;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

address {
    font-style: normal;
}

address p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Active Campaign Form Styling */
._form_158 {
    width: 100%;
}

._form_158 input[type="text"],
._form_158 input[type="email"],
._form_158 input[type="tel"],
._form_158 textarea,
._form_158 select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

._form_158 input[type="text"]:focus,
._form_158 input[type="email"]:focus,
._form_158 input[type="tel"]:focus,
._form_158 textarea:focus,
._form_158 select:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

._form_158 button[type="submit"],
._form_158 input[type="submit"] {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

._form_158 button[type="submit"]:hover,
._form_158 input[type="submit"]:hover {
    background: #20c55a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

._form_158 label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    text-align: left;
}

._form_158 ._form_element {
    margin-bottom: 1.5rem;
}

._form_158 ._form_element._x0000000 {
    margin-bottom: 0;
}

/* Loading state */
.contact-form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form-container.loading::after {
    content: "Cargando formulario...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 500;
}

/* Footer */
footer {
    background: #333333;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    font-weight: 700;
}

.footer-info address {
    font-style: normal;
}

.footer-info address p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: white;
}

.phone-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link:hover {
    color: #20c55a;
    transform: translateY(-2px);
}

.footer-contacts {
    margin-top: 1.5rem;
}

.contact-group {
    margin-bottom: 2rem;
}

.contact-group:last-child {
    margin-bottom: 0;
}

.contact-label {
    color: #25D366;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-email {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #20c55a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-map-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.map-link {
    color: #25D366;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 0.75rem;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #20c55a;
    text-decoration: underline;
}

.footer-address {
    color: white;
    font-size: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-icon {
    font-size: 1.2rem;
}

.footer-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    border: none;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    nav h1 {
        font-size: 1rem;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero .container {
        padding: 2rem 20px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
        text-align: left;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero h2 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        object-position: center;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }
    
    .products-title,
    .contact h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .product-card .cta-button {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
        margin-top: 1rem;
    }
    
    .product-intro {
        font-size: 1rem;
        margin-bottom: 0.65rem;
        line-height: 1.5;
    }
    
    .product-specs {
        margin: 0 0 0.65rem 0;
    }
    
    .product-specs li {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
        padding-left: 0;
    }
    
    .product-specs li strong {
        font-size: 0.95rem;
        margin-right: 0.25rem;
    }
    
    .applications h2 {
        font-size: 2rem;
    }
    
    .application-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .application-text {
        padding: 1rem;
    }
    
    .application-text p {
        font-size: 1rem;
        text-align: left;
    }
    
    .application-text .cta-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .contact-form-container {
        margin: 1.5rem auto;
        padding: 1.5rem;
    }
    
    ._form_158 input[type="text"],
    ._form_158 input[type="email"],
    ._form_158 input[type="tel"],
    ._form_158 textarea,
    ._form_158 select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    ._form_158 button[type="submit"],
    ._form_158 input[type="submit"] {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info h3 {
        font-size: 1.5rem;
    }
    
    .footer-info address p {
        font-size: 1rem;
    }
    
    .footer-map iframe {
        height: 250px;
    }
    
    .footer-contacts {
        margin-top: 1rem;
    }
    
    .contact-group {
        margin-bottom: 1.5rem;
    }
    
    .contact-label {
        font-size: 1rem;
    }
    
    .contact-email {
        font-size: 0.95rem;
    }
    
    .whatsapp-btn {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
    
    .whatsapp-btn-icon {
        width: 18px;
        height: 18px;
    }
    
    .footer-map-section {
        align-items: center;
    }
    
    .footer-address {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 50vh;
    }
    
    .hero .container {
        padding: 1.5rem 15px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 0.9rem;
    }
    
    .products,
    .applications,
    .contact {
        padding: 2rem 0;
    }
    
    .applications h2 {
        font-size: 1.75rem;
    }
    
    .application-text p {
        font-size: 0.95rem;
    }
    
    .contact-form-container {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    ._form_158 input[type="text"],
    ._form_158 input[type="email"],
    ._form_158 input[type="tel"],
    ._form_158 textarea,
    ._form_158 select {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    ._form_158 button[type="submit"],
    ._form_158 input[type="submit"] {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-info h3 {
        font-size: 1.3rem;
    }
    
    .footer-info address p {
        font-size: 0.95rem;
    }
    
    .footer-map iframe {
        height: 200px;
    }
    
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20c55a;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Animación de pulso para el botón */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive para el botón flotante */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float-icon {
        width: 28px;
        height: 28px;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    nav,
    .whatsapp-float {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: white;
        color: black;
    }
}


