/* Products Page Styles */

/* Page Hero */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/productos_agricolas.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.product-line-hero {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.8)), url('images/slider1_centro_industrial.jpg');
}

.hero-overlay {
    width: 100%;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s both;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Product Lines Grid */
.product-lines {
    padding: 2rem 0;
    background-color: var(--background-light);
}

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

.line-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.line-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.line-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.line-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.line-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.line-card:hover .line-overlay {
    opacity: 1;
}

.line-info h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.line-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.line-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.line-categories span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.line-content {
    padding: 1.5rem;
}

.line-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.line-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.line-content .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.line-content .btn:hover {
    background: #1B5E20;
}

/* Product Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-brand {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.product-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.product-category {
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-ficha {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-ficha {
    background: #007bff;
    color: white;
}

.btn-ficha:hover {
    background: #0056b3;
    transform: translateY(-1px);
}



/* Modal Styles for Technical Sheet */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#techSheetModal.show {
    display: flex !important;
}

#techSheetModal .modal-content {
    background-color: white;
    margin: 8px auto;
    padding: 20px;
    border-radius: 10px;
    width: 90% !important;
    max-width: 600px !important;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 18px rgba(44,125,50,0.10);
    text-align: center;
}

#techSheetModal .modal-body {
    padding: 0;
}

#techSheetModal .tech-sheet {
    line-height: 1.4;
    padding: 10px 0;
}

#techSheetModal .tech-sheet h4 {
    color: #2e7d32;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

#techSheetModal .tech-sheet h5 {
    color: #1b5e20;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    border-left: 3px solid #2e7d32;
    padding-left: 0.8rem;
}

#techSheetModal .tech-sheet p {
    margin-bottom: 0.5rem;
    color: #444;
    font-size: 0.95rem;
}

#techSheetModal .tech-sheet ul {
    margin-bottom: 0.8rem;
    padding-left: 20px;
}

#techSheetModal .tech-sheet li {
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 0.93rem;
    line-height: 1.5;
}

/* Estilos para imágenes en el modal de ficha técnica */
#techSheetModal .tech-sheet img {
    max-width: 150px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Centrar todo el contenido del modal */
#techSheetModal .tech-sheet {
    text-align: center;
}

/* Alinear a la izquierda solo el texto descriptivo */
#techSheetModal .tech-sheet h4,
#techSheetModal .tech-sheet h5,
#techSheetModal .tech-sheet p,
#techSheetModal .tech-sheet ul,
#techSheetModal .tech-sheet li {
    text-align: left;
}

.modal-header {
    background: #2e7d32;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 0.8rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    max-height: 45vh;
    overflow-y: auto;
}

.tech-sheet {
    line-height: 1.3;
}

.tech-sheet h4 {
    color: #2e7d32;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.tech-sheet p {
    margin-bottom: 0.4rem;
    color: #444;
    font-size: 0.98rem;
}

.tech-sheet ul {
    margin-bottom: 0.5rem;
    padding-left: 18px;
}

.tech-sheet li {
    margin-bottom: 0.1rem;
    color: #333;
    font-size: 0.97rem;
    line-height: 1.45;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-15px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Ajustes responsivos para el modal de ficha técnica */
    #techSheetModal .tech-sheet img {
        max-width: 120px !important;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Ajustes responsivos para el modal de ficha técnica */
    #techSheetModal .tech-sheet img {
        max-width: 100px !important;
    }
    
    #techSheetModal .modal-content {
        width: 95% !important;
        margin: 10px auto;
    }
    
    .product-card {
        height: 380px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 13px;
        height: 46px;
    }
    
    .product-description {
        font-size: 11px;
        height: 42px;
    }
    
    .product-actions {
        gap: 6px;
    }
    
    .btn-ficha {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-ficha {
        padding: 4px 8px;
        font-size: 10px;
        min-height: 28px;
    }
    

    
    .modal-content {
        width: 95%;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .product-catalog .products-grid,
    .container .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Ajustes responsivos para el modal de ficha técnica */
    #techSheetModal .tech-sheet img {
        max-width: 80px !important;
    }
    
    #techSheetModal .modal-content {
        width: 98% !important;
        margin: 5px auto;
        padding: 15px;
    }
    
    #techSheetModal .tech-sheet h4 {
        font-size: 1rem;
    }
    
    #techSheetModal .tech-sheet h5 {
        font-size: 0.9rem;
    }
    
    #techSheetModal .tech-sheet p,
    #techSheetModal .tech-sheet li {
        font-size: 0.85rem;
    }
    
    .product-card {
        height: 340px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 11px;
        height: 40px;
        line-height: 1.3;
    }
    
    .product-description {
        font-size: 9px;
        height: 36px;
        line-height: 1.4;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .products-grid,
    .product-catalog .products-grid,
    .container .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    /* Ajustes responsivos para el modal de ficha técnica */
    #techSheetModal .tech-sheet img {
        max-width: 70px !important;
    }
    
    #techSheetModal .modal-content {
        width: 99% !important;
        margin: 2px auto;
        padding: 10px;
    }
    
    #techSheetModal .tech-sheet h4 {
        font-size: 0.9rem;
    }
    
    #techSheetModal .tech-sheet h5 {
        font-size: 0.8rem;
    }
    
    #techSheetModal .tech-sheet p,
    #techSheetModal .tech-sheet li {
        font-size: 0.8rem;
    }
    
    .product-card {
        height: 320px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 6px;
    }
    
    .product-title {
        font-size: 10px;
        height: 36px;
    }
    
    .product-description {
        font-size: 8px;
        height: 32px;
    }
    
    .btn-ficha {
        padding: 3px 6px;
        font-size: 9px;
        min-height: 24px;
    }
}

