/* Estilos para la página de producto individual de NauticHub */

/* Contenedor principal */
.nautichub-single-product {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    margin-bottom: 40px;
}

/* Migas de pan */
.nautichub-breadcrumbs {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 0.9em;
    color: #666;
}

.nautichub-breadcrumbs a {
    color: #4d6d80;
    text-decoration: none;
}

.nautichub-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Contenedor principal del producto */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

/* Galería */
.product-gallery {
    flex: 0 0 calc(50% - 15px);
}

.main-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.main-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.no-image {
    padding: 30px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Miniaturas */
.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.product-thumbnail.active {
    border-color: #4d6d80;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Información del producto */
.product-info {
    flex: 0 0 calc(50% - 15px);
}

.product-title {
    margin: 0 0 15px;
    font-size: 2em;
    color: #4d6d80;
    line-height: 1.3;
}

.product-expositor {
    margin-bottom: 15px;
    font-size: 1em;
    color: #666;
}

.product-expositor a {
    color: #4d6d80;
    text-decoration: none;
}

.product-expositor a:hover {
    text-decoration: underline;
}

/* Precios */
.product-prices {
    margin: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2em;
}

.price-sale {
    color: #e74c3c;
    font-size: 1.8em;
    font-weight: bold;
}

.price {
    font-size: 1.8em;
    font-weight: bold;
    color: #4d6d80;
}

.price-discount {
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 10px;
}

/* Botón de compra */
.product-purchase {
    margin: 20px 0;
}

.nautichub-button {
    background: #4d6d80;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.nautichub-button:hover {
    background: #3a5a68;
    color: white;
    text-decoration: none;
}

.nautichub-button-primary {
    background-color: #28a745;
}

.nautichub-button-primary:hover {
    background-color: #218838;
}

/* Formulario de contacto */
.product-contact-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-top: 25px;
}

.product-contact-form h3 {
    margin-top: 0;
    color: #4d6d80;
    font-size: 1.3em;
    border-bottom: 2px solid #c4d8e3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.nautichub-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.nautichub-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.nautichub-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.nautichub-form input[type="text"],
.nautichub-form input[type="email"],
.nautichub-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

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

.form-action {
    text-align: center;
}

/* Pestañas de detalles */
.product-details {
    margin-top: 40px;
}

.product-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.tabs-nav li {
    margin: 0;
    padding: 0;
}

.tabs-nav a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.tabs-nav li.active a {
    background: white;
    color: #4d6d80;
    border-bottom: 2px solid #4d6d80;
}

.tabs-nav a:hover:not(.active) {
    background: rgba(255,255,255,0.5);
}

.tabs-content {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2:first-child,
.tab-content h3:first-child {
    margin-top: 0;
}

/* Lista de documentos */
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    margin-bottom: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.document-list a {
    color: #4d6d80;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.document-list a i {
    margin-right: 10px;
    font-size: 1.2em;
}

.document-list a:hover {
    text-decoration: underline;
}

/* Productos relacionados */
.related-products {
    margin-top: 40px;
}

.related-products h2 {
    margin-bottom: 20px;
    color: #4d6d80;
    font-size: 1.5em;
    text-align: center;
}

/* Mensajes de éxito y error */
.success-message,
.error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Insignia "Presente en el evento" */
.present-in-event-badge {
    display: flex;
    align-items: center;
    margin: 8px 0 15px;
    font-size: 0.9em;
    color: #4d6d80;
    background-color: #f2f7f9;
    padding: 5px 10px;
    border-radius: 4px;
    max-width: fit-content;
}

.present-in-event-badge img {
    height: 30px;
    width: auto;
    margin-right: 8px;
}

.present-in-event-badge span {
    font-weight: 600;
}

/* CTA para login */
.login-cta-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.login-cta-message h3 {
    color: #4d6d80;
    margin-top: 0;
    margin-bottom: 15px;
}

.login-cta-message p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #495057;
    line-height: 1.5;
}

.login-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.login-cta-buttons .nautichub-button {
    min-width: 120px;
}

/* Estilo para el contenido de la descripción */
#tab-description {
    line-height: 1.6;
    color: #333;
}

#tab-description h2 {
    font-size: 1.5em;
    color: #4d6d80;
    margin-top: 20px;
    margin-bottom: 15px;
}

