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

body {
    font-family: "Roboto", Helvetica, Arial, Verdana, sans-serif;
    color: #333333;
    background-color: #f1f1f1;
    line-height: 1.6;
}

/* Header Principal */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Primera fila del header */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #e1e5e9;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #d31515;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #d31515;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-login {
    text-decoration: none;
    color: #333333;
    padding: 8px 20px;
    border: 2px solid #8b8d94;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #8b8d94;
    color: white;
}

.btn-register {
    text-decoration: none;
    background: #d31515;
    color: white;
    border: 2px solid #d31515;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #b31212;
    border-color: #b31212;
}

/* Menú hamburguesa (oculto por defecto) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #333333;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f1f1f1;
    color: #d31515;
}

/* Botones de acción mobile (ocultos por defecto) */
.mobile-actions {
    display: none;
    gap: 10px;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #333333;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-action-btn:hover {
    background: #f1f1f1;
    color: #d31515;
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #333333;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #f1f1f1;
    color: #d31515;
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f1f1;
}

.mobile-nav-item:hover {
    background: #f8f9fa;
    color: #d31515;
}

.mobile-nav-item i {
    width: 20px;
    text-align: center;
    color: #8b8d94;
}

.mobile-nav-item:hover i {
    color: #d31515;
}

/* Overlay para el menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Segunda fila del header */
.header-bottom {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-selector select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
}

.search-container {
    flex: 1;
    max-width: 800px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-container form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
    width: 100%;
}

.search-container .category-selector {
    min-width: 200px;
}

.search-container .category-selector select,
.search-container .category-select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
}

.search-container .category-selector select:focus,
.search-container .category-select:focus {
    outline: none;
    border-color: #d31515;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b8d94;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #d31515;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    border-color: #d31515;
    color: #d31515;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    padding: 15px 0;
}

.breadcrumbs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumbs-container a {
    color: #8b8d94;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-container a:hover {
    color: #d31515;
}

.breadcrumbs-container span {
    color: #333333;
    font-weight: 500;
}

.breadcrumbs-container i {
    color: #8b8d94;
    font-size: 12px;
}

/* Contenido Principal */
.product-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* Contenedor del producto */
.product-container {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    gap: 30px;
    margin-bottom: 40px;
}

/* Panel de descargas */
.download-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.download-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.download-option:hover {
    border-color: #d31515;
    color: #d31515;
}

.download-option.selected {
    border-color: #d31515;
    background: #d31515;
    color: white;
}

.download-option i {
    font-size: 16px;
}

.btn-download-selected {
    width: 100%;
    padding: 15px;
    background: #d31515;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-download-selected:hover {
    background: #b31212;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8b8d94;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #d31515;
}

/* Panel de imagen */
.product-image-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.product-image-main {
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-image-thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #d31515;
}

/* Panel de información */
.product-info-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.product-header {
    margin-bottom: 25px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.meta-item {
    font-size: 14px;
    color: #8b8d94;
}

.manufacturer-link {
    color: #d31515;
    text-decoration: none;
    font-weight: 500;
}

.manufacturer-link:hover {
    text-decoration: underline;
}

.product-actions-small {
    display: flex;
    gap: 10px;
}

.action-btn-small {
    width: 35px;
    height: 35px;
    border: 1px solid #e1e5e9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn-small:hover {
    border-color: #d31515;
    color: #d31515;
}

.action-btn-small i {
    font-size: 26px;
}

.brand-section {
    margin-bottom: 25px;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.share-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #e1e5e9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    border-color: #d31515;
    color: #d31515;
}

.ratings {
    margin-bottom: 15px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-text {
    font-size: 14px;
    color: #8b8d94;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #e1e5e9;
    font-size: 14px;
}

.rate-link {
    color: #d31515;
    text-decoration: none;
    font-size: 14px;
}

.rate-link:hover {
    text-decoration: underline;
}

.contact-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.btn-contact {
    width: 100%;
    padding: 12px 20px;
    background: #d31515;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-contact:hover {
    background: #b31212;
}

/* Secciones adicionales */
.certifications-section,
.docs-section,
.overview-section,
.specs-video-section,
.related-products {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.specifications {
    border: 1px solid #f1f1f1;
    padding: 12px;
    border-radius: 6px;
}

.certifications-section h3,
.docs-section h3,
.overview-section h3,
.specifications h3,
.video-section h3,
.related-products h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

.certifications {
    display: flex;
    gap: 20px;
}

.certification {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cert-logo {
    width: 60px;
    height: 45px;
    object-fit: contain;
}

.certification span {
    font-size: 12px;
    color: #8b8d94;
    text-align: center;
}

/* Documentos */
.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.download-all-link {
    color: #d31515;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.download-all-link:hover {
    text-decoration: underline;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.doc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.doc-thumbnail {
    width: 120px;
    height: 160px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.doc-thumbnail.energy-guide {
    background: #ffd700;
    color: #333333;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.doc-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.doc-download {
    width: 35px;
    height: 35px;
    border: 1px solid #e1e5e9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-download:hover {
    border-color: #d31515;
    color: #d31515;
}

/* Descripción general */
.overview-text {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
}

/* Especificaciones y video */
.specs-video-section {
    /*
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    */
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 14px;
    color: #333333;
    font-weight: 600;
}

.spec-value {
    font-size: 14px;
    color: #333333;
    font-weight: 400;
}

.video-container {
    text-align: center;
}

.video-player {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-player iframe {
    width: 100%;
    height: 315px;
    border: none;
    border-radius: 8px;
}

.video-title {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

/* Productos relacionados */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-item h4 {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
    line-height: 1.4;
}

/* Footer */
.main-footer {
    background: #000000;
    height: 100px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ffffff;
}

.footer-copyright {
    color: #ffffff;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 1200px) {
    .product-container {
        grid-template-columns: 250px 1fr 300px;
        gap: 20px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0;
    }
    
    .header-top {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        gap: 0;
    }
    
    /* Mostrar menú hamburguesa */
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    /* Centrar logo */
    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Ocultar menú de navegación */
    .nav-menu {
        display: none;
    }
    
    /* Ocultar botones de acción desktop */
    .header-actions {
        display: none;
    }
    
    /* Mostrar botones de acción mobile */
    .mobile-actions {
        display: flex;
        order: 3;
    }
    
    .header-bottom {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    /* Ocultar botones de vista */
    .view-toggle {
        display: none;
    }
    
    .search-container {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .search-container .category-selector {
        width: 100%;
        min-width: auto;
    }
    
    .search-container .category-selector select,
    .search-container .category-select {
        width: 100%;
        min-width: auto;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .breadcrumbs-container {
        padding: 0 20px;
        font-size: 12px;
    }
    
    .product-main {
        padding: 20px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-panel {
        order: 2;
    }
    
    .product-image-panel {
        order: 1;
    }
    
    .product-info-panel {
        order: 3;
    }
    
    .specs-video-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .video-player iframe {
        height: 200px;
    }
    
    /* Footer responsive */
    .main-footer {
        margin-top: 40px;
    }
    
    .footer-content {
        padding: 0 20px;
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    
    .footer-copyright p {
        font-size: 12px;
        text-align: center;
    }
    
    .footer-logo-img {
        height: 25px;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications {
        flex-direction: column;
        gap: 15px;
    }
}
