    /**
 * VISIBILIDAD DE MARCA - FRONTEND STYLES
 * Valencia Boat Show 2025
 * 
 * Colores corporativos:
 * - Azul principal: #4d6d80
 * - Beige claro: #f3f2f0
 */

/* ===================================
   VARIABLES CSS Y RESET
   =================================== */
:root {
    --primary-color: #4d6d80;
    --primary-light: #5a7a90;
    --primary-dark: #3d5a70;
    --secondary-color: #f3f2f0;
    --accent-color: #c4d8e3;
    --text-dark: #1b303b;
    --text-medium: #5a6c7d;
    --text-light: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(77, 109, 128, 0.1);
    --shadow-medium: 0 4px 20px rgba(77, 109, 128, 0.15);
    --shadow-heavy: 0 8px 40px rgba(77, 109, 128, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ===================================
   CONTENEDOR PRINCIPAL
   =================================== */
.visibilidad-marca-wrapper {
    
    margin: 0 auto;
    
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
     max-width:100%;
}

/* ===================================
   HEADER SECTION
   =================================== */
.visibilidad-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    color: var(--white);
    position: relative;
    overflow: hidden;
    max-width:100%;
}

.visibilidad-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.visibilidad-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color:#ffffff;
}

.visibilidad-title i {
    margin-right: 16px;
    background: linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visibilidad-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ===================================
   FILTROS DE CATEGORÍA
   =================================== */
.visibilidad-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--text-medium);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-light);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn.cart-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #34ce57 100%);
    border-color: var(--success-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

.filter-btn.cart-btn:hover {
    background: linear-gradient(135deg, #218838 0%, var(--success-color) 100%);
    border-color: #218838;
    transform: translateY(-2px) scale(1.05);
}

/* ===================================
   GRID DE SERVICIOS
   =================================== */
.visibilidad-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(77, 109, 128, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease forwards;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-card[data-category]:nth-child(1) { animation-delay: 0.1s; }
.service-card[data-category]:nth-child(2) { animation-delay: 0.2s; }
.service-card[data-category]:nth-child(3) { animation-delay: 0.3s; }
.service-card[data-category]:nth-child(4) { animation-delay: 0.4s; }
.service-card[data-category]:nth-child(5) { animation-delay: 0.5s; }

/* Imagen del servicio */
.service-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.service-image-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

.service-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(77, 109, 128, 0.9);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contenido del servicio */
.service-content {
    padding: 24px;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-details {
    margin-bottom: 24px;
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.service-detail i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* Footer del servicio */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.service-price {
    flex: 1;
}

.price-amount {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Acciones del servicio */
.service-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    border-radius: 25px;
    padding: 2px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 4px;
}

.qty-input:focus {
    outline: none;
}

/* Botones de acción */
.btn-add-to-cart,
.btn-sold-out {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-light);
}

.btn-add-to-cart {
    background: linear-gradient(135deg, var(--success-color) 0%, #34ce57 100%);
    color: var(--white);
}

.btn-add-to-cart:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #218838 0%, var(--success-color) 100%);
}

.btn-add-to-cart.disabled {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-sold-out {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e85d75 100%);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===================================
   SECCIÓN DE INFORMACIÓN
   =================================== */
.visibilidad-info-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 50px 30px;
    margin-top: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(77, 109, 128, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 20px;
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-medium);
}

.info-icon i {
    font-size: 2rem;
    color: var(--white);
}

.info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   MODAL DE FACTURACIÓN
   =================================== */
.visibilidad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.modal-close:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.modal-body {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
    padding: 12px;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 109, 128, 0.1);
}

/* Resumen del carrito */
.cart-summary {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.cart-summary h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(77, 109, 128, 0.1);
    font-size: 0.9rem;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid var(--primary-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 2px solid var(--secondary-color);
    background: var(--secondary-color);
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-medium);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* ===================================
   ESTADOS Y ANIMACIONES
   =================================== */
.service-card.hidden {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none;
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===================================
   KEYFRAMES
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .visibilidad-marca-wrapper {
        padding: 20px 15px;
    }
    
    .visibilidad-title {
        font-size: 2.2rem;
    }
    
    .visibilidad-subtitle {
        font-size: 1.1rem;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .visibilidad-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .visibilidad-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .service-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .visibilidad-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 16px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
}

/* ==============================================
   BOTÓN DESCARGA DOSSIER
   ============================================== */

   .dossier-download-section {
    margin: 30px 0;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(77, 109, 128, 0.1);
    border-bottom: 1px solid rgba(77, 109, 128, 0.1);
}

.btn-download-dossier {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #4d6d80 0%, #5a7a8f 100%);
    color: white !important;
    padding: 18px 30px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 109, 128, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-download-dossier::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-download-dossier:hover::before {
    left: 100%;
}

.btn-download-dossier:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 109, 128, 0.4);
    color: white !important;
}

.btn-download-dossier i {
    font-size: 18px;
    color: #f3f2f0;
}

.btn-download-dossier span {
    font-size: 16px;
    line-height: 1.2;
}

.btn-download-dossier small {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.2;
    margin-left: -8px;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-download-dossier {
        flex-direction: column;
        gap: 8px;
        padding: 16px 25px;
        font-size: 15px;
    }
    
    .btn-download-dossier small {
        margin-left: 0;
        text-align: center;
    }
    
    .dossier-download-section {
        margin: 20px 0;
        padding: 15px 0;
    }
}

/* Hover para móvil */
@media (hover: none) and (pointer: coarse) {
    .btn-download-dossier:active {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(77, 109, 128, 0.35);
    }
}