:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
    display: block;
}

.header.scrolled .logo img {
    height: 50px;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s;
    background: transparent;
    border: 2px solid transparent;
    white-space: nowrap;
}

.nav a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.nav a.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.nav a.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav a.btn-proveedores {
    background: #ef4444;
    color: var(--white);
    border-color: #ef4444;
}

.nav a.btn-proveedores:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero-industrial {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(51, 65, 85, 0.75) 100%),
        url('../img/banner3.png') center center / cover no-repeat;
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.1rem;
    margin: 1rem 0 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
}

.hero-industrial h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
    color: var(--white);
}

.btn-hero {
    background: var(--white);
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 700;
}

.btn-hero:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-proveedores {
    background: #ef4444;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-proveedores:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background: var(--bg-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-section p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-content > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.value-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.value-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.value-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-item ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    line-height: 1.6;
}

.value-item ul li strong {
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary-color);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-color);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.client-logo {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Service Highlight */
.service-highlight {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card,
.contact-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-modern .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-modern label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contact-form-modern input,
.contact-form-modern textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.contact-form-modern input:focus,
.contact-form-modern textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form-modern textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-modern button {
    margin-top: 0.5rem;
}

/* Forms */
.contact-form,
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Info Box */
.info-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Form Tabs */
.form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

/* Legal Content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-text {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        gap: 0.25rem;
    }
    
    .nav a {
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .header.scrolled {
        padding: 0.5rem 0;
    }
    
    .header .container {
        gap: 1rem;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0.75rem;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0.35rem;
        z-index: 999;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
        border: 1px solid var(--border-color);
        font-size: 0.9rem;
        white-space: normal;
        border-radius: 8px;
    }
    
    .nav a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .nav a.btn-primary {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
        text-align: center;
        font-weight: 600;
    }
    
    .nav a.btn-primary:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }
    
    .nav a.btn-proveedores {
        background: #ef4444;
        color: var(--white);
        border-color: #ef4444;
        text-align: center;
        font-weight: 600;
    }
    
    .nav a.btn-proveedores:hover {
        background: #dc2626;
        border-color: #dc2626;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .logo img {
        height: 45px;
    }
    
    .header.scrolled .logo img {
        height: 40px;
    }
    
    /* Dropdown en móvil */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav-dropdown > a::after {
        margin-left: auto;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }
    
    /* Rotar flecha cuando está abierto */
    .nav-dropdown.submenu-open > a::after {
        transform: rotate(180deg);
    }
    
    /* Submenú colapsado por defecto en móvil */
    .nav-submenu {
        position: static;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: var(--bg-light);
        border-radius: 8px;
        min-width: auto;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    }
    
    /* Submenú abierto */
    .nav-dropdown.submenu-open .nav-submenu {
        max-height: 500px;
        opacity: 1;
        margin-top: 0.5rem;
    }
    
    .nav-submenu a {
        margin: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
        display: block;
    }
    
    .nav-submenu a:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    
    .nav-submenu a:last-child {
        border-bottom: none;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    
    .nav-submenu a:hover {
        background: var(--white);
    }
    
    /* Hero responsive */
    .hero-industrial {
        padding: 5rem 0 4rem;
        min-height: 60vh;
    }
    
    .hero-industrial h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-left: 3px solid transparent;
        border-bottom: none;
    }
    
    .tab-btn.active {
        border-left-color: var(--primary-color);
        border-bottom-color: transparent;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn-primary,
    .product-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .plant-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .plant-specs {
        grid-template-columns: 1fr;
    }
    
    .plant-services ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-industrial {
        padding: 3rem 0;
    }
    
    .hero-industrial h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-icon {
        align-self: flex-start;
    }
    
    /* Menú móvil más compacto */
    .nav {
        top: 60px;
        max-height: calc(100vh - 60px);
        padding: 0.75rem;
    }
    
    .nav a {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header.scrolled .logo img {
        height: 35px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .header.scrolled {
        padding: 0.4rem 0;
    }
}


/* ========================================
   NUEVOS ESTILOS PARA SISTEMA MODULAR
   ======================================== */

/* Hero Small */
.hero-small {
    background: 
        linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(51, 65, 85, 0.75) 100%),
        url('../img/banner3.png') center center / cover no-repeat;
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-small h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-small p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.brand-logo {
    max-width: 200px;
    margin-bottom: 1rem;
    display: none; /* Ocultar logo en hero para evitar conflicto visual */
}

/* Brand Intro Section */
.brand-intro-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.brand-intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-intro-logo {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.brand-intro-logo img {
    max-width: 100%;
    height: auto;
    width: 280px;
}

.brand-intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.brand-intro-text .lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.brand-intro-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.brand-feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand-feature-item span:last-child {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Responsive Brand Intro */
@media (max-width: 768px) {
    .brand-intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .brand-intro-logo img {
        width: 200px;
    }
    
    .brand-features {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Área invisible para mantener el hover */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.nav-dropdown:hover .nav-submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-submenu {
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.75rem;
    z-index: 1000;
    transition: all 0.2s ease;
    margin-top: 0;
}

.nav-submenu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
    margin-bottom: 0.25rem;
}

.nav-submenu a:last-child {
    margin-bottom: 0;
}

.nav-submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--border-color);
    transform: translateX(5px);
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Product Detail */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: gap 0.3s;
}

.back-link:hover {
    gap: 0.75rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.product-gallery {
    position: sticky;
    top: 100px;
    max-width: 600px;
}

.gallery-main {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: var(--bg-light);
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--primary-color);
}

.product-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-category-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.product-colors-section {
    margin-bottom: 2rem;
}

.product-colors-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.color-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Gallery thumbs wrapper con navegación */
.gallery-thumbs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
    padding: 0.5rem 0;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.gallery-nav-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
    padding: 0;
}

.gallery-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-light);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-nav-btn span {
    line-height: 1;
}

/* Navegación entre productos (anterior/siguiente) */
.product-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.product-nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    flex: 1;
    max-width: 400px;
}

.product-nav-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.product-nav-btn.prev {
    justify-content: flex-start;
}

.product-nav-btn.next {
    justify-content: flex-end;
    margin-left: auto;
}

.nav-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-product-info img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-light);
}

