* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: #e2e8f0;
line-height: 1.6;
}

/* Header */
.header {
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
color: white;
padding: 1rem 0;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
border-bottom: 3px solid #8b5cf6;
}

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

.logo {
font-size: 2rem;
font-weight: bold;
color: #8b5cf6;
text-decoration: none;
display: flex;
align-items: center;
gap: 0.5rem;
}

.logo::before {
content: '🏭';
font-size: 1.8rem;
}

.nav-menu {
display: flex;
list-style: none;
gap: 1.5rem;
align-items: center;
}

.nav-menu a {
color: white;
text-decoration: none;
transition: all 0.3s ease;
padding: 0.5rem 1rem;
border-radius: 25px;
position: relative;
}

.nav-menu a:hover {
color: #8b5cf6;
text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.quote-btn {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white !important;
padding: 0.7rem 1.5rem !important;
border-radius: 25px;
font-weight: bold;
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.quote-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Main Content */
.main-content {
margin-top: 80px; /* Space for fixed header */
}

/* Hero Section */
.hero {
background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
color: white;
padding: 6rem 0;
text-align: center;
position: relative;
overflow: hidden;
min-height: 80vh;
display: flex;
align-items: center;
justify-content: center;
}

.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="10,10 90,10 90,90 10,90" fill="none" stroke="rgba(139,92,246,0.1)" stroke-width="0.5"/><circle cx="25" cy="25" r="3" fill="rgba(139,92,246,0.15)"/><circle cx="75" cy="75" r="2" fill="rgba(139,92,246,0.1)"/></svg>');
animation: industrialFloat 25s infinite linear;
}

@keyframes industrialFloat {
0% { transform: translateY(0px) translateX(0px); }
25% { transform: translateY(-20px) translateX(10px); }
50% { transform: translateY(-10px) translateX(-5px); }
75% { transform: translateY(-30px) translateX(15px); }
100% { transform: translateY(0px) translateX(0px); }
}

.hero-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
position: relative;
z-index: 2;
}

.hero h1 {
font-size: 4rem;
margin-bottom: 1.5rem;
font-weight: 700;
background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
font-size: 1.5rem;
color: #8b5cf6;
font-weight: 600;
margin-bottom: 1rem;
}

.hero p {
font-size: 1.3rem;
margin-bottom: 3rem;
max-width: 700px;
margin-left: auto;
margin-right: auto;
opacity: 0.9;
}

.cta-buttons {
display: flex;
gap: 2rem;
justify-content: center;
flex-wrap: wrap;
}

.btn {
padding: 1rem 2.5rem;
border: none;
border-radius: 50px;
font-size: 1.1rem;
font-weight: bold;
text-decoration: none;
transition: all 0.3s ease;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.5rem;
position: relative;
overflow: hidden;
}

.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}

.btn:hover::before {
left: 100%;
}

.btn-primary {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white;
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
background: rgba(139, 92, 246, 0.2);
color: #8b5cf6;
border: 2px solid #8b5cf6;
backdrop-filter: blur(10px);
}

.btn-secondary:hover {
background: rgba(139, 92, 246, 0.3);
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

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

/* Stats Section */
.stats {
padding: 4rem 0;
background: rgba(139, 92, 246, 0.1);
border-top: 1px solid rgba(139, 92, 246, 0.3);
border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

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

.stat-item {
text-align: center;
padding: 1.5rem;
background: rgba(30, 41, 59, 0.5);
border-radius: 15px;
border: 1px solid rgba(139, 92, 246, 0.2);
transition: all 0.3s ease;
}

.stat-item:hover {
transform: translateY(-5px);
background: rgba(139, 92, 246, 0.1);
border-color: #8b5cf6;
}

.stat-number {
font-size: 2.5rem;
font-weight: bold;
color: #8b5cf6;
margin-bottom: 0.5rem;
}

.stat-label {
color: #cbd5e1;
font-weight: 500;
}

/* Section Titles */
.section-title {
text-align: center;
font-size: 2.8rem;
margin-bottom: 1rem;
color: #8b5cf6;
font-weight: 700;
}

.section-subtitle {
text-align: center;
font-size: 1.2rem;
color: #94a3b8;
margin-bottom: 4rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}

/* Products Section */
.products {
padding: 6rem 0;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

.product-card {
background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
border-radius: 20px;
overflow: hidden;
transition: all 0.4s ease;
border: 1px solid rgba(139, 92, 246, 0.2);
position: relative;
}

.product-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
transform: scaleX(0);
transition: transform 0.3s ease;
}

.product-card:hover::before {
transform: scaleX(1);
}

.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
border-color: #8b5cf6;
}

.product-image {
height: 200px;
background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
position: relative;
overflow: hidden;
}

.product-content {
padding: 2rem;
}

.product-category {
display: inline-block;
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white;
padding: 0.3rem 1rem;
border-radius: 15px;
font-size: 0.8rem;
font-weight: bold;
margin-bottom: 1rem;
text-transform: uppercase;
letter-spacing: 1px;
}

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

.product-card p {
color: #94a3b8;
margin-bottom: 1.5rem;
line-height: 1.6;
}

.product-specs {
background: rgba(15, 23, 42, 0.5);
padding: 1rem;
border-radius: 10px;
margin-bottom: 1.5rem;
border: 1px solid rgba(139, 92, 246, 0.1);
}

.product-specs h4 {
color: #8b5cf6;
margin-bottom: 0.5rem;
font-size: 0.9rem;
font-weight: 600;
}

.specs-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.3rem;
font-size: 0.85rem;
}

.specs-list span {
color: #cbd5e1;
}

.product-actions {
display: flex;
gap: 1rem;
}