#tab-description h3 {
    font-size: 1.2em;
    color: #4d6d80;
    margin-top: 18px;
    margin-bottom: 12px;
}

#tab-description p {
    margin-bottom: 15px;
}

#tab-description ul, 
#tab-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

#tab-description img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }
    
    .product-gallery,
    .product-info {
        flex: 0 0 100%;
    }
    
    .nautichub-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .product-thumbnails {
        justify-content: center;
    }
    
    .product-title {
        font-size: 1.5em;
    }
    
    .price-sale,
    .price {
        font-size: 1.5em;
    }
}

/* Estilos adicionales para la página individual de producto NauticHub */

/* Estilos generales para la página completa */
.nautichub-single-product-page {
    background-color: #f9f9f9;
    padding-top: 30px;
    padding-bottom: 0;
}

.product-contact-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #4d6d80;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.nautichub-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.nautichub-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.nautichub-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.nautichub-form input[type="text"],
.nautichub-form input[type="email"],
.nautichub-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.nautichub-form input:focus,
.nautichub-form textarea:focus {
    border-color: #4d6d80;
    box-shadow: 0 0 0 3px rgba(77, 109, 128, 0.1);
    outline: none;
}

.form-action {
    text-align: center;
    margin-top: 10px;
}

/* CTA para usuarios no logueados */
.login-cta-container {
    text-align: center;
    padding: 20px 0;
}