.nav-product-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.nav-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-nav-spacer {
    flex: 1;
    max-width: 400px;
}

/* Keyboard hint */
.keyboard-hint {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    transition: opacity 0.5s;
}

/* Skeleton loader para producto */
.product-skeleton {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.skeleton-gallery {
    margin-bottom: 2rem;
}

.skeleton-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-thumbs {
    display: flex;
    gap: 0.75rem;
}

.skeleton-thumbs::before,
.skeleton-thumbs::after {
    content: '';
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 8px;
}

.skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-title {
    width: 70%;
    height: 40px;
    background: var(--bg-light);
    border-radius: 8px;
}

.skeleton-text {
    width: 100%;
    height: 20px;
    background: var(--bg-light);
    border-radius: 4px;
}

.skeleton-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skeleton-features::before,
.skeleton-features::after {
    content: '';
    width: 80%;
    height: 16px;
    background: var(--bg-light);
    border-radius: 4px;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Plants/Instalaciones */
.plant-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.plant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.plant-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
}

.plant-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.location-icon {
    font-size: 1.5rem;
}

.plant-gallery {
    margin-bottom: 2rem;
}

.plant-gallery-main {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-light);
}

.plant-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor con flechas de navegación */
.plant-gallery-thumbs-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Galería con scroll horizontal */
.plant-gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 0.5rem 0;
}

/* Estilo de scrollbar */
.plant-gallery-thumbs::-webkit-scrollbar {
    height: 8px;
}

.plant-gallery-thumbs::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.plant-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.plant-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.plant-gallery-thumbs img {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.plant-gallery-thumbs img:hover,
.plant-gallery-thumbs img.active {
    border-color: var(--primary-color);
}

/* Botones de navegación */
.gallery-nav {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.gallery-nav:active {
    transform: scale(0.95);
}

.plant-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.plant-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.spec-icon {
    font-size: 2rem;
}

.spec-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.spec-content p {
    color: var(--text-light);
    margin: 0;
}

.plant-services {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.plant-services h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plant-services ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.plant-services li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.plant-services li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Downloads */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.download-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.download-card .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn-primary,
    .product-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Navegación de productos en móvil */
    .product-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-nav-btn {
        max-width: 100%;
    }
    
    .product-nav-btn.next {
        margin-left: 0;
    }
    
    .nav-product-info img {
        width: 50px;
        height: 50px;
    }
    
    .nav-product-name {
        font-size: 0.875rem;
    }
    
    /* Gallery thumbs en móvil */
    .gallery-thumbs img {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
    
    .gallery-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
    
    .plant-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .plant-specs {
        grid-template-columns: 1fr;
    }
    
    .plant-services ul {
        grid-template-columns: 1fr;
    }
    
    .nav-submenu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    .nav.active .nav-submenu {
        display: block;
    }
    
    /* Galería de plantas en móvil */
    .plant-gallery-thumbs-container {
        gap: 0.5rem;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1.3rem;
    }
    
    .plant-gallery-thumbs img {
        width: 100px;
        min-width: 100px;
    }
}


/* ========================================
   MEJORAS UX - Nuevas Funcionalidades
   ======================================== */

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 12px;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Animación de pulso para WhatsApp */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Indicador de Sección Activa en Menú */

/* Dropdown activo (cuando alguna de sus secciones está visible) */
.nav-dropdown.active > a {
    color: var(--primary-color) !important;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    position: relative;
}

.nav-dropdown.active > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Enlace activo en submenú */
.nav-submenu a.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.15);
    border-left: 3px solid var(--primary-color);
    padding-left: 1.2rem;
}

/* Enlace directo activo (sin submenú) */
.nav > a.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    position: relative;
}