.btn-spec {
flex: 1;
padding: 0.8rem 1rem;
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white;
border: none;
border-radius: 25px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.9rem;
}

.btn-spec:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn-quote {
flex: 1;
padding: 0.8rem 1rem;
background: rgba(139, 92, 246, 0.2);
color: #8b5cf6;
border: 1px solid #8b5cf6;
border-radius: 25px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.9rem;
}

.btn-quote:hover {
background: rgba(139, 92, 246, 0.3);
transform: translateY(-2px);
}

/* Services Section */
.services {
padding: 6rem 0;
background: rgba(139, 92, 246, 0.05);
}

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

.service-card {
background: rgba(30, 41, 59, 0.6);
padding: 2.5rem;
border-radius: 20px;
text-align: center;
transition: all 0.3s ease;
border: 1px solid rgba(139, 92, 246, 0.2);
}

.service-card:hover {
transform: translateY(-10px);
background: rgba(30, 41, 59, 0.8);
border-color: #8b5cf6;
box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.service-icon {
font-size: 3.5rem;
margin-bottom: 1.5rem;
display: block;
color: #8b5cf6;
}

.service-card h3 {
font-size: 1.4rem;
margin-bottom: 1rem;
color: #e2e8f0;
font-weight: 600;
}

.service-card p {
color: #94a3b8;
margin-bottom: 1.5rem;
}

/* Quote Calculator */
.calculator {
padding: 6rem 0;
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.calculator-container {
max-width: 800px;
margin: 0 auto;
background: rgba(15, 23, 42, 0.8);
padding: 3rem;
border-radius: 20px;
border: 1px solid rgba(139, 92, 246, 0.3);
backdrop-filter: blur(10px);
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-bottom: 1.5rem;
}

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

.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 1rem;
border: 1px solid rgba(139, 92, 246, 0.3);
border-radius: 10px;
background: rgba(30, 41, 59, 0.5);
color: #e2e8f0;
font-size: 1rem;
transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: #8b5cf6;
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

/* Chatbot */
.chatbot-container {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 1000;
}

.chatbot-button {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white;
border: none;
font-size: 1.5rem;
cursor: pointer;
box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
transition: all 0.3s ease;
animation: industrialPulse 3s infinite;
}

.chatbot-button:hover {
transform: scale(1.1);
box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

@keyframes industrialPulse {
0%, 100% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4); }
50% { box-shadow: 0 4px 30px rgba(139, 92, 246, 0.8); }
}

.chatbot-widget {
position: absolute;
bottom: 80px;
right: 0;
width: 380px;
height: 520px;
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
border-radius: 20px;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
display: none;
flex-direction: column;
overflow: hidden;
border: 1px solid rgba(139, 92, 246, 0.3);
}

.chatbot-header {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white;
padding: 1rem;
text-align: center;
font-weight: bold;
position: relative;
}

.chatbot-header::after {
content: '🏭 Especialista en Plásticos Industriales';
display: block;
font-size: 0.8rem;
opacity: 0.9;
margin-top: 0.2rem;
}

.chatbot-messages {
flex: 1;
padding: 1rem;
overflow-y: auto;
background: rgba(15, 23, 42, 0.8);
}

.message {
margin-bottom: 1rem;
display: flex;
align-items: flex-start;
gap: 0.5rem;
}

.message.bot {
flex-direction: row;
}

.message.user {
flex-direction: row-reverse;
}

.message-content {
max-width: 80%;
padding: 0.8rem 1rem;
border-radius: 15px;
font-size: 0.9rem;
line-height: 1.4;
}

.message.bot .message-content {
background: rgba(139, 92, 246, 0.2);
color: #e2e8f0;
border: 1px solid rgba(139, 92, 246, 0.3);
}

.message.user .message-content {
background: #8b5cf6;
color: white;
}

.message-avatar {
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
flex-shrink: 0;
}

.message.bot .message-avatar {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white;
}

.message.user .message-avatar {
background: #64748b;
color: white;
}

.chatbot-input {
padding: 1rem;
border-top: 1px solid rgba(139, 92, 246, 0.3);
background: rgba(30, 41, 59, 0.8);
display: flex;
gap: 0.5rem;
}

.chatbot-input input {
flex: 1;
padding: 0.7rem;
border: 1px solid rgba(139, 92, 246, 0.3);
border-radius: 20px;
background: rgba(15, 23, 42, 0.8);
color: #e2e8f0;
outline: none;
}

.chatbot-input input:focus {
border-color: #8b5cf6;
}

.chatbot-input button {
padding: 0.7rem 1rem;
background: #8b5cf6;
color: white;
border: none;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
}

.chatbot-input button:hover {
background: #7c3aed;
}

/* Footer */
.footer {
background: #0f172a;
color: #94a3b8;
padding: 4rem 0 1rem;
border-top: 1px solid rgba(139, 92, 246, 0.2);
}

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

.footer-section h3 {
margin-bottom: 1rem;
color: #8b5cf6;
font-weight: 600;
}

.footer-section p,
.footer-section a {
color: #94a3b8;
text-decoration: none;
margin-bottom: 0.5rem;
display: block;
transition: color 0.3s ease;
}

.footer-section a:hover {
color: #8b5cf6;
}

.footer-bottom {
border-top: 1px solid rgba(139, 92, 246, 0.2);
padding-top: 1rem;
text-align: center;
color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

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

    .hero-content {
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .calculator-container {
        margin: 0 1rem;
        padding: 2rem 1rem;
    }

    .chatbot-widget {
        width: 320px;
        height: 450px;
    }

    .container {
        padding: 0 1rem;
    }
}