.catalog-controls {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.search-bar {
    display: flex;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.search-btn {
    padding: 12px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #1B5E20;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.clear-filters {
    background: var(--text-light);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.clear-filters:hover {
    background: var(--text-secondary);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Categories Info */
.categories-info {
    padding: 2rem 0;
    background: var(--background-light);
}

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

.category-info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.category-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.category-info-card:hover .category-icon {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-info-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.product-modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10001;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.modal-info {
    padding: 2rem;
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-category {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.modal-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-specifications {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid #2e7d32;
}

.modal-specifications h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-specifications p {
    line-height: 1.6;
    font-size: 0.9rem;
}

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

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 180px;
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-overlay p {
        font-size: 1.1rem;
    }
    
    .lines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-grid,
    .product-catalog .products-grid,
    .container .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        order: 1;
    }
    
    .modal-info {
        order: 2;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .catalog-controls {
        padding: 1.5rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        border-radius: var(--border-radius);
        border-right: 2px solid var(--border-color);
        margin-bottom: 0.5rem;
    }
    
    .search-btn {
        border-radius: var(--border-radius);
    }
    
    .product-card .product-actions {
        flex-direction: column;
    }
    
    .product-card .btn {
        flex: none;
        width: 100%;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        flex: none;
        width: 100%;
    }
    
    #techSheetModal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 5% auto;
        padding: 15px;
    }
    
    .tech-sheet-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-specs-table,
    .pests-table {
        font-size: 0.85rem;
    }
    
    .tech-specs-table td,
    .pests-table td,
    .pests-table th {
        padding: 0.5rem;
    }
}

/* Ajuste para la categoría del producto */
.product-line {
    display: inline-block;
    background: #f5f5f5;
    color: #2E7D32;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 10px;
    margin-bottom: 0.5rem;
    margin-top: 0.2rem;
    position: static;
    z-index: 1;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info {
    padding-top: 10px;
}

.modal.modal-macho .modal-content {
    background-color: white;
    margin: 8px auto;
    padding: 10px 12px 10px 12px;
    border-radius: 10px;
    width: 300px;
    max-width: 300px;
    max-height: 65vh;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 18px rgba(44,125,50,0.10);
    text-align: left;
}

.modal.modal-macho .modal-content img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.modal.modal-macho .modal-content h4 {
    color: #2e7d32;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.modal.modal-macho .modal-content ul {
    margin-bottom: 0.5rem;
    padding-left: 18px;
}

.modal.modal-macho .modal-content li {
    margin-bottom: 0.1rem;
    color: #333;
    font-size: 0.97rem;
    line-height: 1.45;
}

.modal.modal-macho .modal-content p {
    margin-bottom: 0.4rem;
    color: #444;
    font-size: 0.98rem;
}

.modal.modal-macho .modal-content strong {
    color: #1B5E20;
    font-weight: 700;
}

/* Estilos para fichas técnicas de Bayer */
.tech-sheet-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.brand-info h3 {
    color: #0066cc;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.product-subtitle {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.product-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
}

.tech-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tech-specs-table tr {
    border-bottom: 1px solid #e9ecef;
}

.tech-specs-table tr:last-child {
    border-bottom: none;
}

.tech-specs-table td {
    padding: 0.75rem;
    text-align: left;
}

.tech-specs-table td:first-child {
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    width: 40%;
}

.tech-specs-table td:last-child {
    color: #212529;
}

.pests-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pests-table thead {
    background: #0066cc;
    color: white;
}

.pests-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.pests-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.pests-table tr:last-child td {
    border-bottom: none;
}

.pests-table tr:nth-child(even) {
    background: #f8f9fa;
}

.tech-sheet-footer {
    margin-top: 2rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.tech-sheet-footer p {
    margin: 0.3rem 0;
    color: #1565c0;
    font-size: 0.9rem;
}

.tech-sheet-footer strong {
    color: #0d47a1;
    font-weight: 600;
}