.nav > a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Animaciones de Entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delays para animaciones escalonadas */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Responsive - Ajustes para móvil */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    /* Evitar que los botones se superpongan */
    .back-to-top {
        right: 1rem;
    }
    
    .whatsapp-float {
        left: auto;
        right: 1rem;
        bottom: 5rem; /* Arriba del botón volver arriba */
    }
}

/* Mejora de rendimiento para animaciones */
.fade-in,
.fade-in-left,
.fade-in-right,
.back-to-top,
.whatsapp-float {
    will-change: transform, opacity;
}


/* Textos Justificados */
.section-intro,
.lead-text,
.about-content p,
.service-card p,
.advantage-card p,
.value-item p,
.legal-content p {
    text-align: justify;
}


/* Footer Vreo */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-vreo {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-subsidiary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-vreo-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-vreo-link:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-vreo-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .footer-vreo-logo {
        height: 32px;
    }
}


/* Logo ISO en Ventajas */
.iso-logo-container {
    margin-top: 1.5rem;
    text-align: center;
}

.iso-logo {
    height: 60px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.iso-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .iso-logo {
        height: 50px;
    }
}


/* ========================================
   Breadcrumbs Styles
   ======================================== */
.breadcrumbs {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-light);
    margin: 0 0.5rem;
    user-select: none;
}

/* Responsive Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.25rem;
    }
}


/* ========================================
   FAQ Styles
   ======================================== */
.faq-container {
    max-width: 900px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item[open] summary {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.faq-item p {
    padding: 1.25rem 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: underline;
}

.faq-item a:hover {
    color: var(--primary-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-item summary {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-item p {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   Cotizador Results Styles
   ======================================== */

/* Card Styles */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
}

.card-header h3 {
    margin: 0;
    color: white;
}

.card-body {
    padding: 2rem;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.alert-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

/* Debug Section */
.debug-section {
    background: #2d2d2d;
    color: #f8f8f2;
}

.debug-section .card-header {
    background: #1a1a1a;
}

.debug-section pre {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    color: #f8f8f2;
}

/* Results Container */
.cotizador-results {
    background: #f8f9fa;
}

.cotizador-results .container {
    max-width: 1000px;
}

.cotizador-results h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.cotizador-results .price-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.cotizador-results .price-highlight h2 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cotizador-results .price-highlight .price-amount {
    font-size: 4rem;
    font-weight: bold;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cotizador-results .price-highlight p {
    color: white;
    opacity: 0.95;
    margin: 0.5rem 0;
}

.cotizador-results .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.cotizador-results .info-grid div {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cotizador-results .info-grid strong {
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cotizador-results .volume-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.cotizador-results .volume-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cotizador-results .volume-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cotizador-results .volume-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.cotizador-results .volume-table tbody tr {
    transition: all 0.2s ease;
}

.cotizador-results .volume-table tbody tr:hover {
    background-color: #f8f9ff !important;
}

.cotizador-results .volume-table .highlight {
    background-color: #fff3cd !important;
    font-weight: 600;
}

.cotizador-results .volume-table .highlight:hover {
    background-color: #ffe69c !important;
}

.cotizador-results .disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.cotizador-results .disclaimer h4 {
    margin: 0 0 1rem 0;
    color: #856404;
    font-size: 1.1rem;
}

.cotizador-results .disclaimer ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #856404;
}

.cotizador-results .disclaimer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cotizador-results .form-actions {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.cotizador-results .btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.5rem;
}

.cotizador-results .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive para resultados */
@media (max-width: 768px) {
    .cotizador-results .price-highlight .price-amount {
        font-size: 2.5rem;
    }
    
    .cotizador-results .price-highlight h2 {
        font-size: 1.5rem;
    }
    
    .cotizador-results .info-grid {
        grid-template-columns: 1fr;
    }
    
    .cotizador-results .volume-table {
        font-size: 0.85rem;
    }
    
    .cotizador-results .volume-table th,
    .cotizador-results .volume-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .cotizador-results .btn-large {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 300px;
    }
    
    .cotizador-results .form-actions {
        padding: 1rem 0;
    }
}

/* Print Styles */
@media print {
    .cotizador-results .form-actions,
    .debug-section {
        display: none;
    }
    
    .cotizador-results {
        background: white;
    }
}