.login-cta-message h3 {
    color: #4d6d80;
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.login-cta-message p {
    margin-bottom: 25px;
    font-size: 1.05em;
    color: #666;
}

.login-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Pestañas de descripción y documentos */
.product-details {
    margin-top: 40px;
    margin-bottom: 50px;
}

.product-tabs {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.tabs-nav li {
    margin: 0;
}

.tabs-nav a {
    display: block;
    padding: 15px 25px;
    font-size: 1.1em;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tabs-nav li.active a {
    background-color: #fff;
    color: #4d6d80;
    border-bottom: 3px solid #4d6d80;
}

.tabs-nav a:hover:not(.active) {
    background-color: rgba(255,255,255,0.5);
}

.tabs-content {
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2, 
.tab-content h3 {
    color: #4d6d80;
    margin-top: 0;
}

#tab-description {
    line-height: 1.7;
    font-size: 1.05em;
    color: #444;
}

/* Lista de documentos */
.document-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.document-list li {
    margin-bottom: 12px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-list li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.document-list a {
    display: flex;
    align-items: center;
    color: #4d6d80;
    text-decoration: none;
    font-weight: 500;
}

.document-list a i {
    margin-right: 12px;
    font-size: 1.3em;
    color: #4d6d80;
}

.document-list a:hover {
    color: #355160;
}

/* Productos relacionados - Diseño mejorado */
.related-products-section {
    margin-top: 60px;
    margin-bottom: 30px;
}

.related-products-title {
    font-size: 1.8em;
    color: #4d6d80;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.related-products-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #4d6d80;
    margin: 15px auto 0;
    border-radius: 2px;
}

.related-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.related-product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.related-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(77, 109, 128, 0.9);
    color: white;
    padding: 6px 12px;
    font-size: 0.7em;
    border-radius: 20px;
    font-weight: 600;
    z-index: 10;
}

.related-product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-product-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.related-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-product-title a:hover {
    color: #4d6d80;
}

.related-product-prices {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.related-product-prices .price {
    font-size: 1.4em;
}

.related-product-prices .price-sale {
    font-size: 1.4em;
}

.related-product-prices .price-regular {
    font-size: 1em;
}

.related-product-action {
    margin-top: auto;
    text-align: center;
}

.related-product-action .nautichub-button {
    width: 100%;
    padding: 10px 15px;
}

/* Mensajes de éxito y error */
.success-message,
.error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive design */
@media (max-width: 980px) {
    .product-container {
        flex-direction: column;
    }
    
    .product-gallery-wrapper,
    .product-info {
        flex: 0 0 100%;
    }
    
    .main-image {
        height: 350px;
    }
    
    .product-title {
        font-size: 1.8em;
    }
    
    .nautichub-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .related-products-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .nautichub-single-product {
        padding: 15px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.6em;
    }
    
    .price-sale,
    .price {
        font-size: 1.8em;
    }
    
    .tabs-nav a {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .tabs-content {
        padding: 20px 15px;
    }
    
    .related-product-card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .related-products-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.nautichub-container {
    max-width: 1200px !important;
    width: 95% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.nautichub-single-product {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    padding: 20px;
}

/* Contenedor principal de producto */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

/* Estilos para la galería de imágenes */
.product-gallery-wrapper {
    flex: 0 0 calc(50% - 20px);
    position: relative;
}

.product-gallery {
    margin-bottom: 15px;
}

.main-image {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.no-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    background-color: #f5f5f5;
    color: #999;
    font-style: italic;
    border-radius: 10px;
}

/* Miniaturas */
.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-thumbnail.active {
    border-color: #4d6d80;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-thumbnail:hover {
    transform: scale(1.05);
    border-color: #b8c9d4;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Información del producto */
.product-info {
    flex: 0 0 calc(50% - 20px);
}

.product-title {
    margin: 0 0 15px;
    font-size: 2.2em;
    color: #4d6d80;
    line-height: 1.3;
    font-weight: 600;
}

/* Badge de "Presente en evento" */
.present-in-event-badge {
    display: flex;
    align-items: center;
    margin: 0 0 15px;
    padding: 8px 15px;
    background-color: #f2f7f9;
    border-radius: 8px;
    width: fit-content;
}

.present-in-event-badge img {
    height: 25px;
    width: auto;
    margin-right: 10px;
}

.present-in-event-badge span {
    color: #4d6d80;
    font-weight: 600;
    font-size: 0.9em;
}

/* Información del expositor */
.product-expositor {
    margin-bottom: 20px;
    color: #666;
}

.product-expositor a {
    color: #4d6d80;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.product-expositor a:hover {
    color: #355160;
    text-decoration: underline;
}

/* Precios */
.product-prices {
    padding: 15px 0;
    margin-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.price-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2em;
}

.price-sale {
    color: #e74c3c;
    font-size: 2em;
    font-weight: bold;
}

.price {
    font-size: 2em;
    font-weight: bold;
    color: #4d6d80;
}

.price-discount {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Botón de compra */
.product-purchase {
    margin: 25px 0;
}

.nautichub-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    background-color: #4d6d80;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nautichub-button:hover {
    background-color: #355160;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: white;
    text-decoration: none;
}

.nautichub-button-primary {
    background-color: #28a745;
}

.nautichub-button-primary:hover {
    background-color: #218838;
}

/* Formulario de contacto */
.product-contact-form {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Estilos para la previsualización de la galería en el formulario */
.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.gallery-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-item .image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-preview-item:hover .image-actions {
    opacity: 1;
}

.gallery-preview-item .image-actions button {
    color: white;
background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.gallery-preview-item .image-actions .remove-image-btn {
    color: #ff6b6b;
}

.gallery-preview-item .image-actions .make-primary-btn {
    color: #ffd700;
}

.no-images {
    padding: 15px;
    background: #f8f8f8;
    border: 1px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    color: #999;
}

/* Container para el badge de "presente en el evento" */
.product-event-badge-container {
    width: 100%;
    clear: both;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Asegurar que se limpian los floats */
.nautichub-single-product::after,
.product-container::after,
.product-event-badge-container::after,
.product-gallery-wrapper::after,
.product-info::after {
    content: "";
    display: table;
    clear: both;
}

/* Asegurar que no hay desbordamiento */
.nautichub-single-product,
.product-container,
.product-gallery-wrapper,
.product-info {
    overflow: hidden;
}

/* Eliminar línea gris vertical del sidebar */
.container:before {
    display: none !important;
}

/* Asegurar que no haya borde en el sidebar */
#sidebar {
    border-left: none !important;
}

/* Si hay alguna línea específica de Divi */
.et_right_sidebar #main-content .container:before {
    display: none !important;
}

/* Para cualquier otra línea vertical en el diseño */
#main-content .container:before,
#main-content:before {
    display: none !important;
    width: 0 !important;
    background: none !important;
}